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

📄 post_ubb_inc.ftl

📁 学生选课系统 赶快来下载啊啊好东西 呵呵啊啊 啊啊啊啊啊
💻 FTL
字号:

<!-- post_ubb_inc.ftl -->
<script language="JavaScript">
<!--
//最少内容

var postminchars = parseInt('${_ConfigUtil.getConfigInfo("POST_CONTENT_MIN_WORDS")}');
//最大内容

var postmaxchars = parseInt('${_ConfigUtil.getConfigInfo("POST_CONTENT_MAX_WORDS")}');

//-->
</script>

<div id="posteditor" class="formLine">
  <table class="outline" >
    <tr class="hd1">
      <td class="td1" colspan="2">
      <#assign temp = "帖子内容">
      <#if action?exists && action == "topic">
        <#if post_type == "4" && !argue_ispoint ? exists>
          <#assign temp = "背景资料">
        <#elseif post_type == "5" || post_type == "6">
         <#assign temp = "活动资料">
        </#if>
      </#if>
      ${temp}
      </td>
    </tr>
    <tr>
      <td colspan=2>
        <div class="smiles">
          <#include "smile.ftl"/>
        </div>
        <div class="ubbContent">
          <#include "ubb.ftl"/>
          <div class="posteditor_content" >
            <textarea id="posteditor_textarea" class="post_content" name="post_content" style="width:98%;height:310px;">${post_content?default("")?html}</textarea>
          </div>

          <script language="javascript">
            var editorid = 'posteditor';
            var textobj = $(editorid + '_textarea');
            var wysiwyg = ${_EFUserUtil.getEditMode(_EFUser)};
            var allowswitcheditor = ${_ConfigUtil.isYes("POST_EDIT_MODE_ALLOW_CHANGE")?string} ? 1 : 0;

            //no
            var forumallowhtml = parseInt('0');
            //yes
            var allowbbcode = parseInt('1');
            //user allow html : no
            var allowhtml = parseInt('0');
            //SMILE:yes
            var allowsmilies = parseInt('1');
          //var allowimgcode = parseInt('0');

            var editorcss = 'ef/css/ubb.css';
            var editorcss_append = '';
            var TABLEBG = '#fff';
            var COLORBG = '#000';
            var thumbwidth = parseInt(400);
            var thumbheight = parseInt(300);

            var lang = new Array();
            lang['enter_list_item'] = "输入一个列表项目.\r\n留空或者点击取消完成此列表.";
            lang['enter_link_url']      = "请输入链接的地址:";
            lang['enter_image_url']      = "请输入图片链接地址:";
            lang['enter_email_link']    = "请输入此链接的邮箱地址:";
            lang['fontname']      = "字体";
            lang['fontsize']      = "大小";
            var smilies = new Array();
             <#list _ConfigUtil.getSmilesList() as smile>
             smilies[${smile_index}] = {'code' : '${smile.get("smile_symbol")?js_string}', 'url' : '${smile.get("smile_file")}'};
               </#list>
            var attachArray = new Array();
            <#if _attaches?exists >
              <#list _attaches as attach>
                attachArray[${attach_index}] = {'no' : '${attach["attach_no"]}' , 'ext' :'${attach["attach_fileext"]}','filePath' : '${_AttachUtil.getResourceFileName(attach)}'};
              </#list>
            </#if>
          </script>
          <script type="text/javascript" src="${_contextPath}/ef/js/editor.js"></script>
          <#comment>帖子文本区域</#comment>
          
          <div class="tdButton">
          <img src="ef/images/ubb/contract.gif" title="收缩" alt="收缩" id="posteditor_contract" onclick="resizeEditor(-100)" style="cursor:pointer"/>&nbsp;<img src="ef/images/ubb/expand.gif" title="扩展" alt="扩展" id="posteditor_expand" onclick="resizeEditor(100)"  style="cursor:pointer"/>&nbsp;&nbsp;
          <input type="checkbox" class="checkBox" name="post_urlflag" value="1" <#if post_urlflag?default("0")=="1">checked="true"</#if>>禁用URL标识  
          <#if _AuthUtil.allowHTMLFlag(_EFUser.groupId?string, forum_id?string)>
              <input type="checkbox" class="checkBox" name="post_htmlflag" value="0" <#if post_htmlflag?default("1")=="0" >checked="true"</#if>>使用HTML      
          <#else>
            【禁止HTML】

          </#if>
          <#if _AuthUtil.allowUBBFlag(_EFUser.groupId?string, forum_id?string)>
              <input type="checkbox" class="checkBox" name="post_ubbflag" value="1" <#if post_ubbflag?default("0")=="1">checked="true"</#if>>禁止UBB代码        
          <#else>
            【禁止UBB代码】

          </#if>
          <#if _AuthUtil.allowIsHidden(_EFUser.groupId?string, forum_id?string) && (!post_type ? exists || post_type ? exists && post_type?number != _Constants.POST_TYPE_ARGUE)>
            <input type="checkbox" class="checkBox" name="post_ishide" value="0" <#if post_ishide?default("1")=="0">checked="true"</#if>>使用匿名发贴 
          <#else>
            【禁止使用匿名发帖】

          </#if>
          <input type="button" value="字数检查" class="middleButton" onclick="checkContentLength()"> <input type="button" value="预览"  class="middleButton" onclick="if(submitPostCheck()) forumPreview();"> <input type="button" value="清除" class="middleButton" onclick="resetPostContent()">
          </div>
        </div>
      </td>
    </tr>
  </table>
</div><#comment> end postFormUbb </#comment>

<script language="javascript">
  newEditor(wysiwyg);
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -