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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Web.usercpannouncepm" %>
  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:58.
  11. 本页面代码由Discuz!NT模板引擎生成于 2010/2/8 15:43:58. 
  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("<script type="text/javascript" src="javascript/template_usercpnotice.js"></");
  281. templateBuilder.Append("script>rn");
  282. templateBuilder.Append("<div id="nav">rn");
  283. templateBuilder.Append(" <div class="wrap s_clear">rn");
  284. templateBuilder.Append("        <a href="");
  285. templateBuilder.Append(config.Forumurl.ToString().Trim());
  286. templateBuilder.Append("" class="title">");
  287. templateBuilder.Append(config.Forumtitle.ToString().Trim());
  288. templateBuilder.Append("</a> &raquo; <a href="usercpprofile.aspx">用户中心</a> &raquo; <strong>公共消息</strong>rn");
  289. templateBuilder.Append("    </div>rn");
  290. templateBuilder.Append("</div>rn");
  291. templateBuilder.Append("<div class="wrap with_side s_clear" id="wrap">rn");
  292. templateBuilder.Append("<div class="side">rn");
  293. if (userid>0)
  294. {
  295. templateBuilder.Append(" <h2>个人中心</h2>rn");
  296. templateBuilder.Append(" <div class="sideinner">rn");
  297. templateBuilder.Append(" <ul class="tabs">rn");
  298. if (pagename=="usercptopic.aspx"||pagename=="usercppost.aspx"||pagename=="usercpdigest.aspx"||pagename=="usercpprofile.aspx"||pagename=="usercpnewpassword.aspx"||pagename=="usercppreference.aspx")
  299. {
  300. templateBuilder.Append(" <li><a href="usercpprofile.aspx" class="current"><span>个人设置</span></a></li>rn");
  301. }
  302. else
  303. {
  304. templateBuilder.Append(" <li><a href="usercpprofile.aspx">个人设置</a></li>rn");
  305. } //end if
  306. if (pagename=="usercpinbox.aspx"||pagename=="usercpsentbox.aspx"||pagename=="usercpdraftbox.aspx"||pagename=="usercppostpm.aspx"||pagename=="usercpshowpm.aspx"||pagename=="usercppmset.aspx")
  307. {
  308. templateBuilder.Append(" <li><a href="usercpinbox.aspx" class="current"><span>短消息</span></a></li>rn");
  309. }
  310. else
  311. {
  312. templateBuilder.Append(" <li><a href="usercpinbox.aspx">短消息</a></li>rn");
  313. } //end if
  314. if (config.Enablespace==1 && user.Spaceid>0)
  315. {
  316. if (pagename=="usercpspacepostblog.aspx"||pagename=="usercpspacemanageblog.aspx"||pagename=="usercpspaceeditblog.aspx"||pagename=="usercpspacelinklist.aspx"||pagename=="usercpspacelinkedit.aspx"||pagename=="usercpspacelinkadd.aspx"||pagename=="usercpspacecomment.aspx"||pagename=="usercpspacemanagecategory.aspx"||pagename=="usercpspacecategoryadd.aspx"||pagename=="usercpspacecategoryedit.aspx"||pagename=="usercpspacemanageattachment.aspx"||pagename=="usercpspaceset.aspx")
  317. {
  318. templateBuilder.Append(" <li><a href="usercpspacemanageblog.aspx" class="current"><span>");
  319. templateBuilder.Append(config.Spacename.ToString().Trim());
  320. templateBuilder.Append("管理</span></a></li>rn");
  321. }
  322. else
  323. {
  324. templateBuilder.Append(" <li><a href="usercpspacemanageblog.aspx">");
  325. templateBuilder.Append(config.Spacename.ToString().Trim());
  326. templateBuilder.Append("管理</a></li>rn");
  327. } //end if
  328. } //end if
  329. if (config.Enablealbum==1)
  330. {
  331. if (pagename=="usercpspacemanagealbum.aspx"||pagename=="usercpspacemanagephoto.aspx"||pagename=="usercpspacephotoadd.aspx"||pagename=="usercpeditphoto.aspx")
  332. {
  333. templateBuilder.Append(" <li><a href="usercpspacemanagealbum.aspx" class="current"><span>");
  334. templateBuilder.Append(config.Albumname.ToString().Trim());
  335. templateBuilder.Append("管理</span></a></li>rn");
  336. }
  337. else
  338. {
  339. templateBuilder.Append(" <li><a href="usercpspacemanagealbum.aspx">");
  340. templateBuilder.Append(config.Albumname.ToString().Trim());
  341. templateBuilder.Append("管理</a></li>rn");
  342. } //end if
  343. } //end if
  344. if (config.Enablemall>=1)
  345. {
  346. if (pagename=="usercpmygoods.aspx")
  347. {
  348. templateBuilder.Append(" <li><a href="usercpmygoods.aspx" class="current"><span>交易管理</span></a></li>rn");
  349. }
  350. else
  351. {
  352. templateBuilder.Append(" <li><a href="usercpmygoods.aspx">交易管理</a></li>rn");
  353. } //end if
  354. } //end if
  355. if (config.Enablemall==2)
  356. {
  357. if (pagename=="usercpshopcategory.aspx")
  358. {
  359. templateBuilder.Append(" <li><a href="usercpshopcategory.aspx?item=shopcategory" class="current"><span>店铺管理</span></a></li>rn");
  360. }
  361. else
  362. {
  363. templateBuilder.Append(" <li><a href="usercpshopcategory.aspx?item=shopcategory">店铺管理</a></li>rn");
  364. } //end if
  365. } //end if
  366. templateBuilder.Append(" </ul>rn");
  367. templateBuilder.Append(" </div>rn");
  368. templateBuilder.Append(" <hr class="shadowline"/>rn");
  369. templateBuilder.Append(" <div class="sideinner">rn");
  370. templateBuilder.Append(" <ul class="tabs">rn");
  371. if (pagename=="mytopics.aspx")
  372. {
  373. templateBuilder.Append(" <li><a href="mytopics.aspx" class="current"><span>我的主题</span></a></li>rn");
  374. }
  375. else
  376. {
  377. templateBuilder.Append(" <li><a href="mytopics.aspx">我的主题</a></li>rn");
  378. } //end if
  379. if (pagename=="myposts.aspx")
  380. {
  381. templateBuilder.Append(" <li><a href="myposts.aspx" class="current"><span>我的帖子</span></a></li>rn");
  382. }
  383. else
  384. {
  385. templateBuilder.Append(" <li><a href="myposts.aspx">我的帖子</a></li>rn");
  386. } //end if
  387. templateBuilder.Append(" <li><a href="search.aspx?posterid=current&type=digest">我的精华</a></li>rn");
  388. if (pagename=="myattachment.aspx")
  389. {
  390. templateBuilder.Append(" <li><a href="myattachment.aspx" class="current"><span>我的附件</span></a></li>rn");
  391. }
  392. else
  393. {
  394. templateBuilder.Append(" <li><a href="myattachment.aspx">我的附件</a></li>rn");
  395. } //end if
  396. if (pagename=="usercpsubscribe.aspx")
  397. {
  398. templateBuilder.Append(" <li><a href="usercpsubscribe.aspx" class="current"><span>收藏夹</span></a></li>rn");
  399. }
  400. else
  401. {
  402. templateBuilder.Append(" <li><a href="usercpsubscribe.aspx">收藏夹</a></li>rn");
  403. } //end if
  404. templateBuilder.Append(" </ul>rn");
  405. templateBuilder.Append(" </div>rn");
  406. templateBuilder.Append(" <hr class="shadowline"/>rn");
  407. templateBuilder.Append(" <div class="sideinner">rn");
  408. templateBuilder.Append(" <ul class="tabs">rn");
  409. if (pagename=="usercpcreditspay.aspx"||pagename=="usercpcreditstransfer.aspx"||pagename=="usercpcreditspayoutlog.aspx"||pagename=="usercpcreditspayinlog.aspx"    ||pagename=="usercpcreaditstransferlog.aspx")
  410. {
  411. templateBuilder.Append(" <li><a href="usercpcreditspay.aspx" class="current"><span>积分交易</span></a></li>rn");
  412. }
  413. else
  414. {
  415. templateBuilder.Append(" <li><a href="usercpcreditspay.aspx">积分交易</a></li>rn");
  416. } //end if
  417. if (pagename=="usercp.aspx")
  418. {
  419. templateBuilder.Append(" <li><a href="usercp.aspx" class="current"><span>用户组&权限</span></a></li>rn");
  420. }
  421. else
  422. {
  423. templateBuilder.Append(" <li><a href="usercp.aspx">用户组&权限</a></li>rn");
  424. } //end if
  425. templateBuilder.Append(" </ul>rn");
  426. templateBuilder.Append(" </div>rn");
  427. } //end if
  428. templateBuilder.Append("</div>rn");
  429. templateBuilder.Append(" <div class="cpmain">rn");
  430. templateBuilder.Append(" <div class="cpcontent">rn");
  431. templateBuilder.Append(" <h1>公共消息</h1>rn");
  432. if (userid>0)
  433. {
  434. templateBuilder.Append("<div class="cm_header itemtitle s_clear">rn");
  435. templateBuilder.Append(" <a class="postpm" onclick="floatwin('open_postpm', this.href, 600, 410, '600,0');doane(event);" href="usercppostpm.aspx">+ 写新消息</a>rn");
  436. templateBuilder.Append(" <ul>rn");
  437. templateBuilder.Append(" <li rn");
  438. if (pagename=="usercpinbox.aspx")
  439. {
  440. templateBuilder.Append("class="current"rn");
  441. } //end if
  442. templateBuilder.Append("><a href="usercpinbox.aspx"><span>收件箱</span></a></li>rn");
  443. templateBuilder.Append(" <li rn");
  444. if (pagename=="usercpsentbox.aspx")
  445. {
  446. templateBuilder.Append("class="current"rn");
  447. } //end if
  448. templateBuilder.Append("><a href="usercpsentbox.aspx"><span>发件箱</span></a></li>rn");
  449. templateBuilder.Append(" <li rn");
  450. if (pagename=="usercpdraftbox.aspx")
  451. {
  452. templateBuilder.Append("class="current"rn");
  453. } //end if
  454. templateBuilder.Append("><a href="usercpdraftbox.aspx"><span>草稿箱</span></a></li>rn");
  455. templateBuilder.Append(" <li rn");
  456. if (pagename=="usercpannouncepm.aspx")
  457. {
  458. templateBuilder.Append("class="current"rn");
  459. } //end if
  460. templateBuilder.Append("><a href="usercpannouncepm.aspx"><span>公共消息rn");
  461. if (announcepmcount>0)
  462. {
  463. templateBuilder.Append("(");
  464. templateBuilder.Append(announcepmcount.ToString());
  465. templateBuilder.Append(")rn");
  466. } //end if
  467. templateBuilder.Append("</span></a></li>rn");
  468. templateBuilder.Append(" <li rn");
  469. if (pagename=="usercpignorelist.aspx")
  470. {
  471. templateBuilder.Append("class="current"rn");
  472. } //end if
  473. templateBuilder.Append("><a href="usercpignorelist.aspx"><span>黑名单</span></a></li>rn");
  474. templateBuilder.Append(" <li rn");
  475. if (pagename=="usercpnotice.aspx")
  476. {
  477. templateBuilder.Append("class="current"rn");
  478. } //end if
  479. templateBuilder.Append("><a id="notice" onMouseOver="showMenu(this.id);" onMouseOut="showMenu(this.id);" onclick="javascript:window.location.href=this.href;" href="usercpnotice.aspx"><span><cite class="drop">通知rn");
  480. if (newnoticecount>0)
  481. {
  482. templateBuilder.Append("(");
  483. templateBuilder.Append(newnoticecount.ToString());
  484. templateBuilder.Append(")rn");
  485. } //end if
  486. templateBuilder.Append("</cite></span></a></li>rn");
  487. templateBuilder.Append(" </ul>rn");
  488. templateBuilder.Append("</div>rn");
  489. } //end if
  490. templateBuilder.Append("<ul class="popupmenu_popup headermenu_popup" id="notice_menu" style="display: none">rn");
  491. if (config.Enablespace==1)
  492. {
  493. templateBuilder.Append(" <li><a href="usercpnotice.aspx?filter=spacecomment">");
  494. templateBuilder.Append(config.Spacename.ToString().Trim());
  495. templateBuilder.Append("日志评论</a></li>               rn");
  496. } //end if
  497. if (config.Enablealbum==1)
  498. {
  499. templateBuilder.Append(" <li><a href="usercpnotice.aspx?filter=albumcomment">");
  500. templateBuilder.Append(config.Albumname.ToString().Trim());
  501. templateBuilder.Append("图片评论</a></li>            rn");
  502. } //end if
  503. if (config.Enablemall==1)
  504. {
  505. templateBuilder.Append(" <li><a href="usercpnotice.aspx?filter=goodstrade">商品交易</a></li>rn");
  506. templateBuilder.Append(" <li><a href="usercpnotice.aspx?filter=goodsleaveword">商品留言</a></li>   rn");
  507. } //end if
  508. templateBuilder.Append(" <li><a href="usercpnotice.aspx?filter=postreply">主题回复</a></li>rn");
  509. templateBuilder.Append(" <li><a href="usercpnotice.aspx?filter=all">全部通知</a></li>rn");
  510. templateBuilder.Append(" <li><a href="usercpnotice.aspx?filter=topicadmin">管理通知</a></li>rn");
  511. templateBuilder.Append("</ul>rn");
  512. if (page_err==0)
  513. {
  514. if (ispost)
  515. {
  516. templateBuilder.Append(" <div class="msgbox">rn");
  517. templateBuilder.Append(" <h1>");
  518. templateBuilder.Append(config.Forumtitle.ToString().Trim());
  519. templateBuilder.Append(" 提示信息</h1>rn");
  520. templateBuilder.Append(" <p>");
  521. templateBuilder.Append(msgbox_text.ToString());
  522. templateBuilder.Append("</p>rn");
  523. if (msgbox_url!="")
  524. {
  525. templateBuilder.Append(" <p><a href="");
  526. templateBuilder.Append(msgbox_url.ToString());
  527. templateBuilder.Append("">如果浏览器没有转向, 请点击这里.</a></p>rn");
  528. } //end if
  529. templateBuilder.Append(" </div>rn");
  530. }
  531. else
  532. {
  533. if (announcepmlist.Count==0)
  534. {
  535. templateBuilder.Append(" <div class="zerothreads">暂无新的公共消息</div> rn");
  536. }
  537. else
  538. {
  539. templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="pm_list" summary="公共消息" width="100%">rn");
  540. templateBuilder.Append(" <tbody>rn");
  541. int announcepm__loop__id=0;
  542. foreach(PrivateMessageInfo announcepm in announcepmlist)
  543. {
  544. announcepm__loop__id++;
  545. templateBuilder.Append(" <tr>rn");
  546. templateBuilder.Append(" <td class="msg_icon"><img alt="公共消息" src="templates/");
  547. templateBuilder.Append(templatepath.ToString());
  548. templateBuilder.Append("/images/announcement.gif"/></td>rn");
  549. templateBuilder.Append(" <td width="20%">");
  550. templateBuilder.Append(announcepm.Subject.ToString().Trim());
  551. templateBuilder.Append("</td>rn");
  552. templateBuilder.Append(" <td width="60%">");
  553. templateBuilder.Append(announcepm.Message.ToString().Trim());
  554. templateBuilder.Append("</td>rn");
  555. string postdatetime = ForumUtils.ConvertDateTime(announcepm.Postdatetime);
  556. templateBuilder.Append(" <td class="name_and_date"><span class="date">");
  557. templateBuilder.Append(postdatetime.ToString());
  558. templateBuilder.Append("</span></td>rn");
  559. templateBuilder.Append(" </tr>rn");
  560. } //end loop
  561. templateBuilder.Append(" </tbody>                           rn");
  562. templateBuilder.Append(" </table>rn");
  563. templateBuilder.Append(" <div class="cpbox s_clear">rn");
  564. templateBuilder.Append(" <div class="pages_btns">rn");
  565. templateBuilder.Append(" <div class="pages">rn");
  566. templateBuilder.Append(" <em>");
  567. templateBuilder.Append(pageid.ToString());
  568. templateBuilder.Append("/");
  569. templateBuilder.Append(pagecount.ToString());
  570. templateBuilder.Append("页</em>");
  571. templateBuilder.Append(pagenumbers.ToString());
  572. templateBuilder.Append("rn");
  573. templateBuilder.Append(" </div>rn");
  574. templateBuilder.Append(" </div>rn");
  575. } //end if
  576. } //end if
  577. }
  578. else
  579. {
  580. templateBuilder.Append("<div class="msgbox error_msg">rn");
  581. templateBuilder.Append(" <h3>错误提示</h3>rn");
  582. templateBuilder.Append(" <p>");
  583. templateBuilder.Append(msgbox_text.ToString());
  584. templateBuilder.Append("</p>rn");
  585. templateBuilder.Append(" <p class="errorback">rn");
  586. templateBuilder.Append(" <script type="text/javascript">rn");
  587. templateBuilder.Append(" if(");
  588. templateBuilder.Append(msgbox_showbacklink.ToString());
  589. templateBuilder.Append(")rn");
  590. templateBuilder.Append(" {rn");
  591. templateBuilder.Append(" document.write("<a href=\"");
  592. templateBuilder.Append(msgbox_backlink.ToString());
  593. templateBuilder.Append("\">返回上一步</a> &nbsp; &nbsp;|  ");rn");
  594. templateBuilder.Append(" }rn");
  595. templateBuilder.Append(" </");
  596. templateBuilder.Append("script>rn");
  597. templateBuilder.Append(" &nbsp; &nbsp; <a href="forumindex.aspx">论坛首页</a>rn");
  598. if (usergroupid==7)
  599. {
  600. templateBuilder.Append("  &nbsp; &nbsp;|&nbsp; &nbsp; <a href="login.aspx">登录</a>&nbsp; &nbsp;|&nbsp; &nbsp; <a href="register.aspx">注册</a>rn");
  601. } //end if
  602. templateBuilder.Append(" </p>rn");
  603. templateBuilder.Append("</div>rn");
  604. } //end if
  605. templateBuilder.Append(" </div>rn");
  606. templateBuilder.Append("    </div>rn");
  607. templateBuilder.Append("</div>rn");
  608. templateBuilder.Append("</div>rn");
  609. if (infloat!=1)
  610. {
  611. if (pagename=="website.aspx")
  612. {
  613. templateBuilder.Append("       <div id="websitebottomad"></div>rn");
  614. }
  615. else if (footerad!="")
  616. {
  617. templateBuilder.Append("     <div id="ad_footerbanner">");
  618. templateBuilder.Append(footerad.ToString());
  619. templateBuilder.Append("</div>   rn");
  620. } //end if
  621. if (headerad!="")
  622. {
  623. templateBuilder.Append("<div id="ad_headerbanner_nodisplay" style="display:none">");
  624. templateBuilder.Append(headerad.ToString());
  625. templateBuilder.Append("</div>rn");
  626. templateBuilder.Append("<script type="text/javascript">rn");
  627. templateBuilder.Append("$('ad_headerbanner').innerHTML = $('ad_headerbanner_nodisplay').innerHTML;rn");
  628. templateBuilder.Append("$('ad_headerbanner_nodisplay').parentNode.removeChild($('ad_headerbanner_nodisplay'));rn");
  629. templateBuilder.Append("</");
  630. templateBuilder.Append("script>rn");
  631. } //end if
  632. templateBuilder.Append("<div id="footer">rn");
  633. templateBuilder.Append(" <div class="wrap">rn");
  634. templateBuilder.Append(" <div id="footlinks">rn");
  635. templateBuilder.Append(" <p><a href="");
  636. templateBuilder.Append(config.Weburl.ToString().Trim());
  637. templateBuilder.Append("" target="_blank">");
  638. templateBuilder.Append(config.Webtitle.ToString().Trim());
  639. templateBuilder.Append("</a> - ");
  640. templateBuilder.Append(config.Linktext.ToString().Trim());
  641. templateBuilder.Append(" - <a target="_blank" href="");
  642. templateBuilder.Append(forumurl.ToString());
  643. templateBuilder.Append("stats.aspx">统计</a> - rn");
  644. if (config.Sitemapstatus==1)
  645. {
  646. templateBuilder.Append("&nbsp;<a href="");
  647. templateBuilder.Append(forumurl.ToString());
  648. templateBuilder.Append("tools/sitemap.aspx" target="_blank" title="百度论坛收录协议">Sitemap</a>rn");
  649. } //end if
  650. templateBuilder.Append(" ");
  651. templateBuilder.Append(config.Statcode.ToString().Trim());
  652. templateBuilder.Append(config.Icp.ToString().Trim());
  653. templateBuilder.Append("rn");
  654. templateBuilder.Append(" </p>rn");
  655. templateBuilder.Append(" <div>rn");
  656. templateBuilder.Append(" <a href="http://www.comsenz.com/" target="_blank">Comsenz Technology Ltd</a>rn");
  657. templateBuilder.Append(" - <a href="");
  658. templateBuilder.Append(forumurl.ToString());
  659. templateBuilder.Append("archiver/index.aspx" target="_blank">简洁版本</a>rn");
  660. if (config.Stylejump==1)
  661. {
  662. if (userid!=-1 || config.Guestcachepagetimeout<=0)
  663. {
  664. templateBuilder.Append(" - <span id="styleswitcher" class="drop" onmouseover="showMenu(this.id)" onclick="window.location.href='");
  665. templateBuilder.Append(forumurl.ToString());
  666. templateBuilder.Append("showtemplate.aspx'">界面风格</span>rn");
  667. templateBuilder.Append(" <ul id="styleswitcher_menu" class="popupmenu_popup s_clear" style="display: none;">rn");
  668. templateBuilder.Append(" ");
  669. templateBuilder.Append(templatelistboxoptions.ToString());
  670. templateBuilder.Append("rn");
  671. templateBuilder.Append(" </ul>rn");
  672. } //end if
  673. } //end if
  674. templateBuilder.Append(" - <span class="scrolltop" onclick="window.scrollTo(0,0);">TOP</span>rn");
  675. templateBuilder.Append(" </div>rn");
  676. templateBuilder.Append(" </div>rn");
  677. templateBuilder.Append(" <a title="Powered by Discuz!NT" target="_blank" href="http://nt.discuz.net"><img border="0" alt="Discuz!NT" src="");
  678. templateBuilder.Append(forumurl.ToString());
  679. templateBuilder.Append("templates/");
  680. templateBuilder.Append(templatepath.ToString());
  681. templateBuilder.Append("/images/discuznt_logo.gif"/></a>rn");
  682. templateBuilder.Append(" <p id="copyright">rn");
  683. 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");
  684. if (config.Licensed==1)
  685. {
  686. 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");
  687. } //end if
  688. templateBuilder.Append(" ");
  689. templateBuilder.Append(config.Forumcopyright.ToString().Trim());
  690. templateBuilder.Append("rn");
  691. templateBuilder.Append(" </p>rn");
  692. templateBuilder.Append(" <p id="debuginfo" class="grayfont">rn");
  693. if (config.Debug!=0)
  694. {
  695. templateBuilder.Append(" Processed in ");
  696. templateBuilder.Append(this.Processtime.ToString().Trim());
  697. templateBuilder.Append(" second(s)rn");
  698. if (isguestcachepage==1)
  699. {
  700. templateBuilder.Append(" (Cached).rn");
  701. }
  702. else if (querycount>1)
  703. {
  704. templateBuilder.Append("  , ");
  705. templateBuilder.Append(querycount.ToString());
  706. templateBuilder.Append(" queries.rn");
  707. }
  708. else
  709. {
  710. templateBuilder.Append("  , ");
  711. templateBuilder.Append(querycount.ToString());
  712. templateBuilder.Append(" query.rn");
  713. } //end if
  714. } //end if
  715. templateBuilder.Append(" </p>rn");
  716. templateBuilder.Append(" </div>rn");
  717. templateBuilder.Append("</div>rn");
  718. templateBuilder.Append("<ul id="quicksearch_menu" class="popupmenu_popup" style="display: none;">rn");
  719. templateBuilder.Append(" <li onclick="$('keywordtype').value='0';$('quicksearch').innerHTML='帖子标题';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">帖子标题</li>rn");
  720. if (config.Enablespace==1)
  721. {
  722. templateBuilder.Append(" <li onclick="$('keywordtype').value='2';$('quicksearch').innerHTML='空间日志';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">空间日志</li>rn");
  723. } //end if
  724. if (config.Enablealbum==1)
  725. {
  726. templateBuilder.Append(" <li onclick="$('keywordtype').value='3';$('quicksearch').innerHTML='相册标题';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">相册标题</li>rn");
  727. } //end if
  728. templateBuilder.Append(" <li onclick="$('keywordtype').value='8';$('quicksearch').innerHTML='作者';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">作者</li>rn");
  729. templateBuilder.Append(" <li onclick="$('keywordtype').value='9';$('quicksearch').innerHTML='版块';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">版块</li>rn");
  730. templateBuilder.Append("</ul>rn");
  731. templateBuilder.Append("<ul class="popupmenu_popup" id="viewpro_menu" style="display: none">rn");
  732. templateBuilder.Append(" <li style="text-align:center;"><img src="");
  733. templateBuilder.Append(useravatar.ToString());
  734. templateBuilder.Append("" onerror="this.onerror=null;this.src='templates/");
  735. templateBuilder.Append(templatepath.ToString());
  736. templateBuilder.Append("/images/noavatar_small.gif';" /></li>rn");
  737.  aspxrewriteurl = this.UserInfoAspxRewrite(userid);
  738. templateBuilder.Append(" <li class="popuser"><a href="");
  739. templateBuilder.Append(forumurl.ToString());
  740. templateBuilder.Append(aspxrewriteurl.ToString());
  741. templateBuilder.Append("">我的资料</a></li>rn");
  742. if (config.Enablespace==1)
  743. {
  744. templateBuilder.Append(" <li class="poplink"><a href="");
  745. templateBuilder.Append(forumurl.ToString());
  746. templateBuilder.Append(spaceurl.ToString());
  747. templateBuilder.Append("space/">我的空间</a></li>rn");
  748. } //end if
  749. templateBuilder.Append("</ul>rn");
  750. int prentid__loop__id=0;
  751. foreach(string prentid in mainnavigationhassub)
  752. {
  753. prentid__loop__id++;
  754. templateBuilder.Append("<ul class="popupmenu_popup headermenu_popup" id="menu_");
  755. templateBuilder.Append(prentid.ToString());
  756. templateBuilder.Append("_menu" style="display: none">rn");
  757. int subnav__loop__id=0;
  758. foreach(DataRow subnav in subnavigation.Rows)
  759. {
  760. subnav__loop__id++;
  761. bool isoutput = false;
  762. if (subnav["parentid"].ToString().Trim()==prentid)
  763. {
  764. if (subnav["level"].ToString().Trim()=="0")
  765. {
  766.  isoutput = true;
  767. }
  768. else
  769. {
  770. if (subnav["level"].ToString().Trim()=="1" && userid!=-1)
  771. {
  772.  isoutput = true;
  773. }
  774. else
  775. {
  776. bool leveluseradmindi = true;
  777.  leveluseradmindi = (useradminid==3 || useradminid==1 || useradminid==2);
  778. if (subnav["level"].ToString().Trim()=="2" &&  leveluseradmindi)
  779. {
  780.  isoutput = true;
  781. } //end if
  782. if (subnav["level"].ToString().Trim()=="3" && useradminid==1)
  783. {
  784.  isoutput = true;
  785. } //end if
  786. } //end if
  787. } //end if
  788. } //end if
  789. if (isoutput)
  790. {
  791. if (subnav["id"].ToString().Trim()=="11" || subnav["id"].ToString().Trim()=="12")
  792. {
  793. if (config.Statstatus==1)
  794. {
  795. templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
  796. continue;
  797. }
  798. else
  799. {
  800. continue;
  801. } //end if
  802. } //end if
  803. if (subnav["id"].ToString().Trim()=="18")
  804. {
  805. if (config.Oltimespan>0)
  806. {
  807. templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "rn");
  808. continue;
  809. }
  810. else
  811. {
  812. continue;
  813. } //end if
  814. } //end if
  815. if (subnav["id"].ToString().Trim()=="24")
  816. {
  817. if (config.Enablespace==1)
  818. {
  819. templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "rn");
  820. continue;
  821. }
  822. else
  823. {
  824. continue;
  825. } //end if
  826. } //end if
  827. if (subnav["id"].ToString().Trim()=="25")
  828. {
  829. if (config.Enablealbum==1)
  830. {
  831. templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "rn");
  832. continue;
  833. }
  834. else
  835. {
  836. continue;
  837. } //end if
  838. } //end if
  839. if (subnav["id"].ToString().Trim()=="26")
  840. {
  841. if (config.Enablemall>=1)
  842. {
  843. templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "rn");
  844. continue;
  845. }
  846. else
  847. {
  848. continue;
  849. } //end if
  850. } //end if
  851. templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "rn");
  852. } //end if
  853. } //end loop
  854. templateBuilder.Append("</ul>rn");
  855. } //end loop
  856. templateBuilder.Append("</body>rn");
  857. templateBuilder.Append("</html>rn");
  858. }
  859. else
  860. {
  861. templateBuilder.Append("]]></root>rn");
  862. } //end if
  863. Response.Write(templateBuilder.ToString());
  864. }
  865. </script>