|
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/826e9916/5874ee3e/ |
?#pragma checksum "D:\wwwroot\west202004\wwwroot\aspx\main\news_list.aspx" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "7479559F884FFA8B2A13670F00B2F2179444B0A2"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具天生。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且若是
// 沉新天生代码,这些更改将会迷失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace ASP {
#line 332 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Linq;
#line default
#line hidden
#line 339 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.Security;
#line default
#line hidden
#line 2 "D:\wwwroot\west202004\wwwroot\aspx\main\news_list.aspx"
using System.Collections.Generic;
#line default
#line hidden
#line 334 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Text.RegularExpressions;
#line default
#line hidden
#line 342 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.UI.WebControls;
#line default
#line hidden
#line 345 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Xml.Linq;
#line default
#line hidden
#line 341 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.UI;
#line default
#line hidden
#line 5 "D:\wwwroot\west202004\wwwroot\aspx\main\news_list.aspx"
using DTcms.Common;
#line default
#line hidden
#line 326 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System;
#line default
#line hidden
#line 344 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.UI.HtmlControls;
#line default
#line hidden
#line 335 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web;
#line default
#line hidden
#line 327 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Collections;
#line default
#line hidden
#line 331 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Configuration;
#line default
#line hidden
#line 330 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.ComponentModel.DataAnnotations;
#line default
#line hidden
#line 3 "D:\wwwroot\west202004\wwwroot\aspx\main\news_list.aspx"
using System.Text;
#line default
#line hidden
#line 340 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.Profile;
#line default
#line hidden
#line 336 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.Caching;
#line default
#line hidden
#line 4 "D:\wwwroot\west202004\wwwroot\aspx\main\news_list.aspx"
using System.Data;
#line default
#line hidden
#line 343 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.UI.WebControls.WebParts;
#line default
#line hidden
#line 329 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Collections.Specialized;
#line default
#line hidden
#line 338 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.SessionState;
#line default
#line hidden
#line 337 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.DynamicData;
#line default
#line hidden
[System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
public class aspx_main_news_list_aspx : global::DTcms.Web.UI.Page.article_list, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
private static bool @__initialized;
private static object @__fileDependencies;
#line 7 "D:\wwwroot\west202004\wwwroot\aspx\main\news_list.aspx"
override protected void OnInit(EventArgs e)
{
/*
This page was created by DTcms Template Engine at 2020-04-19 17:32:21.
本页面代码由DTcms模板引擎天生于 2020-04-19 17:32:21.
*/
base.channel = "news";
base.OnInit(e);
StringBuilder templateBuilder = new StringBuilder(220000);
const int pagesize = 12;
templateBuilder.Append("<!doctype html>\r\n<html>\r\n<head>\r\n<meta charset=\"utf-8\">\r\n<title>");
templateBuilder.Append(Utils.ObjectToStr(model.title));
templateBuilder.Append(" - ");
templateBuilder.Append(Utils.ObjectToStr(site.name));
templateBuilder.Append("</title>\r\n<meta name=\"keywords\" content=\"");
templateBuilder.Append(Utils.ObjectToStr(model.seo_keywords));
templateBuilder.Append("\" />\r\n<meta name=\"description\" content=\"");
templateBuilder.Append(Utils.ObjectToStr(model.seo_description));
templateBuilder.Append("\" />\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("css/pagination.css\" />\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"");
templateBuilder.Append("/templates/main");
templateBuilder.Append("/css/style.css\" />\r\n<script type=\"text/javascript\" charset=\"utf-8\" src=\"");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("scripts/jquery/jquery-1.11.2.min.js\"></");
templateBuilder.Append("script>\r\n<script type=\"text/javascript\" charset=\"utf-8\" src=\"");
templateBuilder.Append("/templates/main");
templateBuilder.Append("/js/common.js\"></");
templateBuilder.Append("script>\r\n</head>\r\n\r\n<body id=\"news\">\r\n<!--页面头部-->\r\n");
templateBuilder.Append("<div class=\"header\">\r\n <div class=\"head-top\">\r\n <div class=\"section\">\r\n <div class=\"left-box\">\r\n <span>客服(QQ:2258784815)</span>\r\n\r\n </div>\r\n <script type=\"text/javascript\">\r\n $.ajax({\r\n type: \"POST\",\r\n url: \"");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("tools/submit_ajax.ashx?action=user_check_login\",\r\n dataType: \"json\",\r\n timeout: 20000,\r\n success: function (data, textStatus) {\r\n if (data.status == 1) {\r\n $(\"#menu\").prepend('<a href=\"");
templateBuilder.Append(linkurl("usercenter","exit"));
templateBuilder.Append("\">退出</a><strong>|</strong>');\r\n $(\"#menu\").prepend('<a href=\"");
templateBuilder.Append(linkurl("usercenter","index"));
templateBuilder.Append("\">代理中心</a><strong>|</strong>');\r\n } else {\r\n $(\"#menu\").prepend('<a href=\"");
templateBuilder.Append(linkurl("register"));
templateBuilder.Append("\">注册</a><strong>|</strong>');\r\n $(\"#menu\").prepend('<a href=\"");
templateBuilder.Append(linkurl("login"));
templateBuilder.Append("\">代理入口</a><strong>|</strong>');\r\n }\r\n }\r\n });\r\n </");
templateBuilder.Append("script>\r\n <div id=\"menu\" class=\"right-box\">\r\n <a href=\"http://wpa.qq.com/msgrd?v=3&uin=2258784815&site=qq&menu=yes\"><i class=\"iconfont icon-phone\"></i>联系918博天堂</a><strong>|</strong>\r\n <!--<a href=\"");
templateBuilder.Append(linkurl("feedback"));
templateBuilder.Append("\" title=\"反馈\"><i class=\"iconfont icon-comment\"></i>反馈</a>-->\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"head-nav\">\r\n <div class=\"section\">\r\n <div class=\"logo\">\r\n <a href=\"");
templateBuilder.Append(linkurl("index"));
templateBuilder.Append("\"><img src=\"");
templateBuilder.Append("/templates/main");
templateBuilder.Append("/images/logo2.png\" /></a>\r\n </div>\r\n </div>\r\n </div>\r\n</div>");
templateBuilder.Append("\r\n<!--/页面头部-->\r\n\r\n<!--当前地位-->\r\n");
string category_nav = get_category_menu("news_list", category_id);
templateBuilder.Append("\r\n<div class=\"section\">\r\n <div class=\"location\">\r\n <span>当前地位:</span>\r\n <a href=\"");
templateBuilder.Append(linkurl("index"));
templateBuilder.Append("\">首页</a> >\r\n <a href=\"");
templateBuilder.Append(linkurl("news"));
templateBuilder.Append("\">有关知识</a>\r\n ");
templateBuilder.Append(Utils.ObjectToStr(category_nav));
templateBuilder.Append("\r\n </div>\r\n</div>\r\n<!--/当前地位-->\r\n\r\n<div class=\"section clearfix\">\r\n <!--/页面右边-->\r\n <div class=\"right-260\">\r\n <div class=\"bg-wrap nobg\">\r\n <div class=\"sidebar-box\">\r\n <h4>文章类别</h4>\r\n <ul class=\"navbar\">\r\n ");
DataTable categoryList1 = get_category_child_list(channel, 0);
foreach(DataRow cdr1 in categoryList1.Rows)
{
templateBuilder.Append("\r\n <li>\r\n <h5><a href=\"");
templateBuilder.Append(linkurl("news_list",Utils.ObjectToStr(cdr1["id"])));
templateBuilder.Append("\">" + Utils.ObjectToStr(cdr1["title"]) + "</a></h5>\r\n <p>\r\n ");
DataTable categoryList2 = get_category_child_list(channel, Utils.StrToInt(Utils.ObjectToStr(cdr1["id"]), 0));
foreach(DataRow cdr2 in categoryList2.Rows)
{
if (Utils.StrToInt(Utils.ObjectToStr(cdr2["id"]), 0)==category_id)
{
templateBuilder.Append("\r\n <a href=\"");
templateBuilder.Append(linkurl("news_list",Utils.ObjectToStr(cdr2["id"])));
templateBuilder.Append("\" class=\"selected\">" + Utils.ObjectToStr(cdr2["title"]) + "</a>\r\n ");
}
else
{
templateBuilder.Append("\r\n <a href=\"");
templateBuilder.Append(linkurl("news_list",Utils.ObjectToStr(cdr2["id"])));
templateBuilder.Append("\">" + Utils.ObjectToStr(cdr2["title"]) + "</a>\r\n ");
} //end for if
} //end for if
templateBuilder.Append("\r\n </p>\r\n </li>\r\n ");
} //end for if
templateBuilder.Append("\r\n </ul>\r\n </div>\r\n \r\n <div class=\"sidebar-box\">\r\n <h4>图片文章</h4>\r\n <ul class=\"side-img-list\">\r\n ");
DataTable redNews = get_article_list(channel, 0, 4, "status=0 and is_red=1 and img_url<>''");
foreach(DataRow dr in redNews.Rows)
{
templateBuilder.Append("\r\n <li>\r\n <div class=\"img-box\">\r\n <img src=\"" + Utils.ObjectToStr(dr["img_url"]) + "\" />\r\n </div>\r\n <div class=\"txt-box\">\r\n <a href=\"");
templateBuilder.Append(linkurl("news_show",Utils.ObjectToStr(dr["id"])));
templateBuilder.Append("\">" + Utils.ObjectToStr(dr["title"]) + "</a>\r\n <span>"); templateBuilder.Append(Utils.ObjectToDateTime(Utils.ObjectToStr(dr["add_time"])).ToString("yyyy-MM-dd"));
templateBuilder.Append("</span>\r\n </div>\r\n </li>\r\n ");
} //end for if
templateBuilder.Append("\r\n </ul>\r\n </div>\r\n \r\n <div class=\"sidebar-box\">\r\n <h4>阅读排行</h4>\r\n <ul class=\"txt-list\">\r\n ");
DataTable hotNews = get_article_list(channel, 0, 10, "status=0", "click desc,id desc");
int hotdr__loop__id=0;
foreach(DataRow hotdr in hotNews.Rows)
{
hotdr__loop__id++;
templateBuilder.Append("\r\n <li>\r\n ");
if (hotdr__loop__id<2)
{
templateBuilder.Append("\r\n <label class=\"hot\">");
templateBuilder.Append(hotdr__loop__id.ToString());
templateBuilder.Append("</label>\r\n ");
}
else
{
templateBuilder.Append("\r\n <label>");
templateBuilder.Append(hotdr__loop__id.ToString());
templateBuilder.Append("</label>\r\n ");
} //end for if
templateBuilder.Append("\r\n <a href=\"");
templateBuilder.Append(linkurl("news_show",Utils.ObjectToStr(hotdr["id"])));
templateBuilder.Append("\">" + Utils.ObjectToStr(hotdr["title"]) + "</a>\r\n </li>\r\n ");
} //end for if
templateBuilder.Append("\r\n </ul>\r\n </div>\r\n \r\n </div>\r\n </div>\r\n <!--/页面右边-->\r\n \r\n <!--页面左边-->\r\n <div class=\"left-auto\">\r\n <div class=\"bg-wrap\">\r\n <ul class=\"n-list\">\r\n <!--获得一个分页DataTable-->\r\n ");
DataTable newsList = get_article_list(channel, category_id, pagesize, page, "status=0", out totalcount, out pagelist, "news_list", category_id, "__id__");
foreach(DataRow dr in newsList.Rows)
{
templateBuilder.Append("\r\n <li>\r\n <h2><a href=\"");
templateBuilder.Append(linkurl("news_show",Utils.ObjectToStr(dr["id"])));
templateBuilder.Append("\">" + Utils.ObjectToStr(dr["title"]) + "</a></h2>\r\n <div class=\"note\">\r\n ");
if (Utils.ObjectToStr(dr["img_url"])!="")
{
templateBuilder.Append("\r\n <b><img src=\"" + Utils.ObjectToStr(dr["img_url"]) + "\" /></b>\r\n ");
} //end for if
templateBuilder.Append("\r\n <p>" + Utils.ObjectToStr(dr["zhaiyao"]) + "</p>\r\n <div class=\"info\">\r\n <span><i class=\"iconfont icon-date\"></i>" + Utils.ObjectToStr(dr["add_time"]) + "</span>\r\n <span><i class=\"iconfont icon-comment\"></i><script type=\"text/javascript\" src=\"");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("tools/submit_ajax.ashx?action=view_comment_count&channel_id=" + Utils.ObjectToStr(dr["channel_id"]) + "&id=" + Utils.ObjectToStr(dr["id"]) + "\"></");
templateBuilder.Append("script>人评论</span>\r\n <span><i class=\"iconfont icon-view\"></i><script type=\"text/javascript\" src=\"");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("tools/submit_ajax.ashx?action=view_article_click&channel_id=" + Utils.ObjectToStr(dr["channel_id"]) + "&id=" + Utils.ObjectToStr(dr["id"]) + "\"></");
templateBuilder.Append("script>次浏览</span>\r\n </div>\r\n </div>\r\n </li>\r\n ");
} //end for if
templateBuilder.Append("\r\n </ul>\r\n \r\n <!--页码列表-->\r\n <div class=\"page-box\">\r\n <div class=\"digg\">");
templateBuilder.Append(Utils.ObjectToStr(pagelist));
templateBuilder.Append("</div>\r\n </div>\r\n <!--/页码列表-->\r\n \r\n </div>\r\n </div>\r\n <!--/页面左边-->\r\n</div>\r\n\r\n<!--页面底部-->\r\n");
templateBuilder.Append("<div class=\"footer\">\r\n <div class=\"section\">\r\n <div class=\"foot-box\" style=\"text-align:center;color:gray\">\r\n <p class=\"gray\">");
templateBuilder.Append(Utils.ObjectToStr(site.copyright));
templateBuilder.Append(" ");
templateBuilder.Append(Utils.ObjectToStr(site.crod));
templateBuilder.Append("</p>\r\n </div>\r\n </div>\r\n</div>");
templateBuilder.Append("\r\n<!--/页面底部-->\r\n</body>\r\n</html>");
Response.Write(templateBuilder.ToString());
}
#line default
#line hidden
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public aspx_main_news_list_aspx() {
string[] dependencies;
((global::DTcms.Web.UI.Page.article_list)(this)).AppRelativeVirtualPath = "~/aspx/main/news_list.aspx";
if ((global::ASP.aspx_main_news_list_aspx.@__initialized == false)) {
dependencies = new string[1];
dependencies[0] = "~/aspx/main/news_list.aspx";
global::ASP.aspx_main_news_list_aspx.@__fileDependencies = this.GetWrappedFileDependencies(dependencies);
global::ASP.aspx_main_news_list_aspx.@__initialized = true;
}
this.Server.ScriptTimeout = 30000000;
}
protected System.Web.Profile.DefaultProfile Profile {
get {
return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));
}
}
protected System.Web.HttpApplication ApplicationInstance {
get {
return ((System.Web.HttpApplication)(this.Context.ApplicationInstance));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void @__BuildControlTree(aspx_main_news_list_aspx @__ctrl) {
#line 1 "D:\wwwroot\west202004\wwwroot\aspx\main\news_list.aspx"
this.InitializeCulture();
#line default
#line hidden
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void FrameworkInitialize() {
base.FrameworkInitialize();
this.@__BuildControlTree(this);
this.AddWrappedFileDependencies(global::ASP.aspx_main_news_list_aspx.@__fileDependencies);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override int GetTypeHashCode() {
return 5381;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override void ProcessRequest(System.Web.HttpContext context) {
base.ProcessRequest(context);
}
}
}