开普蓝理财

注册

 

发新话题 回复该主题

有时候keeplance网站出现问题,是不是和硬件老化有关啊 [复制链接]

1#
比如有时候我发现如下错误提示:
这样的错误,我可能是你们的服务器太老了,更不上大量增加的用户数量带来的数据存储要求?还有就是租用的带宽不够了?----------你们是不是缺钱更新设备啊,如果是,在网站上说明一下, 我相信不少忠实用户愿意出钱表示心意的。。。。。。。。。。。。

“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。

编译器错误消息: CS0103: 当前上下文中不存在名称“lastpostlist”

源错误:



行 2890:    templateBuilder.Append("                    </div>\r\n");
行 2891:
行 2892:    if (lastpostlist.Rows.Count>0)
行 2893:    {
行 2894:


源文件: e:\websites\dnt2\aspx\1\postreply.aspx    行: 2892



显示详细的编译器输出:


c:\windows\system32\inetsrv> "C:\windows\Microsoft.NET\Framework\v2.0.50727\csc.exe" /tbrary /utf8output /R:"C:\windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\08d2ea52\005e632e_b1c4ca01\Newtonsoft.Json.DLL" /R:"C:\windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\5a383913\00b47faa_cee5ca01\Discuz.Event.DLL" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\96e89b26\00d389a4_cee5ca01\Discuz.Config.DLL" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\ae5e415f\00e1b0ab_cee5ca01\Discuz.Web.Services.DLL" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\7ef34352\006844af_cee5ca01\Discuz.Web.DLL" /R:"C:\windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\e152984e\005a1da8_cee5ca01\Discuz.Data.SqlServer.DLL" /R:"C:\windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\34aa0630\002deca6_cee5ca01\Discuz.Data.DLL" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\a2e38285\00b9d0fa_3151c901\MySql.Data.DLL" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\3a2e7f4a\000ee2ac_cee5ca01\Discuz.Web.Admin.DLL" /R:"C:\windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\1775491f\00b47faa_cee5ca01\Discuz.Plugin.PasswordMode.DLL" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\29734ac5\0000bba5_cee5ca01\Discuz.Plugin.DLL" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\132e244c\002deca6_cee5ca01\Discuz.Plugin.Preview.Jpg.DLL" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\09bc12de\005e632e_b1c4ca01\ICSharpCode.SharpZipLib.DLL" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\83cb774e\00fcab5e_b3c4ca01\Discuz.Entity.DLL" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\348ba040\005e632e_b1c4ca01\Interop.SQLDMO.DLL" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\1e52982e\006844af_cee5ca01\Discuz.Plugin.Spread.DLL" /R:"C:\windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\6975c7d6\00cf7a5d_b3c4ca01\Discuz.Common.DLL" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\d3c8923e\002deca6_cee5ca01\Discuz.Plugin.Mail.SysMail.DLL" /R:"C:\windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\36d486d6\00d389a4_cee5ca01\Discuz.Cache.DLL" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\e40a4e89\005a1da8_cee5ca01\Discuz.Control.DLL" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\1ba159a1\00874ea9_cee5ca01\Discuz.Forum.DLL" /R:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\assembly\dl3\05b6d19f\00874ea9_cee5ca01\Discuz.Aggregation.DLL" /out:"C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.dll" /DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701  "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.16.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.15.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.13.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.18.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.2.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.14.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.5.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.7.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.0.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.6.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.10.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.1.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.3.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.9.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.12.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.8.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.4.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.17.cs" "C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d65d3aef\21d8d699\App_Web__hfqt_es.11.cs"


Microsoft (R) Visual C# 2005 编译器 版本 8.00.50727.3053
用于 Microsoft (R) Windows (R) 2005 Framework 版本 2.0.50727
版权所有(C) Microsoft Corporation 2001-2005。保留所有权利。

e:\websites\dnt2\aspx\1\postreply.aspx(2892,6): error CS0103: 当前上下文中不存在名称“lastpostlist”
e:\websites\dnt2\aspx\1\postreply.aspx(2905,30): error CS0103: 当前上下文中不存在名称“lastpostlist”





显示完整的编译源:


行 1:    #pragma checksum "E:\websites\dnt2\aspx\1\postreply.aspx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "D728C88E2AD41C539F42AF58190B54E4"
行 2:    //------------------------------------------------------------------------------
行 3:    // <auto-generated>
行 4:    //     此代码由工具生成。
行 5:    //     运行时版本:2.0.50727.3615
行 6:    //
行 7:    //     对此文件的更改可能会导致不正确的行为,并且如果
行 8:    //     重新生成代码,这些更改将会丢失。
行 9:    // </auto-generated>
行 10:   //------------------------------------------------------------------------------
行 11:  
行 12:   namespace ASP {
行 13:      
行 14:       #line 281 "C:\windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 15:       using System.Web;
行 16:      
行 17:       #line default
行 18:       #line hidden
行 19:      
行 20:       #line 280 "C:\windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 21:       using System.Text.RegularExpressions;
行 22:      
行 23:       #line default
行 24:       #line hidden
行 25:      
行 26:       #line 285 "C:\windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 27:       using System.Web.Profile;
行 28:      
行 29:       #line default
行 30:       #line hidden
行 31:      
行 32:       #line 5 "E:\websites\dnt2\aspx\1\postreply.aspx"
行 33:       using Discuz.Entity;
行 34:      
行 35:       #line default
行 36:       #line hidden
行 37:      
行 38:       #line 284 "C:\windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 39:       using System.Web.Security;
行 40:      
行 41:       #line default
行 42:       #line hidden
行 43:      
行 44:       #line 4 "E:\websites\dnt2\aspx\1\postreply.aspx"
行 45:       using Discuz.Forum;
行 46:      
行 47:       #line default
行 48:       #line hidden
行 49:      
行 50:       #line 286 "C:\windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 51:       using System.Web.UI;
行 52:      
行 53:       #line default
行 54:       #line hidden
行 55:      
行 56:       #line 275 "C:\windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 57:       using System;
行 58:      
行 59:       #line default
行 60:       #line hidden
行 61:      
行 62:       #line 287 "C:\windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 63:       using System.Web.UI.WebControls;
行 64:      
行 65:       #line default
行 66:       #line hidden
行 67:      
行 68:       #line 278 "C:\windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 69:       using System.Configuration;
行 70:      
行 71:       #line default
行 72:       #line hidden
行 73:      
行 74:       #line 276 "C:\windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 75:       using System.Collections;
行 76:      
行 77:       #line default
行 78:       #line hidden
行 79:      
行 80:       #line 2 "E:\websites\dnt2\aspx\1\postreply.aspx"
行 81:       using System.Data;
行 82:      
行 83:       #line default
行 84:       #line hidden
行 85:      
行 86:       #line 279 "C:\windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 87:       using System.Text;
行 88:      
行 89:       #line default
行 90:       #line hidden
行 91:      
行 92:       #line 277 "C:\windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 93:       using System.Collections.Specialized;
行 94:      
行 95:       #line default
行 96:       #line hidden
行 97:      
行 98:       #line 282 "C:\windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 99:       using System.Web.Caching;
行 100:      
行 101:      #line default
行 102:      #line hidden
行 103:      
行 104:      #line 3 "E:\websites\dnt2\aspx\1\postreply.aspx"
行 105:      using Discuz.Common;
行 106:      
行 107:      #line default
行 108:      #line hidden
行 109:      
行 110:      #line 288 "C:\windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 111:      using System.Web.UI.WebControls.WebParts;
行 112:      
行 113:      #line default
行 114:      #line hidden
行 115:      
行 116:      #line 283 "C:\windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 117:      using System.Web.SessionState;
行 118:      
行 119:      #line default
行 120:      #line hidden
行 121:      
行 122:      #line 289 "C:\windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 123:      using System.Web.UI.HtmlControls;
行 124:      
行 125:      #line default
行 126:      #line hidden
行 127:      
行 128:      
行 129:      [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
行 130:      public class aspx_1_postreply_aspx : global:iscuz.Web.postreply, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
行 131:          
行 132:          private static bool @__initialized;
行 133:          
行 134:          private static object @__fileDependencies;
行 135:          
行 136:          
行 137:          #line 7 "E:\websites\dnt2\aspx\1\postreply.aspx"
行 138:                        
行 139:  override protected void OnInit(EventArgs e)
行 140:  {
行 141:  
行 142:      /*
行 143:          This page was created by Discuz!NT Template Engine at 2009-9-12 12:34:21.
行 144:          本页面代码由Discuz!NT模板引擎生成于 2009-9-12 12:34:21.
行 145:      */
行 146:  
行 147:      base.OnInit(e);
行 148:  
行 149:      templateBuilder.Capacity = 220000;
行 150:  
行 151:  
行 152:  
行 153:      if (infloat!=1)
行 154:      {
行 155:  
行 156:      templateBuilder.Append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");
行 157:      templateBuilder.Append("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
行 158:      templateBuilder.Append("<head>\r\n");
行 159:      templateBuilder.Append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n");
行 160:  
行 161:      if (pagetitle=="首页")
行 162:      {
行 163:  
行 164:      templateBuilder.Append("<title>");
行 165:      templateBuilder.Append(config.Forumtitle.ToString().Trim());
行 166:      templateBuilder.Append(" ");
行 167:      templateBuilder.Append(config.Seotitle.ToString().Trim());
行 168:      templateBuilder.Append(" - Powered by Discuz!NT</title>\r\n");
行 169:  
行 170:      }
行 171:      else
行 172:      {
行 173:  
行 174:      templateBuilder.Append("<title>");
行 175:      templateBuilder.Append(pagetitle.ToString());
行 176:      templateBuilder.Append(" - ");
行 177:      templateBuilder.Append(config.Forumtitle.ToString().Trim());
行 178:      templateBuilder.Append(" ");
行 179:      templateBuilder.Append(config.Seotitle.ToString().Trim());
行 180:      templateBuilder.Append(" - Powered by Discuz!NT</title>\r\n");
行 181:  
行 182:      }    //end if
行 183:      templateBuilder.Append(meta.ToString());
行 184:      templateBuilder.Append("\r\n");
行 185:      templateBuilder.Append("<meta name=\"generator\" content=\"Discuz!NT 3.0.0\" />\r\n");
行 186:      templateBuilder.Append("<meta name=\"author\" content=\"Discuz!NT Team and Comsenz UI Team\" />\r\n");
行 187:      templateBuilder.Append("<meta name=\"copyright\" content=\"2001-2009 Comsenz Inc.\" />\r\n");
行 188:      templateBuilder.Append("<meta http-equiv=\"x-ua-compatible\" content=\"ie=7\" />\r\n");
行 189:      templateBuilder.Append("<link rel=\"icon\" href=\"");
行 190:      templateBuilder.Append(forumurl.ToString());
行 191:      templateBuilder.Append("favicon.ico\" type=\"image/x-icon\" />\r\n");
行 192:      templateBuilder.Append("<link rel=\"shortcut icon\" href=\"");
行 193:      templateBuilder.Append(forumurl.ToString());
行 194:      templateBuilder.Append("favicon.ico\" type=\"image/x-icon\" />\r\n");
行 195:      templateBuilder.Append("<link rel=\"stylesheet\" href=\"");
行 196:      templateBuilder.Append(forumurl.ToString());
行 197:      templateBuilder.Append("templates/");
行 198:      templateBuilder.Append(templatepath.ToString());
行 199:      templateBuilder.Append("/dnt.css\" type=\"text/css\" media=\"all\" />\r\n");
行 200:      templateBuilder.Append("<link rel=\"stylesheet\" href=\"");
行 201:      templateBuilder.Append(forumurl.ToString());
行 202:      templateBuilder.Append("templates/");
行 203:      templateBuilder.Append(templatepath.ToString());
行 204:      templateBuilder.Append("/float.css\" type=\"text/css\" />\r\n");
行 205:      templateBuilder.Append(link.ToString());
行 206:      templateBuilder.Append("\r\n");
行 207:      templateBuilder.Append("<script type=\"text/javascript\" src=\"");
行 208:      templateBuilder.Append(forumurl.ToString());
行 209:      templateBuilder.Append("javascript/common.js\"></");
行 210:      templateBuilder.Append("script>\r\n");
行 211:      templateBuilder.Append("<script type=\"text/javascript\" src=\"");
行 212:      templateBuilder.Append(forumurl.ToString());
行 213:      templateBuilder.Append("javascript/template_report.js\"></");
行 214:      templateBuilder.Append("script>\r\n");
行 215:      templateBuilder.Append("<script type=\"text/javascript\" src=\"");
行 216:      templateBuilder.Append(forumurl.ToString());
行 217:      templateBuilder.Append("javascript/template_utils.js\"></");
行 218:      templateBuilder.Append("script>\r\n");
行 219:      templateBuilder.Append("<script type=\"text/javascript\" src=\"");
行 220:      templateBuilder.Append(forumurl.ToString());
行 221:      templateBuilder.Append("javascript/ajax.js\"></");
行 222:      templateBuilder.Append("script>\r\n");
行 223:      templateBuilder.Append("<script type=\"text/javascript\">\r\n");
行 224:      templateBuilder.Append("    var aspxrewrite = ");
行 225:      templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
行 226:      templateBuilder.Append(";\r\n");
行 227:      templateBuilder.Append("    var IMGDIR = '");
行 228:      templateBuilder.Append(forumurl.ToString());
行 229:      templateBuilder.Append("templates/");
行 230:      templateBuilder.Append(templatepath.ToString());
行 231:      templateBuilder.Append("/images'\r\n");
行 232:      templateBuilder.Append("    var allowfloatwin = ");
行 233:      templateBuilder.Append(config.Allowfloatwin.ToString().Trim());
行 234:      templateBuilder.Append("\r\n");
行 235:      templateBuilder.Append("    var rooturl=\"");
行 236:      templateBuilder.Append(rooturl.ToString());
行 237:      templateBuilder.Append("\";\r\n");
行 238:      templateBuilder.Append("</");
行 239:      templateBuilder.Append("script>\r\n");
行 240:      templateBuilder.Append(script.ToString());
行 241:      templateBuilder.Append("\r\n");
行 242:      templateBuilder.Append("</head>\r\n");
行 243:  
行 244:  
行 245:      templateBuilder.Append("<body onkeydown=\"if(event.keyCode==27) return false;\">\r\n");
行 246:      templateBuilder.Append("<div id=\"append_parent\"></div><div id=\"ajaxwaitid\"></div>\r\n");
行 247:      templateBuilder.Append("<div id=\"submenu\">\r\n");
行 248:      templateBuilder.Append("    <div class=\"wrap s_clear\">\r\n");
行 249:  
行 250:      if (usergroupinfo.Allowsearch>0)
行 251:      {
行 252:  
行 253:  
行 254:      templateBuilder.Append("    <form method=\"post\" action=\"");
行 255:      templateBuilder.Append(forumurl.ToString());
行 256:      templateBuilder.Append("search.aspx\" target=\"_blank\" onsubmit=\"bind_keyword(this);\" class=\"right\">\r\n");
行 257:      templateBuilder.Append("        <input type=\"hidden\" name=\"poster\" />\r\n");
行 258:      templateBuilder.Append("        <input type=\"hidden\" name=\"keyword\" />\r\n");
行 259:      templateBuilder.Append("        <input type=\"hidden\" name=\"type\" value=\"\" />\r\n");
行 260:      templateBuilder.Append("        <input id=\"keywordtype\" type=\"hidden\" name=\"keywordtype\" value=\"0\" />\r\n");
行 261:      templateBuilder.Append("        <a href=\"javascript:void(0);\" class=\"drop\" id=\"quicksearch\" onclick=\"showMenu(this.id, false);\" onmouseover=\"MouseCursor(this);\">快速搜索</a>\r\n");
行 262:      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\"/>\r\n");
行 263:      templateBuilder.Append("        <input name=\"searchsubmit\" type=\"submit\" value=\"\" class=\"btnsearch\"/>\r\n");
行 264:      templateBuilder.Append("    </form>\r\n");
行 265:      templateBuilder.Append("    <script type=\"text/javascript\">\r\n");
行 266:      templateBuilder.Append("        function bind_keyword(form)\r\n");
行 267:      templateBuilder.Append("        {\r\n");
行 268:      templateBuilder.Append("            if (form.keywordtype.value == '8')\r\n");
行 269:      templateBuilder.Append("            {\r\n");
行 270:      templateBuilder.Append("                form.keyword.value = '';\r\n");
行 271:      templateBuilder.Append("                form.poster.value = form.keywordf.value;\r\n");
行 272:      templateBuilder.Append("            }\r\n");
行 273:      templateBuilder.Append("            else\r\n");
行 274:      templateBuilder.Append("            {\r\n");
行 275:      templateBuilder.Append("                form.poster.value = '';\r\n");
行 276:      templateBuilder.Append("                form.keyword.value = form.keywordf.value;\r\n");
行 277:      templateBuilder.Append("                if (form.keywordtype.value == '2')\r\n");
行 278:      templateBuilder.Append("                    form.type.value = 'spacepost';\r\n");
行 279:      templateBuilder.Append("                if (form.keywordtype.value == '3')\r\n");
行 280:      templateBuilder.Append("                    form.type.value = 'album';\r\n");
行 281:      templateBuilder.Append("            }\r\n");
行 282:      templateBuilder.Append("        }\r\n");
行 283:      templateBuilder.Append("    </");
行 284:      templateBuilder.Append("script>\r\n");
行 285:  
行 286:  
行 287:  
行 288:      }    //end if
行 289:  
行 290:      templateBuilder.Append("    <span class=\"avataonline right\">\r\n");
行 291:  
行 292:      if (userid==-1)
行 293:      {
行 294:  
行 295:      templateBuilder.Append("        <a href=\"");
行 296:      templateBuilder.Append(forumpath.ToString());
行 297:      templateBuilder.Append("login.aspx\" onClick=\"floatwin('open_login', '");
行 298:      templateBuilder.Append(rooturl.ToString());
行 299:      templateBuilder.Append("login.aspx', 600, 410);return false;\">[登录]</a>\r\n");
行 300:      templateBuilder.Append("        <a href=\"");
行 301:      templateBuilder.Append(forumpath.ToString());
行 302:      templateBuilder.Append("register.aspx\" onClick=\"floatwin('open_register', '");
行 303:      templateBuilder.Append(rooturl.ToString());
行 304:      templateBuilder.Append("register.aspx', 600, 410);return false;\">[注册]</a\r\n");
行 305:      templateBuilder.Append("        >\r\n");
行 306:  
行 307:      }
行 308:      else
行 309:      {
行 310:  
行 311:      templateBuilder.Append("        欢迎<a class=\"drop\" id=\"viewpro\" onMouseOver=\"showMenu(this.id)\">");
行 312:      templateBuilder.Append(username.ToString());
行 313:      templateBuilder.Append("</a>\r\n");
行 314:      templateBuilder.Append("        <span class=\"pipe\">|</span>\r\n");
行 315:      templateBuilder.Append("        <a href=\"");
行 316:      templateBuilder.Append(forumpath.ToString());
行 317:      templateBuilder.Append("logout.aspx?userkey=");
行 318:      templateBuilder.Append(userkey.ToString());
行 319:      templateBuilder.Append("\">退出</a>\r\n");
行 320:      templateBuilder.Append("        <span class=\"pipe\">|</span>\r\n");
行 321:  
行 322:      }    //end if
行 323:  
行 324:      templateBuilder.Append("    </span>\r\n");
行 325:  
行 326:      if (userid!=-1)
行 327:      {
行 328:  
行 329:      templateBuilder.Append("    <a href=\"");
行 330:      templateBuilder.Append(forumpath.ToString());
行 331:      templateBuilder.Append("usercpinbox.aspx\" class=\"inbox\" title=\"");
行 332:      templateBuilder.Append(oluserinfo.Newpms.ToString().Trim());
行 333:      templateBuilder.Append("条新短消息\">收件箱</a>\r\n");
行 334:  
行 335:      if (oluserinfo.Newpms>0)
行 336:      {
行 337:  
行 338:      templateBuilder.Append("<cite>");
行 339:      templateBuilder.Append(oluserinfo.Newpms.ToString().Trim());
行 340:      templateBuilder.Append("</cite>\r\n");
行 341:  
行 342:      }    //end if
行 343:  
行 344:      templateBuilder.Append("    <span class=\"pipe\">|</span>\r\n");
行 345:      templateBuilder.Append("    <a href=\"");
行 346:      templateBuilder.Append(forumpath.ToString());
行 347:      templateBuilder.Append("usercpnotice.aspx?filter=all\" class=\"notice\">通知</a>\r\n");
行 348:  
行 349:      if (oluserinfo.Newnotices>0)
行 350:      {
行 351:  
行 352:      templateBuilder.Append("<cite>");
行 353:      templateBuilder.Append(oluserinfo.Newnotices.ToString().Trim());
行 354:      templateBuilder.Append("</cite>\r\n");
行 355:  
行 356:      }    //end if
行 357:  
行 358:      templateBuilder.Append("    <span class=\"pipe\">|</span>\r\n");
行 359:      templateBuilder.Append("    <a href=\"");
行 360:      templateBuilder.Append(forumpath.ToString());
行 361:      templateBuilder.Append("usercp.aspx\" class=\"usercp\">用户中心</a>\r\n");
行 362:      templateBuilder.Append("    <span class=\"pipe\">|</span>\r\n");
行 363:  
行 364:      if (useradminid==1)
行 365:      {
行 366:  
行 367:      templateBuilder.Append("    <a href=\"");
行 368:      templateBuilder.Append(forumpath.ToString());
行 369:      templateBuilder.Append("admin/index.aspx\" target=\"_blank\" class=\"systemmanage\">系统设置</a>\r\n");
行 370:      templateBuilder.Append("    <span class=\"pipe\">|</span>\r\n");
行 371:  
行 372:      }    //end if
行 373:  
行 374:      templateBuilder.Append("    <a href=\"javascript:void(0);\" class=\"drop\" id=\"mymenu\" onMouseOver=\"showMenu(this.id, false);\" >我的</a>\r\n");
行 375:      templateBuilder.Append("    <ul class=\"popupmenu_popup headermenu_popup\" id=\"mymenu_menu\" style=\"display: none\">\r\n");
行 376:      templateBuilder.Append("        <li><a href=\"");
行 377:      templateBuilder.Append(forumpath.ToString());
行 378:      templateBuilder.Append("mytopics.aspx\">我的主题</a></li>\r\n");
行 379:      templateBuilder.Append("        <li><a href=\"");
行 380:      templateBuilder.Append(forumpath.ToString());
行 381:      templateBuilder.Append("myposts.aspx\">我的帖子</a></li>\r\n");
行 382:      templateBuilder.Append("        <li><a href=\"");
行 383:      templateBuilder.Append(forumpath.ToString());
行 384:      templateBuilder.Append("search.aspx?posterid=current&type=digest\">我的精华</a></li>\r\n");
行 385:      templateBuilder.Append("        <li><a href=\"");
行 386:      templateBuilder.Append(forumpath.ToString());
行 387:      templateBuilder.Append("myattachment.aspx\">我的附件</a></li>\r\n");
行 388:      templateBuilder.Append("        <li><a href=\"");
行 389:      templateBuilder.Append(forumpath.ToString());
行 390:      templateBuilder.Append("usercpsubscribe.aspx\">我的收藏</a></li>\r\n");
行 391:  
行 392:      if (config.Enablespace==1)
行 393:      {
行 394:  
行 395:      templateBuilder.Append("        <li><a href=\"");
行 396:      templateBuilder.Append(forumpath.ToString());
行 397:      templateBuilder.Append("space/\">我的空间</a></li>\r\n");
行 398:  
行 399:      }    //end if
行 400:  
行 401:  
行 402:      if (config.Enablealbum==1)
行 403:      {
行 404:  
行 405:      templateBuilder.Append("        <li><a href=\"");
行 406:      templateBuilder.Append(forumpath.ToString());
行 407:      templateBuilder.Append("showalbumlist.aspx?uid=");
行 408:      templateBuilder.Append(userid.ToString());
行 409:      templateBuilder.Append("\">我的相册</a></li>\r\n");
行 410:  
行 411:      }    //end if
行 412:  
行 413:  
行 414:      if (config.Enablemall==1)
行 415:      {
行 416:  
行 417:      templateBuilder.Append("        <li><a href=\"");
行 418:      templateBuilder.Append(forumpath.ToString());
行 419:      templateBuilder.Append("usercpmygoods.aspx\">我的商品</a></li>\r\n");
行 420:  
行 421:      }    //end if
行 422:  
行 423:      templateBuilder.Append("    </ul>\r\n");
行 424:  
行 425:      }    //end if
行 426:  
行 427:      templateBuilder.Append("</div>\r\n");
行 428:      templateBuilder.Append("</div>\r\n");
行 429:      templateBuilder.Append("<div id=\"header\">\r\n");
行 430:      templateBuilder.Append("    <div class=\"wrap s_clear\">\r\n");
行 431:      templateBuilder.Append("        <h2><a href=\"");
行 432:      templateBuilder.Append(forumpath.ToString());
行 433:      templateBuilder.Append("index.aspx\" title=\"Discuz!NT|BBS|论坛\"><img src=\"");
行 434:      templateBuilder.Append(forumpath.ToString());
行 435:      templateBuilder.Append("templates/");
行 436:      templateBuilder.Append(templatepath.ToString());
行 437:      templateBuilder.Append("/images/logo.gif\" alt=\"Discuz!NT|BBS|论坛\"/></a></h2>\r\n");
行 438:  
行 439:      if (headerad!="")
行 440:      {
行 441:  
行 442:      templateBuilder.Append("        <div id=\"ad_headerbanner\">");
行 443:      templateBuilder.Append(headerad.ToString());
行 444:      templateBuilder.Append("</div>\r\n");
行 445:  
行 446:      }    //end if
行 447:  
行 448:      templateBuilder.Append("        <ul id=\"menu\">\r\n");
行 449:      templateBuilder.Append("            ");
行 450:      templateBuilder.Append(mainnavigation.ToString());
行 451:      templateBuilder.Append("\r\n");
行 452:      templateBuilder.Append("        </ul>\r\n");
行 453:      templateBuilder.Append("    </div>\r\n");
行 454:      templateBuilder.Append("</div>\r\n");
行 455:  
行 456:      }
行 457:      else
行 458:      {
行 459:  
行 460:  
行 461:      Response.Clear();
行 462:      Response.ContentType = "Text/XML";
行 463:      Response.Expires = 0;
行 464:      Response.Cache.SetNoStore();
行 465:      
行 466:      templateBuilder.Append("<?xml version=\"1.0\" encoding=\"utf-8\"?><root><![CDATA[\r\n");
行 467:  
行 468:      }    //end if
行 469:  
行 470:  
行 471:  
行 472:  
行 473:      if (infloat!=1)
行 474:      {
行 475:  
行 476:      templateBuilder.Append("<script type=\"text/javascript\" src=\"javascript/template_calendar.js\"></");
行 477:      templateBuilder.Append("script>\r\n");
行 478:      templateBuilder.Append("<div id=\"nav\">\r\n");
行 479:      templateBuilder.Append("    <div class=\"wrap s_clear\">\r\n");
行 480:      templateBuilder.Append("        <a href=\"");
行 481:      templateBuilder.Append(config.Forumurl.ToString().Trim());
行 482:      templateBuilder.Append("\" class=\"title\">");
行 483:      templateBuilder.Append(config.Forumtitle.ToString().Trim());
行 484:      templateBuilder.Append("</a>  \r\n");
行 485:  
行 486:      if (forum.Pathlist!="")
行 487:      {
行 488:  
行 489:      templateBuilder.Append("&raquo;");
行 490:      templateBuilder.Append(ShowForumAspxRewrite(forum.Pathlist.Trim(),forumid,forumpageid).ToString().Trim());
行 491:      templateBuilder.Append(" &raquo; \r\n");
行 492:  
行 493:      }    //end if
行 494:  
行 495:      templateBuilder.Append("        <a href=\"");
行 496:      templateBuilder.Append(ShowTopicAspxRewrite(topicid,0).ToString());
行 497:      templateBuilder.Append("\">");
行 498:      templateBuilder.Append(topic.Title.ToString().Trim());
行 499:      templateBuilder.Append("</a> &raquo; <strong>回复主题</strong>\r\n");
行 500:      templateBuilder.Append("    </div>\r\n");
行 501:      templateBuilder.Append("</div>\r\n");
行 502:  
行 503:      }    //end if
行 504:  
行 505:      templateBuilder.Append("<script type=\"text/javascript\" reload=\"1\" >\r\n");
行 506:      templateBuilder.Append("var postminchars = parseInt(");
行 507:      templateBuilder.Append(config.Minpostsize.ToString().Trim());
行 508:      templateBuilder.Append(");\r\n");
行 509:      templateBuilder.Append("var postmaxchars = parseInt(");
行 510:      templateBuilder.Append(config.Maxpostsize.ToString().Trim());
行 511:      templateBuilder.Append(");\r\n");
行 512:      templateBuilder.Append("var disablepostctrl = parseInt(");
行 513:      templateBuilder.Append(disablepost.ToString());
行 514:      templateBuilder.Append(");\r\n");
行 515:      templateBuilder.Append("var forumpath = \"");
行 516:      templateBuilder.Append(forumpath.ToString());
行 517:      templateBuilder.Append("\";\r\n");
行 518:      templateBuilder.Append("var posturl=forumpath+'postreply.aspx?topicid=");
行 519:      templateBuilder.Append(topicid.ToString());
行 520:      templateBuilder.Append("&forumpage=");
行 521:      templateBuilder.Append(forumpageid.ToString());
行 522:      templateBuilder.Append("';\r\n");
行 523:      templateBuilder.Append("var postaction='postreply.aspx?infloat=1&topicid=");
行 524:      templateBuilder.Append(topicid.ToString());
行 525:      templateBuilder.Append("&';\r\n");
行 526:      templateBuilder.Append("function closereply()\r\n");
行 527:      templateBuilder.Append("{\r\n");
行 528:      templateBuilder.Append("        if($('floatwin_reply'))\r\n");
行 529:      templateBuilder.Append("        $('floatwin_reply').parentNode.removeChild($('floatwin_reply')); \r\n");
行 530:      templateBuilder.Append("        if($('floatwin_reply_mask'))\r\n");
行 531:      templateBuilder.Append("         $('floatwin_reply_mask').parentNode.removeChild($('floatwin_reply_mask'));\r\n");
行 532:      templateBuilder.Append("}\r\n");
行 533:      templateBuilder.Append("</");
行 534:      templateBuilder.Append("script>\r\n");
行 535:  
行 536:      if (page_err==0)
行 537:      {
行 538:  
行 539:  
行 540:      if (ispost)
行 541:      {
行 542:  
行 543:  
行 544:      if (infloat==1)
行 545:      {
行 546:  
行 547:      templateBuilder.Append("    <script type=\"text/javascript\">\r\n");
行 548:      templateBuilder.Append("    $('returnmessage').className='';\r\n");
行 549:      templateBuilder.Append("    location.href='");
行 550:      templateBuilder.Append(rooturl.ToString());
行 551:      templateBuilder.Append(msgbox_url.ToString());
行 552:      templateBuilder.Append("';    \r\n");
行 553:      templateBuilder.Append("    location.reload();    \r\n");
行 554:      templateBuilder.Append("    </");
行 555:      templateBuilder.Append("script>\r\n");
行 556:  
行 557:      }
行 558:      else
行 559:      {
行 560:  
行 561:  
行 562:      templateBuilder.Append("<div class=\"wrap s_clear\" id=\"wrap\">\r\n");
行 563:      templateBuilder.Append("<div class=\"main\">\r\n");
行 564:      templateBuilder.Append("    <div class=\"msgbox\">\r\n");
行 565:      templateBuilder.Append("        <h1>Discuz!NT Board 提示信息</h1>\r\n");
行 566:      templateBuilder.Append("        <p>");
行 567:      templateBuilder.Append(msgbox_text.ToString());
行 568:      templateBuilder.Append("</p>\r\n");
行 569:  
行 570:      if (msgbox_url!="")
行 571:      {
行 572:  
行 573:      templateBuilder.Append("        <p><a href=\"");
行 574:      templateBuilder.Append(msgbox_url.ToString());
行 575:      templateBuilder.Append("\">如果浏览器没有转向, 请点击这里.</a></p>\r\n");
行 576:  
行 577:      }    //end if
行 578:  
行 579:      templateBuilder.Append("    </div>\r\n");
行 580:      templateBuilder.Append("</div>\r\n");
行 581:      templateBuilder.Append("</div>\r\n");
行 582:  
行 583:  
行 584:  
行 585:      }    //end if
行 586:  
行 587:  
行 588:      }
行 589:      else
行 590:      {
行 591:  
行 592:  
行 593:      if (infloat==0)
行 594:      {
行 595:  
行 596:      templateBuilder.Append("<div class=\"wrap s_clear\" id=\"wrap\">\r\n");
行 597:      templateBuilder.Append("<div class=\"main\">\r\n");
行 598:      templateBuilder.Append("    <div class=\"nojs\" style=\"position:relative;\">\r\n");
行 599:      templateBuilder.Append("    <div id=\"floatwinnojs\">\r\n");
行 600:  
行 601:      }    //end if
行 602:  
行 603:      templateBuilder.Append("    <script>\r\n");
行 604:      templateBuilder.Append("    function geteditormessage(theform)\r\n");
行 605:      templateBuilder.Append("    {\r\n");
行 606:      templateBuilder.Append("        var message = wysiwyg ? html2bbcode(getEditorContents()) : (!theform.parseurloff.checked ? parseurl(theform.message.value) : theform.message.value);\r\n");
行 607:      templateBuilder.Append("        theform.message.value = message;\r\n");
行 608:      templateBuilder.Append("    }\r\n");
行 609:      templateBuilder.Append("    </");
行 610:      templateBuilder.Append("script>\r\n");
行 611:      templateBuilder.Append("    <div id=\"floatlayout_reply\" class=\"float\" \r\n");
行 612:  
行 613:      if (infloat==1)
行 614:      {
行 615:  
行 616:      templateBuilder.Append("style=\"width: 600px; height: 410px;\"\r\n");
行 617:  
行 618:      }    //end if
行 619:  
行 620:      templateBuilder.Append(">\r\n");
行 621:  
行 622:      if (infloat==1)
行 623:      {
行 624:  
行 625:      templateBuilder.Append("        <form method=\"post\" name=\"postform\" id=\"postform\" action=\"postreply.aspx?infloat=1&topicid=");
行 626:      templateBuilder.Append(topicid.ToString());
行 627:      templateBuilder.Append("&\" enctype=\"multipart/form-data\" onsubmit=\"return validate(this)\">\r\n");
行 628:  
行 629:      }
行 630:      else
行 631:      {
行 632:  
行 633:      templateBuilder.Append("        <form method=\"post\" name=\"postform\" id=\"postform\" action=\"\" enctype=\"multipart/form-data\" onsubmit=\"return validate(this)\">\r\n");
行 634:  
行 635:      }    //end if
行 636:  
行 637:  
行 638:      string special = DNTRequest.GetString("type").ToLower();;
行 639:      
行 640:  
行 641:      if (special=="" && topic.Special>0)
行 642:      {
行 643:  
行 644:  
行 645:      if (topic.Special==1)
行 646:      {
行 647:  
行 648:       special = "poll";
行 649:      
行 650:  
行 651:      }    //end if
行 652:  
行 653:  
行 654:      if (topic.Special==2 || topic.Special==3)
行 655:      {
行 656:  
行 657:       special = "bonus";
行 658:      
行 659:  
行 660:      }    //end if
行 661:  
行 662:  
行 663:      if (topic.Special==4)
行 664:      {
行 665:  
行 666:       special = "debate";
行 667:      
行 668:  
行 669:      }    //end if
行 670:  
行 671:  
行 672:      }    //end if
行 673:  
行 674:      bool adveditor = (special!="" || topic.Special>0)&&isfirstpost;
行 675:      
行 676:      string action = pagename.Replace("post","").Replace(".aspx","").Replace("topic","newthread");
行 677:      
行 678:      string actiontitle = "";
行 679:      
行 680:  
行 681:      if (pagename=="posttopic.aspx")
行 682:      {
行 683:  
行 684:  
行 685:      if (special=="bonus")
行 686:      {
行 687:  
行 688:       actiontitle = "发布悬赏";
行 689:      
行 690:  
行 691:      }
行 692:      else if (special=="poll")
行 693:      {
行 694:  
行 695:       actiontitle = "发布投票";
行 696:      
行 697:  
行 698:      }
行 699:      else if (special=="debate")
行 700:      {
行 701:  
行 702:       actiontitle = "发布辩论";
行 703:      
行 704:  
行 705:      }
行 706:      else
行 707:      {
行 708:  
行 709:       actiontitle = "发新主题";
行 710:      
行 711:  
行 712:      }    //end if
行 713:  
行 714:  
行 715:      }
行 716:      else if (pagename=="postreply.aspx")
行 717:      {
行 718:  
行 719:       actiontitle = "回复主题";
行 720:      
行 721:  
行 722:      }
行 723:      else if (pagename=="editpost.aspx")
行 724:      {
行 725:  
行 726:       actiontitle = "编辑帖子";
行 727:      
行 728:  
行 729:      }    //end if
行 730:  
行 731:      char comma = ',';
行 732:      
行 733:      string editorid = "e";
行 734:      
行 735:      int thumbwidth = 400;
行 736:      
行 737:      int thumbheight = 300;
行 738:      
行 739:      templateBuilder.Append("<script type=\"text/javascript\" reload=\"1\">\r\n");
行 740:      templateBuilder.Append("    function removeElement()\r\n");
行 741:      templateBuilder.Append("    {\r\n");
行 742:      templateBuilder.Append("    }\r\n");
行 743:      templateBuilder.Append("</");
行 744:      templateBuilder.Append("script>\r\n");
行 745:  
行 746:      if (infloat==1)
行 747:      {
行 748:  
行 749:      templateBuilder.Append("<div style=\"clear:both; width:2500px;overflow-x:hidden;\">\r\n");
行 750:  
行 751:      }
行 752:      else
行 753:      {
行 754:  
行 755:      templateBuilder.Append("<div style=\"clear:both;\">\r\n");
行 756:  
行 757:      }    //end if
行 758:  
行 759:  
行 760:      if (infloat==1)
行 761:      {
行 762:  
行 763:      templateBuilder.Append("<div class=\"floatbox floatbox1\" id=\"extcreditbox1\"></div>\r\n");
行 764:  
行 765:      }    //end if
行 766:  
行 767:  
行 768:      if (adveditor==false)
行 769:      {
行 770:  
行 771:      templateBuilder.Append("<div class=\"floatbox floatbox1\" id=\"editorbox\">\r\n");
行 772:  
行 773:      }
行 774:      else
行 775:      {
行 776:  
行 777:      templateBuilder.Append("<div class=\"floatbox floatbox1\">\r\n");
行 778:  
行 779:      }    //end if
行 780:  
行 781:      templateBuilder.Append("    <h3 class=\"float_ctrl\">\r\n");
行 782:      templateBuilder.Append("        <em id=\"returnmessage\">");
行 783:      templateBuilder.Append(actiontitle.ToString());
行 784:      templateBuilder.Append("</em>\r\n");
行 785:  
行 786:      if (needaudit)
行 787:      {
行 788:  
行 789:      templateBuilder.Append("<em class=\"needverify\">需审核</em>\r\n");
行 790:  
行 791:      }    //end if
行 792:  
行 793:      templateBuilder.Append("        <span>\r\n");
行 794:      templateBuilder.Append("            <a href=\"javascript:;\" id=\"creditlink\"></a>\r\n");
行 795:  
行 796:      if (infloat==1)
行 797:      {
行 798:  
行 799:      templateBuilder.Append("                <a href=\"javascript:;\" class=\"float_newwindow\" onclick=\"editorwindowopen(posturl)\" title=\"新窗口\">新窗口</a>\r\n");
行 800:  
行 801:      if (special=="")
行 802:      {
行 803:  
行 804:      templateBuilder.Append("                    <a href=\"javascript:;\" class=\"float_max\" onclick=\"resizeEditorwin()\" title=\"最大化\" id=\"resizeEditorwin\">最大化</a>\r\n");
行 805:  
行 806:      }    //end if
行 807:  
行 808:      templateBuilder.Append("                <a href=\"javascript:;\" class=\"float_close\" onclick=\"closeEditorwin();removeElement()\" title=\"关闭\">关闭</a>\r\n");
行 809:  
行 810:      }    //end if
行 811:  
行 812:      templateBuilder.Append("        </span>\r\n");
行 813:      templateBuilder.Append("    </h3>\r\n");
行 814:      templateBuilder.Append("    <div class=\"postbox\" id=\"postbox\">\r\n");
行 815:  
行 816:      if (action=="reply")
行 817:      {
行 818:  
行 819:      templateBuilder.Append("        <div class=\"float_postinfo s_clear\" style=\"overflow:hidden\">\r\n");
行 820:  
行 821:      }
行 822:      else
行 823:      {
行 824:  
行 825:      templateBuilder.Append("        <div class=\"float_postinfo s_clear\">\r\n");
行 826:  
行 827:      }    //end if
行 828:  
行 829:      templateBuilder.Append("            <input type=\"hidden\" name=\"iconid\" id=\"iconid\" value=\"");
行 830:      templateBuilder.Append(topic.Iconid.ToString().Trim());
行 831:      templateBuilder.Append("\" />\r\n");
行 832:  
行 833:      if (special=="" && isfirstpost)
行 834:      {
行 835:  
行 836:      templateBuilder.Append("                <em id=\"icon\" class=\"dropmenu\" onmouseover=\"InFloat='floatlayout_");
行 837:      templateBuilder.Append(action.ToString());
行 838:      templateBuilder.Append("';showMenu(this.id)\"><img id=\"icon_img\" src=\"");
行 839:      templateBuilder.Append(rooturl.ToString());
行 840:      templateBuilder.Append("images/posticons/");
行 841:      templateBuilder.Append(topic.Iconid.ToString().Trim());
行 842:      templateBuilder.Append(".gif\" /></em>\r\n");
行 843:      templateBuilder.Append("                <ul id=\"icon_menu\" class=\"popupmenu_popup\" style=\"display:none\">\r\n");
行 844:      string icons = "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15";
行 845:      
行 846:  
行 847:      int id__loop__id=0;
行 848:      foreach(string id in icons.Split(comma))
行 849:      {
行 850:          id__loop__id++;
行 851:  
行 852:      templateBuilder.Append("                    <li><a href=\"javascript:;\"><img onclick=\"switchicon(");
行 853:      templateBuilder.Append(id.ToString());
行 854:      templateBuilder.Append(", this)\" src=\"");
行 855:      templateBuilder.Append(rooturl.ToString());
行 856:      templateBuilder.Append("images/posticons/");
行 857:      templateBuilder.Append(id.ToString());
行 858:      templateBuilder.Append(".gif\" alt=\"\" /></a></li>\r\n");
行 859:  
行 860:      }    //end loop
行 861:  
行 862:      templateBuilder.Append("                </ul>\r\n");
行 863:  
行 864:      }    //end if
行 865:  
行 866:  
行 867:      if (!isfirstpost && (topic.Special==4||special=="debate"))
行 868:      {
行 869:  
行 870:      templateBuilder.Append("            <div class=\"float_typeid left\">\r\n");
行 871:      templateBuilder.Append("                <select id=\"debateopinion\" name=\"debateopinion\">\r\n");
行 872:      templateBuilder.Append("                    <option value=\"0\">观点</option>\r\n");
行 873:      templateBuilder.Append("                    <option value=\"1\">正方</option>\r\n");
行 874:      templateBuilder.Append("                    <option value=\"2\">反方</option>\r\n");
行 875:      templateBuilder.Append("                </select>\r\n");
行 876:      templateBuilder.Append("            </div>\r\n");
行 877:      templateBuilder.Append("            <script type=\"text/javascript\">loadselect(\"debateopinion\");</");
行 878:      templateBuilder.Append("script>\r\n");
行 879:      templateBuilder.Append("            <script type=\"text/javascript\" reload=\"1\">$('debateopinion').selectedIndex = parseInt(getQueryString(\"debate\"));</");
行 880:      templateBuilder.Append("script>\r\n");
行 881:  
行 882:      }    //end if
行 883:  
行 884:      templateBuilder.Append("            <span><input name=\"title\" type=\"text\" id=\"title\" value=\"");
行 885:      templateBuilder.Append(postinfo.Title.ToString().Trim());
行 886:      templateBuilder.Append("\" class=\"txt\" title=\"标题最多为60个字符\" /></span>\r\n");
行 887:  
行 888:      if (forum.Applytopictype==1 && topictypeselectoptions!=""&&isfirstpost)
行 889:      {
行 890:  
行 891:      templateBuilder.Append("            <div class=\"float_typeid left\">\r\n");
行 892:      templateBuilder.Append("                <select name=\"typeid\" id=\"typeid\">");
行 893:      templateBuilder.Append(topictypeselectoptions.ToString());
行 894:      templateBuilder.Append("</select>\r\n");
行 895:      templateBuilder.Append("                <script type=\"text/javascript\" reload=\"1\">$('typeid').value = '");
行 896:      templateBuilder.Append(topic.Typeid.ToString().Trim());
行 897:      templateBuilder.Append("';</");
行 898:      templateBuilder.Append("script>\r\n");
行 899:      templateBuilder.Append("            </div>\r\n");
行 900:  
行 901:      }    //end if
行 902:  
行 903:  
行 904:      if (action=="reply" || postinfo.Layer>0)
行 905:      {
行 906:  
行 907:      templateBuilder.Append("            <cite class=\"tips\">(可选)</cite>\r\n");
行 908:  
行 909:      }    //end if
行 910:  
行 911:  
行 912:      if (canhtmltitle && infloat==0)
行 913:      {
行 914:  
行 915:      templateBuilder.Append("            <a href=\"###\" id=\"titleEditorButton\" onclick=\"\">高级编辑</a>\r\n");
行 916:      templateBuilder.Append("            <script type=\"text/javascript\" src=\"");
行 917:      templateBuilder.Append(rooturl.ToString());
行 918:      templateBuilder.Append("javascript/dnteditor.js\" reload=\"1\"></");
行 919:      templateBuilder.Append("script>\r\n");
行 920:      templateBuilder.Append("            <div id=\"titleEditorDiv\" style=\"display: none;\">\r\n");
行 921:      templateBuilder.Append("                <textarea name=\"htmltitle\" id=\"htmltitle\" cols=\"80\" rows=\"10\"></textarea>\r\n");
行 922:      templateBuilder.Append("                <script type=\"text/javascript\" reload=\"1\" >\r\n");
行 923:      templateBuilder.Append("                var forumpath = '");
行 924:      templateBuilder.Append(forumpath.ToString());
行 925:      templateBuilder.Append("';\r\n");
行 926:      templateBuilder.Append("                var templatepath = '");
行 927:      templateBuilder.Append(templatepath.ToString());
行 928:      templateBuilder.Append("';\r\n");
行 929:      templateBuilder.Append("                var temptitle = $('faketitle');\r\n");
行 930:      templateBuilder.Append("                var titleEditor = null;\r\n");
行 931:      templateBuilder.Append("                function AdvancedTitleEditor() {\r\n");
行 932:      templateBuilder.Append("                $('title').style.display = 'none';\r\n");
行 933:      templateBuilder.Append("                $('titleEditorDiv').style.display = '';\r\n");
行 934:      templateBuilder.Append("                $('titleEditorButton').style.display = 'none';\r\n");
行 935:      templateBuilder.Append("                titleEditor = new DNTeditor('htmltitle', '500', '50', '");
行 936:      templateBuilder.Append(htmltitle.ToString());
行 937:      templateBuilder.Append("' == '' ? $('title').value : '");
行 938:      templateBuilder.Append(htmltitle.ToString());
行 939:      templateBuilder.Append("');\r\n");
行 940:      templateBuilder.Append("                titleEditor.OnChange = function() {\r\n");
行 941:      templateBuilder.Append("                //temptitle.innerHTML = html2bbcode(titleEditor.GetHtml().replace(/<[^>]*>/ig, ''));\r\n");
行 942:      templateBuilder.Append("                }\r\n");
行 943:      templateBuilder.Append("                titleEditor.Basic = true;\r\n");
行 944:      templateBuilder.Append("                titleEditor.IsAutoSave = false;\r\n");
行 945:      templateBuilder.Append("                titleEditor.Style = forumpath + 'templates/' + templatepath + '/editor.css';\r\n");
行 946:      templateBuilder.Append("                titleEditor.BasePath = forumpath;\r\n");
行 947:      templateBuilder.Append("                titleEditor.ReplaceTextarea();\r\n");
行 948:      templateBuilder.Append("                }\r\n");
行 949:      templateBuilder.Append("                $('titleEditorButton').onclick = function() {\r\n");
行 950:      templateBuilder.Append("                AdvancedTitleEditor();\r\n");
行 951:      templateBuilder.Append("                };\r\n");
行 952:      templateBuilder.Append("                </");
行 953:      templateBuilder.Append("script>\r\n");
行 954:      templateBuilder.Append("            </div>\r\n");
行 955:  
行 956:      if (htmltitle!="")
行 957:      {
行 958:  
行 959:      templateBuilder.Append("                <script type=\"text/javascript\" reload=\"1\">\r\n");
行 960:      templateBuilder.Append("                AdvancedTitleEditor();\r\n");
行 961:      templateBuilder.Append("                </");
行 962:      templateBuilder.Append("script>\r\n");
行 963:  
行 964:      }    //end if
行 965:  
行 966:  
行 967:      }    //end if
行 968:  
行 969:      templateBuilder.Append("        </div>\r\n");
行 970:  
行 971:      if (adveditor)
行 972:      {
行 973:  
行 974:      templateBuilder.Append("        <!--  ###############  特殊主题  ############### -->\r\n");
行 975:      templateBuilder.Append("        <div id=\"specialpost\" class=\"s_clear\"></div>\r\n");
行 976:      templateBuilder.Append("        <script type=\"text/javascript\" reload=\"1\">\r\n");
行 977:      templateBuilder.Append("            _attachEvent(window, \"load\", function(){ \r\n");
行 978:      templateBuilder.Append("            if($('specialposttable')) {\r\n");
行 979:      templateBuilder.Append("                $('specialpost').innerHTML = $('specialposttable').innerHTML;\r\n");
行 980:      templateBuilder.Append("                $('specialposttable').innerHTML = '';\r\n");
行 981:      templateBuilder.Append("            }\r\n");
行 982:      templateBuilder.Append("            });\r\n");
行 983:      templateBuilder.Append("        </");
行 984:      templateBuilder.Append("script>\r\n");
行 985:      templateBuilder.Append("        </div>\r\n");
行 986:      templateBuilder.Append("        </div>\r\n");
行 987:  
行 988:      if (infloat==1)
行 989:      {
行 990:  
行 991:      templateBuilder.Append("        <div style=\"clear:both; width:2500px;overflow-x:hidden;\">\r\n");
行 992:  
行 993:      }
行 994:      else
行 995:      {
行 996:  
行 997:      templateBuilder.Append("        <div style=\"clear:both;\">\r\n");
行 998:  
行 999:      }    //end if
行 1000:
行 1001:
行 1002:     if (infloat==1)
行 1003:     {
行 1004:
行 1005:     templateBuilder.Append("<div class=\"floatbox floatbox1\" id=\"extcreditbox3\"></div>\r\n");
行 1006:
行 1007:     }    //end if
行 1008:
行 1009:     templateBuilder.Append("            <div class=\"floatbox floatbox1\" id=\"editorbox\">\r\n");
行 1010:
行 1011:     if (infloat==1)
行 1012:     {
行 1013:
行 1014:     templateBuilder.Append("                <h3 class=\"float_ctrl\">\r\n");
行 1015:     templateBuilder.Append("                    <em><button id=\"creditlink\" type=\"button\" onclick=\"pagescrolls('return');return false\">返回</button></em>\r\n");
行 1016:     templateBuilder.Append("                    <span>\r\n");
行 1017:     templateBuilder.Append("                        <a href=\"javascript:;\" onclick=\"pagescrolls('credit3')\" title=\"积分说明\">积分说明</a>\r\n");
行 1018:     templateBuilder.Append("                        <a href=\"javascript:;\" class=\"float_newwindow\" onclick=\"editorwindowopen('$posturl')\" title=\"新窗口\">新窗口</a>\r\n");
行 1019:     templateBuilder.Append("                        <a href=\"javascript:;\" class=\"float_max\" onclick=\"resizeEditorwin()\" title=\"最大化\" id=\"resizeEditorwin\">最大化</a>\r\n");
行 1020:     templateBuilder.Append("                        <a href=\"javascript:;\" class=\"float_close\" onclick=\"closeEditorwin();removeElement()\" title=\"关闭\">关闭</a>\r\n");
行 1021:     templateBuilder.Append("                    </span>\r\n");
行 1022:     templateBuilder.Append("                </h3>\r\n");
行 1023:
行 1024:     }    //end if
行 1025:
行 1026:     templateBuilder.Append("            <div class=\"postbox\">\r\n");
行 1027:
行 1028:     }    //end if
行 1029:
行 1030:
行 1031:     templateBuilder.Append("<script type=\"text/javascript\" src=\"");
行 1032:     templateBuilder.Append(rooturl.ToString());
行 1033:     templateBuilder.Append("javascript/bbcode.js\" reload=\"1\" ></");
行 1034:     templateBuilder.Append("script>\r\n");
行 1035:     templateBuilder.Append("<script type=\"text/javascript\" src=\"");
行 1036:     templateBuilder.Append(rooturl.ToString());
行 1037:     templateBuilder.Append("javascript/ajax.js\" reload=\"1\" ></");
行 1038:     templateBuilder.Append("script>\r\n");
行 1039:
行 1040:     if (infloat==1)
行 1041:     {
行 1042:     templateBuilder.Append(link.ToString());
行 1043:     templateBuilder.Append("\r\n");
行 1044:
行 1045:     }    //end if
行 1046:
行 1047:     templateBuilder.Append("<script type=\"text/javascript\" reload=\"1\" >\r\n");
行 1048:     templateBuilder.Append("var infloat = ");
行 1049:     templateBuilder.Append(infloat.ToString());
行 1050:     templateBuilder.Append(";\r\n");
行 1051:     templateBuilder.Append("var InFloat_Editor = 'floatlayout_");
行 1052:     templateBuilder.Append(action.ToString());
行 1053:     templateBuilder.Append("';\r\n");
行 1054:     templateBuilder.Append("var editoraction = '");
行 1055:     templateBuilder.Append(action.ToString());
行 1056:     templateBuilder.Append("';\r\n");
行 1057:     templateBuilder.Append("var lang    = new Array();\r\n");
行 1058:     templateBuilder.Append("lang['post_discuzcode_code'] = '请输入要插入的代码';\r\n");
行 1059:     templateBuilder.Append("lang['post_discuzcode_quote'] = '请输入要插入的引用';\r\n");
行 1060:     templateBuilder.Append("lang['post_discuzcode_free'] = '请输入要插入的免费信息';\r\n");
行 1061:     templateBuilder.Append("lang['post_discuzcode_hide'] = '请输入要插入的隐藏内容';\r\n");
行 1062:     templateBuilder.Append("lang['board_allowed'] = '系统限制';\r\n");
行 1063:     templateBuilder.Append("lang['lento'] = '到';\r\n");
行 1064:     templateBuilder.Append("lang['bytes'] = '字节';\r\n");
行 1065:     templateBuilder.Append("lang['post_curlength'] = '当前长度';\r\n");
行 1066:     templateBuilder.Append("lang['post_title_and_message_isnull'] = '请完成标题或内容栏。';\r\n");
行 1067:     templateBuilder.Append("lang['post_title_toolong'] = '您的标题超过 60 个字符的限制。';\r\n");
行 1068:     templateBuilder.Append("lang['post_message_length_invalid'] = '您的帖子长度不符合要求。';\r\n");
行 1069:     templateBuilder.Append("lang['post_type_isnull'] = '请选择主题对应的分类。';\r\n");
行 1070:     templateBuilder.Append("lang['post_reward_credits_null'] = '对不起,您输入悬赏积分。';\r\n");
行 1071:     templateBuilder.Append("lang['post_attachment_ext_notallowed']    = '对不起,不支持上传此类扩展名的附件。';\r\n");
行 1072:     templateBuilder.Append("lang['post_attachment_img_invalid']        = '无效的图片文件。';\r\n");
行 1073:     templateBuilder.Append("lang['post_attachment_deletelink']        = '删除';\r\n");
行 1074:     templateBuilder.Append("lang['post_attachment_insert']            = '点击这里将本附件插入帖子内容中当前光标的位置';\r\n");
行 1075:     templateBuilder.Append("lang['post_attachment_insertlink']        = '插入';\r\n");
行 1076:     templateBuilder.Append("lang['enter_list_item']            = \"输入一个列表项目.\\r\\n留空或者点击取消完成此列表.\";\r\n");
行 1077:     templateBuilder.Append("lang['enter_link_url']            = \"请输入链接的地址:\";\r\n");
行 1078:     templateBuilder.Append("lang['enter_image_url']            = \"请输入图片链接地址:\";\r\n");
行 1079:     templateBuilder.Append("lang['enter_email_link']        = \"请输入此链接的邮箱地址:\";\r\n");
行 1080:     templateBuilder.Append("lang['fontname']                = \"字体\";\r\n");
行 1081:     templateBuilder.Append("lang['fontsize']                = \"大小\";\r\n");
行 1082:     templateBuilder.Append("lang['post_advanceeditor']        = \"全部功能\";\r\n");
行 1083:     templateBuilder.Append("lang['post_simpleeditor']        = \"简单功能\";\r\n");
行 1084:     templateBuilder.Append("lang['submit']                    = \"提交\";\r\n");
行 1085:     templateBuilder.Append("lang['cancel']                    = \"取消\";\r\n");
行 1086:     templateBuilder.Append("lang['post_autosave_none'] = \"没有可以恢复的数据\";\r\n");
行 1087:     templateBuilder.Append("lang['post_autosave_confirm'] = \"本操作将覆盖当前帖子内容,确定要恢复数据吗?\";\r\n");
行 1088:     templateBuilder.Append("lang['enter_tag_option']        = \"请输入 %1 标签的选项:\";\r\n");
行 1089:     templateBuilder.Append("//lang['enter_list_item']            = \"输入一个列表项目.\\r\\n留空或者点击'取消'完成此列表.\";\r\n");
行 1090:     templateBuilder.Append("//lang['enter_link_url']            = \"请输入链接的地址:\";\r\n");
行 1091:     templateBuilder.Append("//lang['enter_image_url']            = \"请输入图片链接地址:\";\r\n");
行 1092:     templateBuilder.Append("//lang['enter_email_link']        = \"请输入此链接的邮箱地址:\";\r\n");
行 1093:     templateBuilder.Append("lang['enter_table_rows']        = \"请输入行数,最多 30 行:\";\r\n");
行 1094:     templateBuilder.Append("lang['enter_table_columns']        = \"请输入列数,最多 30 列:\";\r\n");
行 1095:     templateBuilder.Append("//lang['fontname']            = \"字体\";\r\n");
行 1096:     templateBuilder.Append("//lang['fontsize']            = \"大小\";\r\n");
行 1097:     templateBuilder.Append("var editorcss = 'templates/");
行 1098:     templateBuilder.Append(templatepath.ToString());
行 1099:     templateBuilder.Append("/editor.css';\r\n");
行 1100:     templateBuilder.Append("</");
行 1101:     templateBuilder.Append("script>\r\n");
行 1102:     templateBuilder.Append("<script type=\"text/javascript\" reload=\"1\" >\r\n");
行 1103:     templateBuilder.Append("    var typerequired = parseInt('0');\r\n");
行 1104:     templateBuilder.Append("//        var bbinsert = parseInt('1');\r\n");
行 1105:     templateBuilder.Append("    var seccodecheck = parseInt('0');\r\n");
行 1106:     templateBuilder.Append("    var secqaacheck = parseInt('0');\r\n");
行 1107:     templateBuilder.Append("    var special = 1;\r\n");
行 1108:
行 1109:     if (special=="")
行 1110:     {
行 1111:
行 1112:     templateBuilder.Append("    special = 0;\r\n");
行 1113:
行 1114:     }    //end if
行 1115:
行 1116:     templateBuilder.Append("    var isfirstpost = 0;\r\n");
行 1117:
行 1118:     if (isfirstpost)
行 1119:     {
行 1120:
行 1121:     templateBuilder.Append("    isfirstpost = 1;\r\n");
行 1122:
行 1123:     }    //end if
行 1124:
行 1125:     templateBuilder.Append("    var allowposttrade = parseInt('1');\r\n");
行 1126:     templateBuilder.Append("    var allowpostreward = parseInt('1');\r\n");
行 1127:     templateBuilder.Append("    var allowpostactivity = parseInt('1');\r\n");
行 1128:     templateBuilder.Append("    var bbinsert = parseInt('1');\r\n");
行 1129:     templateBuilder.Append("    var editorid = '");
行 1130:     templateBuilder.Append(editorid.ToString());
行 1131:     templateBuilder.Append("';\r\n");
行 1132:     templateBuilder.Append("    var allowhtml = parseInt('");
行 1133:     templateBuilder.Append(htmlon.ToString());
行 1134:     templateBuilder.Append("');\r\n");
行 1135:     templateBuilder.Append("    var forumallowhtml = parseInt('1');\r\n");
行 1136:     templateBuilder.Append("    var allowsmilies = 1 - parseInt('");
行 1137:     templateBuilder.Append(smileyoff.ToString());
行 1138:     templateBuilder.Append("');\r\n");
行 1139:     templateBuilder.Append("    var allowbbcode = parseInt('");
行 1140:     templateBuilder.Append(usergroupinfo.Allowcusbbcode.ToString().Trim());
行 1141:     templateBuilder.Append("') == 1 && parseInt('");
行 1142:     templateBuilder.Append(forum.Allowbbcode.ToString().Trim());
行 1143:     templateBuilder.Append("') == 1;\r\n");
行 1144:     templateBuilder.Append("    var allowimgcode = parseInt('");
行 1145:     templateBuilder.Append(forum.Allowimgcode.ToString().Trim());
行 1146:     templateBuilder.Append("');\r\n");
行 1147:     templateBuilder.Append("    var wysiwyg = (is_ie || is_moz || (is_opera && opera.version() >= 9)) && parseInt('");
行 1148:     templateBuilder.Append(config.Defaulteditormode.ToString().Trim());
行 1149:     templateBuilder.Append("') && allowbbcode == 1 ? 1 : 0;//bbinsert == 1 ? 1 : 0;\r\n");
行 1150:     templateBuilder.Append("    var allowswitcheditor = parseInt('");
行 1151:     templateBuilder.Append(config.Allowswitcheditor.ToString().Trim());
行 1152:     templateBuilder.Append("') && allowbbcode == 1 ;\r\n");
行 1153:     templateBuilder.Append("    //var Editor                = new Array();\r\n");
行 1154:     templateBuilder.Append("    var custombbcodes = { ");
行 1155:     templateBuilder.Append(Caches.GetCustomEditButtonList().ToString().Trim());
行 1156:     templateBuilder.Append(" };\r\n");
行 1157:     templateBuilder.Append("    var smileyinsert = parseInt('1');\r\n");
行 1158:     templateBuilder.Append("    //var editor_id = '");
行 1159:     templateBuilder.Append(editorid.ToString());
行 1160:     templateBuilder.Append("'; //编辑器ID\r\n");
行 1161:     templateBuilder.Append("    var smiliesCount = 32;//显示表情总数\r\n");
行 1162:     templateBuilder.Append("    var colCount = 8; //每行显示表情个数\r\n");
行 1163:     templateBuilder.Append("    var title = \"\";                   //标题\r\n");
行 1164:     templateBuilder.Append("    var showsmiliestitle = 1;        //是否显示标题(0不显示 1显示)\r\n");
行 1165:     templateBuilder.Append("    var smiliesIsCreate = 0;           //编辑器是否已被创建(0否,1是)\r\n");
行 1166:     templateBuilder.Append("    var smilies_HASH = {};//得到表情符号信息\r\n");
行 1167:     templateBuilder.Append("    //var smiliePageSize = 16; //表情每页显示数量 (共4列)\r\n");
行 1168:     templateBuilder.Append("    //table变量\r\n");
行 1169:     templateBuilder.Append("    /*\r\n");
行 1170:     templateBuilder.Append("    var msgheader = \"margin:0 2em; font: 11px Arial, Tahoma; font-weight: bold; background: #F3F8D7; padding: 5px;\";\r\n");
行 1171:     templateBuilder.Append("    var msgborder = \"margin: 0 2em; padding: 10px; border: 1px solid #dbddd3; word-break: break-all; background-color: #fdfff2;\";\r\n");
行 1172:     templateBuilder.Append("    var INNERBORDERCOLOR = \"#D6E0EF\";\r\n");
行 1173:     templateBuilder.Append("    var BORDERWIDTH = \"1\";\r\n");
行 1174:     templateBuilder.Append("    var BORDERCOLOR = \"#7ac4ea\";\r\n");
行 1175:     templateBuilder.Append("    var ALTBG2 = \"#ffffff\";\r\n");
行 1176:     templateBuilder.Append("    var FONTSIZE = \"12px\";\r\n");
行 1177:     templateBuilder.Append("    var FONT = \"Tahoma, Verdana\";\r\n");
行 1178:     templateBuilder.Append("    //var fontoptions = new Array(\"仿宋_GB2312\", \"黑体\", \"楷体_GB2312\", \"宋体\", \"新宋体\", \"Tahoma\", \"Arial\", \"Impact\", \"Verdana\", \"Times New Roman\");\r\n");
行 1179:     templateBuilder.Append("    var altbg1 = '#f5fbff';\r\n");
行 1180:     templateBuilder.Append("    var altbg2 = 'background: #ffffff;font: 12px Tahoma, Verdana;';\r\n");
行 1181:     templateBuilder.Append("    var tableborder = 'background: #D6E0EF;border: 1px solid #7ac4ea;';\r\n");
行 1182:     templateBuilder.Append("*/\r\n");
行 1183:     templateBuilder.Append("    var maxpolloptions = parseInt('");
行 1184:     templateBuilder.Append(config.Maxpolloptions.ToString().Trim());
行 1185:     templateBuilder.Append("');\r\n");
行 1186:     templateBuilder.Append("    function alloweditorhtml() {\r\n");
行 1187:     templateBuilder.Append("        if($('htmlon').checked) {\r\n");
行 1188:     templateBuilder.Append("            allowhtml = 1;\r\n");
行 1189:     templateBuilder.Append("            forumallowhtml = 1;\r\n");
行 1190:     templateBuilder.Append("        } else {\r\n");
行 1191:     templateBuilder.Append("            allowhtml = 0;\r\n");
行 1192:     templateBuilder.Append("            forumallowhtml = 0;\r\n");
行 1193:     templateBuilder.Append("        }\r\n");
行 1194:     templateBuilder.Append("    }\r\n");
行 1195:     templateBuilder.Append("</");
行 1196:     templateBuilder.Append("script>\r\n");
行 1197:     templateBuilder.Append("<input type=\"hidden\" name=\"wysiwyg\" id=\"");
行 1198:     templateBuilder.Append(editorid.ToString());
行 1199:     templateBuilder.Append("_mode\" value=\"");
行 1200:     templateBuilder.Append(config.Defaulteditormode.ToString().Trim());
行 1201:     templateBuilder.Append("\" />\r\n");
行 1202:     templateBuilder.Append("<div id=\"");
行 1203:     templateBuilder.Append(editorid.ToString());
行 1204:     templateBuilder.Append("_controls\" class=\"editorrow\">\r\n");
行 1205:     templateBuilder.Append("    <div class=\"editor\">\r\n");
行 1206:     templateBuilder.Append("        <a id=\"");
行 1207:     templateBuilder.Append(editorid.ToString());
行 1208:     templateBuilder.Append("_switcher\" class=\"plugeditor editormode\"><input type=\"checkbox\" name=\"checkbox\" value=\"0\" \r\n");
行 1209:
行 1210:     if (config.Defaulteditormode==0)
行 1211:     {
行 1212:
行 1213:     templateBuilder.Append(" checked=\"checked\"\r\n");
行 1214:
行 1215:     }    //end if
行 1216:
行 1217:     templateBuilder.Append(" onclick=\"switchEditor(this.checked?0:1)\"/>源码</a>\r\n");
行 1218:     templateBuilder.Append("        <div class=\"editorbtn\" id=\"editorbtn\">\r\n");
行 1219:     templateBuilder.Append("            <a id=\"");
行 1220:     templateBuilder.Append(editorid.ToString());
行 1221:     templateBuilder.Append("_cmd_bold\" title=\"粗体\" href=\"javascript:;\"></a>\r\n");
行 1222:     templateBuilder.Append("            <a id=\"");
行 1223:     templateBuilder.Append(editorid.ToString());
行 1224:     templateBuilder.Append("_popup_simple\" title=\"粗体 斜体 下划线\" href=\"javascript:;\"></a>\r\n");
行 1225:     templateBuilder.Append("            <a id=\"");
行 1226:     templateBuilder.Append(editorid.ToString());
行 1227:     templateBuilder.Append("_popup_fontname\" title=\"字体\" href=\"javascript:;\"></a>\r\n");
行 1228:     templateBuilder.Append("            <a id=\"");
行 1229:     templateBuilder.Append(editorid.ToString());
行 1230:     templateBuilder.Append("_popup_fontsize\" title=\"大小\" href=\"javascript:;\"></a>\r\n");
行 1231:     templateBuilder.Append("            <a id=\"");
行 1232:     templateBuilder.Append(editorid.ToString());
行 1233:     templateBuilder.Append("_popup_forecolor\" title=\"颜色\" href=\"javascript:;\"></a>\r\n");
行 1234:     templateBuilder.Append("            <a id=\"");
行 1235:     templateBuilder.Append(editorid.ToString());
行 1236:     templateBuilder.Append("_popup_justify\" title=\"对齐\" href=\"javascript:;\"></a>\r\n");
行 1237:     templateBuilder.Append("            <a id=\"");
行 1238:     templateBuilder.Append(editorid.ToString());
行 1239:     templateBuilder.Append("_cmd_createlink\" title=\"链接\" href=\"javascript:;\"></a>\r\n");
行 1240:     templateBuilder.Append("            <a id=\"");
行 1241:     templateBuilder.Append(editorid.ToString());
行 1242:     templateBuilder.Append("_cmd_email\" title=\"Email\" href=\"javascript:;\"></a>\r\n");
行 1243:     templateBuilder.Append("            <a id=\"");
行 1244:     templateBuilder.Append(editorid.ToString());
行 1245:     templateBuilder.Append("_cmd_insertimage\" title=\"图片\" href=\"javascript:;\"></a>\r\n");
行 1246:     templateBuilder.Append("            <a id=\"");
行 1247:     templateBuilder.Append(editorid.ToString());
行 1248:     templateBuilder.Append("_cmd_quote\" title=\"引用\" href=\"javascript:;\"></a>\r\n");
行 1249:     templateBuilder.Append("            <a id=\"");
行 1250:     templateBuilder.Append(editorid.ToString());
行 1251:     templateBuilder.Append("_cmd_code\" title=\"代码\" href=\"javascript:;\"></a>\r\n");
行 1252:     templateBuilder.Append("            <a id=\"");
行 1253:     templateBuilder.Append(editorid.ToString());
行 1254:     templateBuilder.Append("_popup_list\" title=\"列表\" href=\"javascript:;\"></a>\r\n");
行 1255:     templateBuilder.Append("            <a id=\"");
行 1256:     templateBuilder.Append(editorid.ToString());
行 1257:     templateBuilder.Append("_popup_dent\" title=\"缩进\" href=\"javascript:;\"></a>\r\n");
行 1258:     templateBuilder.Append("            <a id=\"");
行 1259:     templateBuilder.Append(editorid.ToString());
行 1260:     templateBuilder.Append("_popup_float\" title=\"浮动\" href=\"javascript:;\"></a>\r\n");
行 1261:     templateBuilder.Append("            <a id=\"");
行 1262:     templateBuilder.Append(editorid.ToString());
行 1263:     templateBuilder.Append("_cmd_table\" title=\"表格\" style=\"display: none;\" href=\"javascript:;\"></a>\r\n");
行 1264:     templateBuilder.Append("            <a id=\"");
行 1265:     templateBuilder.Append(editorid.ToString());
行 1266:     templateBuilder.Append("_cmd_free\" title=\"免费信息\" href=\"javascript:;\"></a>\r\n");
行 1267:     templateBuilder.Append("            <a id=\"");
行 1268:     templateBuilder.Append(editorid.ToString());
行 1269:     templateBuilder.Append("_cmd_hide\" title=\"隐藏内容\" href=\"javascript:;\"></a>\r\n");
行 1270:
行 1271:     if (config.Smileyinsert==1)
行 1272:     {
行 1273:
行 1274:     templateBuilder.Append("            <a id=\"");
行 1275:     templateBuilder.Append(editorid.ToString());
行 1276:     templateBuilder.Append("_popup_smilies\" title=\"表情\" href=\"javascript:;\"></a>\r\n");
行 1277:
行 1278:     }    //end if
行 1279:
行 1280:     templateBuilder.Append("            <a id=\"");
行 1281:     templateBuilder.Append(editorid.ToString());
行 1282:     templateBuilder.Append("_popup_media\" title=\"多媒体\" href=\"javascript:;\"></a>\r\n");
行 1283:     templateBuilder.Append("            <a id=\"");
行 1284:     templateBuilder.Append(editorid.ToString());
行 1285:     templateBuilder.Append("_popup_tools\" title=\"工具\" href=\"javascript:;\"></a>\r\n");
行 1286:     templateBuilder.Append("        </div>\r\n");
行 1287:     templateBuilder.Append("        <script type=\"text/javascript\" reload=\"1\">\r\n");
行 1288:     templateBuilder.Append("            //自定义按扭显示\r\n");
行 1289:     templateBuilder.Append("            if(typeof(custombbcodes) != 'undefined') {\r\n");
行 1290:     templateBuilder.Append("                //document.writeln('<td><img src=\"editor/images/separator.gif\" width=\"6\" height=\"23\"></td>');\r\n");
行 1291:     templateBuilder.Append("                for (var id in custombbcodes){\r\n");
行 1292:     templateBuilder.Append("                    if (custombbcodes[id][1] == '')\r\n");
行 1293:     templateBuilder.Append("                        continue;\r\n");
行 1294:     templateBuilder.Append("                    var btn = document.createElement(\"a\");\r\n");
行 1295:     templateBuilder.Append("                    btn.id = \"");
行 1296:     templateBuilder.Append(editorid.ToString());
行 1297:     templateBuilder.Append("_cmd_custom\" + custombbcodes[id][5] + \"_\" + custombbcodes[id][0];\r\n");
行 1298:     templateBuilder.Append("                    btn.className = \"customedit\";\r\n");
行 1299:     templateBuilder.Append("                    btn.innerHTML = '<img title=\"' + custombbcodes[id][2] + '\" alt=\"' + custombbcodes[id][2] + '\" src = \"");
行 1300:     templateBuilder.Append(rooturl.ToString());
行 1301:     templateBuilder.Append("editor/images/' + custombbcodes[id][1] + '\" />';\r\n");
行 1302:     templateBuilder.Append("                    $(\"editorbtn\").appendChild(btn);\r\n");
行 1303:     templateBuilder.Append("                    //document.writeln('<a id=\"");
行 1304:     templateBuilder.Append(editorid.ToString());
行 1305:     templateBuilder.Append("_cmd_custom' + custombbcodes[id][5] + '_' + custombbcodes[id][0] + '\" class=\"customedit\"><img title=\"' + custombbcodes[id][2] + '\" alt=\"' + custombbcodes[id][2] + '\" src = \"editor/images/' + custombbcodes[id][1] + '\" /></a>');\r\n");
行 1306:     templateBuilder.Append("                }\r\n");
行 1307:     templateBuilder.Append("            }\r\n");
行 1308:     templateBuilder.Append("        </");
行 1309:     templateBuilder.Append("script>\r\n");
行 1310:     templateBuilder.Append("    </div>\r\n");
行 1311:     templateBuilder.Append("    <div class=\"editortoolbar\">\r\n");
行 1312:     templateBuilder.Append("        <div class=\"popupmenu_popup fontstyle_menu\" id=\"");
行 1313:     templateBuilder.Append(editorid.ToString());
行 1314:     templateBuilder.Append("_popup_simple_menu\" style=\"display: none\">\r\n");
行 1315:     templateBuilder.Append("        <ul unselectable=\"on\">\r\n");
行 1316:     templateBuilder.Append("            <li><a id=\"");
行 1317:     templateBuilder.Append(editorid.ToString());
行 1318:     templateBuilder.Append("_cmd_italic\" title=\"斜体\">斜体</a></li>\r\n");
行 1319:     templateBuilder.Append("            <li><a id=\"");
行 1320:     templateBuilder.Append(editorid.ToString());
行 1321:     templateBuilder.Append("_cmd_underline\" title=\"下划线\">下划线</a></li>\r\n");
行 1322:     templateBuilder.Append("        </ul>\r\n");
行 1323:     templateBuilder.Append("        </div>\r\n");
行 1324:     string fontoptions = "仿宋_GB2312,黑体,楷体_GB2312,宋体,新宋体,微软雅黑,TrebuchetMS,Tahoma,Arial,Impact,Verdana,TimesNewRoman";
行 1325:     
行 1326:     templateBuilder.Append("        <div class=\"popupmenu_popup fontname_menu\" id=\"");
行 1327:     templateBuilder.Append(editorid.ToString());
行 1328:     templateBuilder.Append("_popup_fontname_menu\" style=\"display: none\">\r\n");
行 1329:     templateBuilder.Append("        <ul unselectable=\"on\">\r\n");
行 1330:
行 1331:     int fontname__loop__id=0;
行 1332:     foreach(string fontname in fontoptions.Split(comma))
行 1333:     {
行 1334:         fontname__loop__id++;
行 1335:
行 1336:     templateBuilder.Append("            <li onclick=\"discuzcode('fontname', '");
行 1337:     templateBuilder.Append(fontname.ToString());
行 1338:     templateBuilder.Append("')\" style=\"font-family: ");
行 1339:     templateBuilder.Append(fontname.ToString());
行 1340:     templateBuilder.Append("\" unselectable=\"on\">");
行 1341:     templateBuilder.Append(fontname.ToString());
行 1342:     templateBuilder.Append("</li>\r\n");
行 1343:
行 1344:     }    //end loop
行 1345:
行 1346:     templateBuilder.Append("        </ul>\r\n");
行 1347:     templateBuilder.Append("        </div>\r\n");
行 1348:     string sizeoptions = "1,2,3,4,5,6,7";
行 1349:     
行 1350:     templateBuilder.Append("        <div class=\"popupmenu_popup fontsize_menu\" id=\"");
行 1351:     templateBuilder.Append(editorid.ToString());
行 1352:     templateBuilder.Append("_popup_fontsize_menu\" style=\"display: none\">\r\n");
行 1353:     templateBuilder.Append("        <ul unselectable=\"on\">\r\n");
行 1354:
行 1355:     int size__loop__id=0;
行 1356:     foreach(string size in sizeoptions.Split(comma))
行 1357:     {
行 1358:         size__loop__id++;
行 1359:
行 1360:     templateBuilder.Append("            <li onclick=\"discuzcode('fontsize', ");
行 1361:     templateBuilder.Append(size.ToString());
行 1362:     templateBuilder.Append(")\" unselectable=\"on\"><font size=\"");
行 1363:     templateBuilder.Append(size.ToString());
行 1364:     templateBuilder.Append("\" unselectable=\"on\">");
行 1365:     templateBuilder.Append(size.ToString());
行 1366:     templateBuilder.Append("</font></li>\r\n");
行 1367:
行 1368:     }    //end loop
行 1369:
行 1370:     templateBuilder.Append("        </ul>\r\n");
行 1371:     templateBuilder.Append("        </div>\r\n");
行 1372:     string coloroptions = "Black,Sienna,DarkOliveGreen,DarkGreen,DarkSlateBlue,Navy,Indigo,DarkSlateGray,DarkRed,DarkOrange,Olive,Green,Teal,Blue,SlateGray,DimGray,Red,SandyBrown,YellowGreen,SeaGreen,MediumTurquoise,RoyalBlue,Purple,Gray,Magenta,Orange,Yellow,Lime,Cyan,DeepSkyBlue,DarkOrchid,Silver,Pink,Wheat,LemonChiffon,PaleGreen,PaleTurquoise,LightBlue,Plum,White";
行 1373:     
行 1374:     templateBuilder.Append("        <div class=\"popupmenu_popup\" id=\"");
行 1375:     templateBuilder.Append(editorid.ToString());
行 1376:     templateBuilder.Append("_popup_forecolor_menu\" style=\"display: none\">\r\n");
行 1377:     templateBuilder.Append("        <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" unselectable=\"on\" style=\"width: auto;\">\r\n");
行 1378:     templateBuilder.Append("        <tr>\r\n");
行 1379:
行 1380:     int colorname__loop__id=0;
行 1381:     foreach(string colorname in coloroptions.Split(comma))
行 1382:     {
行 1383:         colorname__loop__id++;
行 1384:
行 1385:     templateBuilder.Append("            <td class=\"editor_colornormal\" onclick=\"discuzcode('forecolor', '");
行 1386:     templateBuilder.Append(colorname.ToString());
行 1387:     templateBuilder.Append("')\" unselectable=\"on\"><div style=\"background-color: ");
行 1388:     templateBuilder.Append(colorname.ToString());
行 1389:     templateBuilder.Append("\" unselectable=\"on\"></div></td>\r\n");
行 1390:
行 1391:     if (colorname__loop__id%8==0)
行 1392:     {
行 1393:
行 1394:     templateBuilder.Append("</tr><tr>\r\n");
行 1395:
行 1396:     }    //end if
行 1397:
行 1398:
行 1399:     }    //end loop
行 1400:
行 1401:     templateBuilder.Append("        </tr>\r\n");
行 1402:     templateBuilder.Append("        </table>\r\n");
行 1403:     templateBuilder.Append("        </div>\r\n");
行 1404:     templateBuilder.Append("        <div class=\"popupmenu_popup\" id=\"");
行 1405:     templateBuilder.Append(editorid.ToString());
行 1406:     templateBuilder.Append("_popup_justify_menu\" style=\"display: none\">\r\n");
行 1407:     templateBuilder.Append("        <ul unselectable=\"on\">\r\n");
行 1408:     templateBuilder.Append("            <li><a id=\"");
行 1409:     templateBuilder.Append(editorid.ToString());
行 1410:     templateBuilder.Append("_cmd_justifyleft\" title=\"居左\">居左</a></li>\r\n");
行 1411:     templateBuilder.Append("            <li><a id=\"");
行 1412:     templateBuilder.Append(editorid.ToString());
行 1413:     templateBuilder.Append("_cmd_justifycenter\" title=\"居中\">居中</a></li>\r\n");
行 1414:     templateBuilder.Append("            <li><a id=\"");
行 1415:     templateBuilder.Append(editorid.ToString());
行 1416:     templateBuilder.Append("_cmd_justifyright\" title=\"居右\">居右</a></li>\r\n");
行 1417:     templateBuilder.Append("        </ul>\r\n");
行 1418:     templateBuilder.Append("        </div>\r\n");
行 1419:
行 1420:     if (config.Smileyinsert==1)
行 1421:     {
行 1422:
行 1423:     templateBuilder.Append("        <div class=\"smilies popupmenu_popup\" id=\"");
行 1424:     templateBuilder.Append(editorid.ToString());
行 1425:     templateBuilder.Append("_popup_smilies_menu\" style=\"display: none;width:320px;\">\r\n");
行 1426:
行 1427:     templateBuilder.Append("<div class=\"smilieslist\">\r\n");
行 1428:     string defaulttypname = string.Empty;
行 1429:     
行 1430:     templateBuilder.Append("    <div id=\"smiliesdiv\">\r\n");
行 1431:     templateBuilder.Append("        <div class=\"smiliesgroup\" style=\"margin-right: 0pt;\">\r\n");
行 1432:     templateBuilder.Append("            <ul>\r\n");
行 1433:
行 1434:     int stype__loop__id=0;
行 1435:     foreach(DataRow stype in Caches.GetSmilieTypesCache().Rows)
行 1436:     {
行 1437:         stype__loop__id++;
行 1438:
行 1439:
行 1440:     if (stype__loop__id==1)
行 1441:     {
行 1442:
行 1443:      defaulttypname = stype["code"].ToString().Trim();
行 1444:     
行 1445:
行 1446:     }    //end if
行 1447:
行 1448:
行 1449:     if (stype__loop__id==1)
行 1450:     {
行 1451:
行 1452:     templateBuilder.Append("                <li id=\"t_s_" + stype__loop__id.ToString() + "\"><a id=\"s_" + stype__loop__id.ToString() + "\" hidefocus=\"true\" href=\"javascript:;\" onclick=\"showsmiles(" + stype__loop__id.ToString() + ", '" + stype["code"].ToString().Trim() + "');\" class=\"current\">" + stype["code"].ToString().Trim() + "</a></li>\r\n");
行 1453:
行 1454:     }
行 1455:     else
行 1456:     {
行 1457:
行 1458:     templateBuilder.Append("                <li id=\"t_s_" + stype__loop__id.ToString() + "\"><a id=\"s_" + stype__loop__id.ToString() + "\" hidefocus=\"true\" href=\"javascript:;\" onclick=\"showsmiles(" + stype__loop__id.ToString() + ", '" + stype["code"].ToString().Trim() + "');\">" + stype["code"].ToString().Trim() + "</a></li>\r\n");
行 1459:
行 1460:     }    //end if
行 1461:
行 1462:
行 1463:     }    //end loop
行 1464:
行 1465:     templateBuilder.Append("            </ul>\r\n");
行 1466:     templateBuilder.Append("         </div>\r\n");
行 1467:     templateBuilder.Append("         <div style=\"clear: both;\" class=\"float_typeid\" id=\"showsmilie\"><img src=\"");
行 1468:     templateBuilder.Append(forumpath.ToString());
行 1469:     templateBuilder.Append("images/common/loading_wide.gif\" width=\"90%\" style=\" margin-top:20px;\" alt=\"加载表情\"/><p>正在加载表情...</p>\r\n");
行 1470:     templateBuilder.Append("         </div>\r\n");
行 1471:     templateBuilder.Append("         <table class=\"smilieslist_table\" id=\"s_preview_table\" style=\"display: none\"><tr><td class=\"smilieslist_preview\" id=\"s_preview\"></td></tr></table>\r\n");
行 1472:     templateBuilder.Append("         <div id=\"showsmilie_pagenum\" class=\"smilieslist_page\">&nbsp;</div>\r\n");
行 1473:     templateBuilder.Append("    </div>\r\n");
行 1474:     templateBuilder.Append("</div>\r\n");
行 1475:     templateBuilder.Append("<script src=\"javascript/post.js\" type=\"text/javascript\" reload=\"1\"></");
行 1476:     templateBuilder.Append("script>\r\n");
行 1477:     templateBuilder.Append("<script type=\"text/javascript\" reload=\"1\">\r\n");
行 1478:     templateBuilder.Append("    var firstpagesmilies_json ={ ");
行 1479:     templateBuilder.Append(Caches.GetSmiliesFirstPageCache().ToString().Trim());
行 1480:     templateBuilder.Append(" };\r\n");
行 1481:     templateBuilder.Append("    showFirstPageSmilies(firstpagesmilies_json, '");
行 1482:     templateBuilder.Append(defaulttypname.ToString());
行 1483:     templateBuilder.Append("',  16);\r\n");
行 1484:     templateBuilder.Append("    function getSmilies(func){\r\n");
行 1485:     templateBuilder.Append("        var c = \"");
行 1486:     templateBuilder.Append(forumpath.ToString());
行 1487:     templateBuilder.Append("tools/ajax.aspx?t=smilies\";\r\n");
行 1488:     templateBuilder.Append("        _sendRequest(c,function(d){var e={};try{e=eval(\"(\"+d+\")\")}catch(f){e={}}var h=e?e:null;func(h);e=null;func=null},false,true)\r\n");
行 1489:     templateBuilder.Append("    }\r\n");
行 1490:     templateBuilder.Append("    getSmilies(function(obj){ \r\n");
行 1491:     templateBuilder.Append("        smilies_HASH = obj; \r\n");
行 1492:     templateBuilder.Append("        showsmiles(1, '");
行 1493:     templateBuilder.Append(defaulttypname.ToString());
行 1494:     templateBuilder.Append("');\r\n");
行 1495:     templateBuilder.Append("    });\r\n");
行 1496:     templateBuilder.Append("</");
行 1497:     templateBuilder.Append("script>\r\n");
行 1498:
行 1499:
行 1500:     templateBuilder.Append("        </div>\r\n");
行 1501:
行 1502:     }    //end if
行 1503:
行 1504:     templateBuilder.Append("        <div class=\"popupmenu_popup\" id=\"");
行 1505:     templateBuilder.Append(editorid.ToString());
行 1506:     templateBuilder.Append("_popup_dent_menu\" style=\"display: none\">\r\n");
行 1507:     templateBuilder.Append("        <ul unselectable=\"on\">\r\n");
行 1508:     templateBuilder.Append("            <li><a id=\"");
行 1509:     templateBuilder.Append(editorid.ToString());
行 1510:     templateBuilder.Append("_cmd_indent\" title=\"增加缩进\">增加缩进</a></li>\r\n");
行 1511:     templateBuilder.Append("            <li><a id=\"");
行 1512:     templateBuilder.Append(editorid.ToString());
行 1513:     templateBuilder.Append("_cmd_outdent\" title=\"减少缩进\">减少缩进</a></li>\r\n");
行 1514:     templateBuilder.Append("        </ul>\r\n");
行 1515:     templateBuilder.Append("        </div>\r\n");
行 1516:     templateBuilder.Append("        <div class=\"popupmenu_popup\" id=\"");
行 1517:     templateBuilder.Append(editorid.ToString());
行 1518:     templateBuilder.Append("_popup_float_menu\" style=\"display: none\">\r\n");
行 1519:     templateBuilder.Append("        <ul unselectable=\"on\">\r\n");
行 1520:     templateBuilder.Append("            <li><a id=\"");
行 1521:     templateBuilder.Append(editorid.ToString());
行 1522:     templateBuilder.Append("_cmd_floatleft\" title=\"左浮动\">左浮动</a></li>\r\n");
行 1523:     templateBuilder.Append("            <li><a id=\"");
行 1524:     templateBuilder.Append(editorid.ToString());
行 1525:     templateBuilder.Append("_cmd_floatright\" title=\"右浮动\">右浮动</a></li>\r\n");
行 1526:     templateBuilder.Append("        </ul>\r\n");
行 1527:     templateBuilder.Append("        </div>\r\n");
行 1528:     templateBuilder.Append("        <div class=\"popupmenu_popup\" id=\"");
行 1529:     templateBuilder.Append(editorid.ToString());
行 1530:     templateBuilder.Append("_popup_list_menu\" style=\"display: none\">\r\n");
行 1531:     templateBuilder.Append("        <ul unselectable=\"on\">\r\n");
行 1532:     templateBuilder.Append("            <li><a id=\"");
行 1533:     templateBuilder.Append(editorid.ToString());
行 1534:     templateBuilder.Append("_cmd_insertorderedlist\" title=\"排序的列表\">排序的列表</a></li>\r\n");
行 1535:     templateBuilder.Append("            <li><a id=\"");
行 1536:     templateBuilder.Append(editorid.ToString());
行 1537:     templateBuilder.Append("_cmd_insertunorderedlist\" title=\"未排序的列表\">未排序的列表</a></li>\r\n");
行 1538:     templateBuilder.Append("        </ul>\r\n");
行 1539:     templateBuilder.Append("        </div>\r\n");
行 1540:     templateBuilder.Append("        <div class=\"popupmenu_popup\" id=\"");
行 1541:     templateBuilder.Append(editorid.ToString());
行 1542:     templateBuilder.Append("_popup_hide_menu\" style=\"display: none\">\r\n");
行 1543:     templateBuilder.Append("        <ul unselectable=\"on\">\r\n");
行 1544:
行 1545:     if (usergroupinfo.Allowhidecode==1)
行 1546:     {
行 1547:
行 1548:     templateBuilder.Append("<li><a id=\"");
行 1549:     templateBuilder.Append(editorid.ToString());
行 1550:     templateBuilder.Append("_popup_hide\" title=\"隐藏内容\">隐藏内容</a></li>\r\n");
行 1551:
行 1552:     }    //end if
行 1553:
行 1554:     templateBuilder.Append("            <li><a id=\"");
行 1555:     templateBuilder.Append(editorid.ToString());
行 1556:     templateBuilder.Append("_cmd_table\" title=\"表格\">表格</a></li>\r\n");
行 1557:     templateBuilder.Append("            <li><a id=\"");
行 1558:     templateBuilder.Append(editorid.ToString());
行 1559:     templateBuilder.Append("_cmd_free\" title=\"免费信息\">免费信息</a></li>\r\n");
行 1560:     templateBuilder.Append("        </ul>\r\n");
行 1561:     templateBuilder.Append("        </div>\r\n");
行 1562:     templateBuilder.Append("        <div class=\"popupmenu_popup\" id=\"");
行 1563:     templateBuilder.Append(editorid.ToString());
行 1564:     templateBuilder.Append("_popup_tools_menu\" style=\"display: none\">\r\n");
行 1565:     templateBuilder.Append("        <ul unselectable=\"on\">\r\n");
行 1566:     templateBuilder.Append("            <li><a id=\"");
行 1567:     templateBuilder.Append(editorid.ToString());
行 1568:     templateBuilder.Append("_cmd_removeformat\" title=\"清除文本格式\">清除文本格式</a></li>\r\n");
行 1569:     templateBuilder.Append("            <li><a id=\"");
行 1570:     templateBuilder.Append(editorid.ToString());
行 1571:     templateBuilder.Append("_cmd_unlink\" title=\"移除链接\">移除链接</a></li>\r\n");
行 1572:     templateBuilder.Append("            <li><a id=\"");
行 1573:     templateBuilder.Append(editorid.ToString());
行 1574:     templateBuilder.Append("_cmd_undo\" title=\"撤销\">撤销</a></li>\r\n");
行 1575:     templateBuilder.Append("            <li><a id=\"");
行 1576:     templateBuilder.Append(editorid.ToString());
行 1577:     templateBuilder.Append("_cmd_redo\" title=\"重做\">重做</a></li>\r\n");
行 1578:     templateBuilder.Append("            <li><a id=\"");
行 1579:     templateBuilder.Append(editorid.ToString());
行 1580:     templateBuilder.Append("_cmd_checklength\" title=\"字数检查\">字数检查</a></li>\r\n");
行 1581:     templateBuilder.Append("            <li><a id=\"");
行 1582:     templateBuilder.Append(editorid.ToString());
行 1583:     templateBuilder.Append("_cmd_clearcontent\" title=\"清空内容\">清空内容</a></li>\r\n");
行 1584:     templateBuilder.Append("            <br />\r\n");
行 1585:     templateBuilder.Append("            <li><a id=\"");
行 1586:     templateBuilder.Append(editorid.ToString());
行 1587:     templateBuilder.Append("_cmd_autosave\" title=\"自动保存\">自动保存<em id=\"autsavet\">(60秒)</em></a></li>\r\n");
行 1588:     templateBuilder.Append("            <li><a id=\"");
行 1589:     templateBuilder.Append(editorid.ToString());
行 1590:     templateBuilder.Append("_cmd_saveData\" title=\"保存数据\">保存数据</a></li>\r\n");
行 1591:     templateBuilder.Append("            <li><a id=\"");
行 1592:     templateBuilder.Append(editorid.ToString());
行 1593:     templateBuilder.Append("_cmd_loadData\" title=\"恢复数据\">恢复数据</a></li>\r\n");
行 1594:     templateBuilder.Append("        </ul>\r\n");
行 1595:     templateBuilder.Append("        </div>\r\n");
行 1596:     templateBuilder.Append("    </div>\r\n");
行 1597:     templateBuilder.Append("</div>\r\n");
行 1598:     templateBuilder.Append("<div class=\"newediter\">\r\n");
行 1599:     templateBuilder.Append("    <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" style=\"table-layoutixed\">\r\n");
行 1600:     templateBuilder.Append("        <tr>\r\n");
行 1601:     templateBuilder.Append("            <td>\r\n");
行 1602:
行 1603:     if (infloat==0)
行 1604:     {
行 1605:
行 1606:     templateBuilder.Append("            <textarea class=\"autosave max\" name=\"message\" id=\"");
行 1607:     templateBuilder.Append(editorid.ToString());
行 1608:     templateBuilder.Append("_textarea\" tabindex=\"1\" class=\"txt\" style=\"height:300px\">");
行 1609:     templateBuilder.Append(message.ToString());
行 1610:     templateBuilder.Append("</textarea>\r\n");
行 1611:
行 1612:     }
行 1613:     else
行 1614:     {
行 1615:
行 1616:     templateBuilder.Append("            <textarea class=\"autosave max\" name=\"message\" id=\"");
行 1617:     templateBuilder.Append(editorid.ToString());
行 1618:     templateBuilder.Append("_textarea\" tabindex=\"1\">");
行 1619:     templateBuilder.Append(message.ToString());
行 1620:     templateBuilder.Append("</textarea>\r\n");
行 1621:
行 1622:     }    //end if
行 1623:
行 1624:     templateBuilder.Append("            </td>\r\n");
行 1625:     templateBuilder.Append("        </tr>\r\n");
行 1626:     templateBuilder.Append("    </table>\r\n");
行 1627:     templateBuilder.Append("</div>\r\n");
行 1628:     templateBuilder.Append("<script type=\"text/javascript\" reload=\"1\" >\r\n");
行 1629:     templateBuilder.Append("var pagescroll = new pagescroll_class('floatlayout_");
行 1630:     templateBuilder.Append(action.ToString());
行 1631:     templateBuilder.Append("', 600, 410);\r\n");
行 1632:
行 1633:     if (infloat==0)
行 1634:     {
行 1635:
行 1636:     templateBuilder.Append("    $('floatlayout_");
行 1637:     templateBuilder.Append(action.ToString());
行 1638:     templateBuilder.Append("').scrollLeft = 600;\r\n");
行 1639:
行 1640:     }    //end if
行 1641:
行 1642:
行 1643:     if (forum.Applytopictype==1 && topictypeselectoptions!=""&&isfirstpost)
行 1644:     {
行 1645:
行 1646:     templateBuilder.Append("    loadselect('typeid', 0, 'floatlayout_");
行 1647:     templateBuilder.Append(action.ToString());
行 1648:     templateBuilder.Append("');\r\n");
行 1649:
行 1650:     }    //end if
行 1651:
行 1652:     templateBuilder.Append("/*\r\n");
行 1653:     templateBuilder.Append("var editorid = '$editorid';\r\n");
行 1654:     templateBuilder.Append("var textobj = $(editorid + '_textarea');\r\n");
行 1655:     templateBuilder.Append("var wysiwyg = (is_ie || is_moz || (is_opera >= 9)) && parseInt('$editormode') == 1 ? 1 : 0;\r\n");
行 1656:     templateBuilder.Append("var allowswitcheditor = parseInt('$allowswitcheditor');\r\n");
行 1657:     templateBuilder.Append("var allowhtml = parseInt('$allowhtml');\r\n");
行 1658:     templateBuilder.Append("var forumallowhtml = parseInt('$forum[allowhtml]');\r\n");
行 1659:     templateBuilder.Append("var allowsmilies = parseInt('$forum[allowsmilies]');\r\n");
行 1660:     templateBuilder.Append("var allowbbcode = parseInt('$forum[allowbbcode]');\r\n");
行 1661:     templateBuilder.Append("var allowimgcode = parseInt('$forum[allowimgcode]');\r\n");
行 1662:     templateBuilder.Append("var allowpostattach = parseInt('$allowpostattach');\r\n");
行 1663:     templateBuilder.Append("var editorcss = 'forumdata/cache/style_{  STYLEID  }_common.css?{  VERHASH  }';\r\n");
行 1664:     templateBuilder.Append("var TABLEBG = '{  WRAPBG  }';\r\n");
行 1665:     templateBuilder.Append("var uid = parseInt('$discuz_uid');\r\n");
行 1666:     templateBuilder.Append("*/\r\n");
行 1667:     templateBuilder.Append("var editorid = '");
行 1668:     templateBuilder.Append(editorid.ToString());
行 1669:     templateBuilder.Append("';\r\n");
行 1670:     templateBuilder.Append("var textobj = $(editorid + '_textarea');\r\n");
行 1671:     templateBuilder.Append("var TABLEBG = '#FFF';//'{  WRAPBG  }';\r\n");
行 1672:     templateBuilder.Append("var uid = parseInt('");
行 1673:     templateBuilder.Append(userid.ToString());
行 1674:     templateBuilder.Append("');\r\n");
行 1675:     templateBuilder.Append("var special = parseInt('0');\r\n");
行 1676:     templateBuilder.Append("var charset = 'utf-8';\r\n");
行 1677:     templateBuilder.Append("var thumbwidth = parseInt(400);\r\n");
行 1678:     templateBuilder.Append("var thumbheight = parseInt(300);\r\n");
行 1679:     templateBuilder.Append("var extensions = '';\r\n");
行 1680:     templateBuilder.Append("var fontoptions = new Array(\"仿宋_GB2312\", \"黑体\", \"楷体_GB2312\", \"宋体\", \"新宋体\", \"微软雅黑\", \"Trebuchet MS\", \"Tahoma\", \"Arial\", \"Impact\", \"Verdana\", \"Times New Roman\");\r\n");
行 1681:     templateBuilder.Append("</");
行 1682:     templateBuilder.Append("script>\r\n");
行 1683:     templateBuilder.Append("<script type=\"text/javascript\" reload=\"1\" >\r\n");
行 1684:     templateBuilder.Append("function messagehandle_");
行 1685:     templateBuilder.Append(action.ToString());
行 1686:     templateBuilder.Append("(key) {\r\n");
行 1687:     templateBuilder.Append("    if(!Editorwin) {\r\n");
行 1688:     templateBuilder.Append("        $('floatlayout_");
行 1689:     templateBuilder.Append(action.ToString());
行 1690:     templateBuilder.Append("').scrollTop = 0;\r\n");
行 1691:
行 1692:     if (!adveditor)
行 1693:     {
行 1694:
行 1695:     templateBuilder.Append("            $('more_1').style.display='none';pagescroll.up(1, '$(\\'more_2\\').style.display=\\'\\';$(\\'custominfoarea\\').style.display=\\'\\'');\r\n");
行 1696:
行 1697:     }
行 1698:     else
行 1699:     {
行 1700:
行 1701:     templateBuilder.Append("            $('custominfoarea').style.display=$('more_2').style.display='none';pagescroll.up(1, '$(\\'more_1\\').style.display=\\'\\'');\r\n");
行 1702:
行 1703:     }    //end if
行 1704:
行 1705:     templateBuilder.Append("    }\r\n");
行 1706:     templateBuilder.Append("}\r\n");
行 1707:     templateBuilder.Append("function messagehandle() {\r\n");
行 1708:     templateBuilder.Append("    messagehandle_");
行 1709:     templateBuilder.Append(action.ToString());
行 1710:     templateBuilder.Append("();\r\n");
行 1711:     templateBuilder.Append("}\r\n");
行 1712:     templateBuilder.Append("function submithandle_");
行 1713:     templateBuilder.Append(action.ToString());
行 1714:     templateBuilder.Append("(locationhref, message) {\r\n");
行 1715:
行 1716:     if (action=="edit" || action=="reply")
行 1717:     {
行 1718:
行 1719:     templateBuilder.Append("        try {\r\n");
行 1720:     templateBuilder.Append("            var pid = locationhref.lastIndexOf('#pid');\r\n");
行 1721:     templateBuilder.Append("            if(pid != -1) {\r\n");
行 1722:     templateBuilder.Append("                pid = locationhref.substr(pid + 4);\r\n");
行 1723:
行 1724:     if (action=="edit")
行 1725:     {
行 1726:
行 1727:     templateBuilder.Append("                    if(pid) {\r\n");
行 1728:     templateBuilder.Append("                        ajaxget('viewthread.php?tid=$tid&viewpid=' + pid, 'post_' + pid, 'ajaxwaitid');\r\n");
行 1729:     templateBuilder.Append("                    } else {\r\n");
行 1730:     templateBuilder.Append("                        ajaxget('viewthread.php?tid=$tid&viewpid=$pid', 'post_$pid', 'ajaxwaitid');\r\n");
行 1731:     templateBuilder.Append("                    }\r\n");
行 1732:     templateBuilder.Append("                    $('postform').editsubmit.disabled = false;\r\n");
行 1733:
行 1734:     }
行 1735:     else if (action=="reply")
行 1736:     {
行 1737:
行 1738:     templateBuilder.Append("                    ajaxget('viewthread.php?tid=$tid&viewpid=' + pid, 'post_new', 'ajaxwaitid', '', null, 'appendreply()');\r\n");
行 1739:     templateBuilder.Append("                    if(replyreload) {\r\n");
行 1740:     templateBuilder.Append("                        var reloadpids = replyreload.split(',');\r\n");
行 1741:     templateBuilder.Append("                        for(i = 1;i < reloadpids.length;i++) {\r\n");
行 1742:     templateBuilder.Append("                            ajaxget('viewthread.php?tid=$tid&viewpid=' + reloadpids, 'post_' + reloadpids);\r\n");
行 1743:     templateBuilder.Append("                        }\r\n");
行 1744:     templateBuilder.Append("                    }\r\n");
行 1745:
行 1746:     }    //end if
行 1747:
行 1748:     templateBuilder.Append("            } else {\r\n");
行 1749:     templateBuilder.Append("                location.href = locationhref;\r\n");
行 1750:     templateBuilder.Append("            }\r\n");
行 1751:     templateBuilder.Append("        } catch(e) {\r\n");
行 1752:     templateBuilder.Append("            location.href = locationhref;\r\n");
行 1753:     templateBuilder.Append("        }\r\n");
行 1754:
行 1755:     }
行 1756:     else if (action=="newthread'")
行 1757:     {
行 1758:
行 1759:     templateBuilder.Append("        var hastid = locationhref.lastIndexOf('tid=');\r\n");
行 1760:     templateBuilder.Append("        if(hastid == -1) {\r\n");
行 1761:     templateBuilder.Append("            dnotice(message, \"location.href='\" + locationhref + \"'\", 390, 130);\r\n");
行 1762:     templateBuilder.Append("        } else {\r\n");
行 1763:     templateBuilder.Append("            location.href = locationhref;\r\n");
行 1764:     templateBuilder.Append("        }\r\n");
行 1765:
行 1766:     }    //end if
行 1767:
行 1768:     templateBuilder.Append("    floatwinreset = 1;\r\n");
行 1769:     templateBuilder.Append("    closeEditorwin();\r\n");
行 1770:     templateBuilder.Append("}\r\n");
行 1771:     templateBuilder.Append("function cedit() {\r\n");
行 1772:     templateBuilder.Append("    try {\r\n");
行 1773:     templateBuilder.Append("        loadData(1);\r\n");
行 1774:     templateBuilder.Append("    } catch(e) {\r\n");
行 1775:     templateBuilder.Append("        setTimeout('cedit()', 1000);\r\n");
行 1776:     templateBuilder.Append("    }\r\n");
行 1777:     templateBuilder.Append("}\r\n");
行 1778:     templateBuilder.Append("function openEditor() {\r\n");
行 1779:     templateBuilder.Append("    try {\r\n");
行 1780:
行 1781:     if (action=="reply" && message=="")
行 1782:     {
行 1783:
行 1784:
行 1785:     }    //end if
行 1786:
行 1787:
行 1788:     if (action=="edit" || action=="reply"&&DNTRequest.GetString("quote")=="yes")
行 1789:     {
行 1790:
行 1791:     templateBuilder.Append("        if(wysiwyg) {\r\n");
行 1792:     templateBuilder.Append("            initialized = false;\r\n");
行 1793:     templateBuilder.Append("            //newEditor(1);\r\n");
行 1794:     templateBuilder.Append("            ///textobj.value = bbcode2html(textobj.value);\r\n");
行 1795:     templateBuilder.Append("            newEditor(1, bbcode2html(textobj.value));\r\n");
行 1796:     templateBuilder.Append("        } else {\r\n");
行 1797:     templateBuilder.Append("            newEditor(0);\r\n");
行 1798:     templateBuilder.Append("        }\r\n");
行 1799:     templateBuilder.Append("        setCaretAtEnd();\r\n");
行 1800:
行 1801:     }
行 1802:     else
行 1803:     {
行 1804:
行 1805:     templateBuilder.Append("        newEditor(wysiwyg);\r\n");
行 1806:     templateBuilder.Append("        if(editbox) {\r\n");
行 1807:     templateBuilder.Append("            editbox.className = 'autosave max';\r\n");
行 1808:     templateBuilder.Append("        }\r\n");
行 1809:
行 1810:     }    //end if
行 1811:
行 1812:     templateBuilder.Append("    } catch(e) {\r\n");
行 1813:     templateBuilder.Append("        setTimeout('openEditor()', 100);\r\n");
行 1814:     templateBuilder.Append("        return;\r\n");
行 1815:     templateBuilder.Append("    }\r\n");
行 1816:     templateBuilder.Append("    if(!$('floatlayout_");
行 1817:     templateBuilder.Append(action.ToString());
行 1818:     templateBuilder.Append("').scrollLeft) {\r\n");
行 1819:     templateBuilder.Append("        $('floatlayout_");
行 1820:     templateBuilder.Append(action.ToString());
行 1821:     templateBuilder.Append("').scrollLeft = 600;\r\n");
行 1822:     templateBuilder.Append("    }\r\n");
行 1823:     templateBuilder.Append("    // 需要开启tools\r\n");
行 1824:     templateBuilder.Append("    if(!getcookie('disableautosave')) {\r\n");
行 1825:     templateBuilder.Append("        clearInterval(autosaveDatai);\r\n");
行 1826:     templateBuilder.Append("        autosaveData(1);\r\n");
行 1827:     templateBuilder.Append("    }\r\n");
行 1828:     templateBuilder.Append("    if(is_ie >= 5 || is_moz >= 2) {\r\n");
行 1829:     templateBuilder.Append("        window.onbeforeunload = function () {\r\n");
行 1830:     templateBuilder.Append("            try {\r\n");
行 1831:     templateBuilder.Append("                saveData(wysiwyg ? editdoc.body.innerHTML : textobj.value);\r\n");
行 1832:     templateBuilder.Append("            } catch(e) {}\r\n");
行 1833:     templateBuilder.Append("        };\r\n");
行 1834:     templateBuilder.Append("    }\r\n");
行 1835:     templateBuilder.Append("}\r\n");
行 1836:     templateBuilder.Append("//openEditor();\r\n");
行 1837:     templateBuilder.Append("    /*\r\n");
行 1838:     templateBuilder.Append("    $(editorid + '_contract').onclick = function() { resizeEditor(-100) };\r\n");
行 1839:     templateBuilder.Append("    $(editorid + '_expand').onclick = function() { resizeEditor(100) };\r\n");
行 1840:     templateBuilder.Append("    $('checklength').onclick = function() { checklength($('postform')) };\r\n");
行 1841:     templateBuilder.Append("    $('previewbutton').onclick = function() { previewpost() };\r\n");
行 1842:     templateBuilder.Append("    $('clearcontent').onclick = function() { clearcontent() };\r\n");
行 1843:     templateBuilder.Append("    $('restoredata').onclick = function() { loadData() };\r\n");
行 1844:     templateBuilder.Append("    if ($('batchupload'))\r\n");
行 1845:     templateBuilder.Append("    {\r\n");
行 1846:     templateBuilder.Append("        $('batchupload').onclick = function() { BOX_show('silverlightControlHost'); LoadSilverlight('MultiUploadFile', num2upload); };\r\n");
行 1847:     templateBuilder.Append("    }\r\n");
行 1848:     templateBuilder.Append("    $('postform').onsubmit = function() { return validate(this); };\r\n");
行 1849:     templateBuilder.Append("    try{ $('title').focus(); }catch(e){ }\r\n");
行 1850:     templateBuilder.Append("    */\r\n");
行 1851:     templateBuilder.Append("</");
行 1852:     templateBuilder.Append("script>\r\n");
行 1853:     templateBuilder.Append("<script type=\"text/javascript\" src=\"");
行 1854:     templateBuilder.Append(rooturl.ToString());
行 1855:     templateBuilder.Append("javascript/post.js\" reload=\"1\" ></");
行 1856:     templateBuilder.Append("script>\r\n");
行 1857:     templateBuilder.Append("<script type=\"text/javascript\" src=\"");
行 1858:     templateBuilder.Append(rooturl.ToString());
行 1859:     templateBuilder.Append("javascript/editor.js\" reload=\"1\" ></");
行 1860:     templateBuilder.Append("script>\r\n");
行 1861:     templateBuilder.Append("<script type=\"text/javascript\" src=\"");
行 1862:     templateBuilder.Append(rooturl.ToString());
行 1863:     templateBuilder.Append("javascript/post_editor.js\" reload=\"1\" ></");
行 1864:     templateBuilder.Append("script>\r\n");
行 1865:     templateBuilder.Append("<!--{if $forum['allowmediacode']}-->\r\n");
行 1866:     templateBuilder.Append("<div class=\"popupmenu_popup\" id=\"");
行 1867:     templateBuilder.Append(editorid.ToString());
行 1868:     templateBuilder.Append("_popup_media_menu\" style=\"width: 280px;display: none\" unselectable=\"on\">\r\n");
行 1869:     templateBuilder.Append("<input type=\"hidden\" id=\"");
行 1870:     templateBuilder.Append(editorid.ToString());
行 1871:     templateBuilder.Append("_mediatype\" value=\"ra\">\r\n");
行 1872:     templateBuilder.Append("<table cellpadding=\"4\" cellspacing=\"0\" border=\"0\">\r\n");
行 1873:     templateBuilder.Append("    <tr class=\"popupmenu_option\">\r\n");
行 1874:     templateBuilder.Append("        <td nowrap>\r\n");
行 1875:     templateBuilder.Append("            请输入在线视频的地址:<br />\r\n");
行 1876:     templateBuilder.Append("            <input id=\"");
行 1877:     templateBuilder.Append(editorid.ToString());
行 1878:     templateBuilder.Append("_mediaurl\" style=\"width: 98%\" value=\"\" onkeyup=\"setmediatype('");
行 1879:     templateBuilder.Append(editorid.ToString());
行 1880:     templateBuilder.Append("')\" class=\"txt\" />\r\n");
行 1881:     templateBuilder.Append("        </td>\r\n");
行 1882:     templateBuilder.Append("    </tr>\r\n");
行 1883:     templateBuilder.Append("    <tr class=\"popupmenu_option\">\r\n");
行 1884:     templateBuilder.Append("        <td nowrap>\r\n");
行 1885:     templateBuilder.Append("            <label style=\"float: left; width: 32%\"><input type=\"radio\" name=\"");
行 1886:     templateBuilder.Append(editorid.ToString());
行 1887:     templateBuilder.Append("_mediatyperadio\" id=\"");
行 1888:     templateBuilder.Append(editorid.ToString());
行 1889:     templateBuilder.Append("_mediatyperadio_ra\" onclick=\"$('");
行 1890:     templateBuilder.Append(editorid.ToString());
行 1891:     templateBuilder.Append("_mediatype').value = 'ra'\" checked=\"checked\">RA</label>\r\n");
行 1892:     templateBuilder.Append("            <label style=\"float: left; width: 32%\"><input type=\"radio\" name=\"");
行 1893:     templateBuilder.Append(editorid.ToString());
行 1894:     templateBuilder.Append("_mediatyperadio\" id=\"");
行 1895:     templateBuilder.Append(editorid.ToString());
行 1896:     templateBuilder.Append("_mediatyperadio_wma\" onclick=\"$('");
行 1897:     templateBuilder.Append(editorid.ToString());
行 1898:     templateBuilder.Append("_mediatype').value = 'wma'\">WMA</label>\r\n");
行 1899:     templateBuilder.Append("            <label style=\"float: left; width: 32%\"><input type=\"radio\" name=\"");
行 1900:     templateBuilder.Append(editorid.ToString());
行 1901:     templateBuilder.Append("_mediatyperadio\" id=\"");
行 1902:     templateBuilder.Append(editorid.ToString());
行 1903:     templateBuilder.Append("_mediatyperadio_mp3\" onclick=\"$('");
行 1904:     templateBuilder.Append(editorid.ToString());
行 1905:     templateBuilder.Append("_mediatype').value = 'mp3'\">MP3</label>\r\n");
行 1906:     templateBuilder.Append("            <label style=\"float: left; width: 32%\"><input type=\"radio\" name=\"");
行 1907:     templateBuilder.Append(editorid.ToString());
行 1908:     templateBuilder.Append("_mediatyperadio\" id=\"");
行 1909:     templateBuilder.Append(editorid.ToString());
行 1910:     templateBuilder.Append("_mediatyperadio_rm\" onclick=\"$('");
行 1911:     templateBuilder.Append(editorid.ToString());
行 1912:     templateBuilder.Append("_mediatype').value = 'rm'\">RM/RMVB</label>\r\n");
行 1913:     templateBuilder.Append("            <label style=\"float: left; width: 32%\"><input type=\"radio\" name=\"");
行 1914:     templateBuilder.Append(editorid.ToString());
行 1915:     templateBuilder.Append("_mediatyperadio\" id=\"");
行 1916:     templateBuilder.Append(editorid.ToString());
行 1917:     templateBuilder.Append("_mediatyperadio_wmv\" onclick=\"$('");
行 1918:     templateBuilder.Append(editorid.ToString());
行 1919:     templateBuilder.Append("_mediatype').value = 'wmv'\">WMV</label>\r\n");
行 1920:     templateBuilder.Append("            <label style=\"float: left; width: 32%\"><input type=\"radio\" name=\"");
行 1921:     templateBuilder.Append(editorid.ToString());
行 1922:     templateBuilder.Append("_mediatyperadio\" id=\"");
行 1923:     templateBuilder.Append(editorid.ToString());
行 1924:     templateBuilder.Append("_mediatyperadio_mov\" onclick=\"$('");
行 1925:     templateBuilder.Append(editorid.ToString());
行 1926:     templateBuilder.Append("_mediatype').value = 'mov'\">MOV</label>\r\n");
行 1927:     templateBuilder.Append("        </td>\r\n");
行 1928:     templateBuilder.Append("    </tr>\r\n");
行 1929:     templateBuilder.Append("    <tr class=\"popupmenu_option\">\r\n");
行 1930:     templateBuilder.Append("        <td nowrap>\r\n");
行 1931:     templateBuilder.Append("            <label style=\"float: left; width: 32%\">宽度: <input id=\"");
行 1932:     templateBuilder.Append(editorid.ToString());
行 1933:     templateBuilder.Append("_mediawidth\" size=\"5\" value=\"400\" class=\"txt\" /></label>\r\n");
行 1934:     templateBuilder.Append("            <label style=\"float: left; width: 32%\">高度: <input id=\"");
行 1935:     templateBuilder.Append(editorid.ToString());
行 1936:     templateBuilder.Append("_mediaheight\" size=\"5\" value=\"300\"  class=\"txt\"/></label>\r\n");
行 1937:     templateBuilder.Append("        </td>\r\n");
行 1938:     templateBuilder.Append("    </tr>\r\n");
行 1939:     templateBuilder.Append("    <tr class=\"popupmenu_option\">\r\n");
行 1940:     templateBuilder.Append("        <td align=\"center\" colspan=\"2\"><input type=\"button\" value=\"提交\" onclick=\"setmediacode('");
行 1941:     templateBuilder.Append(editorid.ToString());
行 1942:     templateBuilder.Append("')\"> &nbsp; <input type=\"button\" onclick=\"hideMenu()\" value=\"取消\" /></td>\r\n");
行 1943:     templateBuilder.Append("    </tr>\r\n");
行 1944:     templateBuilder.Append("</table>\r\n");
行 1945:     templateBuilder.Append("</div>\r\n");
行 1946:     templateBuilder.Append("<!--{/if}-->\r\n");
行 1947:     templateBuilder.Append("<!--{if $_DCACHE['bbcodes_display']['img']}-->\r\n");
行 1948:     templateBuilder.Append("<div class=\"popupmenu_popup\" id=\"");
行 1949:     templateBuilder.Append(editorid.ToString());
行 1950:     templateBuilder.Append("_cmd_insertimage_menu\" style=\"display: none\" unselectable=\"on\">\r\n");
行 1951:     templateBuilder.Append("        请输入图片地址:<br /><input id=\"");
行 1952:     templateBuilder.Append(editorid.ToString());
行 1953:     templateBuilder.Append("_cmd_insertimage_param_url\" style=\"width: 300px;\" value=\"\" class=\"txt\" type=\"text\" onkeydown=\"editorMenuEvent_onkeydown(this);\" />\r\n");
行 1954:     templateBuilder.Append("        <br /><center><input id=\"");
行 1955:     templateBuilder.Append(editorid.ToString());
行 1956:     templateBuilder.Append("_cmd_insertimage_submit\" value=\"提交\" type=\"button\" onclick=\"insertimagesubmit()\" /> &nbsp; <input onclick=\"hideMenu();\" value=\"取消\" type=\"button\" /></center>\r\n");
行 1957:     templateBuilder.Append("</div>\r\n");
行 1958:     templateBuilder.Append("<!--{/if}-->\r\n");
行 1959:
行 1960:
行 1961:     templateBuilder.Append("        </div>\r\n");
行 1962:
行 1963:     if (canpostattach)
行 1964:     {
行 1965:
行 1966:
行 1967:
行 1968:     if (attachsize>0)
行 1969:     {
行 1970:
行 1971:
行 1972:     if (attachextensions!="")
行 1973:     {
行 1974:
行 1975:     templateBuilder.Append("<script type=\"text/javascript\" src=\"");
行 1976:     templateBuilder.Append(rooturl.ToString());
行 1977:     templateBuilder.Append("javascript/template_attach.js\" reload=\"1\"></");
行 1978:     templateBuilder.Append("script>\r\n");
行 1979:
行 1980:     if (pagename.IndexOf("goods")<0 && config.Silverlight==1)
行 1981:     {
行 1982:
行 1983:     templateBuilder.Append("<script type=\"text/javascript\" src=\"");
行 1984:     templateBuilder.Append(rooturl.ToString());
行 1985:     templateBuilder.Append("silverlight/uploadfile/silverlight.js\" reload=\"1\"></");
行 1986:     templateBuilder.Append("script>\r\n");
行 1987:     templateBuilder.Append("<script type=\"text/javascript\" reload=\"1\">\r\n");
行 1988:     templateBuilder.Append("function LoadSilverlight(pluginID, max) {\r\n");
行 1989:     templateBuilder.Append("     Silverlight.createObject(\r\n");
行 1990:     templateBuilder.Append("         \"");
行 1991:     templateBuilder.Append(rooturl.ToString());
行 1992:     templateBuilder.Append("silverlight/UploadFile/ClientBin/MultiFileUpload.xap\", \r\n");
行 1993:     templateBuilder.Append("         $(\"swfbox\"),         \r\n");
行 1994:     templateBuilder.Append("         pluginID,                         \r\n");
行 1995:     templateBuilder.Append("         {     \r\n");
行 1996:     templateBuilder.Append("             width: '500',\r\n");
行 1997:     templateBuilder.Append("             height: '450',\r\n");
行 1998:     templateBuilder.Append("             inplaceInstallPrompt: 'true',\r\n");
行 1999:     templateBuilder.Append("             isWindowless: 'false',\r\n");
行 2000:     templateBuilder.Append("             background: 'aliceblue',\r\n");
行 2001:     templateBuilder.Append("             version: '2.0',\r\n");
行 2002:     templateBuilder.Append("             autoUpgrade: 'true'\r\n");
行 2003:     templateBuilder.Append("         },\r\n");
行 2004:     templateBuilder.Append("         {\r\n");
行 2005:     templateBuilder.Append("             onLoad: onLoad, \r\n");
行 2006:     templateBuilder.Append("             onError: onSilverlightError\r\n");
行 2007:     templateBuilder.Append("         },\r\n");
行 2008:
行 2009:              string authToken = Discuz.Common.DES.Encode(oluserinfo.Olid.ToString() + "," + oluserinfo.Username.ToString(), oluserinfo.Password.Substring(0, 10)).Replace("+", "[");
行 2010:             
行 2011:     templateBuilder.Append("         \"forumid=");
行 2012:     templateBuilder.Append(forumid.ToString());
行 2013:     templateBuilder.Append(",authToken=");
行 2014:     templateBuilder.Append(authToken.ToString());
行 2015:     templateBuilder.Append(",max=\" + max,\r\n");
行 2016:     templateBuilder.Append("         \"\");\r\n");
行 2017:     templateBuilder.Append("}\r\n");
行 2018:     templateBuilder.Append("    </");
行 2019:     templateBuilder.Append("script>    \r\n");
行 2020:     templateBuilder.Append("<!--Silverlight 批量上传 End-->   \r\n");
行 2021:
行 2022:     }    //end if
行 2023:
行 2024:     templateBuilder.Append("        <div class=\"popupmenu_popup\" id=\"imgpreview_menu\" style=\"position:absolute;width:180px;height:150px;padding:0px;display: none;\"></div>\r\n");
行 2025:     templateBuilder.Append("        <div class=\"post_tablelist postbox\" id=\"attachlist\" style=\"display: none\">\r\n");
行 2026:     templateBuilder.Append("                <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n");
行 2027:     templateBuilder.Append("                    <tr>\r\n");
行 2028:     templateBuilder.Append("                        <td class=\"attachnum\"></td>\r\n");
行 2029:     templateBuilder.Append("                        <td class=\"attachctrl\"></td>\r\n");
行 2030:     templateBuilder.Append("                        <td class=\"attachname\">文件名</td>\r\n");
行 2031:
行 2032:     if (userid!=-1 && usergroupinfo.Allowsetattachperm==1)
行 2033:     {
行 2034:
行 2035:     templateBuilder.Append("<td class=\"attachview\">阅读权限</td>\r\n");
行 2036:
行 2037:     }    //end if
行 2038:
行 2039:
行 2040:     if (topicattachscorefield>0 && usergroupinfo.Maxprice>0)
行 2041:     {
行 2042:
行 2043:     templateBuilder.Append("<td class=\"attachpr\">");
行 2044:     templateBuilder.Append(Scoresets.GetTopicAttachCreditsTransName().ToString().Trim());
行 2045:     templateBuilder.Append("</td>\r\n");
行 2046:
行 2047:     }    //end if
行 2048:
行 2049:
行 2050:     if (config.Enablealbum==1 && caninsertalbum)
行 2051:     {
行 2052:
行 2053:     templateBuilder.Append("<td>选择相册</td>\r\n");
行 2054:
行 2055:     }    //end if
行 2056:
行 2057:     templateBuilder.Append("                        <td class=\"attachdel\"></td>\r\n");
行 2058:     templateBuilder.Append("                    </tr>\r\n");
行 2059:     templateBuilder.Append("                </table>\r\n");
行 2060:
行 2061:     if (infloat==0)
行 2062:     {
行 2063:
行 2064:     templateBuilder.Append("                <div id=\"uploadlist\" class=\"upfilelist\" style=\"height:auto\">\r\n");
行 2065:
行 2066:     }
行 2067:     else
行 2068:     {
行 2069:
行 2070:     templateBuilder.Append("                <div id=\"uploadlist\" class=\"upfilelist\">\r\n");
行 2071:
行 2072:     }    //end if
行 2073:
行 2074:
行 2075:     if (action=="edit")
行 2076:     {
行 2077:
行 2078:
行 2079:
行 2080:     if (canpostattach && postinfo.Attachment>0)
行 2081:     {
行 2082:
行 2083:     templateBuilder.Append("    <table summary=\"附件\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\r\n");
行 2084:
行 2085:     int attachment__loop__id=0;
行 2086:     foreach(DataRow attachment in attachmentlist.Rows)
行 2087:     {
行 2088:         attachment__loop__id++;
行 2089:
行 2090:
行 2091:     if (Utils.StrToInt(attachment["pid"].ToString().Trim(), 0)==postinfo.Pid)
行 2092:     {
行 2093:
行 2094:     templateBuilder.Append("        <script type=\"text/javascript\" reload=\"1\">try{ $(\"num2upload\").innerHTML=--num2upload; }catch(e) { setTimeout('$(\\'num2upload\\').innerHTML=--num2upload;', 1000); }</");
行 2095:     templateBuilder.Append("script>\r\n");
行 2096:     templateBuilder.Append("        <tbody id=\"attach_" + attachment["aid"].ToString().Trim() + "\">\r\n");
行 2097:     templateBuilder.Append("            <tr>\r\n");
行 2098:     templateBuilder.Append("                <td class=\"attachnum\"><img src=\"images/attachicons/common.gif\" /></td>\r\n");
行 2099:     templateBuilder.Append("                <td class=\"attachctrl\">\r\n");
行 2100:     templateBuilder.Append("                        <a href=\"javascript:;\"\r\n");
行 2101:
行 2102:     if (attachment["filetype"].ToString().Trim().IndexOf("image")>-1)
行 2103:     {
行 2104:
行 2105:     templateBuilder.Append(" onmouseover=\"showpreview(this, 'imgpreview_" + attachment["aid"].ToString().Trim() + "')\"\r\n");
行 2106:
行 2107:     }    //end if
行 2108:
行 2109:     templateBuilder.Append(" onclick=\"\r\n");
行 2110:
行 2111:     if (attachment["filetype"].ToString().Trim().IndexOf("image")>-1)
行 2112:     {
行 2113:
行 2114:     templateBuilder.Append("insertAttachimgTag('" + attachment["aid"].ToString().Trim() + "');\r\n");
行 2115:
行 2116:     }
行 2117:     else
行 2118:     {
行 2119:
行 2120:     templateBuilder.Append("insertAttachTag('" + attachment["aid"].ToString().Trim() + "');\r\n");
行 2121:
行 2122:     }    //end if
行 2123:
行 2124:     templateBuilder.Append("\" title=\"点击这里将本附件插入帖子内容中当前光标的位置\">插入</a>\r\n");
行 2125:     templateBuilder.Append("                        <script type=\"text/javascript\" reload=\"1\">var attachimgurl_" + attachment["aid"].ToString().Trim() + " = ['attachment.aspx?attachmentid=" + attachment["aid"].ToString().Trim() + "', 400];</");
行 2126:     templateBuilder.Append("script>\r\n");
行 2127:     templateBuilder.Append("                        <input type=\"hidden\" value=\"" + attachment["aid"].ToString().Trim() + "\" name=\"attachupdateid\" />\r\n");
行 2128:     templateBuilder.Append("                </td>\r\n");
行 2129:     templateBuilder.Append("                <td class=\"attachname\" title=\"" + attachment["filename"].ToString().Trim() + "  " + attachment["postdatetime"].ToString().Trim() + "  " + attachment["filesize"].ToString().Trim() + " 字节  下载" + attachment["downloads"].ToString().Trim() + "次\">\r\n");
行 2130:     templateBuilder.Append("                    <a href=\"javascript:;\" class=\"right\" onclick=\"attachupdate('" + attachment["aid"].ToString().Trim() + "', this)\">更新</a>\r\n");
行 2131:     templateBuilder.Append("                    <div id=\"attach" + attachment["aid"].ToString().Trim() + "\">\r\n");
行 2132:     templateBuilder.Append("                        <p>\r\n");
行 2133:     templateBuilder.Append("                            <input type=\"hidden\" name=\"attachupdatedesc\" value=\"" + attachment["description"].ToString().Trim() + "\"  />\r\n");
行 2134:     templateBuilder.Append("                            <a href=\"javascript:;\" onclick=\"parentNode.innerHTML='<input type=\\'text\\' name=\\'attachupdatedesc\\' value=\\'" + attachment["description"].ToString().Trim() + "\\' size=\\'25\\' class=\\'txt\\' />'\">描述</a>\r\n");
行 2135:     templateBuilder.Append("                            <span\r\n");
行 2136:
行 2137:     if (attachment["filetype"].ToString().Trim().IndexOf("image")>-1)
行 2138:     {
行 2139:
行 2140:     templateBuilder.Append(" onmouseover=\"showpreview(this, 'imgpreview_" + attachment["aid"].ToString().Trim() + "');\"\r\n");
行 2141:
行 2142:     }    //end if
行 2143:
行 2144:     templateBuilder.Append(">" + attachment["attachment"].ToString().Trim() + "</span>\r\n");
行 2145:     templateBuilder.Append("                        </p>\r\n");
行 2146:
行 2147:     if (attachment["filetype"].ToString().Trim().IndexOf("image")>-1)
行 2148:     {
行 2149:
行 2150:     templateBuilder.Append("                            <div id=\"imgpreview_" + attachment["aid"].ToString().Trim() + "\" style=\"display: none; \"><img id=\"preview_" + attachment["aid"].ToString().Trim() + "\" style=\" max-width: 200px; max-height: 200px\" src=\"attachment.aspx?attachmentid=" + attachment["aid"].ToString().Trim() + "\" onerror=\"this.onerror=null;try{  this.src=attachimgurl_" + attachment["aid"].ToString().Trim() + "; } catch(e){}\" /></div>\r\n");
行 2151:
行 2152:     }    //end if
行 2153:
行 2154:     templateBuilder.Append("                    </div>\r\n");
行 2155:     templateBuilder.Append("                    <span id=\"attachupdate" + attachment["aid"].ToString().Trim() + "\"></span>\r\n");
行 2156:     templateBuilder.Append("                </td>\r\n");
行 2157:
行 2158:     if (userid!=-1 && usergroupinfo.Allowsetattachperm==1)
行 2159:     {
行 2160:
行 2161:     templateBuilder.Append("<td class=\"attachview\"><input name=\"attachupdatereadperm\" value=\"" + attachment["readperm"].ToString().Trim() + "\" size=\"1\" class=\"txt\" /></td>\r\n");
行 2162:
行 2163:     }    //end if
行 2164:
行 2165:
行 2166:     if (topicattachscorefield>0 && usergroupinfo.Maxprice>0)
行 2167:     {
行 2168:
行 2169:     templateBuilder.Append("<td class=\"attachpr\"><input name=\"attachupdateprice\" value=\"" + attachment["attachprice"].ToString().Trim() + "\" size=\"1\" class=\"txt\" /></td>\r\n");
行 2170:
行 2171:     }    //end if
行 2172:
行 2173:     templateBuilder.Append("                <td class=\"attachdel\"><input class=\"checkbox\" name=\"deleteaid\" value=\"" + attachment["aid"].ToString().Trim() + "\" type=\"checkbox\">删?</td>\r\n");
行 2174:     templateBuilder.Append("            </tr>\r\n");
行 2175:     templateBuilder.Append("            </tbody>\r\n");
行 2176:
行 2177:     }    //end if
行 2178:
行 2179:
行 2180:     }    //end loop
行 2181:
行 2182:     templateBuilder.Append("    </table>\r\n");
行 2183:
行 2184:     }    //end if
行 2185:
行 2186:
行 2187:
行 2188:
行 2189:     }    //end if
行 2190:
行 2191:     templateBuilder.Append("                <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n");
行 2192:
行 2193:     if (pagename.IndexOf("goods")<0 && config.Silverlight==1)
行 2194:     {
行 2195:
行 2196:     templateBuilder.Append("                    <tbody id=\"attachuploadedhidden\" style=\"display:none\"><tr>\r\n");
行 2197:     templateBuilder.Append("                        <td class=\"attachnum\"><span id=\"sl_localno[]\"><img src=\"");
行 2198:     templateBuilder.Append(rooturl.ToString());
行 2199:     templateBuilder.Append("images/attachicons/common_new.gif\" /></span></td>\r\n");
行 2200:     templateBuilder.Append("                        <td class=\"attachctrl\"><span id=\"sl_cpadd[]\"></span></td>\r\n");
行 2201:     templateBuilder.Append("                        <td class=\"attachname\">\r\n");
行 2202:     templateBuilder.Append("                            <span id=\"sl_deschidden[]\" style=\"display:none\">\r\n");
行 2203:     templateBuilder.Append("                                <a href=\"javascript:;\" onclick='parentNode.innerHTML=\"<input type=\\\"text\\\" name=\\\"attachdesc\\\" size=\\\"25\\\" class=\\\"txt\\\" />\"'>描述</a>\r\n");
行 2204:     templateBuilder.Append("                                <span id=\"attachfile[]\"></span>\r\n");
行 2205:     templateBuilder.Append("                                <input type=\"text\" name=\"sl_attachdesc\" style=\"display:none\" />\r\n");
行 2206:     templateBuilder.Append("                            </span>\r\n");
行 2207:     templateBuilder.Append("                            <input type=\"hidden\" name=\"attachid\" />\r\n");
行 2208:     templateBuilder.Append("                        </td>\r\n");
行 2209:
行 2210:     if (userid!=-1 && usergroupinfo.Allowsetattachperm==1)
行 2211:     {
行 2212:
行 2213:     templateBuilder.Append("<td class=\"attachview\"><input type=\"text\" name=\"sl_readperm\" value=\"0\"size=\"1\" class=\"txt\" /></td>\r\n");
行 2214:
行 2215:     }    //end if
行 2216:
行 2217:
行 2218:     if (topicattachscorefield>0 && usergroupinfo.Maxprice>0)
行 2219:     {
行 2220:
行 2221:     templateBuilder.Append("<td class=\"attachpr\"><input type=\"text\" name=\"sl_attachprice\" value=\"0\" size=\"1\" class=\"txt\" /></td>\r\n");
行 2222:
行 2223:     }    //end if
行 2224:
行 2225:
行 2226:     if (config.Enablealbum==1 && caninsertalbum)
行 2227:     {
行 2228:
行 2229:     templateBuilder.Append("                            <td  style=\"vertical-align:top;\">\r\n");
行 2230:     templateBuilder.Append("                                <select name=\"albums\" style=\"display:none\">\r\n");
行 2231:     templateBuilder.Append("                                <option value=\"0\"></option>\r\n");
行 2232:
行 2233:     int album__loop__id=0;
行 2234:     foreach(DataRow album in albumlist.Rows)
行 2235:     {
行 2236:         album__loop__id++;
行 2237:
行 2238:     templateBuilder.Append("                                <option value=\"" + album["albumid"].ToString().Trim() + "\">" + album["title"].ToString().Trim() + "</option>\r\n");
行 2239:
行 2240:     }    //end loop
行 2241:
行 2242:     templateBuilder.Append("                                </select>\r\n");
行 2243:     templateBuilder.Append("                            </td>\r\n");
行 2244:
行 2245:     }    //end if
行 2246:
行 2247:     templateBuilder.Append("                        <td class=\"attachdel\"><span id=\"sl_cpdel[]\"></span></td>\r\n");
行 2248:     templateBuilder.Append("                    </tr></tbody>\r\n");
行 2249:
行 2250:     }    //end if
行 2251:
行 2252:     templateBuilder.Append("                    <tbody id=\"attachbodyhidden\" style=\"display:none\"><tr>\r\n");
行 2253:     templateBuilder.Append("                        <td class=\"attachnum\"><span id=\"localno[]\"><img src=\"");
行 2254:     templateBuilder.Append(rooturl.ToString());
行 2255:     templateBuilder.Append("images/attachicons/common_new.gif\" /></span></td>\r\n");
行 2256:     templateBuilder.Append("                        <td class=\"attachctrl\"><span id=\"cpadd[]\"></span></td>\r\n");
行 2257:     templateBuilder.Append("                        <td class=\"attachname\">\r\n");
行 2258:     templateBuilder.Append("                            <span id=\"deschidden[]\" style=\"display:none\">\r\n");
行 2259:     templateBuilder.Append("                                <a href=\"javascript:;\" onclick='parentNode.innerHTML=\"<input type=\\\"text\\\" name=\\\"attachdesc\\\" size=\\\"25\\\" class=\\\"txt\\\" />\"'>描述</a>\r\n");
行 2260:     templateBuilder.Append("                                <span id=\"localfile[]\"></span>\r\n");
行 2261:     templateBuilder.Append("                                <input type=\"text\" name=\"attachdesc\" style=\"display:none\" />\r\n");
行 2262:     templateBuilder.Append("                            </span>\r\n");
行 2263:     templateBuilder.Append("                            <input type=\"hidden\" name=\"localid\" />\r\n");
行 2264:     templateBuilder.Append("                        </td>\r\n");
行 2265:
行 2266:     if (userid!=-1 && usergroupinfo.Allowsetattachperm==1)
行 2267:     {
行 2268:
行 2269:     templateBuilder.Append("<td class=\"attachview\"><input type=\"text\" name=\"readperm\" value=\"0\"size=\"1\" class=\"txt\" /></td>\r\n");
行 2270:
行 2271:     }    //end if
行 2272:
行 2273:
行 2274:     if (topicattachscorefield>0 && usergroupinfo.Maxprice>0)
行 2275:     {
行 2276:
行 2277:     templateBuilder.Append("<td class=\"attachpr\"><input type=\"text\" name=\"attachprice\" value=\"0\" size=\"1\" class=\"txt\" /></td>\r\n");
行 2278:
行 2279:     }    //end if
行 2280:
行 2281:
行 2282:     if (config.Enablealbum==1 && caninsertalbum)
行 2283:     {
行 2284:
行 2285:     templateBuilder.Append("                            <td  style=\"vertical-align:top;\">\r\n");
行 2286:     templateBuilder.Append("                                <select name=\"sl_albums\" style=\"display:none\">\r\n");
行 2287:     templateBuilder.Append("                                <option value=\"0\"></option>\r\n");
行 2288:
行 2289:     int album__loop__id=0;
行 2290:     foreach(DataRow album in albumlist.Rows)
行 2291:     {
行 2292:         album__loop__id++;
行 2293:
行 2294:     templateBuilder.Append("                                <option value=\"" + album["albumid"].ToString().Trim() + "\">" + album["title"].ToString().Trim() + "</option>\r\n");
行 2295:
行 2296:     }    //end loop
行 2297:
行 2298:     templateBuilder.Append("                                </select>\r\n");
行 2299:     templateBuilder.Append("                            </td>\r\n");
行 2300:
行 2301:     }    //end if
行 2302:
行 2303:     templateBuilder.Append("                        <td class=\"attachdel\"><span id=\"cpdel[]\"></span></td>\r\n");
行 2304:     templateBuilder.Append("                    </tr></tbody>\r\n");
行 2305:     templateBuilder.Append("                </table>\r\n");
行 2306:
行 2307:     if (pagename.IndexOf("goods")<0 && config.Silverlight==1)
行 2308:     {
行 2309:
行 2310:     templateBuilder.Append("                <div id=\"swfattachlist\">\r\n");
行 2311:     templateBuilder.Append("                    <table cellspacing=\"0\" cellpadding=\"0\" id=\"attachuploadednote\" style=\"display:none;\">\r\n");
行 2312:     templateBuilder.Append("                        <tbody>\r\n");
行 2313:     templateBuilder.Append("                            <tr>\r\n");
行 2314:     templateBuilder.Append("                                <td class=\"attachnum\"></td>\r\n");
行 2315:     templateBuilder.Append("                                <td>您有 <span id=\"attachuploadednotenum\"></span> 个已经上传的附件<span id=\"maxattachnote\" style=\"display: none;\">, 只能使用前<span id=\"num2upload2\"><strong>");
行 2316:     templateBuilder.Append(config.Maxattachments.ToString().Trim());
行 2317:     templateBuilder.Append("</strong></span>个</span>  \r\n");
行 2318:     templateBuilder.Append("                                <a onclick=\"addAttachUploaded(attaches);\" href=\"javascript:;\">使用</a>   <a onclick=\"attachlist()\" href=\"javascript:;\">忽略</a>\r\n");
行 2319:     templateBuilder.Append("                                </td>\r\n");
行 2320:     templateBuilder.Append("                            </tr>\r\n");
行 2321:     templateBuilder.Append("                        </tbody>\r\n");
行 2322:     templateBuilder.Append("                    </table>\r\n");
行 2323:     templateBuilder.Append("                </div>\r\n");
行 2324:
行 2325:     }    //end if
行 2326:
行 2327:     templateBuilder.Append("                <table cellpadding=\"0\" cellspacing=\"0\" summary=\"post_attachbody\" border=\"0\" width=\"100%\"><tbody id=\"attachuploaded\"></tbody><tbody id=\"attachbody\"></tbody></table>\r\n");
行 2328:     templateBuilder.Append("            </div>\r\n");
行 2329:     templateBuilder.Append("        </div>\r\n");
行 2330:     templateBuilder.Append("<div id=\"img_hidden\" alt=\"1\" style=\"position:absolute;top:-100000px;filter:progidXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='image');width:");
行 2331:     templateBuilder.Append(thumbwidth.ToString());
行 2332:     templateBuilder.Append("px;height:");
行 2333:     templateBuilder.Append(thumbheight.ToString());
行 2334:     templateBuilder.Append("px\"></div>\r\n");
行 2335:     templateBuilder.Append("</div>\r\n");
行 2336:     templateBuilder.Append("<script type=\"text/javascript\" reload=\"1\">\r\n");
行 2337:     templateBuilder.Append("var attaches = ");
行 2338:     templateBuilder.Append(Discuz.Forum.Attachments.GetNoUsedAttachmentJson(userid).ToString().Trim());
行 2339:     templateBuilder.Append(";\r\n");
行 2340:     templateBuilder.Append("var aid = 1;\r\n");
行 2341:     templateBuilder.Append("var auid = 1;\r\n");
行 2342:     templateBuilder.Append("var thumbwidth = parseInt('");
行 2343:     templateBuilder.Append(thumbwidth.ToString());
行 2344:     templateBuilder.Append("');\r\n");
行 2345:     templateBuilder.Append("var thumbheight = parseInt('");
行 2346:     templateBuilder.Append(thumbheight.ToString());
行 2347:     templateBuilder.Append("');\r\n");
行 2348:     templateBuilder.Append("var attachexts = new Array();\r\n");
行 2349:     templateBuilder.Append("var attachwh = new Array();\r\n");
行 2350:
行 2351:     if (caninsertalbum)
行 2352:     {
行 2353:
行 2354:     templateBuilder.Append("var caninsertalbum = true;\r\n");
行 2355:
行 2356:     }
行 2357:     else
行 2358:     {
行 2359:
行 2360:     templateBuilder.Append("var caninsertalbum = false;\r\n");
行 2361:
行 2362:     }    //end if
行 2363:
行 2364:     templateBuilder.Append("var maxattachments = parseInt('");
行 2365:     templateBuilder.Append(config.Maxattachments.ToString().Trim());
行 2366:     templateBuilder.Append("');\r\n");
行 2367:     templateBuilder.Append("var num2upload = maxattachments;\r\n");
行 2368:     templateBuilder.Append("var exts = '");
行 2369:     templateBuilder.Append(attachextensionsnosize.ToString());
行 2370:     templateBuilder.Append("';\r\n");
行 2371:     templateBuilder.Append("</");
行 2372:     templateBuilder.Append("script>\r\n");
行 2373:     templateBuilder.Append("<div id=\"attachinfo\" class=\"sitenote upfile\" style=\"display:none;\">\r\n");
行 2374:     templateBuilder.Append("    <div class=\"cornerlayger\">单个附件大小:<strong>");
行 2375:     templateBuilder.Append(FormatBytes(usergroupinfo.Maxattachsize).ToString().Trim());
行 2376:     templateBuilder.Append("</strong>,&nbsp\r\n");
行 2377:     templateBuilder.Append("今天可上传大小: <strong>");
行 2378:     templateBuilder.Append(FormatBytes(attachsize).ToString());
行 2379:     templateBuilder.Append("</strong>&nbsp;\r\n");
行 2380:     templateBuilder.Append("最大附件数: <strong>");
行 2381:     templateBuilder.Append(config.Maxattachments.ToString().Trim());
行 2382:     templateBuilder.Append("</strong>,&nbsp;&nbsp;还可上传&nbsp;<span id=\"num2upload\"><strong>");
行 2383:     templateBuilder.Append(config.Maxattachments.ToString().Trim());
行 2384:     templateBuilder.Append("</strong></span>&nbsp;个附件&nbsp;\r\n");
行 2385:     templateBuilder.Append("附件类型: <strong>");
行 2386:     templateBuilder.Append(attachextensionsnosize.ToString());
行 2387:     templateBuilder.Append("</strong>&nbsp;\r\n");
行 2388:     templateBuilder.Append("售价: <strong>最高 ");
行 2389:     templateBuilder.Append(usergroupinfo.Maxprice.ToString().Trim());
行 2390:     templateBuilder.Append(" ");
行 2391:     templateBuilder.Append(Scoresets.GetTopicAttachCreditsTransName().ToString().Trim());
行 2392:     templateBuilder.Append("</strong>\r\n");
行 2393:     templateBuilder.Append("    </div>\r\n");
行 2394:     templateBuilder.Append("    <div class=\"minicorner\"></div>\r\n");
行 2395:     templateBuilder.Append("</div>\r\n");
行 2396:     templateBuilder.Append("<div id=\"swfuploadbox\" class=\"floatbox floatbox1 floatboxswf\" style=\"display: none\">\r\n");
行 2397:     templateBuilder.Append("    <h3 class=\"float_ctrl\">\r\n");
行 2398:     templateBuilder.Append("        <em\r\n");
行 2399:
行 2400:     if (infloat==0)
行 2401:     {
行 2402:
行 2403:     templateBuilder.Append(" style=\"display:none\"\r\n");
行 2404:
行 2405:     }    //end if
行 2406:
行 2407:     templateBuilder.Append("><button type=\"button\" onclick=\"pagescrolls('swfreturn');return false\">返回</button></em>\r\n");
行 2408:
行 2409:     if (infloat==0)
行 2410:     {
行 2411:
行 2412:     templateBuilder.Append("<em>批量上传</em>\r\n");
行 2413:
行 2414:     }    //end if
行 2415:
行 2416:     templateBuilder.Append("        <span id=\"swfclosebtn\" style=\"display:none\">\r\n");
行 2417:     templateBuilder.Append("            <a href=\"javascript:;\" class=\"float_close\" onclick=\"swfuploadwin()\" title=\"关闭\">关闭</a>\r\n");
行 2418:     templateBuilder.Append("        </span>\r\n");
行 2419:     templateBuilder.Append("    </h3>\r\n");
行 2420:     templateBuilder.Append("    <div id=\"swfbox\" style=\"display: none\"></div>\r\n");
行 2421:     templateBuilder.Append("</div>\r\n");
行 2422:     templateBuilder.Append("<script type=\"text/javascript\" reload=\"1\">\r\n");
行 2423:     templateBuilder.Append("function initAttach() {\r\n");
行 2424:     templateBuilder.Append("//_attachEvent(window, \"load\", function(){ \r\n");
行 2425:     templateBuilder.Append("    try\r\n");
行 2426:     templateBuilder.Append("    {\r\n");
行 2427:     templateBuilder.Append("    addAttach();\r\n");
行 2428:     templateBuilder.Append("    }\r\n");
行 2429:     templateBuilder.Append("    catch(e)\r\n");
行 2430:     templateBuilder.Append("    {}\r\n");
行 2431:
行 2432:     if (pagename.IndexOf("goods")<0 && config.Silverlight==1)
行 2433:     {
行 2434:
行 2435:     templateBuilder.Append("    if (attaches.length > 0) {\r\n");
行 2436:     templateBuilder.Append("        $(\"attachuploadednotenum\").innerHTML = attaches.length;\r\n");
行 2437:     templateBuilder.Append("        $(\"attachuploadednote\").style.display = \"\";\r\n");
行 2438:     templateBuilder.Append("        attachlist();\r\n");
行 2439:     templateBuilder.Append("    }\r\n");
行 2440:
行 2441:     }    //end if
行 2442:
行 2443:     templateBuilder.Append("    if (attaches.length > maxattachments) { \r\n");
行 2444:     templateBuilder.Append("        $(\"maxattachnote\").style.display=\"\"\r\n");
行 2445:     templateBuilder.Append("    }\r\n");
行 2446:
行 2447:     if (pagename.IndexOf("goods")<0 && config.Silverlight==1)
行 2448:     {
行 2449:
行 2450:     templateBuilder.Append("        LoadSilverlight('MultiUploadFile', num2upload);\r\n");
行 2451:
行 2452:     }    //end if
行 2453:
行 2454:     templateBuilder.Append("    //});\r\n");
行 2455:     templateBuilder.Append("}\r\n");
行 2456:     templateBuilder.Append("//addAttachUploaded(attaches);\r\n");
行 2457:     templateBuilder.Append("</");
行 2458:     templateBuilder.Append("script>\r\n");
行 2459:
行 2460:     }
行 2461:     else
行 2462:     {
行 2463:
行 2464:     templateBuilder.Append("        <div class=\"hintinfo\">                            \r\n");
行 2465:     templateBuilder.Append("                你没有上传附件的权限.\r\n");
行 2466:     templateBuilder.Append("        </div>\r\n");
行 2467:
行 2468:     }    //end if
行 2469:
行 2470:
行 2471:     }
行 2472:     else
行 2473:     {
行 2474:
行 2475:     templateBuilder.Append("    <div class=\"hintinfo\">\r\n");
行 2476:
行 2477:     if (usergroupinfo.Maxsizeperday>0 && usergroupinfo.Maxattachsize>0)
行 2478:     {
行 2479:
行 2480:     templateBuilder.Append("            你目前可上传的附件大小为 0 字节.\r\n");
行 2481:
行 2482:     }
行 2483:     else
行 2484:     {
行 2485:
行 2486:     templateBuilder.Append("            你没有上传附件的权限.\r\n");
行 2487:
行 2488:     }    //end if
行 2489:
行 2490:     templateBuilder.Append("    </div>\r\n");
行 2491:
行 2492:     }    //end if
行 2493:
行 2494:
行 2495:
行 2496:
行 2497:     }    //end if
行 2498:
行 2499:     templateBuilder.Append("</div>\r\n");
行 2500:
行 2501:     if (infloat==1)
行 2502:     {
行 2503:
行 2504:     templateBuilder.Append("<div style=\"clear:both; width:2500px;overflow-x:hidden;\">\r\n");
行 2505:
行 2506:     }
行 2507:     else
行 2508:     {
行 2509:
行 2510:     templateBuilder.Append("<div style=\"clear:both;\">\r\n");
行 2511:
行 2512:     }    //end if
行 2513:
行 2514:
行 2515:     if (infloat==1)
行 2516:     {
行 2517:
行 2518:     templateBuilder.Append("<div class=\"floatbox floatbox1\" id=\"extcreditbox2\"></div>\r\n");
行 2519:
行 2520:     }    //end if
行 2521:
行 2522:     templateBuilder.Append("    <div class=\"floatbox floatbox1\">\r\n");
行 2523:
行 2524:     if (infloat==0)
行 2525:     {
行 2526:
行 2527:     templateBuilder.Append("        <h3 class=\"float_ctrl\" style=\"display:none\">\r\n");
行 2528:
行 2529:     }
行 2530:     else
行 2531:     {
行 2532:
行 2533:     templateBuilder.Append("        <h3 class=\"float_ctrl\">\r\n");
行 2534:
行 2535:     }    //end if
行 2536:
行 2537:     templateBuilder.Append("            <em><button type=\"button\" onclick=\"pagescrolls('editorreturn');return false\">返回</button></em>\r\n");
行 2538:     templateBuilder.Append("            <span>\r\n");
行 2539:
行 2540:     if (infloat==1)
行 2541:     {
行 2542:
行 2543:     templateBuilder.Append("                    <a href=\"javascript:;\" class=\"float_close\" onclick=\"closeEditorwin();removeElement()\" title=\"关闭\">关闭</a>\r\n");
行 2544:
行 2545:     }    //end if
行 2546:
行 2547:     templateBuilder.Append("            </span>\r\n");
行 2548:     templateBuilder.Append("        </h3>\r\n");
行 2549:     templateBuilder.Append("        <div class=\"postbox\">\r\n");
行 2550:
行 2551:     if (pagename=="posttopic.aspx" || (pagename=="editpost.aspx"&&isfirstpost))
行 2552:     {
行 2553:
行 2554:
行 2555:     if (enabletag)
行 2556:     {
行 2557:
行 2558:     templateBuilder.Append("                    <div class=\"posttags\">\r\n");
行 2559:     templateBuilder.Append("                        <p><strong>标签(Tags):</strong>(用空格隔开多个标签,最多可填写 5 个)</p>\r\n");
行 2560:     templateBuilder.Append("                        <p><input type=\"text\" name=\"tags\" id=\"tags\" class=\"txt\" value=\"");
行 2561:     templateBuilder.Append(topictags.ToString());
行 2562:     templateBuilder.Append("\" tabindex=\"1\" /><button name=\"addtags\" type=\"button\" onclick=\"relatekw();return false\">+可用标签</button> <span id=\"tagselect\"></span></p>\r\n");
行 2563:     templateBuilder.Append("                    </div>\r\n");
行 2564:
行 2565:     }    //end if
行 2566:
行 2567:     templateBuilder.Append("                <div class=\"columntype\">\r\n");
行 2568:
行 2569:     if (userid!=-1 && usergroupinfo.Allowsetreadperm==1)
行 2570:     {
行 2571:
行 2572:     templateBuilder.Append("                        <p><strong>阅读权限:</strong></p>\r\n");
行 2573:     templateBuilder.Append("                        <p><input type=\"text\" name=\"topicreadperm\" value=\"");
行 2574:     templateBuilder.Append(topic.Readperm.ToString().Trim());
行 2575:     templateBuilder.Append("\" class=\"txt\" tabindex=\"1\" /> 0或空为不限制,最大值为 255</p>\r\n");
行 2576:
行 2577:     }    //end if
行 2578:
行 2579:
行 2580:     if (special==""&&Scoresets.GetCreditsTrans()!=0 && usergroupinfo.Maxprice>0)
行 2581:     {
行 2582:
行 2583:     templateBuilder.Append("                        <p><strong>售价</strong>(");
行 2584:     templateBuilder.Append(userextcreditsinfo.Name.ToString().Trim());
行 2585:     templateBuilder.Append("):</p>\r\n");
行 2586:     templateBuilder.Append("                        <p><input type=\"text\" name=\"topicprice\" value=\"");
行 2587:     templateBuilder.Append(topic.Price.ToString().Trim());
行 2588:     templateBuilder.Append("\" class=\"txt\" tabindex=\"1\" /> ");
行 2589:     templateBuilder.Append(userextcreditsinfo.Unit.ToString().Trim());
行 2590:     templateBuilder.Append(" 最高 ");
行 2591:     templateBuilder.Append(usergroupinfo.Maxprice.ToString().Trim());
行 2592:     templateBuilder.Append(" ");
行 2593:     templateBuilder.Append(userextcreditsinfo.Unit.ToString().Trim());
行 2594:     templateBuilder.Append("&nbsp;售价只允许非负整数, 单个主题最大收入 ");
行 2595:     templateBuilder.Append(Scoresets.GetMaxIncPerTopic().ToString().Trim());
行 2596:     templateBuilder.Append("\r\n");
行 2597:     templateBuilder.Append("                    ");
行 2598:     templateBuilder.Append(userextcreditsinfo.Unit.ToString().Trim());
行 2599:     templateBuilder.Append("</p>\r\n");
行 2600:
行 2601:     }    //end if
行 2602:
行 2603:     templateBuilder.Append("                </div>\r\n");
行 2604:
行 2605:     }    //end if
行 2606:
行 2607:     templateBuilder.Append("            <div class=\"columntype\">\r\n");
行 2608:     templateBuilder.Append("                <h4>发帖选项:</h4>\r\n");
行 2609:     templateBuilder.Append("                <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\r\n");
行 2610:     templateBuilder.Append("                    <tr>\r\n");
行 2611:     templateBuilder.Append("                        <td class=\"firstlist\">\r\n");
行 2612:     templateBuilder.Append("                                <p><input type=\"checkbox\" value=\"1\" name=\"htmlon\" id=\"htmlon\"  onclick=\"alloweditorhtml()\" \r\n");
行 2613:
行 2614:     if (usergroupinfo.Allowhtml!=1)
行 2615:     {
行 2616:
行 2617:     templateBuilder.Append("disabled\r\n");
行 2618:
行 2619:     }    //end if
行 2620:
行 2621:
行 2622:     if (htmlon==1)
行 2623:     {
行 2624:
行 2625:     templateBuilder.Append("checked\r\n");
行 2626:
行 2627:     }    //end if
行 2628:
行 2629:     templateBuilder.Append(" /><label for=\"htmlon\">html 代码</label></p>\r\n");
行 2630:     templateBuilder.Append("                            <p><input type=\"checkbox\" id=\"allowimgcode\" disabled\r\n");
行 2631:
行 2632:     if (allowimg==1)
行 2633:     {
行 2634:
行 2635:     templateBuilder.Append(" checked=\"checked\"\r\n");
行 2636:
行 2637:     }    //end if
行 2638:
行 2639:     templateBuilder.Append(" /><label for=\"allowimgcode\">[img] 代码</label></p>\r\n");
行 2640:     templateBuilder.Append("                        </td>\r\n");
行 2641:     templateBuilder.Append("                        <td>\r\n");
行 2642:     templateBuilder.Append("                            <p><input type=\"checkbox\" value=\"1\" name=\"parseurloff\" id=\"parseurloff\" \r\n");
行 2643:
行 2644:     if (parseurloff==1)
行 2645:     {
行 2646:
行 2647:     templateBuilder.Append("checked\r\n");
行 2648:
行 2649:     }    //end if
行 2650:
行 2651:     templateBuilder.Append(" /><label for=\"parseurloff\">禁用 网址自动链接</label></p>\r\n");
行 2652:     templateBuilder.Append("                            <p><input type=\"checkbox\" value=\"1\" name=\"smileyoff\" id=\"smileyoff\" \r\n");
行 2653:
行 2654:     if (smileyoff==1)
行 2655:     {
行 2656:
行 2657:     templateBuilder.Append("checked\r\n");
行 2658:
行 2659:     }    //end if
行 2660:
行 2661:
行 2662:     if (forum.Allowsmilies!=1)
行 2663:     {
行 2664:
行 2665:     templateBuilder.Append("disabled\r\n");
行 2666:
行 2667:     }    //end if
行 2668:
行 2669:     templateBuilder.Append(" /><label for=\"smileyoff\">禁用 表情</label></p>\r\n");
行 2670:     templateBuilder.Append("                            <p><input type=\"checkbox\" value=\"1\" name=\"bbcodeoff\" id=\"bbcodeoff\" \r\n");
行 2671:
行 2672:     if (bbcodeoff==1)
行 2673:     {
行 2674:
行 2675:     templateBuilder.Append(" checked\r\n");
行 2676:
行 2677:     }    //end if
行 2678:
行 2679:
行 2680:     if (usergroupinfo.Allowcusbbcode!=1)
行 2681:     {
行 2682:
行 2683:     templateBuilder.Append(" disabled\r\n");
行 2684:
行 2685:     }
行 2686:     else if (forum.Allowbbcode!=1)
行 2687:     {
行 2688:
行 2689:     templateBuilder.Append(" disabled\r\n");
行 2690:
行 2691:     }    //end if
行 2692:
行 2693:     templateBuilder.Append(" /><label for=\"bbcodeoff\">禁用 论坛代码</label></p>\r\n");
行 2694:     templateBuilder.Append("                        </td>\r\n");
行 2695:     templateBuilder.Append("                        <td>\r\n");
行 2696:     templateBuilder.Append("                            <p><input type=\"checkbox\" value=\"1\" name=\"usesig\" id=\"usesig\" \r\n");
行 2697:
行 2698:     if (usesig==1)
行 2699:     {
行 2700:
行 2701:     templateBuilder.Append("checked\r\n");
行 2702:
行 2703:     }    //end if
行 2704:
行 2705:     templateBuilder.Append(" /><label for=\"usesig\">使用个人签名</label></p>\r\n");
行 2706:
行 2707:     if (pagename=="postreply.aspx")
行 2708:     {
行 2709:
行 2710:     templateBuilder.Append("                            <p><input type=\"checkbox\" name=\"emailnotify\" id=\"emailnotify\" \r\n");
行 2711:
行 2712:     if (config.Replyemailstatus==1)
行 2713:     {
行 2714:
行 2715:     templateBuilder.Append(" checked\r\n");
行 2716:
行 2717:     }    //end if
行 2718:
行 2719:     templateBuilder.Append(" /><label for=\"emailnotify\">发送邮件告知楼主</label></p>\r\n");
行 2720:     templateBuilder.Append("                            <p><input type=\"checkbox\" name=\"postreplynotice\" id=\"postreplynotice\" \r\n");
行 2721:
行 2722:     if (config.Replynotificationstatus==1)
行 2723:     {
行 2724:
行 2725:     templateBuilder.Append(" checked \r\n");
行 2726:
行 2727:     }    //end if
行 2728:
行 2729:     templateBuilder.Append("/><label for=\"emailnotify\">发送论坛通知给楼主</label></p>\r\n");
行 2730:
行 2731:     }    //end if
行 2732:
行 2733:     templateBuilder.Append("                        </td>\r\n");
行 2734:     templateBuilder.Append("                        <td></td>\r\n");
行 2735:     templateBuilder.Append("                    </tr>\r\n");
行 2736:     templateBuilder.Append("                </table><br />\r\n");
行 2737:     templateBuilder.Append("            </div>\r\n");
行 2738:     templateBuilder.Append("            <div id=\"moreinfo\"></div>\r\n");
行 2739:     templateBuilder.Append("            <div class=\"moreconf\" id=\"moreconf\">\r\n");
行 2740:     templateBuilder.Append("                <div class=\"custominfoarea\" id=\"custominfoarea\" style=\"display: none;\"></div>\r\n");
行 2741:
行 2742:     if (postinfo.Layer==0 && forum.Applytopictype==1)
行 2743:     {
行 2744:
行 2745:     templateBuilder.Append("                <input type=\"hidden\" id=\"postbytopictype\" name=\"postbytopictype\" value=\"");
行 2746:     templateBuilder.Append(forum.Postbytopictype.ToString().Trim());
行 2747:     templateBuilder.Append("\"\r\n");
行 2748:     templateBuilder.Append("                    tabindex=\"3\">\r\n");
行 2749:
行 2750:     }    //end if
行 2751:
行 2752:     templateBuilder.Append("                <button type=\"submit\" id=\"postsubmit\" value=\"true\"\r\n");
行 2753:
行 2754:     if (pagename=="posttopic.aspx")
行 2755:     {
行 2756:
行 2757:     templateBuilder.Append(" name=\"topicsubmit\"\r\n");
行 2758:
行 2759:     }
行 2760:     else if (pagename=="postreply.aspx")
行 2761:     {
行 2762:
行 2763:     templateBuilder.Append(" name=\"replysubmit\"\r\n");
行 2764:
行 2765:     }
行 2766:     else if (pagename=="editpost.aspx")
行 2767:     {
行 2768:
行 2769:     templateBuilder.Append(" name=\"editsubmit\"\r\n");
行 2770:
行 2771:     }    //end if
行 2772:
行 2773:     templateBuilder.Append(" tabindex=\"1\">");
行 2774:     templateBuilder.Append(actiontitle.ToString());
行 2775:     templateBuilder.Append("</button>\r\n");
行 2776:     templateBuilder.Append("                <span id=\"more_1\" style=\"display: none\">\r\n");
行 2777:
行 2778:     if (infloat==1 && special!="")
行 2779:     {
行 2780:
行 2781:     templateBuilder.Append("                    <a href=\"javascript:;\" onclick=\"pagescrolls('editor')\">添加描述");
行 2782:     templateBuilder.Append(actiontitle.ToString());
行 2783:     templateBuilder.Append("</a>\r\n");
行 2784:
行 2785:     }    //end if
行 2786:
行 2787:     templateBuilder.Append("                </span>\r\n");
行 2788:     templateBuilder.Append("                <span id=\"more_2\">\r\n");
行 2789:
行 2790:     if (canpostattach)
行 2791:     {
行 2792:
行 2793:     templateBuilder.Append("                    <span class=\"sim_upfile\" onmouseover=\"$('attachinfo').style.display='';\" onmouseout=\"$('attachinfo').style.display='none';\">\r\n");
行 2794:     templateBuilder.Append("                        <span id=\"attachbtnhidden\" style=\"display:none\"><span><input type=\"file\" name=\"postfile\" size=\"1\" /></span></span>\r\n");
行 2795:     templateBuilder.Append("                        <span id=\"attachbtn\"></span>\r\n");
行 2796:     templateBuilder.Append("                        <a href=\"javascript:;\" onclick=\"return false;\">添加附件</a>\r\n");
行 2797:
行 2798:     if (pagename.IndexOf("goods")<0 && config.Silverlight==1)
行 2799:     {
行 2800:
行 2801:     templateBuilder.Append("                            <a href=\"javascript:;\" onclick=\"swfuploadwin()\">批量上传</a>\r\n");
行 2802:
行 2803:     }    //end if
行 2804:
行 2805:     templateBuilder.Append("                    </span>\r\n");
行 2806:     templateBuilder.Append("                    <a href=\"javascript:;\" onclick=\"attachlist()\">附件列表</a>\r\n");
行 2807:
行 2808:     }    //end if
行 2809:
行 2810:
行 2811:     if (infloat==1)
行 2812:     {
行 2813:
行 2814:     templateBuilder.Append("<a href=\"javascript:;\" id=\"morelink\" onclick=\"pagescrolls('more')\">更多设定</a>\r\n");
行 2815:
行 2816:     }    //end if
行 2817:
行 2818:
行 2819:     if (userinfo.Spaceid>0 && special==""&&action=="newthread"&&config.Enablespace==1)
行 2820:     {
行 2821:
行 2822:     templateBuilder.Append("<input type=\"checkbox\" name=\"addtoblog\" /> 添加到个人空间\r\n");
行 2823:
行 2824:     }    //end if
行 2825:
行 2826:     templateBuilder.Append("                </span>\r\n");
行 2827:
行 2828:     if (isseccode)
行 2829:     {
行 2830:
行 2831:     templateBuilder.Append("<span style=\"position:relative\">\r\n");
行 2832:
行 2833:     templateBuilder.Append("<div id=\"vcode_temp\"></div>\r\n");
行 2834:     templateBuilder.Append("<script type=\"text/javascript\" reload=\"1\">\r\n");
行 2835:     templateBuilder.Append("    var infloat = ");
行 2836:     templateBuilder.Append(infloat.ToString());
行 2837:     templateBuilder.Append(";\r\n");
行 2838:     templateBuilder.Append("    if (typeof vcodeimgid == 'undefined'){\r\n");
行 2839:     templateBuilder.Append("        var vcodeimgid = 1;\r\n");
行 2840:     templateBuilder.Append("    }\r\n");
行 2841:     templateBuilder.Append("    else\r\n");
行 2842:     templateBuilder.Append("        vcodeimgid++;\r\n");
行 2843:     templateBuilder.Append("    $('vcode_temp').parentNode.innerHTML = '<input name=\"vcodetext\" tabindex=\"1\" size=\"20\" onkeyup=\"changevcode(this.form, this.value);\" class=\"txt\" style=\"width:90px;\" id=\"vcodetext' + vcodeimgid + '\"  onblur=\"if(!seccodefocus) {display(this.id + \\'_menu\\')};\"  onclick=\"opensecwin('+vcodeimgid+',1)\"   value=\"验证码\" autocomplete=\"off\"/>' +\r\n");
行 2844:     templateBuilder.Append("                                           '<div class=\"seccodecontent\"  style=\"display:none;cursor: pointer;width: 124px; height: 44px;top:256px;z-index:10009;padding:0;\" id=\"vcodetext' + vcodeimgid + '_menu\" onmouseout=\"seccodefocus = 0\" onmouseover=\"seccodefocus = 1\"><img src=\"");
行 2845:     templateBuilder.Append(rooturl.ToString());
行 2846:     templateBuilder.Append("tools/VerifyImagePage.aspx?time=");
行 2847:     templateBuilder.Append(Processtime.ToString());
行 2848:     templateBuilder.Append("\" class=\"cursor\" id=\"vcodeimg' + vcodeimgid + '\" onclick=\"this.src=\\'");
行 2849:     templateBuilder.Append(rooturl.ToString());
行 2850:     templateBuilder.Append("tools/VerifyImagePage.aspx?id=");
行 2851:     templateBuilder.Append(olid.ToString());
行 2852:     templateBuilder.Append("&time=\\' + Math.random();\"/></div>';\r\n");
行 2853:     templateBuilder.Append("    function changevcode(form, value){\r\n");
行 2854:     templateBuilder.Append("        if (!$('vcode')){\r\n");
行 2855:     templateBuilder.Append("            var vcode = document.createElement('input');\r\n");
行 2856:     templateBuilder.Append("            vcode.id = 'vcode';\r\n");
行 2857:     templateBuilder.Append("            vcode.name = 'vcode';\r\n");
行 2858:     templateBuilder.Append("            vcode.type = 'hidden';\r\n");
行 2859:     templateBuilder.Append("            vcode.value = value;\r\n");
行 2860:     templateBuilder.Append("            form.appendChild(vcode);\r\n");
行 2861:     templateBuilder.Append("        }else{\r\n");
行 2862:     templateBuilder.Append("            $('vcode').value = value;\r\n");
行 2863:     templateBuilder.Append("        }\r\n");
行 2864:     templateBuilder.Append("    }\r\n");
行 2865:     templateBuilder.Append("</");
行 2866:     templateBuilder.Append("script>\r\n");
行 2867:     templateBuilder.Append("<script type=\"text/javascript\">\r\n");
行 2868:     templateBuilder.Append("var secclick = new Array();\r\n");
行 2869:     templateBuilder.Append("var seccodefocus = 0;\r\n");
行 2870:     templateBuilder.Append("function opensecwin(id,type) {\r\n");
行 2871:     templateBuilder.Append("    if($('vcode')){\r\n");
行 2872:     templateBuilder.Append("    $('vcode').parentNode.removeChild($('vcode'));}\r\n");
行 2873:     templateBuilder.Append("    if (!secclick['vcodetext' + id]) {\r\n");
行 2874:     templateBuilder.Append("        $('vcodetext' + id).value = '';\r\n");
行 2875:     templateBuilder.Append("        secclick['vcodetext' + id] = 1;\r\n");
行 2876:     templateBuilder.Append("        if(type)\r\n");
行 2877:     templateBuilder.Append("            $('vcodetext' + id + '_menu').style.top = parseInt($('vcodetext' + id + '_menu').style.top) - parseInt($('vcodetext' + id + '_menu').style.height) + 'px';\r\n");
行 2878:     templateBuilder.Append("    }\r\n");
行 2879:     templateBuilder.Append("    $('vcodetext' + id + '_menu').style.position = 'absolute';\r\n");
行 2880:     templateBuilder.Append("    $('vcodetext' + id + '_menu').style.top = (-parseInt($('vcodetext' + id + '_menu').style.height) - 2) + 'px';\r\n");
行 2881:     templateBuilder.Append("    $('vcodetext' + id + '_menu').style.left = '0px';\r\n");
行 2882:     templateBuilder.Append("    $('vcodetext' + id + '_menu').style.display = '';\r\n");
行 2883:     templateBuilder.Append("    $('vcodetext' + id).focus();\r\n");
行 2884:     templateBuilder.Append("    $('vcodetext' + id).unselectable = 'off';\r\n");
行 2885:     templateBuilder.Append("    $('vcodeimg' + id).src = '");
行 2886:     templateBuilder.Append(rooturl.ToString());
行 2887:     templateBuilder.Append("tools/VerifyImagePage.aspx?id=");
行 2888:     templateBuilder.Append(olid.ToString());
行 2889:     templateBuilder.Append("&time=' + Math.random();\r\n");
行 2890:     templateBuilder.Append("}\r\n");
行 2891:     templateBuilder.Append("</");
行 2892:     templateBuilder.Append("script>\r\n");
行 2893:
行 2894:
行 2895:     templateBuilder.Append("</span>\r\n");
行 2896:
行 2897:     }    //end if
行 2898:
行 2899:     templateBuilder.Append("            </div>\r\n");
行 2900:     templateBuilder.Append("        </div>\r\n");
行 2901:     templateBuilder.Append("    </div>\r\n");
行 2902:     templateBuilder.Append("</div>\r\n");
行 2903:
行 2904:
行 2905:     templateBuilder.Append("            <script type=\"text/javascript\" reload=\"1\">\r\n");
行 2906:     templateBuilder.Append("            openEditor();\r\n");
行 2907:     templateBuilder.Append("            initAttach();\r\n");
行 2908:     templateBuilder.Append("            </");
行 2909:     templateBuilder.Append("script>\r\n");
行 2910:     templateBuilder.Append("            <div style=\"display: none;\">\r\n");
行 2911:     templateBuilder.Append("                <p class=\"textmsg\" id=\"divshowuploadmsg\" style=\"display:none\"></p>\r\n");
行 2912:     templateBuilder.Append("                <p class=\"textmsg succ\" id=\"divshowuploadmsgok\" style=\"display:none\"></p>\r\n");
行 2913:     templateBuilder.Append("                <input type=\"hidden\" name=\"uploadallowmax\" value=\"10\">\r\n");
行 2914:     templateBuilder.Append("                <input type=\"hidden\" name=\"uploadallowtype\" value=\"jpg,gif\">\r\n");
行 2915:     templateBuilder.Append("                <input type=\"hidden\" name=\"thumbwidth\" value=\"300\">\r\n");
行 2916:     templateBuilder.Append("                <input type=\"hidden\" name=\"thumbheight\" value=\"250\">\r\n");
行 2917:     templateBuilder.Append("                <input type=\"hidden\" name=\"noinsert\" value=\"0\">\r\n");
行 2918:     templateBuilder.Append("            </div>\r\n");
行 2919:
行 2920:     if (infloat==0)
行 2921:     {
行 2922:
行 2923:     templateBuilder.Append("            <div class=\"postbox\" id=\"realmoreinfo\" style=\"display: none;\" style=\"margin:0;margin-bottom:10px;\">\r\n");
行 2924:     templateBuilder.Append("                    <div id=\"newpost\" class=\"post\">\r\n");
行 2925:
行 2926:     templateBuilder.Append("<script type=\"text/javascript\">\r\n");
行 2927:     templateBuilder.Append("var tempaccounts = false;\r\n");
行 2928:     templateBuilder.Append("function showusername()\r\n");
行 2929:     templateBuilder.Append("{\r\n");
行 2930:     templateBuilder.Append("    $(\"usernamelayer\").innerHTML = \"<input name='tempusername' type='text' id='tempusername' size='20' class='txt' value='");
行 2931:     templateBuilder.Append(username.ToString());
行 2932:     templateBuilder.Append("' onkeyup=\\\"$('passwordlayer').style.display='';\\\">&nbsp;[<a href='javascript:;' onclick='resetusername()'>恢复</a>]\";\r\n");
行 2933:     templateBuilder.Append("    tempaccounts = true;\r\n");
行 2934:     templateBuilder.Append("    var i = 1;\r\n");
行 2935:     templateBuilder.Append("    while(true)\r\n");
行 2936:     templateBuilder.Append("    {\r\n");
行 2937:     templateBuilder.Append("        var obj = $(\"albums\" + i);\r\n");
行 2938:     templateBuilder.Append("        if(obj == null) break;\r\n");
行 2939:     templateBuilder.Append("        obj.options[0].selected = true;\r\n");
行 2940:     templateBuilder.Append("        obj.disabled = true\r\n");
行 2941:     templateBuilder.Append("        i++;\r\n");
行 2942:     templateBuilder.Append("    }\r\n");
行 2943:     templateBuilder.Append("}\r\n");
行 2944:     templateBuilder.Append("function resetusername()\r\n");
行 2945:     templateBuilder.Append("{\r\n");
行 2946:     templateBuilder.Append("    $('passwordlayer').style.display='none';\r\n");
行 2947:     templateBuilder.Append("    $(\"usernamelayer\").innerHTML = \"");
行 2948:     templateBuilder.Append(username.ToString());
行 2949:     templateBuilder.Append("&nbsp;[<a href='javascript:;' onclick='showusername()'>切换临时帐号</a>]\";\r\n");
行 2950:     templateBuilder.Append("    tempaccounts = false;\r\n");
行 2951:     templateBuilder.Append("    var i = 1;\r\n");
行 2952:     templateBuilder.Append("    while(true)\r\n");
行 2953:     templateBuilder.Append("    {\r\n");
行 2954:     templateBuilder.Append("        var obj = $(\"albums\" + i);\r\n");
行 2955:     templateBuilder.Append("        if(obj == null) break;\r\n");
行 2956:     templateBuilder.Append("        obj.disabled = false\r\n");
行 2957:     templateBuilder.Append("        i++;\r\n");
行 2958:     templateBuilder.Append("    }\r\n");
行 2959:     templateBuilder.Append("}\r\n");
行 2960:     templateBuilder.Append("</");
行 2961:     templateBuilder.Append("script>\r\n");
行 2962:     templateBuilder.Append("<div class=\"tempaccounts\">\r\n");
行 2963:     templateBuilder.Append("    <p>\r\n");
行 2964:     templateBuilder.Append("    <span id=\"usernamelayer\">\r\n");
行 2965:
行 2966:     if (userid>0)
行 2967:     {
行 2968:
行 2969:     templateBuilder.Append("    ");
行 2970:     templateBuilder.Append(username.ToString());
行 2971:     templateBuilder.Append("&nbsp;[<a href='javascript:;' onclick='showusername()'>切换临时帐号</a>]\r\n");
行 2972:
行 2973:     }
行 2974:     else
行 2975:     {
行 2976:
行 2977:     templateBuilder.Append("        匿名 [<a href=\"login.aspx\">登录</a>] [<a href=\"register.aspx\">注册</a>]\r\n");
行 2978:
行 2979:     }    //end if
行 2980:
行 2981:     templateBuilder.Append("</span>\r\n");
行 2982:     templateBuilder.Append("    </p>\r\n");
行 2983:     templateBuilder.Append("    <div id=\"passwordlayer\" style=\"display:none\">\r\n");
行 2984:     templateBuilder.Append("        <p><strong>密码:</strong></p>\r\n");
行 2985:     templateBuilder.Append("        <p><input name=\"temppassword\" type=\"password\" id=\"temppassword\" size=\"20\" class=\"txt\" /></p>\r\n");
行 2986:
行 2987:     if (config.Secques==1)
行 2988:     {
行 2989:
行 2990:     templateBuilder.Append("        <p><strong>安全问题:</strong></p>\r\n");
行 2991:     templateBuilder.Append("        <p><select name=\"question\" id=\"question\">\r\n");
行 2992:     templateBuilder.Append("            <option value=\"0\" selected=\"selected\">无</option>\r\n");
行 2993:     templateBuilder.Append("            <option value=\"1\">母亲的名字</option>\r\n");
行 2994:     templateBuilder.Append("            <option value=\"2\">爷爷的名字</option>\r\n");
行 2995:     templateBuilder.Append("            <option value=\"3\">父亲出生的城市</option>\r\n");
行 2996:     templateBuilder.Append("            <option value=\"4\">您其中一位老师的名字</option>\r\n");
行 2997:     templateBuilder.Append("            <option value=\"5\">您个人计算机的型号</option>\r\n");
行 2998:     templateBuilder.Append("            <option value=\"6\">您最喜欢的餐馆名称</option>\r\n");
行 2999:     templateBuilder.Append("            <option value=\"7\">驾驶执照的最后四位数字</option>\r\n");
行 3000:     templateBuilder.Append("            </select>\r\n");
行 3001:     templateBuilder.Append("        </p>\r\n");
行 3002:     templateBuilder.Append("        <p><strong>答案:</strong>(如果您设置了安全提问,请在此输入正确的问题和回答)</p>\r\n");
行 3003:     templateBuilder.Append("        <p><input name=\"answer\" type=\"text\" id=\"answer\" size=\"50\" class=\"txt\"/></p>\r\n");
行 3004:
行 3005:     }    //end if
行 3006:
行 3007:     templateBuilder.Append("    </div>\r\n");
行 3008:     templateBuilder.Append("</div>\r\n");
行 3009:
行 3010:
行 3011:     templateBuilder.Append("                        <p><input name=\"continuereply\" type=\"checkbox\" \r\n");
行 3012:
行 3013:     if (continuereply!="")
行 3014:     {
行 3015:
行 3016:     templateBuilder.Append("checked\r\n");
行 3017:
行 3018:     }    //end if
行 3019:
行 3020:     templateBuilder.Append(" /> 连续回复</p>\r\n");
行 3021:     templateBuilder.Append("                    </div>\r\n");
行 3022:
行 3023:     if (lastpostlist.Rows.Count>0)
行 3024:     {
行 3025:
行 3026:     templateBuilder.Append("                    <hr class=\"solidline\"/>\r\n");
行 3027:     templateBuilder.Append("                    <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
行 3028:     templateBuilder.Append("                        <tbody>\r\n");
行 3029:     templateBuilder.Append("                            <tr>\r\n");
行 3030:     templateBuilder.Append("                                <td width=\"15%\">最后5帖</td>     \r\n");
行 3031:     templateBuilder.Append("                                <td width=\"25%\">回复日期</td>\r\n");
行 3032:     templateBuilder.Append("                                <td width=\"60%\">内容</td>    \r\n");
行 3033:     templateBuilder.Append("                            </tr>\r\n");
行 3034:
行 3035:     int lastpost__loop__id=0;
行 3036:     foreach(DataRow lastpost in lastpostlist.Rows)
行 3037:     {
行 3038:         lastpost__loop__id++;
行 3039:
行 3040:     templateBuilder.Append("                            <tr>\r\n");
行 3041:     templateBuilder.Append("                                <td><a href=\"userinfo.aspx?userid=" + lastpost["posterid"].ToString().Trim() + "\">" + lastpost["poster"].ToString().Trim() + "</a></td>\r\n");
行 3042:     templateBuilder.Append("                                <td>" + lastpost["postdatetime"].ToString().Trim() + "</td>\r\n");
行 3043:     templateBuilder.Append("                                <td>" + lastpost["message"].ToString().Trim() + "</td>\r\n");
行 3044:     templateBuilder.Append("                            </tr>\r\n");
行 3045:
行 3046:     }    //end loop
行 3047:
行 3048:     templateBuilder.Append("                        </tbody>\r\n");
行 3049:     templateBuilder.Append("                    </table>\r\n");
行 3050:
行 3051:     }    //end if
行 3052:
行 3053:     templateBuilder.Append("                </div>\r\n");
行 3054:     templateBuilder.Append("                <script type=\"text/javascript\">$(\"moreinfo\").innerHTML = $(\"realmoreinfo\").innerHTML;$(\"moreinfo\").className=\"postbox\"</");
行 3055:     templateBuilder.Append("script>\r\n");
行 3056:
行 3057:     }    //end if
行 3058:
行 3059:     templateBuilder.Append("        </form>\r\n");
行 3060:     templateBuilder.Append("    </div>\r\n");
行 3061:
行 3062:     if (infloat==0)
行 3063:     {
行 3064:
行 3065:     templateBuilder.Append("    </div>\r\n");
行 3066:     templateBuilder.Append("    </div>\r\n");
行 3067:     templateBuilder.Append("    </div>\r\n");
行 3068:     templateBuilder.Append("    </div>\r\n");
行 3069:     templateBuilder.Append("</div>\r\n");
行 3070:
行 3071:     }    //end if
行 3072:
行 3073:     templateBuilder.Append("    <script type=\"text/javascript\" reload=\"1\" >\r\n");
行 3074:     templateBuilder.Append("        if (getQueryString('restore') == 1)\r\n");
行 3075:     templateBuilder.Append("        {\r\n");
行 3076:     templateBuilder.Append("            loadData(true);\r\n");
行 3077:     templateBuilder.Append("        }\r\n");
行 3078:     templateBuilder.Append("    </");
行 3079:     templateBuilder.Append("script>\r\n");
行 3080:
行 3081:     }    //end if
行 3082:
行 3083:
行 3084:     }
行 3085:     else
行 3086:     {
行 3087:
行 3088:
行 3089:     if (ispost)
行 3090:     {
行 3091:
行 3092:
行 3093:     if (needlogin)
行 3094:     {
行 3095:
行 3096:
行 3097:
行 3098:     if (infloat!=1)
行 3099:     {
行 3100:
行 3101:     templateBuilder.Append("<div class=\"wrap s_clear\" id=\"wrap\">\r\n");
行 3102:     templateBuilder.Append("<div class=\"main login\">\r\n");
行 3103:     templateBuilder.Append("    <div class=\"message\">\r\n");
行 3104:     templateBuilder.Append("        <h1>");
行 3105:     templateBuilder.Append(config.Forumtitle.ToString().Trim());
行 3106:     templateBuilder.Append(" 提示信息</h1>\r\n");
行 3107:     templateBuilder.Append("        <p>您无权进行当前操作,这可能因以下原因之一造成</p>\r\n");
行 3108:     templateBuilder.Append("        <p><b>");
行 3109:     templateBuilder.Append(msgbox_text.ToString());
行 3110:     templateBuilder.Append("</b></p>\r\n");
行 3111:     templateBuilder.Append("        <p>您还没有登录,请填写下面的登录表单后再尝试访问。</p>\r\n");
行 3112:     templateBuilder.Append("    </div>\r\n");
行 3113:     templateBuilder.Append("    <hr class=\"solidline\"/>\r\n");
行 3114:     templateBuilder.Append("    <div class=\"nojs\">\r\n");
行 3115:     templateBuilder.Append("    <div class=\"float\" id=\"floatlayout_login\" style=\"width: 600px; height: 300px;\">\r\n");
行 3116:     templateBuilder.Append("    <form id=\"formlogin\" name=\"formlogin\" method=\"post\" action=\"");
行 3117:     templateBuilder.Append(rooturl.ToString());
行 3118:     templateBuilder.Append("login.aspx\" onsubmit=\"submitLogin(this);\">\r\n");
行 3119:     templateBuilder.Append("    <input type=\"hidden\" value=\"2592000\" name=\"cookietime\"/>\r\n");
行 3120:     templateBuilder.Append("        <h1 style=\"margin-bottom:10px;\">会员登录</h1>\r\n");
行 3121:     templateBuilder.Append("        <table cellpadding=\"0\" cellspacing=\"0\" class=\"formtable\">\r\n");
行 3122:     templateBuilder.Append("        <tbody>\r\n");
行 3123:     templateBuilder.Append("            <tr>\r\n");
行 3124:     templateBuilder.Append("                <th><label for=\"username\">用户名</label></th>\r\n");
行 3125:     templateBuilder.Append("                <td><input type=\"text\" id=\"username\" name=\"username\" size=\"25\" maxlength=\"40\" tabindex=\"2\" class=\"txt\" />  <a href=\"");
行 3126:     templateBuilder.Append(rooturl.ToString());
行 3127:     templateBuilder.Append("register.aspx\" tabindex=\"-1\" accesskey=\"r\" title=\"立即注册 (ALT + R)\" class=\"lightlink\">立即注册</a>\r\n");
行 3128:     templateBuilder.Append("                </td>\r\n");
行 3129:     templateBuilder.Append("            </tr>\r\n");
行 3130:     templateBuilder.Append("            <tr>\r\n");
行 3131:     templateBuilder.Append("                <th><label for=\"password\">密码</label></th>\r\n");
行 3132:     templateBuilder.Append("                <td><input type=\"password\" name=\"password\" size=\"25\" tabindex=\"3\" class=\"txt\"/> <a href=\"");
行 3133:     templateBuilder.Append(rooturl.ToString());
行 3134:     templateBuilder.Append("getpassword.aspx\" tabindex=\"-1\" accesskey=\"g\" title=\"忘记密码 (ALT + G)\" class=\"lightlink\">忘记密码</a>\r\n");
行 3135:     templateBuilder.Append("                </td>\r\n");
行 3136:     templateBuilder.Append("            </tr>\r\n");
行 3137:
行 3138:     if (config.Secques==1)
行 3139:     {
行 3140:
行 3141:     templateBuilder.Append("            <tr>\r\n");
行 3142:     templateBuilder.Append("                <th><label for=\"questionid\">安全问题</label></th>\r\n");
行 3143:     templateBuilder.Append("                <td>\r\n");
行 3144:     templateBuilder.Append("                    <select name=\"questionid\" tabindex=\"4\">\r\n");
行 3145:     templateBuilder.Append("                    <option value=\"0\">&nbsp;</option>\r\n");
行 3146:     templateBuilder.Append("                    <option value=\"1\">母亲的名字</option>\r\n");
行 3147:     templateBuilder.Append("                    <option value=\"2\">爷爷的名字</option>\r\n");
行 3148:     templateBuilder.Append("                    <option value=\"3\">父亲出生的城市</option>\r\n");
行 3149:     templateBuilder.Append("                    <option value=\"4\">您其中一位老师的名字</option>\r\n");
行 3150:     templateBuilder.Append("                    <option value=\"5\">您个人计算机的型号</option>\r\n");
行 3151:     templateBuilder.Append("                    <option value=\"6\">您最喜欢的餐馆名称</option>\r\n");
行 3152:     templateBuilder.Append("                    <option value=\"7\">驾驶执照的最后四位数字</option>\r\n");
行 3153:     templateBuilder.Append("                    </select>\r\n");
行 3154:     templateBuilder.Append("                </td>\r\n");
行 3155:     templateBuilder.Append("            </tr>\r\n");
行 3156:     templateBuilder.Append("            <tr>\r\n");
行 3157:     templateBuilder.Append("                <th><label for=\"answer\">答案</label></th>\r\n");
行 3158:     templateBuilder.Append("                <td><input type=\"text\" name=\"answer\" size=\"25\" tabindex=\"5\" class=\"txt\" /></td>\r\n");
行 3159:     templateBuilder.Append("            </tr>\r\n");
行 3160:
行 3161:     }    //end if
行 3162:
行 3163:     templateBuilder.Append("            <tr>\r\n");
行 3164:     templateBuilder.Append("                <th> </th>\r\n");
行 3165:     templateBuilder.Append("                <td>\r\n");
行 3166:     templateBuilder.Append("                    <button type=\"submit\" name=\"loginsubmit\" id=\"loginsubmit\" value=\"true\" tabindex=\"6\">会员登录</button>\r\n");
行 3167:     templateBuilder.Append("                </td>\r\n");
行 3168:     templateBuilder.Append("            </tr>\r\n");
行 3169:     templateBuilder.Append("        </tbody>\r\n");
行 3170:     templateBuilder.Append("        </table>\r\n");
行 3171:     templateBuilder.Append("    </form>\r\n");
行 3172:     templateBuilder.Append("    </div>\r\n");
行 3173:     templateBuilder.Append("    </div>\r\n");
行 3174:     templateBuilder.Append("</div>\r\n");
行 3175:     templateBuilder.Append("</div>\r\n");
行 3176:
行 3177:     }
行 3178:     else
行 3179:     {
行 3180:
行 3181:     templateBuilder.Append("    <div class=\"msgbox error_msg\">\r\n");
行 3182:     templateBuilder.Append("    <p>您无权进行当前操作,这可能因以下原因之一造成</p>\r\n");
行 3183:     templateBuilder.Append("    <p><b>");
行 3184:     templateBuilder.Append(msgbox_text.ToString());
行 3185:     templateBuilder.Append("</b></p>\r\n");
行 3186:     templateBuilder.Append("    <p>您还没有登录,请的登录后再尝试访问。</p>\r\n");
行 3187:     templateBuilder.Append("    </div>\r\n");
行 3188:     templateBuilder.Append("    <script type=\"text/javascript\" reload=\"1\">\r\n");
行 3189:     templateBuilder.Append("    setTimeout(\"floatwin('close_newthread');floatwin('close_reply');floatwin('close_edit');floatwin('open_login', '");
行 3190:     templateBuilder.Append(forumurl.ToString());
行 3191:     templateBuilder.Append("login.aspx', 600, 410)\",1000);\r\n");
行 3192:     templateBuilder.Append("    </");
行 3193:     templateBuilder.Append("script>\r\n");
行 3194:
行 3195:     }    //end if
行 3196:
行 3197:     templateBuilder.Append("<script type=\"text/javascript\">\r\n");
行 3198:
行 3199:     if (infloat!=1)
行 3200:     {
行 3201:
行 3202:     templateBuilder.Append("        document.getElementById(\"username\").focus();\r\n");
行 3203:
行 3204:     }    //end if
行 3205:
行 3206:     templateBuilder.Append("        function submitLogin(loginForm)\r\n");
行 3207:     templateBuilder.Append("        {\r\n");
行 3208:     templateBuilder.Append("            loginForm.action = '");
行 3209:     templateBuilder.Append(rooturl.ToString());
行 3210:     templateBuilder.Append("login.aspx?loginsubmit=true&reurl=' + escape(window.location);\r\n");
行 3211:     templateBuilder.Append("            loginForm.submit();\r\n");
行 3212:     templateBuilder.Append("        }\r\n");
行 3213:     templateBuilder.Append("</");
行 3214:     templateBuilder.Append("script>\r\n");
行 3215:
行 3216:
行 3217:
行 3218:     }
行 3219:     else
行 3220:     {
行 3221:
行 3222:
行 3223:     if (infloat==1)
行 3224:     {
行 3225:
行 3226:     templateBuilder.Append("         ");
行 3227:     templateBuilder.Append(msgbox_text.ToString());
行 3228:     templateBuilder.Append("\r\n");
行 3229:
行 3230:     }
行 3231:     else
行 3232:     {
行 3233:
行 3234:
行 3235:     templateBuilder.Append("<div class=\"wrap s_clear\" id=\"wrap\">\r\n");
行 3236:     templateBuilder.Append("<div class=\"main\">\r\n");
行 3237:     templateBuilder.Append("    <div class=\"msgbox error_msg\">\r\n");
行 3238:     templateBuilder.Append("        <h1>出现了");
行 3239:     templateBuilder.Append(page_err.ToString());
行 3240:     templateBuilder.Append("个错误</h1>\r\n");
行 3241:     templateBuilder.Append("        <p>");
行 3242:     templateBuilder.Append(msgbox_text.ToString());
行 3243:     templateBuilder.Append("</p>\r\n");
行 3244:     templateBuilder.Append("        <p class=\"errorback\">\r\n");
行 3245:     templateBuilder.Append("            <script type=\"text/javascript\">\r\n");
行 3246:     templateBuilder.Append("                if(");
行 3247:     templateBuilder.Append(msgbox_showbacklink.ToString());
行 3248:     templateBuilder.Append(")\r\n");
行 3249:     templateBuilder.Append("                {\r\n");
行 3250:     templateBuilder.Append("                    document.write(\"<a href=\\\"");
行 3251:     templateBuilder.Append(msgbox_backlink.ToString());
行 3252:     templateBuilder.Append("\\\">返回上一步</a> &nbsp; &nbsp;|&nbsp; &nbsp  \");\r\n");
行 3253:     templateBuilder.Append("                }\r\n");
行 3254:     templateBuilder.Append("            </");
行 3255:     templateBuilder.Append("script>\r\n");
行 3256:     templateBuilder.Append("            <a href=\"forumindex.aspx\">论坛首页</a>\r\n");
行 3257:
行 3258:     if (usergroupid==7)
行 3259:     {
行 3260:
行 3261:     templateBuilder.Append("             &nbsp; &nbsp|&nbsp; &nbsp; <a href=\"register.aspx\">注册</a>\r\n");
行 3262:
行 3263:     }    //end if
行 3264:
行 3265:     templateBuilder.Append("        </p>\r\n");
行 3266:     templateBuilder.Append("    </div>\r\n");
行 3267:     templateBuilder.Append("</div>\r\n");
行 3268:     templateBuilder.Append("</div>\r\n");
行 3269:
行 3270:
行 3271:
行 3272:     }    //end if
行 3273:
行 3274:
行 3275:     }    //end if
行 3276:
行 3277:
行 3278:     }
行 3279:     else
行 3280:     {
行 3281:
行 3282:
行 3283:     if (needlogin)
行 3284:     {
行 3285:
行 3286:
行 3287:
行 3288:     if (infloat!=1)
行 3289:     {
行 3290:
行 3291:     templateBuilder.Append("<div class=\"wrap s_clear\" id=\"wrap\">\r\n");
行 3292:     templateBuilder.Append("<div class=\"main login\">\r\n");
行 3293:     templateBuilder.Append("    <div class=\"message\">\r\n");
行 3294:     templateBuilder.Append("        <h1>");
行 3295:     templateBuilder.Append(config.Forumtitle.ToString().Trim());
行 3296:     templateBuilder.Append(" 提示信息</h1>\r\n");
行 3297:     templateBuilder.Append("        <p>您无权进行当前操作,这可能因以下原因之一造成</p>\r\n");
行 3298:     templateBuilder.Append("        <p><b>");
行 3299:     templateBuilder.Append(msgbox_text.ToString());
行 3300:     templateBuilder.Append("</b></p>\r\n");
行 3301:     templateBuilder.Append("        <p>您还没有登录,请填写下面的登录表单后再尝试访问。</p>\r\n");
行 3302:     templateBuilder.Append("    </div>\r\n");
行 3303:     templateBuilder.Append("    <hr class=\"solidline\"/>\r\n");
行 3304:     templateBuilder.Append("    <div class=\"nojs\">\r\n");
行 3305:     templateBuilder.Append("    <div class=\"float\" id=\"floatlayout_login\" style=\"width: 600px; height: 300px;\">\r\n");
行 3306:     templateBuilder.Append("    <form id=\"formlogin\" name=\"formlogin\" method=\"post\" action=\"");
行 3307:     templateBuilder.Append(rooturl.ToString());
行 3308:     templateBuilder.Append("login.aspx\" onsubmit=\"submitLogin(this);\">\r\n");
行 3309:     templateBuilder.Append("    <input type=\"hidden\" value=\"2592000\" name=\"cookietime\"/>\r\n");
行 3310:     templateBuilder.Append("        <h1 style=\"margin-bottom:10px;\">会员登录</h1>\r\n");
行 3311:     templateBuilder.Append("        <table cellpadding=\"0\" cellspacing=\"0\" class=\"formtable\">\r\n");
行 3312:     templateBuilder.Append("        <tbody>\r\n");
行 3313:     templateBuilder.Append("            <tr>\r\n");
行 3314:     templateBuilder.Append("                <th><label for=\"username\">用户名</label></th>\r\n");
行 3315:     templateBuilder.Append("                <td><input type=\"text\" id=\"username\" name=\"username\" size=\"25\" maxlength=\"40\" tabindex=\"2\" class=\"txt\" />  <a href=\"");
行 3316:     templateBuilder.Append(rooturl.ToString());
行 3317:     templateBuilder.Append("register.aspx\" tabindex=\"-1\" accesskey=\"r\" title=\"立即注册 (ALT + R)\" class=\"lightlink\">立即注册</a>\r\n");
行 3318:     templateBuilder.Append("                </td>\r\n");
行 3319:     templateBuilder.Append("            </tr>\r\n");
行 3320:     templateBuilder.Append("            <tr>\r\n");
行 3321:     templateBuilder.Append("                <th><label for=\"password\">密码</label></th>\r\n");
行 3322:     templateBuilder.Append("                <td><input type=\"password\" name=\"password\" size=\"25\" tabindex=\"3\" class=\"txt\"/> <a href=\"");
行 3323:     templateBuilder.Append(rooturl.ToString());
行 3324:     templateBuilder.Append("getpassword.aspx\" tabindex=\"-1\" accesskey=\"g\" title=\"忘记密码 (ALT + G)\" class=\"lightlink\">忘记密码</a>\r\n");
行 3325:     templateBuilder.Append("                </td>\r\n");
行 3326:     templateBuilder.Append("            </tr>\r\n");
行 3327:
行 3328:     if (config.Secques==1)
行 3329:     {
行 3330:
行 3331:     templateBuilder.Append("            <tr>\r\n");
行 3332:     templateBuilder.Append("                <th><label for=\"questionid\">安全问题</label></th>\r\n");
行 3333:     templateBuilder.Append("                <td>\r\n");
行 3334:     templateBuilder.Append("                    <select name=\"questionid\" tabindex=\"4\">\r\n");
行 3335:     templateBuilder.Append("                    <option value=\"0\">&nbsp;</option>\r\n");
行 3336:     templateBuilder.Append("                    <option value=\"1\">母亲的名字</option>\r\n");
行 3337:     templateBuilder.Append("                    <option value=\"2\">爷爷的名字</option>\r\n");
行 3338:     templateBuilder.Append("                    <option value=\"3\">父亲出生的城市</option>\r\n");
行 3339:     templateBuilder.Append("                    <option value=\"4\">您其中一位老师的名字</option>\r\n");
行 3340:     templateBuilder.Append("                    <option value=\"5\">您个人计算机的型号</option>\r\n");
行 3341:     templateBuilder.Append("                    <option value=\"6\">您最喜欢的餐馆名称</option>\r\n");
行 3342:     templateBuilder.Append("                    <option value=\"7\">驾驶执照的最后四位数字</option>\r\n");
行 3343:     templateBuilder.Append("                    </select>\r\n");
行 3344:     templateBuilder.Append("                </td>\r\n");
行 3345:     templateBuilder.Append("            </tr>\r\n");
行 3346:     templateBuilder.Append("            <tr>\r\n");
行 3347:     templateBuilder.Append("                <th><label for=\"answer\">答案</label></th>\r\n");
行 3348:     templateBuilder.Append("                <td><input type=\"text\" name=\"answer\" size=\"25\" tabindex=\"5\" class=\"txt\" /></td>\r\n");
行 3349:     templateBuilder.Append("            </tr>\r\n");
行 3350:
行 3351:     }    //end if
行 3352:
行 3353:     templateBuilder.Append("            <tr>\r\n");
行 3354:     templateBuilder.Append("                <th> </th>\r\n");
行 3355:     templateBuilder.Append("                <td>\r\n");
行 3356:     templateBuilder.Append("                    <button type=\"submit\" name=\"loginsubmit\" id=\"loginsubmit\" value=\"true\" tabindex=\"6\">会员登录</button>\r\n");
行 3357:     templateBuilder.Append("                </td>\r\n");
行 3358:     templateBuilder.Append("            </tr>\r\n");
行 3359:     templateBuilder.Append("        </tbody>\r\n");
行 3360:     templateBuilder.Append("        </table>\r\n");
行 3361:     templateBuilder.Append("    </form>\r\n");
行 3362:     templateBuilder.Append("    </div>\r\n");
行 3363:     templateBuilder.Append("    </div>\r\n");
行 3364:     templateBuilder.Append("</div>\r\n");
行 3365:     templateBuilder.Append("</div>\r\n");
行 3366:
行 3367:     }
行 3368:     else
行 3369:     {
行 3370:
行 3371:     templateBuilder.Append("    <div class=\"msgbox error_msg\">\r\n");
行 3372:     templateBuilder.Append("    <p>您无权进行当前操作,这可能因以下原因之一造成</p>\r\n");
行 3373:     templateBuilder.Append("    <p><b>");
行 3374:     templateBuilder.Append(msgbox_text.ToString());
行 3375:     templateBuilder.Append("</b></p>\r\n");
行 3376:     templateBuilder.Append("    <p>您还没有登录,请的登录后再尝试访问。</p>\r\n");
行 3377:     templateBuilder.Append("    </div>\r\n");
行 3378:     templateBuilder.Append("    <script type=\"text/javascript\" reload=\"1\">\r\n");
行 3379:     templateBuilder.Append("    setTimeout(\"floatwin('close_newthread');floatwin('close_reply');floatwin('close_edit');floatwin('open_login', '");
行 3380:     templateBuilder.Append(forumurl.ToString());
行 3381:     templateBuilder.Append("login.aspx', 600, 410)\",1000);\r\n");
行 3382:     templateBuilder.Append("    </");
行 3383:     templateBuilder.Append("script>\r\n");
行 3384:
行 3385:     }    //end if
行 3386:
行 3387:     templateBuilder.Append("<script type=\"text/javascript\">\r\n");
行 3388:
行 3389:     if (infloat!=1)
行 3390:     {
行 3391:
行 3392:     templateBuilder.Append("        document.getElementById(\"username\").focus();\r\n");
行 3393:
行 3394:     }    //end if
行 3395:
行 3396:     templateBuilder.Append("        function submitLogin(loginForm)\r\n");
行 3397:     templateBuilder.Append("        {\r\n");
行 3398:     templateBuilder.Append("            loginForm.action = '");
行 3399:     templateBuilder.Append(rooturl.ToString());
行 3400:     templateBuilder.Append("login.aspx?loginsubmit=true&reurl=' + escape(window.location);\r\n");
行 3401:     templateBuilder.Append("            loginForm.submit();\r\n");
行 3402:     templateBuilder.Append("        }\r\n");
行 3403:     templateBuilder.Append("</");
行 3404:     templateBuilder.Append("script>\r\n");
行 3405:
行 3406:
行 3407:
行 3408:     }
行 3409:     else
行 3410:     {
行 3411:
行 3412:
行 3413:     if (infloat==1)
行 3414:     {
行 3415:
行 3416:     templateBuilder.Append("    <div class=\"floatbox floatbox1\">\r\n");
行 3417:     templateBuilder.Append("    <h3 class=\"float_ctrl\">\r\n");
行 3418:     templateBuilder.Append("        <span>\r\n");
行 3419:     templateBuilder.Append("            <a href=\"javascript:;\" class=\"float_close\" onclick=\"floatwin('floatwin_reply');\" title=\"关闭\">关闭</a>\r\n");
行 3420:     templateBuilder.Append("        </span>\r\n");
行 3421:     templateBuilder.Append("    </h3>\r\n");
行 3422:     templateBuilder.Append("    <div class=\"gateform\">\r\n");
行 3423:     templateBuilder.Append("    <h3>");
行 3424:     templateBuilder.Append(msgbox_text.ToString());
行 3425:     templateBuilder.Append("</h3>\r\n");
行 3426:     templateBuilder.Append("    </div>\r\n");
行 3427:     templateBuilder.Append("    </div>\r\n");
行 3428:
行 3429:     }
行 3430:     else
行 3431:     {
行 3432:
行 3433:
行 3434:     templateBuilder.Append("<div class=\"wrap s_clear\" id=\"wrap\">\r\n");
行 3435:     templateBuilder.Append("<div class=\"main\">\r\n");
行 3436:     templateBuilder.Append("    <div class=\"msgbox error_msg\">\r\n");
行 3437:     templateBuilder.Append("        <h1>出现了");
行 3438:     templateBuilder.Append(page_err.ToString());
行 3439:     templateBuilder.Append("个错误</h1>\r\n");
行 3440:     templateBuilder.Append("        <p>");
行 3441:     templateBuilder.Append(msgbox_text.ToString());
行 3442:     templateBuilder.Append("</p>\r\n");
行 3443:     templateBuilder.Append("        <p class=\"errorback\">\r\n");
行 3444:     templateBuilder.Append("            <script type=\"text/javascript\">\r\n");
行 3445:     templateBuilder.Append("                if(");
行 3446:     templateBuilder.Append(msgbox_showbacklink.ToString());
行 3447:     templateBuilder.Append(")\r\n");
行 3448:     templateBuilder.Append("                {\r\n");
行 3449:     templateBuilder.Append("                    document.write(\"<a href=\\\"");
行 3450:     templateBuilder.Append(msgbox_backlink.ToString());
行 3451:     templateBuilder.Append("\\\">返回上一步</a> &nbsp; &nbsp;|&nbsp; &nbsp  \");\r\n");
行 3452:     templateBuilder.Append("                }\r\n");
行 3453:     templateBuilder.Append("            </");
行 3454:     templateBuilder.Append("script>\r\n");
行 3455:     templateBuilder.Append("            <a href=\"forumindex.aspx\">论坛首页</a>\r\n");
行 3456:
行 3457:     if (usergroupid==7)
行 3458:     {
行 3459:
行 3460:     templateBuilder.Append("             &nbsp; &nbsp|&nbsp; &nbsp; <a href=\"register.aspx\">注册</a>\r\n");
行 3461:
行 3462:     }    //end if
行 3463:
行 3464:     templateBuilder.Append("        </p>\r\n");
行 3465:     templateBuilder.Append("    </div>\r\n");
行 3466:     templateBuilder.Append("</div>\r\n");
行 3467:     templateBuilder.Append("</div>\r\n");
行 3468:
行 3469:
行 3470:
行 3471:     }    //end if
行 3472:
行 3473:     templateBuilder.Append("        <script type=\"text/javascript\">setcookie(\"dnt_title\", '', 1);</");
行 3474:     templateBuilder.Append("script>\r\n");
行 3475:
行 3476:     }    //end if
行 3477:
行 3478:
行 3479:     }    //end if
行 3480:
行 3481:
行 3482:     }    //end if
行 3483:
行 3484:
行 3485:
行 3486:     if (infloat!=1)
行 3487:     {
行 3488:
行 3489:
行 3490:     if (footerad!="")
行 3491:     {
行 3492:
行 3493:     templateBuilder.Append("<div id=\"ad_footerbanner\">");
行 3494:     templateBuilder.Append(footerad.ToString());
行 3495:     templateBuilder.Append("</div>\r\n");
行 3496:
行 3497:     }    //end if
行 3498:
行 3499:     templateBuilder.Append("<div id=\"footer\">\r\n");
行 3500:     templateBuilder.Append("    <div class=\"wrap\">\r\n");
行 3501:     templateBuilder.Append("        <div id=\"footlinks\">\r\n");
行 3502:     templateBuilder.Append("            <p><a href=\"");
行 3503:     templateBuilder.Append(config.Weburl.ToString().Trim());
行 3504:     templateBuilder.Append("\" target=\"_blank\">");
行 3505:     templateBuilder.Append(config.Webtitle.ToString().Trim());
行 3506:     templateBuilder.Append("</a> - ");
行 3507:     templateBuilder.Append(config.Linktext.ToString().Trim());
行 3508:     templateBuilder.Append(" - <a target=\"_blank\" href=\"");
行 3509:     templateBuilder.Append(forumurl.ToString());
行 3510:     templateBuilder.Append("stats.aspx\">统计</a> - \r\n");
行 3511:
行 3512:     if (config.Sitemapstatus==1)
行 3513:     {
行 3514:
行 3515:     templateBuilder.Append("&nbsp;<a href=\"");
行 3516:     templateBuilder.Append(forumurl.ToString());
行 3517:     templateBuilder.Append("tools/sitemap.aspx\" target=\"_blank\" title=\"百度论坛收录协议\">Sitemap</a>\r\n");
行 3518:
行 3519:     }    //end if
行 3520:
行 3521:     templateBuilder.Append("            ");
行 3522:     templateBuilder.Append(config.Statcode.ToString().Trim());
行 3523:     templateBuilder.Append(config.Icp.ToString().Trim());
行 3524:     templateBuilder.Append("\r\n");
行 3525:     templateBuilder.Append("            </p>\r\n");
行 3526:     templateBuilder.Append("            <div>\r\n");
行 3527:     templateBuilder.Append("                <a href=\"http://www.comsenz.com/\" target=\"_blank\">Comsenz Technology Ltd</a>\r\n");
行 3528:     templateBuilder.Append("                - <a href=\"");
行 3529:     templateBuilder.Append(forumurl.ToString());
行 3530:     templateBuilder.Append("archiver/index.aspx\" target=\"_blank\">简洁版本</a>\r\n");
行 3531:
行 3532:     if (config.Stylejump==1)
行 3533:     {
行 3534:
行 3535:
行 3536:     if (userid!=-1 || config.Guestcachepagetimeout<=0)
行 3537:     {
行 3538:
行 3539:     templateBuilder.Append("                - <span id=\"styleswitcher\" class=\"drop\" onmouseover=\"showMenu(this.id)\" onclick=\"window.location.href='");
行 3540:     templateBuilder.Append(forumurl.ToString());
行 3541:     templateBuilder.Append("showtemplate.aspx'\">界面风格</span>\r\n");
行 3542:     templateBuilder.Append("                <ul id=\"styleswitcher_menu\" class=\"popupmenu_popup s_clear\" style=\"display: none;\">\r\n");
行 3543:     templateBuilder.Append("                ");
行 3544:     templateBuilder.Append(templatelistboxoptions.ToString());
行 3545:     templateBuilder.Append("\r\n");
行 3546:     templateBuilder.Append("                </ul>\r\n");
行 3547:
行 3548:     }    //end if
行 3549:
行 3550:
行 3551:     }    //end if
行 3552:
行 3553:     templateBuilder.Append("                - <span class=\"scrolltop\" onclick=\"window.scrollTo(0,0);\">TOP</span>\r\n");
行 3554:     templateBuilder.Append("            </div>\r\n");
行 3555:     templateBuilder.Append("        </div>\r\n");
行 3556:     templateBuilder.Append("        <a title=\"Powered by Discuz!NT\" target=\"_blank\" href=\"http://nt.discuz.net\"><img border=\"0\" alt=\"Discuz!NT\" src=\"");
行 3557:     templateBuilder.Append(forumurl.ToString());
行 3558:     templateBuilder.Append("templates/");
行 3559:     templateBuilder.Append(templatepath.ToString());
行 3560:     templateBuilder.Append("/images/discuznt_logo.gif\"/></a>\r\n");
行 3561:     templateBuilder.Append("        <p id=\"copyright\">\r\n");
行 3562:     templateBuilder.Append("            Powered by <strong><a href=\"http://nt.discuz.net\" target=\"_blank\" title=\"Discuz!NT 3.0.0 (.NET Framework 2.0/3.x)\">Discuz!NT</a></strong> <em class=\"f_bold\">3.0.0</em>\r\n");
行 3563:
行 3564:     if (config.Licensed==1)
行 3565:     {
行 3566:
行 3567:     templateBuilder.Append("                (<a href=\"\" onclick=\"this.href='http://nt.discuz.net/certificate/?host='+location.href.substring(0, location.href.lastIndexOf('/'))\" target=\"_blank\">Licensed</a>)\r\n");
行 3568:
行 3569:     }    //end if
行 3570:
行 3571:     templateBuilder.Append("                ");
行 3572:     templateBuilder.Append(config.Forumcopyright.ToString().Trim());
行 3573:     templateBuilder.Append("\r\n");
行 3574:     templateBuilder.Append("        </p>\r\n");
行 3575:     templateBuilder.Append("        <p id=\"debuginfo\" class=\"grayfont\">\r\n");
行 3576:
行 3577:     if (config.Debug!=0)
行 3578:     {
行 3579:
行 3580:     templateBuilder.Append("            Processed in ");
行 3581:     templateBuilder.Append(this.Processtime.ToString().Trim());
行 3582:     templateBuilder.Append(" second(s)\r\n");
行 3583:
行 3584:     if (isguestcachepage==1)
行 3585:     {
行 3586:
行 3587:     templateBuilder.Append("                (Cached).\r\n");
行 3588:
行 3589:     }
行 3590:     else if (querycount>1)
行 3591:     {
行 3592:
行 3593:     templateBuilder.Append("                 , ");
行 3594:     templateBuilder.Append(querycount.ToString());
行 3595:     templateBuilder.Append(" queries.\r\n");
行 3596:
行 3597:     }
行 3598:     else
行 3599:     {
行 3600:
行 3601:     templateBuilder.Append("                        , ");
行 3602:     templateBuilder.Append(querycount.ToString());
行 3603:     templateBuilder.Append(" query.\r\n");
行 3604:
行 3605:     }    //end if
行 3606:
行 3607:
行 3608:     }    //end if
行 3609:
行 3610:     templateBuilder.Append("        </p>\r\n");
行 3611:     templateBuilder.Append("    </div>\r\n");
行 3612:     templateBuilder.Append("</div>\r\n");
行 3613:     templateBuilder.Append("<ul id=\"quicksearch_menu\" class=\"popupmenu_popup\" style=\"display: none;\">\r\n");
行 3614:     templateBuilder.Append("    <li onclick=\"document.getElementById('keywordtype').value='0';document.getElementById('quicksearch').innerHTML='帖子标题';document.getElementById('quicksearch_menu').style.display='none';\" onmouseover=\"MouseCursor(this);\">帖子标题</li>\r\n");
行 3615:
行 3616:     if (config.Enablespace==1)
行 3617:     {
行 3618:
行 3619:     templateBuilder.Append("    <li onclick=\"document.getElementById('keywordtype').value='2';document.getElementById('quicksearch').innerHTML='空间日志';document.getElementById('quicksearch_menu').style.display='none';\" onmouseover=\"MouseCursor(this);\">空间日志</li>\r\n");
行 3620:
行 3621:     }    //end if
行 3622:
行 3623:
行 3624:     if (config.Enablealbum==1)
行 3625:     {
行 3626:
行 3627:     templateBuilder.Append("    <li onclick=\"document.getElementById('keywordtype').value='3';document.getElementById('quicksearch').innerHTML='相册标题';document.getElementById('quicksearch_menu').style.display='none';\" onmouseover=\"MouseCursor(this);\">相册标题</li>\r\n");
行 3628:
行 3629:     }    //end if
行 3630:
行 3631:     templateBuilder.Append("    <li onclick=\"document.getElementById('keywordtype').value='8';document.getElementById('quicksearch').innerHTML='作者';document.getElementById('quicksearch_menu').style.display='none';\" onmouseover=\"MouseCursor(this);\">作者</li>\r\n");
行 3632:     templateBuilder.Append("</ul>\r\n");
行 3633:     templateBuilder.Append("<ul class=\"popupmenu_popup\" id=\"viewpro_menu\" style=\"display: none\">\r\n");
行 3634:     templateBuilder.Append("    <li style=\"text-align:center;\"><img src=\"");
行 3635:     templateBuilder.Append(useravatar.ToString());
行 3636:     templateBuilder.Append("\" onerror=\"this.onerror=null;this.src='templates/");
行 3637:     templateBuilder.Append(templatepath.ToString());
行 3638:     templateBuilder.Append("/images/noavatar_small.gif';\" /></li>\r\n");
行 3639:      aspxrewriteurl = this.UserInfoAspxRewrite(userid);
行 3640:     
行 3641:     templateBuilder.Append("    <li class=\"popuser\"><a href=\"");
行 3642:     templateBuilder.Append(forumurl.ToString());
行 3643:     templateBuilder.Append(aspxrewriteurl.ToString());
行 3644:     templateBuilder.Append("\">我的资料</a></li>\r\n");
行 3645:
行 3646:     if (config.Enablespace==1)
行 3647:     {
行 3648:
行 3649:     templateBuilder.Append("    <li class=\"poplink\"><a href=\"");
行 3650:     templateBuilder.Append(forumurl.ToString());
行 3651:     templateBuilder.Append(spaceurl.ToString());
行 3652:     templateBuilder.Append("space/\">我的空间</a></li>\r\n");
行 3653:
行 3654:     }    //end if
行 3655:
行 3656:     templateBuilder.Append("</ul>\r\n");
行 3657:
行 3658:     int prentid__loop__id=0;
行 3659:     foreach(string prentid in mainnavigationhassub)
行 3660:     {
行 3661:         prentid__loop__id++;
行 3662:
行 3663:     templateBuilder.Append("<ul class=\"popupmenu_popup headermenu_popup\" id=\"menu_");
行 3664:     templateBuilder.Append(prentid.ToString());
行 3665:     templateBuilder.Append("_menu\" style=\"display: none\">\r\n");
行 3666:
行 3667:     int subnav__loop__id=0;
行 3668:     foreach(DataRow subnav in subnavigation.Rows)
行 3669:     {
行 3670:         subnav__loop__id++;
行 3671:
行 3672:     bool isoutput = false;
行 3673:     
行 3674:
行 3675:     if (subnav["parentid"].ToString().Trim()==prentid)
行 3676:     {
行 3677:
行 3678:
行 3679:     if (subnav["level"].ToString().Trim()=="0")
行 3680:     {
行 3681:
行 3682:      isoutput = true;
行 3683:     
行 3684:
行 3685:     }
行 3686:     else
行 3687:     {
行 3688:
行 3689:
行 3690:     if (subnav["level"].ToString().Trim()=="1" && userid!=-1)
行 3691:     {
行 3692:
行 3693:      isoutput = true;
行 3694:     
行 3695:
行 3696:     }
行 3697:     else
行 3698:     {
行 3699:
行 3700:     bool leveluseradmindi = true;
行 3701:     
行 3702:      leveluseradmindi = (useradminid==3 || useradminid==1 || useradminid==2);
行 3703:     
行 3704:
行 3705:     if (subnav["level"].ToString().Trim()=="2" &&  leveluseradmindi)
行 3706:     {
行 3707:
行 3708:      isoutput = true;
行 3709:     
行 3710:
行 3711:     }    //end if
行 3712:
行 3713:
行 3714:     if (subnav["level"].ToString().Trim()=="3" && useradminid==1)
行 3715:     {
行 3716:
行 3717:      isoutput = true;
行 3718:     
行 3719:
行 3720:     }    //end if
行 3721:
行 3722:
行 3723:     }    //end if
行 3724:
行 3725:
行 3726:     }    //end if
行 3727:
行 3728:
行 3729:     }    //end if
行 3730:
行 3731:
行 3732:     if (isoutput)
行 3733:     {
行 3734:
行 3735:
行 3736:     if (subnav["id"].ToString().Trim()=="11" || subnav["id"].ToString().Trim()=="12")
行 3737:     {
行 3738:
行 3739:
行 3740:     if (config.Statstatus==1)
行 3741:     {
行 3742:
行 3743:     templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "\r\n");
行 3744:     continue;
行 3745:
行 3746:
行 3747:     }
行 3748:     else
行 3749:     {
行 3750:
行 3751:     continue;
行 3752:
行 3753:
行 3754:     }    //end if
行 3755:
行 3756:
行 3757:     }    //end if
行 3758:
行 3759:
行 3760:     if (subnav["id"].ToString().Trim()=="18")
行 3761:     {
行 3762:
行 3763:
行 3764:     if (config.Oltimespan>0)
行 3765:     {
行 3766:
行 3767:     templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "\r\n");
行 3768:     continue;
行 3769:
行 3770:
行 3771:     }
行 3772:     else
行 3773:     {
行 3774:
行 3775:     continue;
行 3776:
行 3777:
行 3778:     }    //end if
行 3779:
行 3780:
行 3781:     }    //end if
行 3782:
行 3783:
行 3784:     if (subnav["id"].ToString().Trim()=="24")
行 3785:     {
行 3786:
行 3787:
行 3788:     if (config.Enablespace==1)
行 3789:     {
行 3790:
行 3791:     templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "\r\n");
行 3792:     continue;
行 3793:
行 3794:
行 3795:     }
行 3796:     else
行 3797:     {
行 3798:
行 3799:     continue;
行 3800:
行 3801:
行 3802:     }    //end if
行 3803:
行 3804:
行 3805:     }    //end if
行 3806:
行 3807:
行 3808:     if (subnav["id"].ToString().Trim()=="25")
行 3809:     {
行 3810:
行 3811:
行 3812:     if (config.Enablealbum==1)
行 3813:     {
行 3814:
行 3815:     templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "\r\n");
行 3816:     continue;
行 3817:
行 3818:
行 3819:     }
行 3820:     else
行 3821:     {
行 3822:
行 3823:     continue;
行 3824:
行 3825:
行 3826:     }    //end if
行 3827:
行 3828:
行 3829:     }    //end if
行 3830:
行 3831:
行 3832:     if (subnav["id"].ToString().Trim()=="26")
行 3833:     {
行 3834:
行 3835:
行 3836:     if (config.Enablemall>=1)
行 3837:     {
行 3838:
行 3839:     templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "\r\n");
行 3840:     continue;
行 3841:
行 3842:
行 3843:     }
行 3844:     else
行 3845:     {
行 3846:
行 3847:     continue;
行 3848:
行 3849:
行 3850:     }    //end if
行 3851:
行 3852:
行 3853:     }    //end if
行 3854:
行 3855:     templateBuilder.Append("    " + subnav["nav"].ToString().Trim() + "\r\n");
行 3856:
行 3857:     }    //end if
行 3858:
行 3859:
行 3860:     }    //end loop
行 3861:
行 3862:     templateBuilder.Append("</ul>\r\n");
行 3863:
行 3864:     }    //end loop
行 3865:
行 3866:
行 3867:
行 3868:
行 3869:     templateBuilder.Append("</body>\r\n");
行 3870:     templateBuilder.Append("</html>\r\n");
行 3871:
行 3872:     }
行 3873:     else
行 3874:     {
行 3875:
行 3876:     templateBuilder.Append("]]></root>\r\n");
行 3877:
行 3878:     }    //end if
行 3879:
行 3880:
行 3881:
行 3882:
行 3883:     Response.Write(templateBuilder.ToString());
行 3884: }
行 3885:
行 3886:         #line default
行 3887:         #line hidden
行 3888:        
行 3889:        
行 3890:         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 3891:         public aspx_1_postreply_aspx() {
行 3892:             string[] dependencies;
行 3893:             ((global:iscuz.Web.postreply)(this)).AppRelativeVirtualPath = "~/aspx/1/postreply.aspx";
行 3894:             if ((global::ASP.aspx_1_postreply_aspx.@__initialized == false)) {
行 3895:                 dependencies = new string[1];
行 3896:                 dependencies[0] = "~/aspx/1/postreply.aspx";
行 3897:                 global::ASP.aspx_1_postreply_aspx.@__fileDependencies = this.GetWrappedFileDependencies(dependencies);
行 3898:                 global::ASP.aspx_1_postreply_aspx.@__initialized = true;
行 3899:             }
行 3900:             this.Server.ScriptTimeout = 30000000;
行 3901:         }
行 3902:        
行 3903:         protected System.Web.Profile.DefaultProfile Profile {
行 3904:             get {
行 3905:                 return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));
行 3906:             }
行 3907:         }
行 3908:        
行 3909:         protected override bool SupportAutoEvents {
行 3910:             get {
行 3911:                 return false;
行 3912:             }
行 3913:         }
行 3914:        
行 3915:         protected System.Web.HttpApplication ApplicationInstance {
行 3916:             get {
行 3917:                 return ((System.Web.HttpApplication)(this.Context.ApplicationInstance));
行 3918:             }
行 3919:         }
行 3920:        
行 3921:         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 3922:         private void @__BuildControlTree(aspx_1_postreply_aspx @__ctrl) {
行 3923:            
行 3924:             #line 1 "E:\websites\dnt2\aspx\1\postreply.aspx"
行 3925:             @__ctrl.EnableViewState = false;
行 3926:            
行 3927:             #line default
行 3928:             #line hidden
行 3929:            
行 3930:             #line 1 "E:\websites\dnt2\aspx\1\postreply.aspx"
行 3931:             @__ctrl.EnableViewStateMac = false;
行 3932:            
行 3933:             #line default
行 3934:             #line hidden
行 3935:            
行 3936:             #line 1 "E:\websites\dnt2\aspx\1\postreply.aspx"
行 3937:             @__ctrl.EnableEventValidation = false;
行 3938:            
行 3939:             #line default
行 3940:             #line hidden
行 3941:            
行 3942:             #line 1 "E:\websites\dnt2\aspx\1\postreply.aspx"
行 3943:             @__ctrl.ViewStateEncryptionMode = System.Web.UI.ViewStateEncryptionMode.Never;
行 3944:            
行 3945:             #line default
行 3946:             #line hidden
行 3947:            
行 3948:             #line 1 "E:\websites\dnt2\aspx\1\postreply.aspx"
行 3949:             this.InitializeCulture();
行 3950:            
行 3951:             #line default
行 3952:             #line hidden
行 3953:         }
行 3954:        
行 3955:         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 3956:         protected override void FrameworkInitialize() {
行 3957:             base.FrameworkInitialize();
行 3958:             this.@__BuildControlTree(this);
行 3959:             this.AddWrappedFileDependencies(global::ASP.aspx_1_postreply_aspx.@__fileDependencies);
行 3960:         }
行 3961:        
行 3962:         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 3963:         public override int GetTypeHashCode() {
行 3964:             return 5381;
行 3965:         }
行 3966:        
行 3967:         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 3968:         public override void ProcessRequest(System.Web.HttpContext context) {
行 3969:             base.ProcessRequest(context);
行 3970:         }
行 3971:     }
行 3972: }
行 3973:





--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.3615; ASP.NET 版本:2.0.50727.3618
分享 转发
TOP
2#

不知道是服务器的问题还是程序的问题!
TOP
发新话题 回复该主题