postreply.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:144k
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Web.postreply" %>
- <%@ Import namespace="System.Data" %>
- <%@ Import namespace="Discuz.Common" %>
- <%@ Import namespace="Discuz.Forum" %>
- <%@ Import namespace="Discuz.Entity" %>
- <script runat="server">
- override protected void OnInit(EventArgs e)
- {
- /*
- This page was created by Discuz!NT Template Engine at 2010/2/8 15:43:50.
- 本页面代码由Discuz!NT模板引擎生成于 2010/2/8 15:43:50.
- */
- base.OnInit(e);
- templateBuilder.Capacity = 220000;
- if (infloat!=1)
- {
- templateBuilder.Append("<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">rn");
- templateBuilder.Append("<html xmlns="http://www.w3.org/1999/xhtml">rn");
- templateBuilder.Append("<head>rn");
- templateBuilder.Append("<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />rn");
- if (pagetitle=="首页")
- {
- templateBuilder.Append("<title>");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Seotitle.ToString().Trim());
- templateBuilder.Append(" - Powered by Discuz!NT</title>rn");
- }
- else
- {
- templateBuilder.Append("<title>");
- templateBuilder.Append(pagetitle.ToString());
- templateBuilder.Append(" - ");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Seotitle.ToString().Trim());
- templateBuilder.Append(" - Powered by Discuz!NT</title>rn");
- } //end if
- templateBuilder.Append(meta.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("<meta name="generator" content="Discuz!NT 3.1.0" />rn");
- templateBuilder.Append("<meta name="author" content="Discuz!NT Team and Comsenz UI Team" />rn");
- templateBuilder.Append("<meta name="copyright" content="2001-2010 Comsenz Inc." />rn");
- templateBuilder.Append("<meta http-equiv="x-ua-compatible" content="ie=7" />rn");
- templateBuilder.Append("<link rel="icon" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("favicon.ico" type="image/x-icon" />rn");
- templateBuilder.Append("<link rel="shortcut icon" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("favicon.ico" type="image/x-icon" />rn");
- templateBuilder.Append("<link rel="stylesheet" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/dnt.css" type="text/css" media="all" />rn");
- templateBuilder.Append("<link rel="stylesheet" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/float.css" type="text/css" />rn");
- templateBuilder.Append(link.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("var creditnotice='");
- templateBuilder.Append(Scoresets.GetValidScoreNameAndId().ToString().Trim());
- templateBuilder.Append("'; rn");
- templateBuilder.Append("var forumpath = "");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/common.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/template_report.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/template_utils.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/ajax.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append(" var aspxrewrite = ");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append(";rn");
- templateBuilder.Append(" var IMGDIR = '");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images'rn");
- templateBuilder.Append(" var allowfloatwin = ");
- templateBuilder.Append(config.Allowfloatwin.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" var rooturl="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(script.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("</head>rn");
- templateBuilder.Append("<body onkeydown="if(event.keyCode==27) return false;">rn");
- templateBuilder.Append("<div id="append_parent"></div><div id="ajaxwaitid"></div>rn");
- templateBuilder.Append("<div id="submenu">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- if (usergroupinfo.Allowsearch>0)
- {
- templateBuilder.Append(" <form method="post" action="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("search.aspx" target="_blank" onsubmit="bind_keyword(this);;" class="right">rn");
- templateBuilder.Append(" <input type="hidden" name="poster" />rn");
- templateBuilder.Append(" <input type="hidden" name="keyword" />rn");
- templateBuilder.Append(" <input type="hidden" name="type" value="" />rn");
- templateBuilder.Append(" <input id="keywordtype" type="hidden" name="keywordtype" value="0" />rn");
- templateBuilder.Append(" <a href="javascript:void(0);" class="drop" id="quicksearch" onclick="showMenu(this.id, false);" onmouseover="MouseCursor(this);">快速搜索</a>rn");
- templateBuilder.Append(" <input type="text" name="keywordf" value="输入搜索关键字" onblur="if(this.value=='')this.value=defaultValue" onclick="if(this.value==this.defaultValue)this.value = ''" onkeydown="if(this.value==this.defaultValue)this.value = ''" class="txt"/>rn");
- templateBuilder.Append(" <input name="searchsubmit" type="submit" value="" class="btnsearch"/>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" function bind_keyword(form) {rn");
- templateBuilder.Append(" if (form.keywordtype.value == '9') {rn");
- templateBuilder.Append(" form.action = '");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("forumsearch.aspx?q=' + escape(form.keywordf.value);rn");
- templateBuilder.Append(" } else if (form.keywordtype.value == '8') {rn");
- templateBuilder.Append(" form.keyword.value = '';rn");
- templateBuilder.Append(" form.poster.value = form.keywordf.value;rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" form.poster.value = '';rn");
- templateBuilder.Append(" form.keyword.value = form.keywordf.value;rn");
- templateBuilder.Append(" if (form.keywordtype.value == '2')rn");
- templateBuilder.Append(" form.type.value = 'spacepost';rn");
- templateBuilder.Append(" if (form.keywordtype.value == '3')rn");
- templateBuilder.Append(" form.type.value = 'album';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append(" <span class="avataonline right">rn");
- if (userid==-1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("login.aspx" onClick="floatwin('open_login', '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("login.aspx', 600, 410);return false;">[登录]</a>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("register.aspx" onClick="floatwin('open_register', '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("register.aspx', 600, 410);return false;">[注册]</arn");
- templateBuilder.Append(" >rn");
- }
- else
- {
- templateBuilder.Append(" 欢迎<a class="drop" id="viewpro" onMouseOver="showMenu(this.id)">");
- templateBuilder.Append(username.ToString());
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("logout.aspx?userkey=");
- templateBuilder.Append(userkey.ToString());
- templateBuilder.Append("">退出</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- } //end if
- templateBuilder.Append(" </span>rn");
- if (userid!=-1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpinbox.aspx" class="inbox" title="");
- templateBuilder.Append(oluserinfo.Newpms.ToString().Trim());
- templateBuilder.Append("条新短消息">收件箱</a>rn");
- if (oluserinfo.Newpms>0)
- {
- templateBuilder.Append("<cite>");
- templateBuilder.Append(oluserinfo.Newpms.ToString().Trim());
- templateBuilder.Append("</cite>rn");
- } //end if
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpnotice.aspx?filter=all" class="notice">通知</a>rn");
- if (oluserinfo.Newnotices>0)
- {
- templateBuilder.Append("<cite>");
- templateBuilder.Append(oluserinfo.Newnotices.ToString().Trim());
- templateBuilder.Append("</cite>rn");
- } //end if
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercp.aspx" class="usercp">用户中心</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- if (useradminid==1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("admin/index.aspx" target="_blank" class="systemmanage">系统设置</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- } //end if
- templateBuilder.Append(" <a href="javascript:void(0);" class="drop" id="mymenu" onMouseOver="showMenu(this.id, false);" >我的</a>rn");
- templateBuilder.Append(" <ul class="popupmenu_popup headermenu_popup" id="mymenu_menu" style="display: none">rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("mytopics.aspx">我的主题</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("myposts.aspx">我的帖子</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("search.aspx?posterid=current&type=digest">我的精华</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("myattachment.aspx">我的附件</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpsubscribe.aspx">我的收藏</a></li>rn");
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("space/">我的空间</a></li>rn");
- } //end if
- if (config.Enablealbum==1)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showalbumlist.aspx?uid=");
- templateBuilder.Append(userid.ToString());
- templateBuilder.Append("">我的相册</a></li>rn");
- } //end if
- if (config.Enablemall==1)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpmygoods.aspx">我的商品</a></li>rn");
- } //end if
- templateBuilder.Append(" </ul>rn");
- } //end if
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<div id="header">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- templateBuilder.Append(" <h2><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("index.aspx" title="Discuz!NT|BBS|论坛"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/logo.gif" alt="Discuz!NT|BBS|论坛"/></a></h2>rn");
- if (headerad!="")
- {
- templateBuilder.Append(" <div id="ad_headerbanner"></div>rn");
- } //end if
- templateBuilder.Append(" <ul id="menu">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(mainnavigation.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- }
- else
- {
- Response.Clear();
- Response.ContentType = "Text/XML";
- Response.Expires = 0;
- Response.Cache.SetNoStore();
-
- templateBuilder.Append("<?xml version="1.0" encoding="utf-8"?><root><![CDATA[rn");
- } //end if
- if (infloat!=1)
- {
- templateBuilder.Append("<script type="text/javascript" src="javascript/template_calendar.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<div id="nav">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(config.Forumurl.ToString().Trim());
- templateBuilder.Append("" class="title">");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append("</a> rn");
- if (forum.Pathlist!="")
- {
- templateBuilder.Append("»");
- templateBuilder.Append(ShowForumAspxRewrite(forum.Pathlist.Trim(),forumid,forumpageid).ToString().Trim());
- templateBuilder.Append(" » rn");
- } //end if
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(ShowTopicAspxRewrite(topicid,0).ToString());
- templateBuilder.Append("">");
- templateBuilder.Append(topictitle.ToString());
- templateBuilder.Append("</a> » <strong>回复主题</strong>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- } //end if
- templateBuilder.Append("<script type="text/javascript" reload="1" >rn");
- templateBuilder.Append("var postminchars = parseInt(");
- templateBuilder.Append(config.Minpostsize.ToString().Trim());
- templateBuilder.Append(");rn");
- templateBuilder.Append("var postmaxchars = parseInt(");
- templateBuilder.Append(config.Maxpostsize.ToString().Trim());
- templateBuilder.Append(");rn");
- templateBuilder.Append("var disablepostctrl = parseInt(");
- templateBuilder.Append(disablepost.ToString());
- templateBuilder.Append(");rn");
- templateBuilder.Append("var forumpath = "");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append("var posturl=forumpath+'postreply.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append("';rn");
- templateBuilder.Append("var postaction='postreply.aspx?infloat=1&topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&';rn");
- templateBuilder.Append("function closereply()rn");
- templateBuilder.Append("{rn");
- templateBuilder.Append(" if($('floatwin_reply'))rn");
- templateBuilder.Append(" $('floatwin_reply').parentNode.removeChild($('floatwin_reply')); rn");
- templateBuilder.Append(" if($('floatwin_reply_mask'))rn");
- templateBuilder.Append(" $('floatwin_reply_mask').parentNode.removeChild($('floatwin_reply_mask'));rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- if (page_err==0)
- {
- if (ispost)
- {
- if (infloat==1)
- {
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" $('returnmessage').className='';rn");
- templateBuilder.Append(" location.href='");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append(msgbox_url.ToString());
- templateBuilder.Append("'; rn");
- templateBuilder.Append(" location.reload(); rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- }
- else
- {
- templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
- templateBuilder.Append("<div class="main">rn");
- templateBuilder.Append(" <div class="msgbox">rn");
- templateBuilder.Append(" <h1>");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" 提示信息</h1>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <div class="msg_inner">rn");
- templateBuilder.Append(" <p>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</p>rn");
- if (msgbox_url!="")
- {
- templateBuilder.Append(" <p><a href="");
- templateBuilder.Append(msgbox_url.ToString());
- templateBuilder.Append("">如果浏览器没有转向, 请点击这里.</a></p>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- } //end if
- }
- else
- {
- if (infloat==0)
- {
- templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
- templateBuilder.Append("<div class="main">rn");
- templateBuilder.Append(" <div class="nojs" style="position:relative;">rn");
- templateBuilder.Append(" <div id="floatwinnojs">rn");
- } //end if
- templateBuilder.Append(" <script>rn");
- templateBuilder.Append(" function geteditormessage(theform)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var message = wysiwyg ? html2bbcode(getEditorContents()) : (!theform.parseurloff.checked ? parseurl(theform.message.value) : theform.message.value);rn");
- templateBuilder.Append(" theform.message.value = message;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <div id="floatlayout_reply" class="float" rn");
- if (infloat==1)
- {
- templateBuilder.Append("style="width: 600px; height: 410px;"rn");
- } //end if
- templateBuilder.Append(">rn");
- if (infloat==1)
- {
- templateBuilder.Append(" <form method="post" name="postform" id="postform" action="postreply.aspx?infloat=1&topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&" enctype="multipart/form-data" onsubmit="return validate(this)">rn");
- }
- else
- {
- templateBuilder.Append(" <form method="post" name="postform" id="postform" action="" enctype="multipart/form-data" onsubmit="return validate(this)">rn");
- } //end if
- string special = DNTRequest.GetString("type").ToLower();;
-
- if (special=="" && topic.Special>0)
- {
- if (topic.Special==1)
- {
- special = "poll";
-
- } //end if
- if (topic.Special==2 || topic.Special==3)
- {
- special = "bonus";
-
- } //end if
- if (topic.Special==4)
- {
- special = "debate";
-
- } //end if
- } //end if
- bool adveditor = (special!="" || topic.Special>0)&&isfirstpost;
-
- string action = pagename.Replace("post","").Replace(".aspx","").Replace("topic","newthread");
-
- string actiontitle = "";
-
- if (pagename=="posttopic.aspx")
- {
- if (special=="bonus")
- {
- actiontitle = "发布悬赏";
-
- }
- else if (special=="poll")
- {
- actiontitle = "发布投票";
-
- }
- else if (special=="debate")
- {
- actiontitle = "发布辩论";
-
- }
- else
- {
- actiontitle = "发新主题";
-
- } //end if
- }
- else if (pagename=="postreply.aspx")
- {
- actiontitle = "回复主题";
-
- }
- else if (pagename=="editpost.aspx")
- {
- actiontitle = "编辑帖子";
-
- } //end if
- char comma = ',';
-
- string editorid = "e";
-
- int thumbwidth = 400;
-
- int thumbheight = 300;
-
- templateBuilder.Append("<script type="text/javascript" reload="1">rn");
- templateBuilder.Append(" function removeElement()rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- if (infloat==1)
- {
- templateBuilder.Append("<div style="clear:both; width:2500px;overflow-x:hidden;">rn");
- }
- else
- {
- templateBuilder.Append("<div style="clear:both;">rn");
- } //end if
- if (infloat==1)
- {
- templateBuilder.Append("<div class="floatbox floatbox1" id="extcreditbox1"></div>rn");
- } //end if
- if (adveditor==false)
- {
- templateBuilder.Append("<div class="floatbox floatbox1" id="editorbox">rn");
- }
- else
- {
- templateBuilder.Append("<div class="floatbox floatbox1">rn");
- } //end if
- templateBuilder.Append(" <h3 class="float_ctrl">rn");
- templateBuilder.Append(" <em id="returnmessage">");
- templateBuilder.Append(actiontitle.ToString());
- templateBuilder.Append("</em>rn");
- if (needaudit)
- {
- templateBuilder.Append("<em class="needverify">需审核</em>rn");
- } //end if
- templateBuilder.Append(" <span>rn");
- templateBuilder.Append(" <a href="javascript:;" id="creditlink"></a>rn");
- if (infloat==1)
- {
- templateBuilder.Append(" <a href="javascript:;" class="float_newwindow" onclick="editorwindowopen(posturl)" title="新窗口">新窗口</a>rn");
- if (special=="")
- {
- templateBuilder.Append(" <a href="javascript:;" class="float_max" onclick="resizeEditorwin()" title="最大化" id="resizeEditorwin">最大化</a>rn");
- } //end if
- templateBuilder.Append(" <a href="javascript:;" class="float_close" onclick="closeEditorwin();removeElement()" title="关闭">关闭</a>rn");
- } //end if
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" </h3>rn");
- templateBuilder.Append(" <div class="postbox" id="postbox">rn");
- if (action=="reply")
- {
- templateBuilder.Append(" <div class="float_postinfo s_clear" style="overflow:hidden">rn");
- }
- else
- {
- templateBuilder.Append(" <div class="float_postinfo s_clear">rn");
- } //end if
- templateBuilder.Append(" <input type="hidden" name="iconid" id="iconid" value="");
- templateBuilder.Append(topic.Iconid.ToString().Trim());
- templateBuilder.Append("" />rn");
- if (special=="" && isfirstpost)
- {
- templateBuilder.Append(" <em id="icon" class="dropmenu" onmouseover="InFloat='floatlayout_");
- templateBuilder.Append(action.ToString());
- templateBuilder.Append("';showMenu(this.id)"><img id="icon_img" src="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("images/posticons/");
- templateBuilder.Append(topic.Iconid.ToString().Trim());
- templateBuilder.Append(".gif" /></em>rn");
- templateBuilder.Append(" <ul id="icon_menu" class="popupmenu_popup" style="display:none">rn");
- string icons = "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15";
-
- int id__loop__id=0;
- foreach(string id in icons.Split(comma))
- {
- id__loop__id++;
- templateBuilder.Append(" <li><a href="javascript:;"><img onclick="switchicon(");
- templateBuilder.Append(id.ToString());
- templateBuilder.Append(", this)" src="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("images/posticons/");
- templateBuilder.Append(id.ToString());
- templateBuilder.Append(".gif" alt="" /></a></li>rn");
- } //end loop
- templateBuilder.Append(" </ul>rn");
- } //end if
- if (!isfirstpost && (topic.Special==4||special=="debate"))
- {
- templateBuilder.Append(" <div class="float_typeid left">rn");
- templateBuilder.Append(" <select id="debateopinion" name="debateopinion">rn");
- templateBuilder.Append(" <option value="0">观点</option>rn");
- templateBuilder.Append(" <option value="1">正方</option>rn");
- templateBuilder.Append(" <option value="2">反方</option>rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <script type="text/javascript">loadselect("debateopinion");</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <script type="text/javascript" reload="1">$('debateopinion').selectedIndex = parseInt(getQueryString("debate"));</");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append(" <span><input name="title" type="text" id="title" value="");
- templateBuilder.Append(postinfo.Title.ToString().Trim());
- templateBuilder.Append("" class="txt" title="标题最多为60个字符" /></span>rn");
- if (forum.Applytopictype==1 && topictypeselectoptions!=""&&isfirstpost)
- {
- templateBuilder.Append(" <div class="float_typeid left">rn");
- templateBuilder.Append(" <select name="typeid" id="typeid">");
- templateBuilder.Append(topictypeselectoptions.ToString());
- templateBuilder.Append("</select>rn");
- templateBuilder.Append(" <script type="text/javascript" reload="1">$('typeid').value = '");
- templateBuilder.Append(topic.Typeid.ToString().Trim());
- templateBuilder.Append("';</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- if (action=="reply" || postinfo.Layer>0)
- {
- templateBuilder.Append(" <cite class="tips">(可选)</cite>rn");
- } //end if
- if (canhtmltitle && infloat==0)
- {
- templateBuilder.Append(" <a href="###" id="titleEditorButton" onclick="">高级编辑</a>rn");
- templateBuilder.Append(" <script type="text/javascript" src="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("javascript/dnteditor.js" reload="1"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <div id="titleEditorDiv" style="display: none;">rn");
- templateBuilder.Append(" <textarea name="htmltitle" id="htmltitle" cols="80" rows="10"></textarea>rn");
- templateBuilder.Append(" <script type="text/javascript" reload="1" >rn");
- templateBuilder.Append(" var forumpath = '");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("';rn");
- templateBuilder.Append(" var templatepath = '");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("';rn");
- templateBuilder.Append(" var temptitle = $('faketitle');rn");
- templateBuilder.Append(" var titleEditor = null;rn");
- templateBuilder.Append(" function AdvancedTitleEditor() {rn");
- templateBuilder.Append(" $('title').style.display = 'none';rn");
- templateBuilder.Append(" $('titleEditorDiv').style.display = '';rn");
- templateBuilder.Append(" $('titleEditorButton').style.display = 'none';rn");
- templateBuilder.Append(" titleEditor = new DNTeditor('htmltitle', '500', '50', '");
- templateBuilder.Append(htmltitle.ToString());
- templateBuilder.Append("' == '' ? $('title').value : '");
- templateBuilder.Append(htmltitle.ToString());
- templateBuilder.Append("');rn");
- templateBuilder.Append(" titleEditor.OnChange = function() {rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" titleEditor.Basic = true;rn");
- templateBuilder.Append(" titleEditor.IsAutoSave = false;rn");
- templateBuilder.Append(" titleEditor.Style = forumpath + 'templates/' + templatepath + '/editor.css';rn");
- templateBuilder.Append(" titleEditor.BasePath = forumpath;rn");
- templateBuilder.Append(" titleEditor.ReplaceTextarea();rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" $('titleEditorButton').onclick = function() {rn");
- templateBuilder.Append(" AdvancedTitleEditor();rn");
- templateBuilder.Append(" };rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </div>rn");
- if (htmltitle!="")
- {
- templateBuilder.Append(" <script type="text/javascript" reload="1">rn");
- templateBuilder.Append(" AdvancedTitleEditor();rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </div>rn");
- if (adveditor)
- {
- templateBuilder.Append(" <!-- ############### 特殊主题 ############### -->rn");
- templateBuilder.Append(" <div id="specialpost" class="s_clear"></div>rn");
- templateBuilder.Append(" <script type="text/javascript" reload="1">rn");
- templateBuilder.Append(" _attachEvent(window, "load", function(){ rn");
- templateBuilder.Append(" if($('specialposttable')) {rn");
- templateBuilder.Append(" $('specialpost').innerHTML = $('specialposttable').innerHTML;rn");
- templateBuilder.Append(" $('specialposttable').innerHTML = '';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" });rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- if (infloat==1)
- {
- templateBuilder.Append(" <div style="clear:both; width:2500px;overflow-x:hidden;">rn");
- }
- else
- {
- templateBuilder.Append(" <div style="clear:both;">rn");
- } //end if
- if (infloat==1)
- {
- templateBuilder.Append("<div class="floatbox floatbox1" id="extcreditbox3"></div>rn");
- } //end if
- templateBuilder.Append(" <div class="floatbox floatbox1" id="editorbox">rn");
- if (infloat==1)
- {
- templateBuilder.Append(" <h3 class="float_ctrl">rn");
- templateBuilder.Append(" <em><button id="creditlink" type="button" onclick="pagescrolls('return');return false">返回</button></em>rn");
- templateBuilder.Append(" <span>rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="pagescrolls('credit3')" title="积分说明">积分说明</a>rn");
- templateBuilder.Append(" <a href="javascript:;" class="float_newwindow" onclick="editorwindowopen('$posturl')" title="新窗口">新窗口</a>rn");
- templateBuilder.Append(" <a href="javascript:;" class="float_max" onclick="resizeEditorwin()" title="最大化" id="resizeEditorwin">最大化</a>rn");
- templateBuilder.Append(" <a href="javascript:;" class="float_close" onclick="closeEditorwin();removeElement()" title="关闭">关闭</a>rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" </h3>rn");
- } //end if
- templateBuilder.Append(" <div class="postbox">rn");
- } //end if
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("javascript/bbcode.js" reload="1" ></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("javascript/ajax.js" reload="1" ></");
- templateBuilder.Append("script>rn");
- if (infloat==1)
- {
- templateBuilder.Append(link.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("<script type="text/javascript" reload="1" >rn");
- templateBuilder.Append(" var infloat = ");
- templateBuilder.Append(infloat.ToString());
- templateBuilder.Append(";rn");
- templateBuilder.Append(" var InFloat_Editor = 'floatlayout_");
- templateBuilder.Append(action.ToString());
- templateBuilder.Append("';rn");
- templateBuilder.Append(" var editoraction = '");
- templateBuilder.Append(action.ToString());
- templateBuilder.Append("';rn");
- templateBuilder.Append(" var lang = new Array();rn");
- templateBuilder.Append(" lang['post_discuzcode_code'] = '请输入要插入的代码';rn");
- templateBuilder.Append(" lang['post_discuzcode_quote'] = '请输入要插入的引用';rn");
- templateBuilder.Append(" lang['post_discuzcode_free'] = '请输入要插入的免费信息';rn");
- templateBuilder.Append(" lang['post_discuzcode_hide'] = '请输入要插入的隐藏内容';rn");
- templateBuilder.Append(" lang['board_allowed'] = '系统限制';rn");
- templateBuilder.Append(" lang['lento'] = '到';rn");
- templateBuilder.Append(" lang['bytes'] = '字节';rn");
- templateBuilder.Append(" lang['post_curlength'] = '当前长度';rn");
- templateBuilder.Append(" lang['post_title_and_message_isnull'] = '请完成标题或内容栏。';rn");
- templateBuilder.Append(" lang['post_title_toolong'] = '您的标题超过 60 个字符的限制。';rn");
- templateBuilder.Append(" lang['post_message_length_invalid'] = '您的帖子长度不符合要求。';rn");
- templateBuilder.Append(" lang['post_type_isnull'] = '请选择主题对应的分类。';rn");
- templateBuilder.Append(" lang['post_reward_credits_null'] = '对不起,您输入悬赏积分。';rn");
- templateBuilder.Append(" lang['post_attachment_ext_notallowed'] = '对不起,不支持上传此类扩展名的附件。';rn");
- templateBuilder.Append(" lang['post_attachment_img_invalid'] = '无效的图片文件。';rn");
- templateBuilder.Append(" lang['post_attachment_deletelink'] = '删除';rn");
- templateBuilder.Append(" lang['post_attachment_insert'] = '点击这里将本附件插入帖子内容中当前光标的位置';rn");
- templateBuilder.Append(" lang['post_attachment_insertlink'] = '插入';rn");
- templateBuilder.Append(" lang['enter_list_item'] = "输入一个列表项目.\r\n留空或者点击取消完成此列表.";rn");
- templateBuilder.Append(" lang['enter_link_url'] = "请输入链接的地址:";rn");
- templateBuilder.Append(" lang['enter_image_url'] = "请输入图片链接地址:";rn");
- templateBuilder.Append(" lang['enter_email_link'] = "请输入此链接的邮箱地址:";rn");
- templateBuilder.Append(" lang['fontname'] = "字体";rn");
- templateBuilder.Append(" lang['fontsize'] = "大小";rn");
- templateBuilder.Append(" lang['post_advanceeditor'] = "全部功能";rn");
- templateBuilder.Append(" lang['post_simpleeditor'] = "简单功能";rn");
- templateBuilder.Append(" lang['submit'] = "提交";rn");
- templateBuilder.Append(" lang['cancel'] = "取消";rn");
- templateBuilder.Append(" lang['post_autosave_none'] = "没有可以恢复的数据";rn");
- templateBuilder.Append(" lang['post_autosave_confirm'] = "本操作将覆盖当前帖子内容,确定要恢复数据吗?";rn");
- templateBuilder.Append(" lang['enter_tag_option'] = "请输入 %1 标签的选项:";rn");
- templateBuilder.Append(" lang['enter_table_rows'] = "请输入行数,最多 30 行:";rn");
- templateBuilder.Append(" lang['enter_table_columns'] = "请输入列数,最多 30 列:";rn");
- templateBuilder.Append(" var editorcss = 'templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/editor.css';rn");
- templateBuilder.Append(" var typerequired = parseInt('0');rn");
- templateBuilder.Append(" var seccodecheck = parseInt('0');rn");
- templateBuilder.Append(" var secqaacheck = parseInt('0');rn");
- templateBuilder.Append(" var special = 1;rn");
- if (special=="")
- {
- templateBuilder.Append(" special = 0;rn");
- } //end if
- templateBuilder.Append(" var isfirstpost = 0;rn");
- if (isfirstpost)
- {
- templateBuilder.Append(" isfirstpost = 1;rn");
- } //end if
- templateBuilder.Append(" var allowposttrade = parseInt('1');rn");
- templateBuilder.Append(" var allowpostreward = parseInt('1');rn");
- templateBuilder.Append(" var allowpostactivity = parseInt('1');rn");
- templateBuilder.Append(" var bbinsert = parseInt('1');rn");
- templateBuilder.Append(" var editorid = '");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("';rn");
- templateBuilder.Append(" var allowhtml = parseInt('");
- templateBuilder.Append(htmlon.ToString());
- templateBuilder.Append("');rn");
- templateBuilder.Append(" var forumallowhtml = parseInt('1');rn");
- templateBuilder.Append(" var allowsmilies = 1 - parseInt('");
- templateBuilder.Append(smileyoff.ToString());
- templateBuilder.Append("');rn");
- templateBuilder.Append(" var allowbbcode = parseInt('");
- templateBuilder.Append(usergroupinfo.Allowcusbbcode.ToString().Trim());
- templateBuilder.Append("') == 1 && parseInt('");
- templateBuilder.Append(forum.Allowbbcode.ToString().Trim());
- templateBuilder.Append("') == 1;rn");
- templateBuilder.Append(" var allowimgcode = parseInt('");
- templateBuilder.Append(forum.Allowimgcode.ToString().Trim());
- templateBuilder.Append("');rn");
- templateBuilder.Append(" var wysiwyg = (is_ie || is_moz || (is_opera && opera.version() >= 9)) && parseInt('");
- templateBuilder.Append(config.Defaulteditormode.ToString().Trim());
- templateBuilder.Append("') && allowbbcode == 1 ? 1 : 0;//bbinsert == 1 ? 1 : 0;rn");
- templateBuilder.Append(" var allowswitcheditor = parseInt('");
- templateBuilder.Append(config.Allowswitcheditor.ToString().Trim());
- templateBuilder.Append("') && allowbbcode == 1 ;rn");
- templateBuilder.Append(" var custombbcodes = { ");
- templateBuilder.Append(Caches.GetCustomEditButtonList().ToString().Trim());
- templateBuilder.Append(" };rn");
- templateBuilder.Append(" var smileyinsert = parseInt('1');rn");
- templateBuilder.Append(" var smiliesCount = 32;//显示表情总数rn");
- templateBuilder.Append(" var colCount = 8; //每行显示表情个数rn");
- templateBuilder.Append(" var title = ""; //标题rn");
- templateBuilder.Append(" var showsmiliestitle = 1; //是否显示标题(0不显示 1显示)rn");
- templateBuilder.Append(" var smiliesIsCreate = 0; //编辑器是否已被创建(0否,1是)rn");
- templateBuilder.Append(" var smilies_HASH = {};//得到表情符号信息rn");
- templateBuilder.Append(" var maxpolloptions = parseInt('");
- templateBuilder.Append(config.Maxpolloptions.ToString().Trim());
- templateBuilder.Append("');rn");
- templateBuilder.Append(" function alloweditorhtml() {rn");
- templateBuilder.Append(" if($('htmlon').checked) {rn");
- templateBuilder.Append(" allowhtml = 1;rn");
- templateBuilder.Append(" forumallowhtml = 1;rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" allowhtml = 0;rn");
- templateBuilder.Append(" forumallowhtml = 0;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<input type="hidden" name="wysiwyg" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mode" value="");
- templateBuilder.Append(config.Defaulteditormode.ToString().Trim());
- templateBuilder.Append("" />rn");
- templateBuilder.Append("<div id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_controls" class="editorrow">rn");
- templateBuilder.Append(" <div class="editor">rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_switcher" class="plugeditor editormode"><input type="checkbox" name="checkbox" value="0" rn");
- if (config.Defaulteditormode==0)
- {
- templateBuilder.Append(" checked="checked"rn");
- } //end if
- templateBuilder.Append(" onclick="switchEditor(this.checked?0:1)"/>源码</a>rn");
- templateBuilder.Append(" <div class="editorbtn" id="editorbtn">rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_bold" title="粗体" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_simple" title="粗体 斜体 下划线" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_fontname" title="字体" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_fontsize" title="大小" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_forecolor" title="颜色" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_justify" title="对齐" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_createlink" title="链接" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_email" title="Email" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_insertimage" title="图片" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_quote" title="引用" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_code" title="代码" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_list" title="列表" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_dent" title="缩进" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_float" title="浮动" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_table" title="表格" style="display: none;" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_free" title="免费信息" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_hide" title="隐藏内容" href="javascript:;"></a>rn");
- if (config.Smileyinsert==1)
- {
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_smilies" title="表情" href="javascript:;"></a>rn");
- } //end if
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_media" title="多媒体" href="javascript:;"></a>rn");
- templateBuilder.Append(" <a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_tools" title="工具" href="javascript:;"></a>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <script type="text/javascript" reload="1">rn");
- templateBuilder.Append(" //自定义按扭显示rn");
- templateBuilder.Append(" if(typeof(custombbcodes) != 'undefined') {rn");
- templateBuilder.Append(" for (var id in custombbcodes){rn");
- templateBuilder.Append(" if (custombbcodes[id][1] == '')rn");
- templateBuilder.Append(" continue;rn");
- templateBuilder.Append(" var btn = document.createElement("a");rn");
- templateBuilder.Append(" btn.id = "");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_custom" + custombbcodes[id][5] + "_" + custombbcodes[id][0];rn");
- templateBuilder.Append(" btn.className = "customedit";rn");
- templateBuilder.Append(" btn.innerHTML = '<img title="' + custombbcodes[id][2] + '" alt="' + custombbcodes[id][2] + '" src = "");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("editor/images/' + custombbcodes[id][1] + '" />';rn");
- templateBuilder.Append(" $("editorbtn").appendChild(btn);rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="editortoolbar">rn");
- templateBuilder.Append(" <div class="popupmenu_popup fontstyle_menu" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_simple_menu" style="display: none">rn");
- templateBuilder.Append(" <ul unselectable="on">rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_italic" title="斜体">斜体</a></li>rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_underline" title="下划线">下划线</a></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- string fontoptions = "仿宋_GB2312,黑体,楷体_GB2312,宋体,新宋体,微软雅黑,TrebuchetMS,Tahoma,Arial,Impact,Verdana,TimesNewRoman";
-
- templateBuilder.Append(" <div class="popupmenu_popup fontname_menu" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_fontname_menu" style="display: none">rn");
- templateBuilder.Append(" <ul unselectable="on">rn");
- int fontname__loop__id=0;
- foreach(string fontname in fontoptions.Split(comma))
- {
- fontname__loop__id++;
- templateBuilder.Append(" <li onclick="discuzcode('fontname', '");
- templateBuilder.Append(fontname.ToString());
- templateBuilder.Append("')" style="font-family: ");
- templateBuilder.Append(fontname.ToString());
- templateBuilder.Append("" unselectable="on">");
- templateBuilder.Append(fontname.ToString());
- templateBuilder.Append("</li>rn");
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- string sizeoptions = "1,2,3,4,5,6,7";
-
- templateBuilder.Append(" <div class="popupmenu_popup fontsize_menu" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_fontsize_menu" style="display: none">rn");
- templateBuilder.Append(" <ul unselectable="on">rn");
- int size__loop__id=0;
- foreach(string size in sizeoptions.Split(comma))
- {
- size__loop__id++;
- templateBuilder.Append(" <li onclick="discuzcode('fontsize', ");
- templateBuilder.Append(size.ToString());
- templateBuilder.Append(")" unselectable="on"><font size="");
- templateBuilder.Append(size.ToString());
- templateBuilder.Append("" unselectable="on">");
- templateBuilder.Append(size.ToString());
- templateBuilder.Append("</font></li>rn");
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- 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";
-
- templateBuilder.Append(" <div class="popupmenu_popup" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_forecolor_menu" style="display: none">rn");
- templateBuilder.Append(" <table cellpadding="0" cellspacing="0" border="0" unselectable="on" style="width: auto;">rn");
- templateBuilder.Append(" <tr>rn");
- int colorname__loop__id=0;
- foreach(string colorname in coloroptions.Split(comma))
- {
- colorname__loop__id++;
- templateBuilder.Append(" <td class="editor_colornormal" onclick="discuzcode('forecolor', '");
- templateBuilder.Append(colorname.ToString());
- templateBuilder.Append("')" unselectable="on"><div style="background-color: ");
- templateBuilder.Append(colorname.ToString());
- templateBuilder.Append("" unselectable="on"></div></td>rn");
- if (colorname__loop__id%8==0)
- {
- templateBuilder.Append("</tr><tr>rn");
- } //end if
- } //end loop
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="popupmenu_popup" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_justify_menu" style="display: none">rn");
- templateBuilder.Append(" <ul unselectable="on">rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_justifyleft" title="居左">居左</a></li>rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_justifycenter" title="居中">居中</a></li>rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_justifyright" title="居右">居右</a></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- if (config.Smileyinsert==1)
- {
- templateBuilder.Append(" <div class="smilies popupmenu_popup" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_smilies_menu" style="display: none;width:320px;">rn");
- templateBuilder.Append("<div class="smilieslist">rn");
- string defaulttypname = string.Empty;
-
- templateBuilder.Append(" <div id="smiliesdiv">rn");
- templateBuilder.Append(" <div class="smiliesgroup" style="margin-right: 0pt;">rn");
- templateBuilder.Append(" <ul>rn");
- int stype__loop__id=0;
- foreach(DataRow stype in Caches.GetSmilieTypesCache().Rows)
- {
- stype__loop__id++;
- if (stype__loop__id==1)
- {
- defaulttypname = stype["code"].ToString().Trim();
-
- } //end if
- if (stype__loop__id==1)
- {
- 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>rn");
- }
- else
- {
- 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>rn");
- } //end if
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div style="clear: both;" class="float_typeid" id="showsmilie"></div>rn");
- templateBuilder.Append(" <table class="smilieslist_table" id="s_preview_table" style="display: none"><tr><td class="smilieslist_preview" id="s_preview"></td></tr></table>rn");
- templateBuilder.Append(" <div id="showsmilie_pagenum" class="smilieslist_page"> </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<script src="javascript/post.js" type="text/javascript" reload="1"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" reload="1">rn");
- templateBuilder.Append(" function getSmilies(func){rn");
- templateBuilder.Append(" if($('showsmilie').innerHTML !='' && $('showsmilie').innerHTML != '正在加载表情...')rn");
- templateBuilder.Append(" return;rn");
- templateBuilder.Append(" var c = "");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("tools/ajax.aspx?t=smilies";rn");
- 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);rn");
- templateBuilder.Append(" setTimeout("if($('showsmilie').innerHTML=='')$('showsmilie').innerHTML = '正在加载表情...'", 2000);rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function getSmilies_callback(obj) {rn");
- templateBuilder.Append(" smilies_HASH = obj; rn");
- templateBuilder.Append(" showsmiles(1, '");
- templateBuilder.Append(defaulttypname.ToString());
- templateBuilder.Append("');rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" _attachEvent($('");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_smilies'), 'click', function(){rn");
- templateBuilder.Append(" getSmilies(getSmilies_callback);rn");
- templateBuilder.Append(" });rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <div class="popupmenu_popup" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_dent_menu" style="display: none">rn");
- templateBuilder.Append(" <ul unselectable="on">rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_indent" title="增加缩进">增加缩进</a></li>rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_outdent" title="减少缩进">减少缩进</a></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="popupmenu_popup" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_float_menu" style="display: none">rn");
- templateBuilder.Append(" <ul unselectable="on">rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_floatleft" title="左浮动">左浮动</a></li>rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_floatright" title="右浮动">右浮动</a></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="popupmenu_popup" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_list_menu" style="display: none">rn");
- templateBuilder.Append(" <ul unselectable="on">rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_insertorderedlist" title="排序的列表">排序的列表</a></li>rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_insertunorderedlist" title="未排序的列表">未排序的列表</a></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="popupmenu_popup" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_hide_menu" style="display: none">rn");
- templateBuilder.Append(" <ul unselectable="on">rn");
- if (usergroupinfo.Allowhidecode==1)
- {
- templateBuilder.Append("<li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_hide" title="隐藏内容">隐藏内容</a></li>rn");
- } //end if
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_table" title="表格">表格</a></li>rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_free" title="免费信息">免费信息</a></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="popupmenu_popup" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_tools_menu" style="display: none">rn");
- templateBuilder.Append(" <ul unselectable="on">rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_removeformat" title="清除文本格式">清除文本格式</a></li>rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_unlink" title="移除链接">移除链接</a></li>rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_undo" title="撤销">撤销</a></li>rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_redo" title="重做">重做</a></li>rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_checklength" title="字数检查">字数检查</a></li>rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_clearcontent" title="清空内容">清空内容</a></li>rn");
- templateBuilder.Append(" <br />rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_autosave" title="自动保存">自动保存<em id="autsavet">(60秒)</em></a></li>rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_saveData" title="保存数据">保存数据</a></li>rn");
- templateBuilder.Append(" <li><a id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_loadData" title="恢复数据">恢复数据</a></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<div class="newediter">rn");
- templateBuilder.Append(" <table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout:fixed">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- if (infloat==0)
- {
- templateBuilder.Append(" <textarea class="autosave max" name="message" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_textarea" tabindex="1" class="txt" style="height:300px">");
- templateBuilder.Append(message.ToString());
- templateBuilder.Append("</textarea>rn");
- }
- else
- {
- templateBuilder.Append(" <textarea class="autosave max" name="message" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_textarea" tabindex="1">");
- templateBuilder.Append(message.ToString());
- templateBuilder.Append("</textarea>rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<script type="text/javascript" reload="1" >rn");
- templateBuilder.Append("var pagescroll = new pagescroll_class('floatlayout_");
- templateBuilder.Append(action.ToString());
- templateBuilder.Append("', 600, 410);rn");
- if (infloat==0)
- {
- templateBuilder.Append(" $('floatlayout_");
- templateBuilder.Append(action.ToString());
- templateBuilder.Append("').scrollLeft = 600;rn");
- } //end if
- if (forum.Applytopictype==1 && topictypeselectoptions!=""&&isfirstpost)
- {
- templateBuilder.Append(" loadselect('typeid', 0, 'floatlayout_");
- templateBuilder.Append(action.ToString());
- templateBuilder.Append("');rn");
- } //end if
- templateBuilder.Append("var editorid = '");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("';rn");
- templateBuilder.Append("var textobj = $(editorid + '_textarea');rn");
- templateBuilder.Append("var TABLEBG = '#FFF';//'{ WRAPBG }';rn");
- templateBuilder.Append("var uid = parseInt('");
- templateBuilder.Append(userid.ToString());
- templateBuilder.Append("');rn");
- templateBuilder.Append("var special = parseInt('0');rn");
- templateBuilder.Append("var charset = 'utf-8';rn");
- templateBuilder.Append("var thumbwidth = parseInt(400);rn");
- templateBuilder.Append("var thumbheight = parseInt(300);rn");
- templateBuilder.Append("var extensions = '';rn");
- templateBuilder.Append("var fontoptions = new Array("仿宋_GB2312", "黑体", "楷体_GB2312", "宋体", "新宋体", "微软雅黑", "Trebuchet MS", "Tahoma", "Arial", "Impact", "Verdana", "Times New Roman");rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" reload="1" >rn");
- templateBuilder.Append("function messagehandle_");
- templateBuilder.Append(action.ToString());
- templateBuilder.Append("(key) {rn");
- templateBuilder.Append(" if(!Editorwin) {rn");
- templateBuilder.Append(" $('floatlayout_");
- templateBuilder.Append(action.ToString());
- templateBuilder.Append("').scrollTop = 0;rn");
- if (!adveditor)
- {
- templateBuilder.Append(" $('more_1').style.display='none';pagescroll.up(1, '$(\'more_2\').style.display=\'\';$(\'custominfoarea\').style.display=\'\'');rn");
- }
- else
- {
- templateBuilder.Append(" $('custominfoarea').style.display=$('more_2').style.display='none';pagescroll.up(1, '$(\'more_1\').style.display=\'\'');rn");
- } //end if
- templateBuilder.Append(" }rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append("function messagehandle() {rn");
- templateBuilder.Append(" messagehandle_");
- templateBuilder.Append(action.ToString());
- templateBuilder.Append("();rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append("function submithandle_");
- templateBuilder.Append(action.ToString());
- templateBuilder.Append("(locationhref, message) {rn");
- if (action=="edit" || action=="reply")
- {
- templateBuilder.Append(" try {rn");
- templateBuilder.Append(" var pid = locationhref.lastIndexOf('#pid');rn");
- templateBuilder.Append(" if(pid != -1) {rn");
- templateBuilder.Append(" pid = locationhref.substr(pid + 4);rn");
- if (action=="edit")
- {
- templateBuilder.Append(" if(pid) {rn");
- templateBuilder.Append(" ajaxget('viewthread.php?tid=$tid&viewpid=' + pid, 'post_' + pid, 'ajaxwaitid');rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" ajaxget('viewthread.php?tid=$tid&viewpid=$pid', 'post_$pid', 'ajaxwaitid');rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" $('postform').editsubmit.disabled = false;rn");
- }
- else if (action=="reply")
- {
- templateBuilder.Append(" ajaxget('viewthread.php?tid=$tid&viewpid=' + pid, 'post_new', 'ajaxwaitid', '', null, 'appendreply()');rn");
- templateBuilder.Append(" if(replyreload) {rn");
- templateBuilder.Append(" var reloadpids = replyreload.split(',');rn");
- templateBuilder.Append(" for(i = 1;i < reloadpids.length;i++) {rn");
- templateBuilder.Append(" ajaxget('viewthread.php?tid=$tid&viewpid=' + reloadpids[i], 'post_' + reloadpids[i]);rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- } //end if
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" location.href = locationhref;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" } catch(e) {rn");
- templateBuilder.Append(" location.href = locationhref;rn");
- templateBuilder.Append(" }rn");
- }
- else if (action=="newthread'")
- {
- templateBuilder.Append(" var hastid = locationhref.lastIndexOf('tid=');rn");
- templateBuilder.Append(" if(hastid == -1) {rn");
- templateBuilder.Append(" dnotice(message, "location.href='" + locationhref + "'", 390, 130);rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" location.href = locationhref;rn");
- templateBuilder.Append(" }rn");
- } //end if
- templateBuilder.Append(" floatwinreset = 1;rn");
- templateBuilder.Append(" closeEditorwin();rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append("function cedit() {rn");
- templateBuilder.Append(" try {rn");
- templateBuilder.Append(" loadData(1);rn");
- templateBuilder.Append(" } catch(e) {rn");
- templateBuilder.Append(" setTimeout('cedit()', 1000);rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append("function openEditor() {rn");
- templateBuilder.Append(" try {rn");
- if (action=="reply" && message=="")
- {
- } //end if
- if (action=="edit" || action=="reply"&&DNTRequest.GetString("quote")=="yes")
- {
- templateBuilder.Append(" if(wysiwyg) {rn");
- templateBuilder.Append(" initialized = false;rn");
- templateBuilder.Append(" newEditor(1, bbcode2html(textobj.value));rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" newEditor(0);rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" setCaretAtEnd();rn");
- }
- else
- {
- templateBuilder.Append(" newEditor(wysiwyg);rn");
- templateBuilder.Append(" if(editbox) {rn");
- templateBuilder.Append(" editbox.className = 'autosave max';rn");
- templateBuilder.Append(" }rn");
- } //end if
- templateBuilder.Append(" } catch(e) {rn");
- templateBuilder.Append(" setTimeout('openEditor()', 100);rn");
- templateBuilder.Append(" return;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if(!$('floatlayout_");
- templateBuilder.Append(action.ToString());
- templateBuilder.Append("').scrollLeft) {rn");
- templateBuilder.Append(" $('floatlayout_");
- templateBuilder.Append(action.ToString());
- templateBuilder.Append("').scrollLeft = 600;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" // 需要开启toolsrn");
- templateBuilder.Append(" if(!getcookie('disableautosave')) {rn");
- templateBuilder.Append(" clearInterval(autosaveDatai);rn");
- templateBuilder.Append(" autosaveData(1);rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if(is_ie >= 5 || is_moz >= 2) {rn");
- templateBuilder.Append(" window.onbeforeunload = function () {rn");
- templateBuilder.Append(" try {rn");
- templateBuilder.Append(" saveData(wysiwyg ? editdoc.body.innerHTML : textobj.value);rn");
- templateBuilder.Append(" } catch(e) {}rn");
- templateBuilder.Append(" };rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("javascript/post.js" reload="1" ></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("javascript/editor.js" reload="1" ></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("javascript/post_editor.js" reload="1" ></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<!--{if $forum['allowmediacode']}-->rn");
- templateBuilder.Append("<div class="popupmenu_popup" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_popup_media_menu" style="width: 280px;display: none" unselectable="on">rn");
- templateBuilder.Append("<input type="hidden" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatype" value="ra">rn");
- templateBuilder.Append("<table cellpadding="4" cellspacing="0" border="0">rn");
- templateBuilder.Append(" <tr class="popupmenu_option">rn");
- templateBuilder.Append(" <td nowrap>rn");
- templateBuilder.Append(" 请输入在线视频的地址:<br />rn");
- templateBuilder.Append(" <input id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediaurl" style="width: 98%" value="" onkeyup="setmediatype('");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("')" class="txt" />rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr class="popupmenu_option">rn");
- templateBuilder.Append(" <td nowrap>rn");
- templateBuilder.Append(" <label style="float: left; width: 32%"><input type="radio" name="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatyperadio" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatyperadio_ra" onclick="$('");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatype').value = 'ra'" checked="checked">RA</label>rn");
- templateBuilder.Append(" <label style="float: left; width: 32%"><input type="radio" name="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatyperadio" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatyperadio_wma" onclick="$('");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatype').value = 'wma'">WMA</label>rn");
- templateBuilder.Append(" <label style="float: left; width: 32%"><input type="radio" name="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatyperadio" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatyperadio_mp3" onclick="$('");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatype').value = 'mp3'">MP3</label>rn");
- templateBuilder.Append(" <label style="float: left; width: 32%"><input type="radio" name="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatyperadio" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatyperadio_rm" onclick="$('");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatype').value = 'rm'">RM/RMVB</label>rn");
- templateBuilder.Append(" <label style="float: left; width: 32%"><input type="radio" name="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatyperadio" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatyperadio_wmv" onclick="$('");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatype').value = 'wmv'">WMV</label>rn");
- templateBuilder.Append(" <label style="float: left; width: 32%"><input type="radio" name="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatyperadio" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatyperadio_mov" onclick="$('");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediatype').value = 'mov'">MOV</label>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr class="popupmenu_option">rn");
- templateBuilder.Append(" <td nowrap>rn");
- templateBuilder.Append(" <label style="float: left; width: 32%">宽度: <input id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediawidth" size="5" value="400" class="txt" /></label>rn");
- templateBuilder.Append(" <label style="float: left; width: 32%">高度: <input id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_mediaheight" size="5" value="300" class="txt"/></label>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr class="popupmenu_option">rn");
- templateBuilder.Append(" <td align="center" colspan="2"><input type="button" value="提交" onclick="setmediacode('");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("')"> <input type="button" onclick="hideMenu()" value="取消" /></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append("</table>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<!--{/if}-->rn");
- templateBuilder.Append("<!--{if $_DCACHE['bbcodes_display']['img']}-->rn");
- templateBuilder.Append("<div class="popupmenu_popup" id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_insertimage_menu" style="display: none" unselectable="on">rn");
- templateBuilder.Append(" 请输入图片地址:<br /><input id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_insertimage_param_url" style="width: 300px;" value="" class="txt" type="text" onkeydown="editorMenuEvent_onkeydown(this);" />rn");
- templateBuilder.Append(" <br /><center><input id="");
- templateBuilder.Append(editorid.ToString());
- templateBuilder.Append("_cmd_insertimage_submit" value="提交" type="button" onclick="insertimagesubmit()" /> <input onclick="hideMenu();" value="取消" type="button" /></center>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<!--{/if}-->rn");
- templateBuilder.Append(" </div>rn");
- if (canpostattach)
- {
- if (attachsize>0)
- {
- if (attachextensions!="")
- {
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("javascript/template_attach.js" reload="1"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <div class="popupmenu_popup" id="imgpreview_menu" style="position:absolute;width:180px;height:150px;padding:0px;display: none;"></div>rn");
- templateBuilder.Append(" <div class="post_tablelist postbox" id="attachlist" style="display: none">rn");
- templateBuilder.Append(" <table cellpadding="0" cellspacing="0" border="0" width="100%">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="attachnum"></td>rn");
- templateBuilder.Append(" <td class="attachctrl"></td>rn");
- templateBuilder.Append(" <td class="attachname">文件名</td>rn");
- if (userid!=-1 && usergroupinfo.Allowsetattachperm==1)
- {
- templateBuilder.Append("<td class="attachview">阅读权限</td>rn");
- } //end if
- if (topicattachscorefield>0 && usergroupinfo.Maxprice>0)
- {
- templateBuilder.Append("<td class="attachpr">");
- templateBuilder.Append(Scoresets.GetTopicAttachCreditsTransName().ToString().Trim());
- templateBuilder.Append("</td>rn");
- } //end if
- if (config.Enablealbum==1 && caninsertalbum)
- {
- templateBuilder.Append(" <td>选择相册</td>rn");
- } //end if
- templateBuilder.Append(" <td class="attachdel"></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table>rn");
- if (infloat==0)
- {
- templateBuilder.Append(" <div id="uploadlist" class="upfilelist" style="height:auto">rn");
- }
- else
- {