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 System.Data.SqlClient;
using WebApp.Components;
using basic;
public partial class NewsDetail : System.Web.UI.Page
{
public MyClass mc = new MyClass();
public int intID;
public int intClassID;
public string strTitle = null;//标题
public string strKeywords = null;
public string strParentColumnName = null;
public string strParentColumnSubName = null;
public string strColumnName = null;
public string strColumnSubName = null;
public string strPath = null;
public int intPrevious;
public int intNext;
public string strPrevious = "No more";
public string strNext = "No more";
public string strPreviousUrl = "#";
public string strNextUrl = "#";
protected void Page_Load(object sender, EventArgs e)
{
SystemTools systemtools = new SystemTools();
if (systemtools.IsNumberic(Request["ID"]))//判断参数是否合法
{
//调用类
Common common = new Common();
//读取整站SEO的设置信息
ClientSEO clientseo = common.showSEO();
this.Title = clientseo.WebTitle;
description.Attributes["content"] = clientseo.WebDescription;
keywords.Attributes["content"] = clientseo.WebKeywords;
//根据ID显示内容
intID = Int32.Parse(Request["ID"]);
showContent();
//上一篇,下一篇
showPreviousAndNext(intID, intClassID);
//根据ClassID显示栏目名称
ClientColumnName clientcolumnname = new ClientColumnName();
clientcolumnname = common.showColumnName(intClassID);
strColumnName = clientcolumnname.ColumnName;
strColumnSubName = clientcolumnname.ColumnSubName;
//显示图片或者Flash
strPath = clientcolumnname.Path;
string strType = null;
if (strPath.Length >= 3)
{
strType = strPath.Substring(strPath.Length - 3, 3);
}
string strLength = clientcolumnname.Length;
string strWidth = clientcolumnname.Width;
if (strType == "swf")
{
strPath = "";
}
else
{
strPath = ""; //显示内页通栏图片
}
//根据ClassID显示父级栏目名称
ClientParentColumnName clientparentcolumnname = new ClientParentColumnName();
clientparentcolumnname = common.showParentColumnName(intClassID);
strParentColumnName = clientparentcolumnname.ParentColumnName;
if (!string.IsNullOrEmpty(strParentColumnName))
{
strParentColumnName = "