|
Server : Microsoft-IIS/10.0 System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586 User : jxgj ( 0) PHP Version : 7.0.33 Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server Directory : D:/tmp_aspnet/root/a99112df/ca2a8923/ |
?#pragma checksum "D:\wwwroot\ldxynb\wwwroot\index.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "2C611BF77DDDA966FD2213330047A755"
#line 1 "D:\wwwroot\ldxynb\wwwroot\index.aspx.cs"
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CoreClass;
using System.Text.RegularExpressions;
public partial class index : System.Web.UI.Page
{
#region 界说
public string newsHtml;
public DBCommon DB = new DBCommon();
public PublicFunction pubfun = new PublicFunction();
public string gsjj;
public string jpwh;
public string sy_gywm="";
public string db_qq = "";
public string db_rx = "";
public string db_yx = "";
public string db_gjc = "";
public string db_ewm = "";
#endregion
yingshi bs = new yingshi();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request["tcid"] != null && Request["tcid"].ToString()=="t1")
{
Session["delddl"] = null;
}
//图片轮播
DataSet dtt = bs.chaxun("select top 1 * from Info where pic<>'' and channelid=18 and recommend=true and Inspect=true and hot=true order by ordernum desc,Infoid desc");
Rep_tpxh.DataSource = dtt.Tables[0].DefaultView;
Rep_tpxh.DataBind();
// 成功案例
DataSet dt222t = bs.chaxun("select * from Info where pic<>'' and channelid=1 and recommend=true and Inspect=true and hot=true order by ordernum desc,addtime desc");
Repeater2.DataSource = dt222t.Tables[0].DefaultView;
Repeater2.DataBind();
// 成功案例
DataSet dt22vv2t = bs.chaxun("select * from Info where pic<>'' and channelid=16 and recommend=true and Inspect=true and hot=true order by ordernum desc,addtime desc");
Repeater1.DataSource = dt22vv2t.Tables[0].DefaultView;
Repeater1.DataBind();
// 1. 获取纯域名(不带端口)
string dom4444ain = Request.Url.Host;
dom4444ain = dom4444ain.Replace("www.", "");
if (dom4444ain == "shangbangtiyu.ccom")
{
Label1.Text = dom4444ain.Replace("www.","") + "正确";
}
else
{
Label1.Text = dom4444ain.Replace("www.","") + "谬误";
}
}
}
//成功案例 classname
DataSet dt_xclassname = new DataSet();
public string id_classname(string id)
{
string xiazais = "";
dt_xclassname = bs.chaxun("select * from class where classid=" + id + " ");
if (dt_xclassname.Tables[0].Rows.Count > 0)
{
for (int i = 0; i < dt_xclassname.Tables[0].Rows.Count; i++)
{
xiazais = dt_xclassname.Tables[0].Rows[i]["classname"].ToString() ;
}
}
else
{
//暗藏 下载文件
}
return xiazais;
}
//截取字符串 显示新闻标题前30字
public string bangjiequ(string strss, int id)
{
if (strss.IndexOf("|") > -1)
{
string[] stsszu = strss.Split('|');
strss = stsszu[0].ToString();
}
if (strss.Length > id)
{
strss = strss.Substring(0, id);
}
return strss;
}
}
#line default
#line hidden