⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 topic_add.ftl

📁 学生选课系统 赶快来下载啊啊好东西 呵呵啊啊 啊啊啊啊啊
💻 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_add.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="<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="forum_id" value="${forum_id}" />
<input type="hidden" name="post_type" value="${post_type?default("0")}" />
<input type="hidden" name="user_id" value="${_EFUser.id}">
<input type="hidden" name="attach_new" id="attach_new">
<input type="hidden" name="attach_delete" id="attach_delete">
<input type="hidden" name="_fn" value="Insert" />
<input type="hidden" name="_fn_old" value="Insert" />
<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">标&nbsp;&nbsp;&nbsp;&nbsp;题</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() &gt; 0>
        <tr>
          <td class="fieldTitle">心&nbsp;&nbsp;&nbsp;&nbsp;情</td>
          <td class="fieldValue" >
            <div id="myface" onMouseover="popMenu('myface', 400, 0, 'RM')" style="display:inline; cursor: hand;">&nbsp;<div id="faceselected" style="display:inline"><#if post_face?exists && post_face!=""><img id="topic_face" src="${post_face}" ></img><#else>无心情</#if>&nbsp;&nbsp;</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}')"/>&nbsp;
                    </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">标&nbsp;&nbsp;&nbsp;&nbsp;签</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_add_" + 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">
    <#if _ConfigUtil.haveCheckCodeTopic(_EFUser) >
      <tr>
        <td  class="tdCenter">验证码&nbsp;&nbsp;<input name="__chkcode" value="" type="text" size="6" maxlength="4"  class="text"/>&nbsp;
             <img id="_checkNumImage" src="${_contextPath}/checkNum" title="校验码"/>&nbsp;<a href="javascript:newVerifyPic('${_contextPath}','_checkNumImage')" title="看不清左边的字符" class="color">看不清?</a><@_errorField name="__chkcode"/>
        </td>
      </tr>
    </#if>

      <tr>
        <td class="tdCenter"><input onclick="if(submitTopicCheck('${vLevel}')) postSubmit(this);" type="button" value="发&nbsp;表&nbsp;话&nbsp;题&nbsp;(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 + -