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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Web.help" %>
  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:52.
  11. 本页面代码由Discuz!NT模板引擎生成于 2010/2/8 15:43:52. 
  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; <strong>帮助</strong>rn");
  287. templateBuilder.Append(" </div>rn");
  288. templateBuilder.Append("</div>rn");
  289. templateBuilder.Append("<div class="wrap with_side s_clear help" id="wrap">rn");
  290. if (page_err==0)
  291. {
  292. if (showversion==1)
  293. {
  294. templateBuilder.Append(" <div class="side">rn");
  295. templateBuilder.Append(" <h2>Discuz!NT 版本信息</h2>rn");
  296. templateBuilder.Append(" <div class="sideinner">rn");
  297. templateBuilder.Append(" <ul class="tabs">rn");
  298. templateBuilder.Append(" <li>版本信息</li>rn");
  299. templateBuilder.Append(" </ul>rn");
  300. templateBuilder.Append(" </div>rn");
  301. templateBuilder.Append(" </div>rn");
  302. templateBuilder.Append(" <div class="cpmain">rn");
  303. templateBuilder.Append(" <div class="cpcontent">rn");
  304. templateBuilder.Append(" <h1>Discuz!NT 版本信息</h1>   rn");
  305. templateBuilder.Append(" <ul style="margin: 8px 16px;">rn");
  306. templateBuilder.Append(" <li>Discuz.Aggregation.dll : ");
  307. templateBuilder.Append(dllver_discuzaggregation.ToString());
  308. templateBuilder.Append("</li>rn");
  309. templateBuilder.Append(" <li>Discuz.Cache.dll : ");
  310. templateBuilder.Append(dllver_discuzcache.ToString());
  311. templateBuilder.Append("</li>rn");
  312. templateBuilder.Append(" <li>Discuz.Common.dll : ");
  313. templateBuilder.Append(dllver_discuzcommon.ToString());
  314. templateBuilder.Append("</li>rn");
  315. templateBuilder.Append(" <li>Discuz.Config.dll : ");
  316. templateBuilder.Append(dllver_discuzconfig.ToString());
  317. templateBuilder.Append("</li>rn");
  318. templateBuilder.Append(" <li>Discuz.Control.dll : ");
  319. templateBuilder.Append(dllver_discuzcontrol.ToString());
  320. templateBuilder.Append("</li>rn");
  321. templateBuilder.Append(" <li>Discuz.Data.dll : ");
  322. templateBuilder.Append(dllver_discuzdata.ToString());
  323. templateBuilder.Append("</li>rn");
  324. templateBuilder.Append(" <li>Discuz.Data.SqlServer.dll : ");
  325. templateBuilder.Append(dllver_discuzdatasqlserver.ToString());
  326. templateBuilder.Append("</li>rn");
  327. templateBuilder.Append(" <li>Discuz.Data.Access.dll : ");
  328. templateBuilder.Append(dllver_discuzdataaccess.ToString());
  329. templateBuilder.Append("</li>rn");
  330. templateBuilder.Append(" <li>Discuz.Data.MySql.dll : ");
  331. templateBuilder.Append(dllver_discuzdatamysql.ToString());
  332. templateBuilder.Append("</li>rn");
  333. templateBuilder.Append(" <li>Discuz.Entity.dll : ");
  334. templateBuilder.Append(dllver_discuzentity.ToString());
  335. templateBuilder.Append("</li>rn");
  336. templateBuilder.Append(" <li>Discuz.Event.dll : ");
  337. templateBuilder.Append(dllver_discuzevent.ToString());
  338. templateBuilder.Append("</li>rn");
  339. templateBuilder.Append(" <li>Discuz.Forum.dll : ");
  340. templateBuilder.Append(dllver_discuzforum.ToString());
  341. templateBuilder.Append("</li>rn");
  342. templateBuilder.Append(" <li>Discuz.Plugin.dll : ");
  343. templateBuilder.Append(dllver_discuzplugin.ToString());
  344. templateBuilder.Append("</li>rn");
  345. templateBuilder.Append(" <li>Discuz.Plugin.Mail.SysMail.dll : ");
  346. templateBuilder.Append(dllver_discuzpluginmailsysmail.ToString());
  347. templateBuilder.Append("</li>rn");
  348. templateBuilder.Append(" <li>Discuz.Plugin.PasswordMode.dll : ");
  349. templateBuilder.Append(dllver_discuzpluginpasswordmode.ToString());
  350. templateBuilder.Append("</li>rn");
  351. templateBuilder.Append(" <li>Discuz.Plugin.Preview.Jpg.dll : ");
  352. templateBuilder.Append(dllver_discuzpluginpreviewjpg.ToString());
  353. templateBuilder.Append("</li>rn");
  354. templateBuilder.Append(" <li>Discuz.Plugin.Spread.dll : ");
  355. templateBuilder.Append(dllver_discuzpluginspread.ToString());
  356. templateBuilder.Append("</li>rn");
  357. templateBuilder.Append(" <li>Discuz.Space.dll : ");
  358. templateBuilder.Append(dllver_discuzspace.ToString());
  359. templateBuilder.Append("</li>rn");
  360. templateBuilder.Append(" <li>Discuz.Web.Admin.dll : ");
  361. templateBuilder.Append(dllver_discuzwebadmin.ToString());
  362. templateBuilder.Append("</li>rn");
  363. templateBuilder.Append(" <li>Discuz.Web.dll : ");
  364. templateBuilder.Append(dllver_discuzweb.ToString());
  365. templateBuilder.Append("</li>rn");
  366. templateBuilder.Append(" <li>Discuz.Web.Services.dll : ");
  367. templateBuilder.Append(dllver_discuzwebservice.ToString());
  368. templateBuilder.Append("</li>rn");
  369. templateBuilder.Append(" <li>数据库类型 : ");
  370. templateBuilder.Append(dbtype.ToString());
  371. templateBuilder.Append("</li>rn");
  372. templateBuilder.Append(" <li>产品名称 : ");
  373. templateBuilder.Append(assemblyproductname.ToString());
  374. templateBuilder.Append("</li>rn");
  375. templateBuilder.Append(" <li>版权信息 : ");
  376. templateBuilder.Append(Assemblycopyright.ToString());
  377. templateBuilder.Append("</li>rn");
  378. templateBuilder.Append(" </ul>rn");
  379. templateBuilder.Append(" </div>rn");
  380. templateBuilder.Append(" </div>rn");
  381. }
  382. else
  383. {
  384. templateBuilder.Append(" <div class="side">rn");
  385. templateBuilder.Append(" <h2>在线帮助</h2>rn");
  386. templateBuilder.Append(" <div class="sideinner">rn");
  387. templateBuilder.Append(" <ul class="tabs">rn");
  388. int help__loop__id=0;
  389. foreach(HelpInfo help in helplist)
  390. {
  391. help__loop__id++;
  392. if (help.Pid==0)
  393. {
  394. templateBuilder.Append(" <li><strong><a href="?hid=");
  395. templateBuilder.Append(help.Id.ToString().Trim());
  396. templateBuilder.Append("">");
  397. templateBuilder.Append(help.Title.ToString().Trim());
  398. templateBuilder.Append("</a></strong></li>rn");
  399. }
  400. else
  401. {
  402. templateBuilder.Append(" <li><a href="#h_");
  403. templateBuilder.Append(help.Pid.ToString().Trim());
  404. templateBuilder.Append("_");
  405. templateBuilder.Append(help.Id.ToString().Trim());
  406. templateBuilder.Append("" style="padding-left: 8px;">");
  407. templateBuilder.Append(help.Title.ToString().Trim());
  408. templateBuilder.Append("</a></li>rn");
  409. } //end if
  410. } //end loop
  411. templateBuilder.Append(" </ul>rn");
  412. templateBuilder.Append(" </div>rn");
  413. templateBuilder.Append(" </div>rn");
  414. templateBuilder.Append(" <div class="cpmain">rn");
  415. templateBuilder.Append(" <div class="cpcontent">rn");
  416. int helpcontent__loop__id=0;
  417. foreach(HelpInfo helpcontent in helplist)
  418. {
  419. helpcontent__loop__id++;
  420. if (helpcontent.Pid==0)
  421. {
  422. templateBuilder.Append(" <h3 class="lightlink">");
  423. templateBuilder.Append(helpcontent.Title.ToString().Trim());
  424. templateBuilder.Append("</h3>rn");
  425. templateBuilder.Append(" <hr class="solidline"/>rn");
  426. }
  427. else
  428. {
  429. templateBuilder.Append(" <ul>rn");
  430. templateBuilder.Append(" <li class="helpsubtitle"><a name="h_");
  431. templateBuilder.Append(helpcontent.Pid.ToString().Trim());
  432. templateBuilder.Append("_");
  433. templateBuilder.Append(helpcontent.Id.ToString().Trim());
  434. templateBuilder.Append(""></a>");
  435. templateBuilder.Append(helpcontent.Title.ToString().Trim());
  436. templateBuilder.Append("</li>rn");
  437. templateBuilder.Append(" <li>");
  438. templateBuilder.Append(helpcontent.Message.ToString().Trim());
  439. templateBuilder.Append("</li>rn");
  440. templateBuilder.Append(" </ul>rn");
  441. } //end if
  442. } //end loop
  443. templateBuilder.Append(" </div>rn");
  444. templateBuilder.Append(" </div>rn");
  445. } //end if
  446. }
  447. else
  448. {
  449. templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
  450. templateBuilder.Append("<div class="main">rn");
  451. templateBuilder.Append(" <div class="msgbox">rn");
  452. templateBuilder.Append(" <h1>出现了");
  453. templateBuilder.Append(page_err.ToString());
  454. templateBuilder.Append("个错误</h1>rn");
  455. templateBuilder.Append(" <hr class="solidline"/>rn");
  456. templateBuilder.Append(" <div class="msg_inner error_msg">rn");
  457. templateBuilder.Append(" <p>");
  458. templateBuilder.Append(msgbox_text.ToString());
  459. templateBuilder.Append("</p>rn");
  460. templateBuilder.Append(" <p class="errorback">rn");
  461. templateBuilder.Append(" <script type="text/javascript">rn");
  462. templateBuilder.Append(" if(");
  463. templateBuilder.Append(msgbox_showbacklink.ToString());
  464. templateBuilder.Append(")rn");
  465. templateBuilder.Append(" {rn");
  466. templateBuilder.Append(" document.write("<a href=\"");
  467. templateBuilder.Append(msgbox_backlink.ToString());
  468. templateBuilder.Append("\">返回上一步</a> &nbsp; &nbsp;|&nbsp; &nbsp  ");rn");
  469. templateBuilder.Append(" }rn");
  470. templateBuilder.Append(" </");
  471. templateBuilder.Append("script>rn");
  472. templateBuilder.Append(" <a href="forumindex.aspx">论坛首页</a>rn");
  473. if (usergroupid==7)
  474. {
  475. templateBuilder.Append("  &nbsp; &nbsp;|&nbsp; &nbsp; <a href="login.aspx">登录</a>&nbsp; &nbsp;|&nbsp; &nbsp; <a href="register.aspx">注册</a>rn");
  476. } //end if
  477. templateBuilder.Append(" </p>rn");
  478. templateBuilder.Append(" </div>rn");
  479. templateBuilder.Append(" </div>rn");
  480. templateBuilder.Append("</div>rn");
  481. templateBuilder.Append("</div>rn");
  482. } //end if
  483. templateBuilder.Append("</div>rn");
  484. if (infloat!=1)
  485. {
  486. if (pagename=="website.aspx")
  487. {
  488. templateBuilder.Append("       <div id="websitebottomad"></div>rn");
  489. }
  490. else if (footerad!="")
  491. {
  492. templateBuilder.Append("     <div id="ad_footerbanner">");
  493. templateBuilder.Append(footerad.ToString());
  494. templateBuilder.Append("</div>   rn");
  495. } //end if
  496. if (headerad!="")
  497. {
  498. templateBuilder.Append("<div id="ad_headerbanner_nodisplay" style="display:none">");
  499. templateBuilder.Append(headerad.ToString());
  500. templateBuilder.Append("</div>rn");
  501. templateBuilder.Append("<script type="text/javascript">rn");
  502. templateBuilder.Append("$('ad_headerbanner').innerHTML = $('ad_headerbanner_nodisplay').innerHTML;rn");
  503. templateBuilder.Append("$('ad_headerbanner_nodisplay').parentNode.removeChild($('ad_headerbanner_nodisplay'));rn");
  504. templateBuilder.Append("</");
  505. templateBuilder.Append("script>rn");
  506. } //end if
  507. templateBuilder.Append("<div id="footer">rn");
  508. templateBuilder.Append(" <div class="wrap">rn");
  509. templateBuilder.Append(" <div id="footlinks">rn");
  510. templateBuilder.Append(" <p><a href="");
  511. templateBuilder.Append(config.Weburl.ToString().Trim());
  512. templateBuilder.Append("" target="_blank">");
  513. templateBuilder.Append(config.Webtitle.ToString().Trim());
  514. templateBuilder.Append("</a> - ");
  515. templateBuilder.Append(config.Linktext.ToString().Trim());
  516. templateBuilder.Append(" - <a target="_blank" href="");
  517. templateBuilder.Append(forumurl.ToString());
  518. templateBuilder.Append("stats.aspx">统计</a> - rn");
  519. if (config.Sitemapstatus==1)
  520. {
  521. templateBuilder.Append("&nbsp;<a href="");
  522. templateBuilder.Append(forumurl.ToString());
  523. templateBuilder.Append("tools/sitemap.aspx" target="_blank" title="百度论坛收录协议">Sitemap</a>rn");
  524. } //end if
  525. templateBuilder.Append(" ");
  526. templateBuilder.Append(config.Statcode.ToString().Trim());
  527. templateBuilder.Append(config.Icp.ToString().Trim());
  528. templateBuilder.Append("rn");
  529. templateBuilder.Append(" </p>rn");
  530. templateBuilder.Append(" <div>rn");
  531. templateBuilder.Append(" <a href="http://www.comsenz.com/" target="_blank">Comsenz Technology Ltd</a>rn");
  532. templateBuilder.Append(" - <a href="");
  533. templateBuilder.Append(forumurl.ToString());
  534. templateBuilder.Append("archiver/index.aspx" target="_blank">简洁版本</a>rn");
  535. if (config.Stylejump==1)
  536. {
  537. if (userid!=-1 || config.Guestcachepagetimeout<=0)
  538. {
  539. templateBuilder.Append(" - <span id="styleswitcher" class="drop" onmouseover="showMenu(this.id)" onclick="window.location.href='");
  540. templateBuilder.Append(forumurl.ToString());
  541. templateBuilder.Append("showtemplate.aspx'">界面风格</span>rn");
  542. templateBuilder.Append(" <ul id="styleswitcher_menu" class="popupmenu_popup s_clear" style="display: none;">rn");
  543. templateBuilder.Append(" ");
  544. templateBuilder.Append(templatelistboxoptions.ToString());
  545. templateBuilder.Append("rn");
  546. templateBuilder.Append(" </ul>rn");
  547. } //end if
  548. } //end if
  549. templateBuilder.Append(" - <span class="scrolltop" onclick="window.scrollTo(0,0);">TOP</span>rn");
  550. templateBuilder.Append(" </div>rn");
  551. templateBuilder.Append(" </div>rn");
  552. templateBuilder.Append(" <a title="Powered by Discuz!NT" target="_blank" href="http://nt.discuz.net"><img border="0" alt="Discuz!NT" src="");
  553. templateBuilder.Append(forumurl.ToString());
  554. templateBuilder.Append("templates/");
  555. templateBuilder.Append(templatepath.ToString());
  556. templateBuilder.Append("/images/discuznt_logo.gif"/></a>rn");
  557. templateBuilder.Append(" <p id="copyright">rn");
  558. 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");
  559. if (config.Licensed==1)
  560. {
  561. 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");
  562. } //end if
  563. templateBuilder.Append(" ");
  564. templateBuilder.Append(config.Forumcopyright.ToString().Trim());
  565. templateBuilder.Append("rn");
  566. templateBuilder.Append(" </p>rn");
  567. templateBuilder.Append(" <p id="debuginfo" class="grayfont">rn");
  568. if (config.Debug!=0)
  569. {
  570. templateBuilder.Append(" Processed in ");
  571. templateBuilder.Append(this.Processtime.ToString().Trim());
  572. templateBuilder.Append(" second(s)rn");
  573. if (isguestcachepage==1)
  574. {
  575. templateBuilder.Append(" (Cached).rn");
  576. }
  577. else if (querycount>1)
  578. {
  579. templateBuilder.Append("  , ");
  580. templateBuilder.Append(querycount.ToString());
  581. templateBuilder.Append(" queries.rn");
  582. }
  583. else
  584. {
  585. templateBuilder.Append("  , ");
  586. templateBuilder.Append(querycount.ToString());
  587. templateBuilder.Append(" query.rn");
  588. } //end if
  589. } //end if
  590. templateBuilder.Append(" </p>rn");
  591. templateBuilder.Append(" </div>rn");
  592. templateBuilder.Append("</div>rn");
  593. templateBuilder.Append("<ul id="quicksearch_menu" class="popupmenu_popup" style="display: none;">rn");
  594. templateBuilder.Append(" <li onclick="$('keywordtype').value='0';$('quicksearch').innerHTML='帖子标题';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">帖子标题</li>rn");
  595. if (config.Enablespace==1)
  596. {
  597. templateBuilder.Append(" <li onclick="$('keywordtype').value='2';$('quicksearch').innerHTML='空间日志';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">空间日志</li>rn");
  598. } //end if
  599. if (config.Enablealbum==1)
  600. {
  601. templateBuilder.Append(" <li onclick="$('keywordtype').value='3';$('quicksearch').innerHTML='相册标题';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">相册标题</li>rn");
  602. } //end if
  603. templateBuilder.Append(" <li onclick="$('keywordtype').value='8';$('quicksearch').innerHTML='作者';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">作者</li>rn");
  604. templateBuilder.Append(" <li onclick="$('keywordtype').value='9';$('quicksearch').innerHTML='版块';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">版块</li>rn");
  605. templateBuilder.Append("</ul>rn");
  606. templateBuilder.Append("<ul class="popupmenu_popup" id="viewpro_menu" style="display: none">rn");
  607. templateBuilder.Append(" <li style="text-align:center;"><img src="");
  608. templateBuilder.Append(useravatar.ToString());
  609. templateBuilder.Append("" onerror="this.onerror=null;this.src='templates/");
  610. templateBuilder.Append(templatepath.ToString());
  611. templateBuilder.Append("/images/noavatar_small.gif';" /></li>rn");
  612.  aspxrewriteurl = this.UserInfoAspxRewrite(userid);
  613. templateBuilder.Append(" <li class="popuser"><a href="");
  614. templateBuilder.Append(forumurl.ToString());
  615. templateBuilder.Append(aspxrewriteurl.ToString());
  616. templateBuilder.Append("">我的资料</a></li>rn");
  617. if (config.Enablespace==1)
  618. {
  619. templateBuilder.Append(" <li class="poplink"><a href="");
  620. templateBuilder.Append(forumurl.ToString());
  621. templateBuilder.Append(spaceurl.ToString());
  622. templateBuilder.Append("space/">我的空间</a></li>rn");
  623. } //end if
  624. templateBuilder.Append("</ul>rn");
  625. int prentid__loop__id=0;
  626. foreach(string prentid in mainnavigationhassub)
  627. {
  628. prentid__loop__id++;
  629. templateBuilder.Append("<ul class="popupmenu_popup headermenu_popup" id="menu_");
  630. templateBuilder.Append(prentid.ToString());
  631. templateBuilder.Append("_menu" style="display: none">rn");
  632. int subnav__loop__id=0;
  633. foreach(DataRow subnav in subnavigation.Rows)
  634. {
  635. subnav__loop__id++;
  636. bool isoutput = false;
  637. if (subnav["parentid"].ToString().Trim()==prentid)
  638. {
  639. if (subnav["level"].ToString().Trim()=="0")
  640. {
  641.  isoutput = true;
  642. }
  643. else
  644. {
  645. if (subnav["level"].ToString().Trim()=="1" && userid!=-1)
  646. {
  647.  isoutput = true;
  648. }
  649. else
  650. {
  651. bool leveluseradmindi = true;
  652.  leveluseradmindi = (useradminid==3 || useradminid==1 || useradminid==2);
  653. if (subnav["level"].ToString().Trim()=="2" &&  leveluseradmindi)
  654. {
  655.  isoutput = true;
  656. } //end if
  657. if (subnav["level"].ToString().Trim()=="3" && useradminid==1)
  658. {
  659.  isoutput = true;
  660. } //end if
  661. } //end if
  662. } //end if
  663. } //end if
  664. if (isoutput)
  665. {
  666. if (subnav["id"].ToString().Trim()=="11" || subnav["id"].ToString().Trim()=="12")
  667. {
  668. if (config.Statstatus==1)
  669. {
  670. templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
  671. continue;
  672. }
  673. else
  674. {
  675. continue;
  676. } //end if
  677. } //end if
  678. if (subnav["id"].ToString().Trim()=="18")
  679. {
  680. if (config.Oltimespan>0)
  681. {
  682. templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "rn");
  683. continue;
  684. }
  685. else
  686. {
  687. continue;
  688. } //end if
  689. } //end if
  690. if (subnav["id"].ToString().Trim()=="24")
  691. {
  692. if (config.Enablespace==1)
  693. {
  694. templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "rn");
  695. continue;
  696. }
  697. else
  698. {
  699. continue;
  700. } //end if
  701. } //end if
  702. if (subnav["id"].ToString().Trim()=="25")
  703. {
  704. if (config.Enablealbum==1)
  705. {
  706. templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "rn");
  707. continue;
  708. }
  709. else
  710. {
  711. continue;
  712. } //end if
  713. } //end if
  714. if (subnav["id"].ToString().Trim()=="26")
  715. {
  716. if (config.Enablemall>=1)
  717. {
  718. templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "rn");
  719. continue;
  720. }
  721. else
  722. {
  723. continue;
  724. } //end if
  725. } //end if
  726. templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "rn");
  727. } //end if
  728. } //end loop
  729. templateBuilder.Append("</ul>rn");
  730. } //end loop
  731. templateBuilder.Append("</body>rn");
  732. templateBuilder.Append("</html>rn");
  733. }
  734. else
  735. {
  736. templateBuilder.Append("]]></root>rn");
  737. } //end if
  738. Response.Write(templateBuilder.ToString());
  739. }
  740. </script>