override protected void OnInit(EventArgs e) { /* This page was created by DTcms Template Engine at 2017/8/22 16:25:28. 本页面代码由DTcms模板引擎生成于 2017/8/22 16:25:28. */ base.OnInit(e); StringBuilder templateBuilder = new StringBuilder(220000); const int pagesize = 10; templateBuilder.Append("\r\n\r\n\r\n \r\n 快速提问\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n "); templateBuilder.Append("\r\n\r\n function SearchEnter(event) {\r\n var evt = event ? event : (window.event ? window.event : null);\r\n if (evt.keyCode == 13) {\r\n search();\r\n }\r\n }\r\n function search() {\r\n var search = $(\"#txtsearch\").val();\r\n if (!search) {\r\n alert(\"请输入关键字\");\r\n } else {\r\n location.href = \"/search.html?keywords=\" + search;\r\n }\r\n }\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 if (data.username != null || data.username != \"\") {\r\n $(\"#user_name\").val(data.username);\r\n } else {\r\n $(\"#user_name\").val(\"匿名\");\r\n }\r\n $(\"#menu\").prepend('
  • 退出
  • ');\r\n $(\"#menu\").prepend('
  • 个人
  • ');\r\n } else {\r\n $(\"#menu\").prepend('
  • 注册
  • ');\r\n $(\"#menu\").prepend('
  • 登录
  • ');\r\n }\r\n }\r\n });\r\n //读取cookies \r\n function getCookie(name) {\r\n var arr, reg = new RegExp(\"(^| )\" + name + \"=([^;]*)(;|$)\");\r\n if (arr = document.cookie.match(reg)) return unescape(arr[2]);\r\n else return null;\r\n }\r\n\r\n \r\n\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n"); templateBuilder.Append("\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n 快速提问\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n "); templateBuilder.Append(Utils.ObjectToStr(pagelist)); templateBuilder.Append("
    \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n 向TA提问\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n 昵称:\r\n \r\n \r\n 标题:\r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n 内容:\r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n\r\n\r\n\r\n\r\n
    \r\n "); templateBuilder.Append(" \r\n
    \r\n
    \r\n
    \r\n
    \r\n 高点\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n "); DataTable gdlist = get_article_list("news", 8, "status='0' ","click desc"); int drgd__loop__id=0; foreach(DataRow drgd in gdlist.Rows) { drgd__loop__id++; templateBuilder.Append("\r\n \r\n \r\n \r\n \r\n \r\n "); } //end for if templateBuilder.Append("\r\n \r\n
    \r\n 名次\r\n \r\n 文章\r\n \r\n 浏览量\r\n
    \r\n
    \r\n "); templateBuilder.Append(Utils.ObjectToStr(drgd__loop__id)); templateBuilder.Append("
    \r\n
    \r\n \r\n "); templateBuilder.Append(Utils.DropHTML(Utils.ObjectToStr(drgd["title"]),20)); templateBuilder.Append("\r\n \r\n \r\n " + Utils.ObjectToStr(drgd["click"]) + " \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n 请问\r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n
      \r\n "); DataTable wtlist = get_issue_List(2, "status='2' and type=1 and hot='1'","id desc"); int drwt__loop__id=0; foreach(DataRow drwt in wtlist.Rows) { drwt__loop__id++; if (drwt__loop__id==1) { templateBuilder.Append("\r\n
    • \r\n " + Utils.ObjectToStr(drwt["contents"]) + "
    • \r\n "); } else { templateBuilder.Append("\r\n
    • \r\n " + Utils.ObjectToStr(drwt["contents"]) + "
    • \r\n "); } //end for if } //end for if templateBuilder.Append("\r\n
    \r\n \r\n \r\n \r\n
      \r\n "); DataTable wtlists = get_issue_List(2, "status='2' and type=3 and hot='1'","id desc"); int drwts__loop__id=0; foreach(DataRow drwts in wtlists.Rows) { drwts__loop__id++; if (drwts__loop__id==1) { templateBuilder.Append("\r\n
    • \r\n " + Utils.ObjectToStr(drwts["title"]) + "
    • \r\n "); } else { templateBuilder.Append("\r\n
    • \r\n " + Utils.ObjectToStr(drwts["title"]) + "
    • \r\n "); } //end for if } //end for if templateBuilder.Append("\r\n
    \r\n \r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n 业界\r\n
    \r\n \r\n
    \r\n\r\n
    \r\n \r\n "); DataTable yjlist = get_article_list("news", 3, "status='0' and category_id='54'","sort_id desc"); int ndr__loop__id=0; foreach(DataRow ndr in yjlist.Rows) { ndr__loop__id++; if (ndr__loop__id==1) { templateBuilder.Append(" \r\n \r\n \r\n
    \r\n " + Utils.ObjectToStr(ndr["title"]) + "
    \r\n
    \r\n " + Utils.ObjectToStr(ndr["zhaiyao"]) + "
    \r\n
    \r\n "); } else { templateBuilder.Append("\r\n \r\n "); } //end for if } //end for if templateBuilder.Append("\r\n
    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n 家人\r\n
    \r\n \r\n
    \r\n
    \r\n "); DataTable jrlist = get_article_list("news", 3, "status='0' and category_id='56'","sort_id desc"); int ndrjr__loop__id=0; foreach(DataRow ndrjr in jrlist.Rows) { ndrjr__loop__id++; if (ndrjr__loop__id==1) { templateBuilder.Append("\r\n \r\n \r\n
    \r\n " + Utils.ObjectToStr(ndrjr["title"]) + "
    \r\n
    \r\n " + Utils.ObjectToStr(ndrjr["zhaiyao"]) + "
    \r\n
    \r\n "); } else { templateBuilder.Append("\r\n \r\n "); } //end for if } //end for if templateBuilder.Append("\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n 行家\r\n
    \r\n \r\n
    \r\n
    \r\n \r\n "); DataTable hjlist = get_article_list("news", 3, "status='0' and category_id='55'","sort_id desc"); int ndrhj__loop__id=0; foreach(DataRow ndrhj in hjlist.Rows) { ndrhj__loop__id++; if (ndrhj__loop__id==1) { templateBuilder.Append("\r\n \r\n \r\n
    \r\n " + Utils.ObjectToStr(ndrhj["title"]) + "
    \r\n
    \r\n " + Utils.ObjectToStr(ndrhj["zhaiyao"]) + "
    \r\n
    \r\n "); } else { templateBuilder.Append("\r\n \r\n "); } //end for if } //end for if templateBuilder.Append("\r\n
    \r\n
    \r\n
    \r\n \r\n function subforms() {\r\n var txtcontent = $(\"#txtcontent\").val();\r\n if (txtcontent == null && txtcontent == \"\") {\r\n alert(\"请输入内容\");\r\n return false;\r\n }\r\n $.ajax({\r\n type: \"post\",\r\n async: false,\r\n url: \""); templateBuilder.Append(Utils.ObjectToStr(config.webpath)); templateBuilder.Append("tools/submit_ajax.ashx?action=subissue_add\",\r\n data: { user_name: \"匿名\", txtcontent: txtcontent },\r\n success: function (data) {\r\n alert(data);\r\n window.location.reload();\r\n }\r\n });\r\n }\r\n "); templateBuilder.Append("\r\n
    \r\n
    \r\n
    \r\n \r\n "); templateBuilder.Append("
    \r\n
    \r\n
    \r\n 主办单位:山东商报社 版权所有:新浪潮杂志网站\r\n
    \r\n
    \r\n 本站所刊登的新浪潮的各种新闻﹑信息和各种专题专栏资料,均为新浪潮版权所有,未经协议授权禁止下载使用。\r\n
    \r\n
    \r\n 如因作品内容、版权和其它问题需要同本网联系的,请在相关作品刊发之日起30日内进行。 违法和不良信息举报电话:"); templateBuilder.Append(site.tel.ToString()); templateBuilder.Append("  "); templateBuilder.Append(site.crod.ToString()); templateBuilder.Append("\r\n
    \r\n
    \r\n
    \r\n"); templateBuilder.Append("\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n function subform() {\r\n var username = $(\"#user_name\").val();\r\n var txttitle = $(\"#txttitle\").val();\r\n var txtcontent = $(\"#txtcontent\").val();\r\n \r\n if (txtcontent == \"\" || txtcontent == null) {\r\n alert(\"内容!\")\r\n return false;\r\n }\r\n $.ajax({\r\n type: \"post\",\r\n async: false,\r\n url: \""); templateBuilder.Append(Utils.ObjectToStr(config.webpath)); templateBuilder.Append("tools/submit_ajax.ashx?action=subissue_add\",\r\n data: { user_name: username, txttitle: txttitle, txtcontent: txtcontent },\r\n success: function (data) {\r\n alert(data);\r\n window.location.reload();\r\n }\r\n });\r\n }\r\n \r\n\r\n"); Response.Write(templateBuilder.ToString()); }