Discuz.Web/templates/default/_post.htm
(开头部分) 15KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<div id="editorbox">
<div class="edt_main">
<div class="edt_content cl">
<%set (string){special} = DNTRequest.GetString("type").ToLower();%>
<%if {special}=="" && {topic.special}>0%>
<%if {topic.special}==1 %><%set {special} = "poll"%><%/if%>
<%if {topic.special}==2 || {topic.special}==3%><%set {special} = "bonus"%><%/if%>
<%if {topic.special}==4%><%set {special} = "debate"%><%/if%>
<%/if%>
<%set (bool){adveditor} = ({special}!="" || {topic.special}>0)&&{isfirstpost}%>
<%set (string){action} = pagename.Replace("post","").Replace(".aspx","").Replace("topic","newthread")%>
<%set (string){actiontitle} = ""%>
<ul class="f_tab cl mbw">
<%if {pagename}=="posttopic.aspx"%>
<%if {special}=="bonus"%>
<%set {actiontitle} = "发布悬赏"%>
<%else if {special}=="poll"%>
<%set {actiontitle} = "发布投票"%>
<%else if {special}=="debate"%>
<%set {actiontitle} = "发布辩论"%>
<%else%>
<%set {actiontitle} = "发新主题"%>
<%/if%>
<li<%if {special}==""%> class="cur_tab"<%/if%>><a onclick="switchpost('posttopic.aspx?forumid={forumid}&forumpage={forumpageid}&cedit=yes')" href="javascript:;">发表帖子</a></li>
<%if {forum.allowspecialonly}<=0%>
<%if 1==({forum.allowpostspecial}&1)&&{usergroupinfo.allowpostpoll}==1%>
<li<%if {special}=="poll"%> class="cur_tab"<%/if%>><a onclick="switchpost('posttopic.aspx?forumid={forumid}&forumpage={forumpageid}&type=poll&cedit=yes')" href="javascript:;">发起投票</a></li>
<%/if%>
<%if 4==({forum.allowpostspecial}&4)&&{usergroupinfo.allowbonus}==1%>
<li<%if {special}=="bonus"%> class="cur_tab"<%/if%>><a onclick="switchpost('posttopic.aspx?forumid={forumid}&forumpage={forumpageid}&type=bonus&cedit=yes')" href="javascript:;">发布悬赏</a></li>
<%/if%>
<%if 16==({forum.allowpostspecial}&16)&&{usergroupinfo.allowdebate}==1%>
<li<%if {special}=="debate"%> class="cur_tab"<%/if%>><a onclick="switchpost('posttopic.aspx?forumid={forumid}&forumpage={forumpageid}&type=debate&cedit=yes')" href="javascript:;">发起辩论</a></li>
<%/if%>
<%/if%>
<%else if {pagename}=="postreply.aspx"%>
<%set (int){postlayer} = DNTRequest.GetInt("postlayer", -1)%>
<%set (string){replyposter} = Utils.HtmlEncode(DNTRequest.GetString("poster"))%>
<%if {postlayer}>0%>
<%set {actiontitle} = "回复帖子"%>
<div style="display:none;">
<div id="toreplay_div"><strong>回复 <a target="_blank" href="{DNTRequest.GetUrlReferrer()}#{postid}">{postlayer}楼<font color="Olive">{replyposter}</font>的帖子</a></strong></div>
<input type="hidden" id="toreplay_user" name="toreplay_user"/>
<script type="text/javascript">
String.prototype.trim = function(){return this.replace(/(^\s*)|(\s*$)/g, "");}
<%if {replyposter}!=""%>$("toreplay_user").value=trim(html2bbcode1($("toreplay_div").innerHTML)).trim();<%/if%>
</script>
</div>
<%set (string){url}= "postreply.aspx?topicid="+{topicid}+"&forumpage="+{forumpageid}+"&postid="+{DNTRequest.GetString("pageid")}+"&postlayer="+{DNTRequest.GetString("postlayer")}+"&poster="+{DNTRequest.GetString("poster")}%>
<li class="a"><a onclick="switchpost('{url}')" href="javascript:;">回复帖子</a></li>
<%else%>
<%set {actiontitle} = "回复主题"%>
<%set (string){url}= "postreply.aspx?topicid="+{topicid}+"&forumpage="+{forumpageid}+"&postid="+{DNTRequest.GetString("pageid")}+"&postlayer="+{DNTRequest.GetString("postlayer")}+"&poster="+{DNTRequest.GetString("poster")}%>
<li class="a"><a onclick="switchpost('{url}')" href="javascript:;">回复主题</a></li>
<%/if%>
<%else if {pagename}=="editpost.aspx"%>
<%set {actiontitle} = "编辑帖子"%>
<%set (string){url}= "editpost.aspx?topicid="+{topicid}+"&postid="+{DNTRequest.GetString("postid")}+"&forumpage="+{forumpageid}%>
<li class="a"><a onclick="switchpost('{url}')" href="javascript:;">编辑帖子</a></li>
<%/if%>
后面还有 193 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
