delpost.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:28k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Web.delpost" %>
  2. <%@ Import namespace="System.Data" %>
  3. <%@ Import namespace="Discuz.Common" %>
  4. <%@ Import namespace="Discuz.Forum" %>
  5. <%@ Import namespace="Discuz.Entity" %>
  6. <script runat="server">
  7. override protected void OnInit(EventArgs e)
  8. {
  9. /* 
  10. This page was created by Discuz!NT Template Engine at 2010/2/8 15:43:50.
  11. 本页面代码由Discuz!NT模板引擎生成于 2010/2/8 15:43:50. 
  12. */
  13. base.OnInit(e);
  14. templateBuilder.Capacity = 220000;
  15. if (infloat!=1)
  16. {
  17. templateBuilder.Append("<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">rn");
  18. templateBuilder.Append("<html xmlns="http://www.w3.org/1999/xhtml">rn");
  19. templateBuilder.Append("<head>rn");
  20. templateBuilder.Append("<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />rn");
  21. if (pagetitle=="首页")
  22. {
  23. templateBuilder.Append("<title>");
  24. templateBuilder.Append(config.Forumtitle.ToString().Trim());
  25. templateBuilder.Append(" ");
  26. templateBuilder.Append(config.Seotitle.ToString().Trim());
  27. templateBuilder.Append(" - Powered by Discuz!NT</title>rn");
  28. }
  29. else
  30. {
  31. templateBuilder.Append("<title>");
  32. templateBuilder.Append(pagetitle.ToString());
  33. templateBuilder.Append(" - ");
  34. templateBuilder.Append(config.Forumtitle.ToString().Trim());
  35. templateBuilder.Append(" ");
  36. templateBuilder.Append(config.Seotitle.ToString().Trim());
  37. templateBuilder.Append(" - Powered by Discuz!NT</title>rn");
  38. } //end if
  39. templateBuilder.Append(meta.ToString());
  40. templateBuilder.Append("rn");
  41. templateBuilder.Append("<meta name="generator" content="Discuz!NT 3.1.0" />rn");
  42. templateBuilder.Append("<meta name="author" content="Discuz!NT Team and Comsenz UI Team" />rn");
  43. templateBuilder.Append("<meta name="copyright" content="2001-2010 Comsenz Inc." />rn");
  44. templateBuilder.Append("<meta http-equiv="x-ua-compatible" content="ie=7" />rn");
  45. templateBuilder.Append("<link rel="icon" href="");
  46. templateBuilder.Append(forumurl.ToString());
  47. templateBuilder.Append("favicon.ico" type="image/x-icon" />rn");
  48. templateBuilder.Append("<link rel="shortcut icon" href="");
  49. templateBuilder.Append(forumurl.ToString());
  50. templateBuilder.Append("favicon.ico" type="image/x-icon" />rn");
  51. templateBuilder.Append("<link rel="stylesheet" href="");
  52. templateBuilder.Append(forumurl.ToString());
  53. templateBuilder.Append("templates/");
  54. templateBuilder.Append(templatepath.ToString());
  55. templateBuilder.Append("/dnt.css" type="text/css" media="all" />rn");
  56. templateBuilder.Append("<link rel="stylesheet" href="");
  57. templateBuilder.Append(forumurl.ToString());
  58. templateBuilder.Append("templates/");
  59. templateBuilder.Append(templatepath.ToString());
  60. templateBuilder.Append("/float.css" type="text/css" />rn");
  61. templateBuilder.Append(link.ToString());
  62. templateBuilder.Append("rn");
  63. templateBuilder.Append("<script type="text/javascript">rn");
  64. templateBuilder.Append("var creditnotice='");
  65. templateBuilder.Append(Scoresets.GetValidScoreNameAndId().ToString().Trim());
  66. templateBuilder.Append("'; rn");
  67. templateBuilder.Append("var forumpath = "");
  68. templateBuilder.Append(forumpath.ToString());
  69. templateBuilder.Append("";rn");
  70. templateBuilder.Append("</");
  71. templateBuilder.Append("script>rn");
  72. templateBuilder.Append("<script type="text/javascript" src="");
  73. templateBuilder.Append(forumurl.ToString());
  74. templateBuilder.Append("javascript/common.js"></");
  75. templateBuilder.Append("script>rn");
  76. templateBuilder.Append("<script type="text/javascript" src="");
  77. templateBuilder.Append(forumurl.ToString());
  78. templateBuilder.Append("javascript/template_report.js"></");
  79. templateBuilder.Append("script>rn");
  80. templateBuilder.Append("<script type="text/javascript" src="");
  81. templateBuilder.Append(forumurl.ToString());
  82. templateBuilder.Append("javascript/template_utils.js"></");
  83. templateBuilder.Append("script>rn");
  84. templateBuilder.Append("<script type="text/javascript" src="");
  85. templateBuilder.Append(forumurl.ToString());
  86. templateBuilder.Append("javascript/ajax.js"></");
  87. templateBuilder.Append("script>rn");
  88. templateBuilder.Append("<script type="text/javascript">rn");
  89. templateBuilder.Append(" var aspxrewrite = ");
  90. templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
  91. templateBuilder.Append(";rn");
  92. templateBuilder.Append(" var IMGDIR = '");
  93. templateBuilder.Append(forumurl.ToString());
  94. templateBuilder.Append("templates/");
  95. templateBuilder.Append(templatepath.ToString());
  96. templateBuilder.Append("/images'rn");
  97. templateBuilder.Append("    var allowfloatwin = ");
  98. templateBuilder.Append(config.Allowfloatwin.ToString().Trim());
  99. templateBuilder.Append("rn");
  100. templateBuilder.Append(" var rooturl="");
  101. templateBuilder.Append(rooturl.ToString());
  102. templateBuilder.Append("";rn");
  103. templateBuilder.Append("</");
  104. templateBuilder.Append("script>rn");
  105. templateBuilder.Append(script.ToString());
  106. templateBuilder.Append("rn");
  107. templateBuilder.Append("</head>rn");
  108. templateBuilder.Append("<body onkeydown="if(event.keyCode==27) return false;">rn");
  109. templateBuilder.Append("<div id="append_parent"></div><div id="ajaxwaitid"></div>rn");
  110. templateBuilder.Append("<div id="submenu">rn");
  111. templateBuilder.Append(" <div class="wrap s_clear">rn");
  112. if (usergroupinfo.Allowsearch>0)
  113. {
  114. templateBuilder.Append(" <form method="post" action="");
  115. templateBuilder.Append(forumurl.ToString());
  116. templateBuilder.Append("search.aspx" target="_blank" onsubmit="bind_keyword(this);;" class="right">rn");
  117. templateBuilder.Append(" <input type="hidden" name="poster" />rn");
  118. templateBuilder.Append(" <input type="hidden" name="keyword" />rn");
  119. templateBuilder.Append(" <input type="hidden" name="type" value="" />rn");
  120. templateBuilder.Append(" <input id="keywordtype" type="hidden" name="keywordtype" value="0" />rn");
  121. templateBuilder.Append(" <a href="javascript:void(0);" class="drop" id="quicksearch" onclick="showMenu(this.id, false);" onmouseover="MouseCursor(this);">快速搜索</a>rn");
  122. templateBuilder.Append(" <input type="text" name="keywordf" value="输入搜索关键字" onblur="if(this.value=='')this.value=defaultValue" onclick="if(this.value==this.defaultValue)this.value = ''" onkeydown="if(this.value==this.defaultValue)this.value = ''" class="txt"/>rn");
  123. templateBuilder.Append(" <input name="searchsubmit" type="submit" value="" class="btnsearch"/>rn");
  124. templateBuilder.Append(" </form>rn");
  125. templateBuilder.Append(" <script type="text/javascript">rn");
  126. templateBuilder.Append("     function bind_keyword(form) {rn");
  127. templateBuilder.Append(" if (form.keywordtype.value == '9') {rn");
  128. templateBuilder.Append("     form.action = '");
  129. templateBuilder.Append(forumurl.ToString());
  130. templateBuilder.Append("forumsearch.aspx?q=' + escape(form.keywordf.value);rn");
  131. templateBuilder.Append(" } else if (form.keywordtype.value == '8') {rn");
  132. templateBuilder.Append("             form.keyword.value = '';rn");
  133. templateBuilder.Append("             form.poster.value = form.keywordf.value;rn");
  134. templateBuilder.Append("         } else {rn");
  135. templateBuilder.Append("             form.poster.value = '';rn");
  136. templateBuilder.Append("             form.keyword.value = form.keywordf.value;rn");
  137. templateBuilder.Append("             if (form.keywordtype.value == '2')rn");
  138. templateBuilder.Append("                 form.type.value = 'spacepost';rn");
  139. templateBuilder.Append("             if (form.keywordtype.value == '3')rn");
  140. templateBuilder.Append("                 form.type.value = 'album';rn");
  141. templateBuilder.Append("         }rn");
  142. templateBuilder.Append("     }rn");
  143. templateBuilder.Append(" </");
  144. templateBuilder.Append("script>rn");
  145. } //end if
  146. templateBuilder.Append(" <span class="avataonline right">rn");
  147. if (userid==-1)
  148. {
  149. templateBuilder.Append(" <a href="");
  150. templateBuilder.Append(forumpath.ToString());
  151. templateBuilder.Append("login.aspx" onClick="floatwin('open_login', '");
  152. templateBuilder.Append(rooturl.ToString());
  153. templateBuilder.Append("login.aspx', 600, 410);return false;">[登录]</a>rn");
  154. templateBuilder.Append(" <a href="");
  155. templateBuilder.Append(forumpath.ToString());
  156. templateBuilder.Append("register.aspx" onClick="floatwin('open_register', '");
  157. templateBuilder.Append(rooturl.ToString());
  158. templateBuilder.Append("register.aspx', 600, 410);return false;">[注册]</arn");
  159. templateBuilder.Append(" >rn");
  160. }
  161. else
  162. {
  163. templateBuilder.Append(" 欢迎<a class="drop" id="viewpro" onMouseOver="showMenu(this.id)">");
  164. templateBuilder.Append(username.ToString());
  165. templateBuilder.Append("</a>rn");
  166. templateBuilder.Append(" <span class="pipe">|</span>rn");
  167. templateBuilder.Append(" <a href="");
  168. templateBuilder.Append(forumpath.ToString());
  169. templateBuilder.Append("logout.aspx?userkey=");
  170. templateBuilder.Append(userkey.ToString());
  171. templateBuilder.Append("">退出</a>rn");
  172. templateBuilder.Append(" <span class="pipe">|</span>rn");
  173. } //end if
  174. templateBuilder.Append(" </span>rn");
  175. if (userid!=-1)
  176. {
  177. templateBuilder.Append(" <a href="");
  178. templateBuilder.Append(forumpath.ToString());
  179. templateBuilder.Append("usercpinbox.aspx" class="inbox" title="");
  180. templateBuilder.Append(oluserinfo.Newpms.ToString().Trim());
  181. templateBuilder.Append("条新短消息">收件箱</a>rn");
  182. if (oluserinfo.Newpms>0)
  183. {
  184. templateBuilder.Append("<cite>");
  185. templateBuilder.Append(oluserinfo.Newpms.ToString().Trim());
  186. templateBuilder.Append("</cite>rn");
  187. } //end if
  188. templateBuilder.Append(" <span class="pipe">|</span>rn");
  189. templateBuilder.Append(" <a href="");
  190. templateBuilder.Append(forumpath.ToString());
  191. templateBuilder.Append("usercpnotice.aspx?filter=all" class="notice">通知</a>rn");
  192. if (oluserinfo.Newnotices>0)
  193. {
  194. templateBuilder.Append("<cite>");
  195. templateBuilder.Append(oluserinfo.Newnotices.ToString().Trim());
  196. templateBuilder.Append("</cite>rn");
  197. } //end if
  198. templateBuilder.Append(" <span class="pipe">|</span>rn");
  199. templateBuilder.Append(" <a href="");
  200. templateBuilder.Append(forumpath.ToString());
  201. templateBuilder.Append("usercp.aspx" class="usercp">用户中心</a>rn");
  202. templateBuilder.Append(" <span class="pipe">|</span>rn");
  203. if (useradminid==1)
  204. {
  205. templateBuilder.Append(" <a href="");
  206. templateBuilder.Append(forumpath.ToString());
  207. templateBuilder.Append("admin/index.aspx" target="_blank" class="systemmanage">系统设置</a>rn");
  208. templateBuilder.Append(" <span class="pipe">|</span>rn");
  209. } //end if
  210. templateBuilder.Append(" <a href="javascript:void(0);" class="drop" id="mymenu" onMouseOver="showMenu(this.id, false);" >我的</a>rn");
  211. templateBuilder.Append(" <ul class="popupmenu_popup headermenu_popup" id="mymenu_menu" style="display: none">rn");
  212. templateBuilder.Append(" <li><a href="");
  213. templateBuilder.Append(forumpath.ToString());
  214. templateBuilder.Append("mytopics.aspx">我的主题</a></li>rn");
  215. templateBuilder.Append(" <li><a href="");
  216. templateBuilder.Append(forumpath.ToString());
  217. templateBuilder.Append("myposts.aspx">我的帖子</a></li>rn");
  218. templateBuilder.Append(" <li><a href="");
  219. templateBuilder.Append(forumpath.ToString());
  220. templateBuilder.Append("search.aspx?posterid=current&type=digest">我的精华</a></li>rn");
  221. templateBuilder.Append(" <li><a href="");
  222. templateBuilder.Append(forumpath.ToString());
  223. templateBuilder.Append("myattachment.aspx">我的附件</a></li>rn");
  224. templateBuilder.Append(" <li><a href="");
  225. templateBuilder.Append(forumpath.ToString());
  226. templateBuilder.Append("usercpsubscribe.aspx">我的收藏</a></li>rn");
  227. if (config.Enablespace==1)
  228. {
  229. templateBuilder.Append(" <li><a href="");
  230. templateBuilder.Append(forumpath.ToString());
  231. templateBuilder.Append("space/">我的空间</a></li>rn");
  232. } //end if
  233. if (config.Enablealbum==1)
  234. {
  235. templateBuilder.Append(" <li><a href="");
  236. templateBuilder.Append(forumpath.ToString());
  237. templateBuilder.Append("showalbumlist.aspx?uid=");
  238. templateBuilder.Append(userid.ToString());
  239. templateBuilder.Append("">我的相册</a></li>rn");
  240. } //end if
  241. if (config.Enablemall==1)
  242. {
  243. templateBuilder.Append(" <li><a href="");
  244. templateBuilder.Append(forumpath.ToString());
  245. templateBuilder.Append("usercpmygoods.aspx">我的商品</a></li>rn");
  246. } //end if
  247. templateBuilder.Append("    </ul>rn");
  248. } //end if
  249. templateBuilder.Append("</div>rn");
  250. templateBuilder.Append("</div>rn");
  251. templateBuilder.Append("<div id="header">rn");
  252. templateBuilder.Append(" <div class="wrap s_clear">rn");
  253. templateBuilder.Append(" <h2><a href="");
  254. templateBuilder.Append(forumpath.ToString());
  255. templateBuilder.Append("index.aspx" title="Discuz!NT|BBS|论坛"><img src="");
  256. templateBuilder.Append(forumpath.ToString());
  257. templateBuilder.Append("templates/");
  258. templateBuilder.Append(templatepath.ToString());
  259. templateBuilder.Append("/images/logo.gif" alt="Discuz!NT|BBS|论坛"/></a></h2>rn");
  260. if (headerad!="")
  261. {
  262. templateBuilder.Append(" <div id="ad_headerbanner"></div>rn");
  263. } //end if
  264. templateBuilder.Append(" <ul id="menu">rn");
  265. templateBuilder.Append(" ");
  266. templateBuilder.Append(mainnavigation.ToString());
  267. templateBuilder.Append("rn");
  268. templateBuilder.Append(" </ul>rn");
  269. templateBuilder.Append(" </div>rn");
  270. templateBuilder.Append("</div>rn");
  271. }
  272. else
  273. {
  274. Response.Clear();
  275. Response.ContentType = "Text/XML";
  276. Response.Expires = 0;
  277. Response.Cache.SetNoStore();
  278. templateBuilder.Append("<?xml version="1.0" encoding="utf-8"?><root><![CDATA[rn");
  279. } //end if
  280. templateBuilder.Append("<div id="nav">rn");
  281. templateBuilder.Append(" <div class="wrap s_clear">rn");
  282. templateBuilder.Append(" <a href="");
  283. templateBuilder.Append(config.Forumurl.ToString().Trim());
  284. templateBuilder.Append("" class="title">");
  285. templateBuilder.Append(config.Forumtitle.ToString().Trim());
  286. templateBuilder.Append("</a> &raquo; ");
  287. templateBuilder.Append(forumnav.ToString());
  288. templateBuilder.Append("rn");
  289.  aspxrewriteurl = this.ShowTopicAspxRewrite(topicid,0);
  290. templateBuilder.Append("  &raquo; <a href="");
  291. templateBuilder.Append(aspxrewriteurl.ToString());
  292. templateBuilder.Append("">");
  293. templateBuilder.Append(topictitle.ToString());
  294. templateBuilder.Append("</a> &raquo; <strong>删除</strong>rn");
  295. templateBuilder.Append(" </div>rn");
  296. templateBuilder.Append("</div>rn");
  297. if (page_err==0)
  298. {
  299. templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
  300. templateBuilder.Append("<div class="main">rn");
  301. templateBuilder.Append(" <div class="msgbox">rn");
  302. templateBuilder.Append(" <h1>");
  303. templateBuilder.Append(config.Forumtitle.ToString().Trim());
  304. templateBuilder.Append(" 提示信息</h1>rn");
  305. templateBuilder.Append(" <hr class="solidline"/>rn");
  306. templateBuilder.Append(" <div class="msg_inner">rn");
  307. templateBuilder.Append(" <p>");
  308. templateBuilder.Append(msgbox_text.ToString());
  309. templateBuilder.Append("</p>rn");
  310. if (msgbox_url!="")
  311. {
  312. templateBuilder.Append(" <p><a href="");
  313. templateBuilder.Append(msgbox_url.ToString());
  314. templateBuilder.Append("">如果浏览器没有转向, 请点击这里.</a></p>rn");
  315. } //end if
  316. templateBuilder.Append(" </div>rn");
  317. templateBuilder.Append(" </div>rn");
  318. templateBuilder.Append("</div>rn");
  319. templateBuilder.Append("</div>rn");
  320. }
  321. else
  322. {
  323. templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
  324. templateBuilder.Append("<div class="main">rn");
  325. templateBuilder.Append(" <div class="msgbox">rn");
  326. templateBuilder.Append(" <h1>出现了");
  327. templateBuilder.Append(page_err.ToString());
  328. templateBuilder.Append("个错误</h1>rn");
  329. templateBuilder.Append(" <hr class="solidline"/>rn");
  330. templateBuilder.Append(" <div class="msg_inner error_msg">rn");
  331. templateBuilder.Append(" <p>");
  332. templateBuilder.Append(msgbox_text.ToString());
  333. templateBuilder.Append("</p>rn");
  334. templateBuilder.Append(" <p class="errorback">rn");
  335. templateBuilder.Append(" <script type="text/javascript">rn");
  336. templateBuilder.Append(" if(");
  337. templateBuilder.Append(msgbox_showbacklink.ToString());
  338. templateBuilder.Append(")rn");
  339. templateBuilder.Append(" {rn");
  340. templateBuilder.Append(" document.write("<a href=\"");
  341. templateBuilder.Append(msgbox_backlink.ToString());
  342. templateBuilder.Append("\">返回上一步</a> &nbsp; &nbsp;|&nbsp; &nbsp  ");rn");
  343. templateBuilder.Append(" }rn");
  344. templateBuilder.Append(" </");
  345. templateBuilder.Append("script>rn");
  346. templateBuilder.Append(" <a href="forumindex.aspx">论坛首页</a>rn");
  347. if (usergroupid==7)
  348. {
  349. templateBuilder.Append("  &nbsp; &nbsp;|&nbsp; &nbsp; <a href="login.aspx">登录</a>&nbsp; &nbsp;|&nbsp; &nbsp; <a href="register.aspx">注册</a>rn");
  350. } //end if
  351. templateBuilder.Append(" </p>rn");
  352. templateBuilder.Append(" </div>rn");
  353. templateBuilder.Append(" </div>rn");
  354. templateBuilder.Append("</div>rn");
  355. templateBuilder.Append("</div>rn");
  356. } //end if
  357. if (infloat!=1)
  358. {
  359. if (pagename=="website.aspx")
  360. {
  361. templateBuilder.Append("       <div id="websitebottomad"></div>rn");
  362. }
  363. else if (footerad!="")
  364. {
  365. templateBuilder.Append("     <div id="ad_footerbanner">");
  366. templateBuilder.Append(footerad.ToString());
  367. templateBuilder.Append("</div>   rn");
  368. } //end if
  369. if (headerad!="")
  370. {
  371. templateBuilder.Append("<div id="ad_headerbanner_nodisplay" style="display:none">");
  372. templateBuilder.Append(headerad.ToString());
  373. templateBuilder.Append("</div>rn");
  374. templateBuilder.Append("<script type="text/javascript">rn");
  375. templateBuilder.Append("$('ad_headerbanner').innerHTML = $('ad_headerbanner_nodisplay').innerHTML;rn");
  376. templateBuilder.Append("$('ad_headerbanner_nodisplay').parentNode.removeChild($('ad_headerbanner_nodisplay'));rn");
  377. templateBuilder.Append("</");
  378. templateBuilder.Append("script>rn");
  379. } //end if
  380. templateBuilder.Append("<div id="footer">rn");
  381. templateBuilder.Append(" <div class="wrap">rn");
  382. templateBuilder.Append(" <div id="footlinks">rn");
  383. templateBuilder.Append(" <p><a href="");
  384. templateBuilder.Append(config.Weburl.ToString().Trim());
  385. templateBuilder.Append("" target="_blank">");
  386. templateBuilder.Append(config.Webtitle.ToString().Trim());
  387. templateBuilder.Append("</a> - ");
  388. templateBuilder.Append(config.Linktext.ToString().Trim());
  389. templateBuilder.Append(" - <a target="_blank" href="");
  390. templateBuilder.Append(forumurl.ToString());
  391. templateBuilder.Append("stats.aspx">统计</a> - rn");
  392. if (config.Sitemapstatus==1)
  393. {
  394. templateBuilder.Append("&nbsp;<a href="");
  395. templateBuilder.Append(forumurl.ToString());
  396. templateBuilder.Append("tools/sitemap.aspx" target="_blank" title="百度论坛收录协议">Sitemap</a>rn");
  397. } //end if
  398. templateBuilder.Append(" ");
  399. templateBuilder.Append(config.Statcode.ToString().Trim());
  400. templateBuilder.Append(config.Icp.ToString().Trim());
  401. templateBuilder.Append("rn");
  402. templateBuilder.Append(" </p>rn");
  403. templateBuilder.Append(" <div>rn");
  404. templateBuilder.Append(" <a href="http://www.comsenz.com/" target="_blank">Comsenz Technology Ltd</a>rn");
  405. templateBuilder.Append(" - <a href="");
  406. templateBuilder.Append(forumurl.ToString());
  407. templateBuilder.Append("archiver/index.aspx" target="_blank">简洁版本</a>rn");
  408. if (config.Stylejump==1)
  409. {
  410. if (userid!=-1 || config.Guestcachepagetimeout<=0)
  411. {
  412. templateBuilder.Append(" - <span id="styleswitcher" class="drop" onmouseover="showMenu(this.id)" onclick="window.location.href='");
  413. templateBuilder.Append(forumurl.ToString());
  414. templateBuilder.Append("showtemplate.aspx'">界面风格</span>rn");
  415. templateBuilder.Append(" <ul id="styleswitcher_menu" class="popupmenu_popup s_clear" style="display: none;">rn");
  416. templateBuilder.Append(" ");
  417. templateBuilder.Append(templatelistboxoptions.ToString());
  418. templateBuilder.Append("rn");
  419. templateBuilder.Append(" </ul>rn");
  420. } //end if
  421. } //end if
  422. templateBuilder.Append(" - <span class="scrolltop" onclick="window.scrollTo(0,0);">TOP</span>rn");
  423. templateBuilder.Append(" </div>rn");
  424. templateBuilder.Append(" </div>rn");
  425. templateBuilder.Append(" <a title="Powered by Discuz!NT" target="_blank" href="http://nt.discuz.net"><img border="0" alt="Discuz!NT" src="");
  426. templateBuilder.Append(forumurl.ToString());
  427. templateBuilder.Append("templates/");
  428. templateBuilder.Append(templatepath.ToString());
  429. templateBuilder.Append("/images/discuznt_logo.gif"/></a>rn");
  430. templateBuilder.Append(" <p id="copyright">rn");
  431. templateBuilder.Append(" Powered by <strong><a href="http://nt.discuz.net" target="_blank" title="Discuz!NT 3.1.0 (.NET Framework 2.0/3.x)">Discuz!NT</a></strong> <em class="f_bold">3.1.0</em>rn");
  432. if (config.Licensed==1)
  433. {
  434. templateBuilder.Append(" (<a href="" onclick="this.href='http://nt.discuz.net/certificate/?host='+location.href.substring(0, location.href.lastIndexOf('/'))" target="_blank">Licensed</a>)rn");
  435. } //end if
  436. templateBuilder.Append(" ");
  437. templateBuilder.Append(config.Forumcopyright.ToString().Trim());
  438. templateBuilder.Append("rn");
  439. templateBuilder.Append(" </p>rn");
  440. templateBuilder.Append(" <p id="debuginfo" class="grayfont">rn");
  441. if (config.Debug!=0)
  442. {
  443. templateBuilder.Append(" Processed in ");
  444. templateBuilder.Append(this.Processtime.ToString().Trim());
  445. templateBuilder.Append(" second(s)rn");
  446. if (isguestcachepage==1)
  447. {
  448. templateBuilder.Append(" (Cached).rn");
  449. }
  450. else if (querycount>1)
  451. {
  452. templateBuilder.Append("  , ");
  453. templateBuilder.Append(querycount.ToString());
  454. templateBuilder.Append(" queries.rn");
  455. }
  456. else
  457. {
  458. templateBuilder.Append("  , ");
  459. templateBuilder.Append(querycount.ToString());
  460. templateBuilder.Append(" query.rn");
  461. } //end if
  462. } //end if
  463. templateBuilder.Append(" </p>rn");
  464. templateBuilder.Append(" </div>rn");
  465. templateBuilder.Append("</div>rn");
  466. templateBuilder.Append("<ul id="quicksearch_menu" class="popupmenu_popup" style="display: none;">rn");
  467. templateBuilder.Append(" <li onclick="$('keywordtype').value='0';$('quicksearch').innerHTML='帖子标题';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">帖子标题</li>rn");
  468. if (config.Enablespace==1)
  469. {
  470. templateBuilder.Append(" <li onclick="$('keywordtype').value='2';$('quicksearch').innerHTML='空间日志';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">空间日志</li>rn");
  471. } //end if
  472. if (config.Enablealbum==1)
  473. {
  474. templateBuilder.Append(" <li onclick="$('keywordtype').value='3';$('quicksearch').innerHTML='相册标题';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">相册标题</li>rn");
  475. } //end if
  476. templateBuilder.Append(" <li onclick="$('keywordtype').value='8';$('quicksearch').innerHTML='作者';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">作者</li>rn");
  477. templateBuilder.Append(" <li onclick="$('keywordtype').value='9';$('quicksearch').innerHTML='版块';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">版块</li>rn");
  478. templateBuilder.Append("</ul>rn");
  479. templateBuilder.Append("<ul class="popupmenu_popup" id="viewpro_menu" style="display: none">rn");
  480. templateBuilder.Append(" <li style="text-align:center;"><img src="");
  481. templateBuilder.Append(useravatar.ToString());
  482. templateBuilder.Append("" onerror="this.onerror=null;this.src='templates/");
  483. templateBuilder.Append(templatepath.ToString());
  484. templateBuilder.Append("/images/noavatar_small.gif';" /></li>rn");
  485.  aspxrewriteurl = this.UserInfoAspxRewrite(userid);
  486. templateBuilder.Append(" <li class="popuser"><a href="");
  487. templateBuilder.Append(forumurl.ToString());
  488. templateBuilder.Append(aspxrewriteurl.ToString());
  489. templateBuilder.Append("">我的资料</a></li>rn");
  490. if (config.Enablespace==1)
  491. {
  492. templateBuilder.Append(" <li class="poplink"><a href="");
  493. templateBuilder.Append(forumurl.ToString());
  494. templateBuilder.Append(spaceurl.ToString());
  495. templateBuilder.Append("space/">我的空间</a></li>rn");
  496. } //end if
  497. templateBuilder.Append("</ul>rn");
  498. int prentid__loop__id=0;
  499. foreach(string prentid in mainnavigationhassub)
  500. {
  501. prentid__loop__id++;
  502. templateBuilder.Append("<ul class="popupmenu_popup headermenu_popup" id="menu_");
  503. templateBuilder.Append(prentid.ToString());
  504. templateBuilder.Append("_menu" style="display: none">rn");
  505. int subnav__loop__id=0;
  506. foreach(DataRow subnav in subnavigation.Rows)
  507. {
  508. subnav__loop__id++;
  509. bool isoutput = false;
  510. if (subnav["parentid"].ToString().Trim()==prentid)
  511. {
  512. if (subnav["level"].ToString().Trim()=="0")
  513. {
  514.  isoutput = true;
  515. }
  516. else
  517. {
  518. if (subnav["level"].ToString().Trim()=="1" && userid!=-1)
  519. {
  520.  isoutput = true;
  521. }
  522. else
  523. {
  524. bool leveluseradmindi = true;
  525.  leveluseradmindi = (useradminid==3 || useradminid==1 || useradminid==2);
  526. if (subnav["level"].ToString().Trim()=="2" &&  leveluseradmindi)
  527. {
  528.  isoutput = true;
  529. } //end if
  530. if (subnav["level"].ToString().Trim()=="3" && useradminid==1)
  531. {
  532.  isoutput = true;
  533. } //end if
  534. } //end if
  535. } //end if
  536. } //end if
  537. if (isoutput)
  538. {
  539. if (subnav["id"].ToString().Trim()=="11" || subnav["id"].ToString().Trim()=="12")
  540. {
  541. if (config.Statstatus==1)
  542. {
  543. templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
  544. continue;
  545. }
  546. else
  547. {
  548. continue;
  549. } //end if
  550. } //end if
  551. if (subnav["id"].ToString().Trim()=="18")
  552. {
  553. if (config.Oltimespan>0)
  554. {
  555. templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "rn");
  556. continue;
  557. }
  558. else
  559. {
  560. continue;
  561. } //end if
  562. } //end if
  563. if (subnav["id"].ToString().Trim()=="24")
  564. {
  565. if (config.Enablespace==1)
  566. {
  567. templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "rn");
  568. continue;
  569. }
  570. else
  571. {
  572. continue;
  573. } //end if
  574. } //end if
  575. if (subnav["id"].ToString().Trim()=="25")
  576. {
  577. if (config.Enablealbum==1)
  578. {
  579. templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "rn");
  580. continue;
  581. }
  582. else
  583. {
  584. continue;
  585. } //end if
  586. } //end if
  587. if (subnav["id"].ToString().Trim()=="26")
  588. {
  589. if (config.Enablemall>=1)
  590. {
  591. templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "rn");
  592. continue;
  593. }
  594. else
  595. {
  596. continue;
  597. } //end if
  598. } //end if
  599. templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "rn");
  600. } //end if
  601. } //end loop
  602. templateBuilder.Append("</ul>rn");
  603. } //end loop
  604. templateBuilder.Append("</body>rn");
  605. templateBuilder.Append("</html>rn");
  606. }
  607. else
  608. {
  609. templateBuilder.Append("]]></root>rn");
  610. } //end if
  611. Response.Write(templateBuilder.ToString());
  612. }
  613. </script>