|
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/b8bcf8c8/45c44a59/ |
?#pragma checksum "D:\wwwroot\patena\wwwroot\wap\Index.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "D77C426B0EF62F2B1E852B8B247A0CEB"
#line 1 "D:\wwwroot\patena\wwwroot\wap\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 TCLinkModel;
using TCLinkBLL;
public partial class wap_Index : System.Web.UI.Page
{
protected string title;
protected string keywords;
protected string description;
protected string phone;
protected string img;
protected string url;
protected string img1;
protected string url1;
public string PicList;
public string picurl;
public string ptitle;
public string footer;
protected string bgimages = "";
NewsManager nmanager = new NewsManager();
NewsTypeManager ntmanager = new NewsTypeManager();
NewsClassManager ncmanager = new NewsClassManager();
FriendLinkManager fmanager = new FriendLinkManager();
public string images1 = "", images2 = "", images3 = "", images4 = "";
protected void Page_Load(object sender, EventArgs e)
{
BindDate();
}
//绑定内容
public void BindDate()
{
//绑定网站信息
DataTable dt = nmanager.NewsByType(223, 1);
if (dt.Rows.Count > 0)
{
title = dt.Rows[0]["NTitle"].ToString();
keywords = dt.Rows[0]["NKeywords"].ToString();
description = dt.Rows[0]["NDescription"].ToString();
}
DataTable bgdt = nmanager.NewsByType(226, 1);
if (bgdt.Rows.Count > 0)
{
bgimages = bgdt.Rows[0]["NImages"].ToString();
}
}
//获得链接地址
public string getPic(object id)
{
string images = "";
DataTable ntdt = nmanager.NewsByType(Convert.ToInt32(id),1);
if (ntdt.Rows.Count > 0)
{
images= ntdt.Rows[0]["NImages"].ToString();
}
return images;
}
//截取字符
protected string str(string myobj, int count)
{
string mystr = myobj.ToString();
string returnstr = mystr;
if (mystr.Length > count)
{
returnstr = mystr.Substring(0, count);
}
return returnstr;
}
}
#line default
#line hidden