📄 topic_edit.ftl
字号:
<#include "lib/report.tpl"/>
<#import "lib/html.tpl" as html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=${_encoding?default("GBK")}" />
<#assign navtitle = "修改主题 - ">
<#include "/common/title.ftl">
<#include "/common/meta.ftl">
<link href="${_resPath}/lib/base.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${_contextPath}/ef/js/prototype.js"></script>
<script type="text/javascript" src="${_contextPath}/ef/js/base.js"></script>
<script type="text/javascript" src="${_contextPath}/ef/js/post.js"></script>
<script type="text/javascript" src="${_contextPath}/ef/js/ubb.js"></script>
<script type="text/javascript" src="${_contextPath}/ef/js/Calendar.js"></script>
<script type="text/javascript" src="${_contextPath}/ef/js/eforumad.js"></script>
</head>
<body><!-- topic_edit.ftl -->
<#assign isManager = _GroupUtil.hasManaAuth(forum_id,_EFUser)/>
<#assign vLevel = _GroupUtil.getConfigInfo(_EFUser.groupId?string,"USERGROUP_VISIT_LEVEL")/><#comment>阅读权限</#comment>
<div id="wrap">
<#include "header.ftl"/>
<div id="content">
<div class="commonNavLine">
<#assign nextForumNavStr="<a class=\"forumName\" href=\"${_UrlUtil.encodeURL(\"/\"+_PostUtil.getTopicURL(topic_id))}\">${topicInfo.post_title?html}</a><img src=\"${_resPath}/img/arrowhead.gif\" /><span class=\"forumName\">编辑</span>" />
<#include "forum_nav.ftl"/>
</div><#comment>end commonNavLine </#comment>
<@_report/>
<div class="clean"></div>
<div id="topicform" class="commonBox">
<form method="post" id="ef_form" name="ef_form" action="${_UrlUtil.encodeURL("/topic.do")}" enctype="multipart/form-data" style="margin-bottom:0px;margin-top:0px;">
<input type="hidden" name="topic_id" value="${topic_id}" />
<input type="hidden" name="user_id" value="${user_id}" />
<input type="hidden" name="post_id" value="${post_id}" />
<input type="hidden" name="forum_id" value="${forum_id}" />
<input type="hidden" name="post_type" value="${post_type?default("0")}" />
<input type="hidden" name="attach_new" id="attach_new">
<input type="hidden" name="attach_delete" id="attach_delete">
<input type="hidden" name="attach_edit" id="attach_edit" value="${attach_edit?default("")}">
<input type="hidden" name="_fn" value="Update" />
<input type="hidden" name="_fn_old" value="Update" />
<input type="hidden" name="_redirect_to" value="${_redirect_to?default("")}">
<table class="topicForm commonTable">
<tr class="hd1">
<td class="td1">编辑话题</td>
</tr>
<tr>
<td>
<div id="postFormTitle" class="formLine">
<table class="outline">
<tr class="hd1">
<td class="td1" colspan="2">帖子标题</td>
</tr>
<tr>
<td class="fieldTitle">标 题</td>
<td class="fieldValue" >
<#if _ForumUtil.allowSubject(forum_id)>
<#comment> begin subject </#comment>
<select name="post_subject">
<#if !_ForumUtil.isYes(forum_id,"FORUM_SUBJECT_POST_NEED")><option value="">- 选择专题 -</option></#if>
<@html.option value=post_subject?default("") list=_ForumUtil.getOneRowAreaList(forum_id,"FORUM_SUBJECT_OPTIONS") fdname="name" fdvalue="value"/>
</select>
</#if>
<input id="post_title" name="post_title" type="text" class="text" size="60" value="${post_title?default("")?html}" maxlength="100">
<#if _ConfigUtil.isYes("POST_CLASS_ALLOW")>
<select name="topic_type" onchange="addTopicType(this.value)">
<option value="">选择分类</option>
<@html.option value=topic_type?default("") list=_ConfigUtil.getTopicTypeList() fdname="type_name" fdvalue="type_name"/>
</select>
</#if>
<span class="note">最多 100 个字符(汉字占两位)</span><@_errorField name="post_title"/>
</td>
</tr>
<#assign faceInfoList = _ConfigUtil.getFaceList()>
<#if faceInfoList?? && faceInfoList.size() > 0>
<tr>
<td class="fieldTitle">心 情</td>
<td class="fieldValue" >
<div id="myface" onMouseover="popMenu('myface', 400, 0, 'RM')" style="display:inline; cursor: hand;"> <div id="faceselected" style="display:inline"><#if post_face?exists && post_face!=""><img id="topic_face" src="${post_face}" ></img><#else>无心情</#if> </div></div>
<div id="myface_Items" class="menu" >
<table>
<tr>
<#list _ConfigUtil.getFaceList() as faceInfo>
<td style="cursor:pointer;">
<img src="${faceInfo.face_file}" title="${faceInfo.face_name}" onclick="getMyFace(this,'${faceInfo.face_file?js_string}')"/>
</td>
</#list>
<td style="cursor:pointer;" nowrap>
<span onclick="getMyFace(this)">无心情</span>
</td>
</tr>
</table>
</div>
<input type="hidden" id="post_face" name="post_face" value="${post_face?default("")}">
</td>
</tr>
</#if>
<tr>
<td class="fieldTitle">标 签</td>
<td class="fieldValue">
<table>
<tr>
<td>
<input id="post_tags" name="post_tags" type="text" class="text" size="60" value="${post_tags?default("")?html}" maxlength="100">
</td>
<td>
<#include "post_mytag_inc.ftl"/><span class="note"> (请使用空格隔开多个标签,最多可填写 10 个)</span><@_errorField name="post_tags"/></td>
</tr>
</table>
</td>
</tr>
</table>
</div><#comment> end postFormTitle </#comment>
<#comment>根据主题类型不同的显示区</#comment>
<#assign add_tpl = "topic_edit_" + post_type?default("0") + ".ftl"/>
<#include add_tpl/>
<#include "post_ubb_inc.ftl"/>
<#include "post_upload_inc.ftl"/>
<#include "post_advanced_inc.ftl"/>
<#include "post_manage_inc.ftl"/>
<div id="postFormSubmit" class="formLine">
<table class="outline">
<tr>
<td class="tdCenter"><input onclick="if(submitTopicCheck('${vLevel}')) postSubmit(this);" type="button" value="保 存 修 改 (s)" class="largeButton" accessKey=s title="快捷键: Alt + s">
</td>
</tr>
</table>
</div><#comment> end postFormSubmit </#comment>
</td>
</tr>
</table>
</form>
</div> <#comment>end topicform</#comment>
</div><#comment>end content</#comment>
<#assign _show_temp_=false>
<#include "footer.ftl"/>
</div><#comment>end wrap</#comment>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -