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

📄 postlist.ftl

📁 学生选课系统 赶快来下载啊啊好东西 呵呵啊啊 啊啊啊啊啊
💻 FTL
📖 第 1 页 / 共 3 页
字号:
        头衔 <a href="${_UrlUtil.encodeURL("/group.do?group_id="+post_user.groupId)}" style="color:${_GroupUtil.getConfigInfo(post_user.groupId?string,"USERGROUP_TITLE_COLOR")}" target="_blank">${_GroupUtil.getConfigInfo(post_user.groupId?string,"USERGROUP_TITLE")}</a>
      </div>

      <div class="otherInfo">
        积分 ${post_user.credit}
      </div>

      <div class="otherInfo">
        帖子 ${post_user.posts} <#if post_user.bestPosts &gt; 0><span title="精华帖">(${post_user.bestPosts})</span></#if>
      </div>

      <div class="otherInfo">
        注册 ${_DateUtil.getDateStr(_EFUser, post_user.regTime)}
      </div>

      <#assign userFieldsList = _ConfigUtil.getUserFieldsList()>
      <#list userFieldsList as userField>
      <#if userField.field_public?default(_Constants.STATUS_NO)?number == _Constants.STATUS_YES && userField.field_showinpost?default(_Constants.STATUS_NO)?number == _Constants.STATUS_YES>
      <div class="otherInfo">
        ${userField.field_name}&nbsp;
        <#if userField.field_id == _Constants.USER_NAME>
          <#comment> 如果字段是姓名 </#comment>
          ${post_user.lastName?default("")} ${post_user.firstName?default("")}
        <#elseif userField.field_id == _Constants.USER_AREA>
          <#comment> 如果字段是行政区域 </#comment>
          <#if post_user.country??>
            <#list _ConfigUtil.getCountry() as country>
              <#if country.region_id?string == post_user.country?string>${country.region_name}</#if>
            </#list>
          <#if post_user.province??>
            <#list _ConfigUtil.getProvince(post_user.country) as province>
              <#if province.region_id?string == post_user.province?string>${province.region_name}</#if>
            </#list>
          <#if post_user.city??>
            <#list _ConfigUtil.getCity(post_user.province) as city>
              <#if city.region_id?string == post_user.city?string>${city.region_name}</#if>
            </#list>
          </#if>
          </#if>
          </#if>
        <#elseif userField.field_showtype?number == _Constants.FIELD_SHOW_TYPE_TEXT>
          <#comment> 如果显示方式是文本框  </#comment>
          ${post_user.extendInfo.getString(userField.field_id.toLowerCase(),"--")}
        <#elseif userField.field_showtype?number == _Constants.FIELD_SHOW_TYPE_TEXTAREA>
          <#comment>  如果显示方式是文本域  </#comment>
          ${post_user.extendInfo.getString(userField.field_id.toLowerCase(),"--")}
        <#elseif userField.field_showtype?number == _Constants.FIELD_SHOW_TYPE_RADIO>
          <#comment> 如果显示方式是单选按钮  </#comment>
          <#list _CodeUtil.getCodeList(userField.field_id) as codeOption>
            <#if codeOption.code_key == post_user.extendInfo.getString(userField.field_id.toLowerCase(),"")>${codeOption.code_name}</#if>
          </#list>
        <#elseif userField.field_showtype?number == _Constants.FIELD_SHOW_TYPE_CHECKBOX>
          <#comment> 如果显示方式是多选选按钮  </#comment>
          <#list _CodeUtil.getCodeList(userField.field_id) as codeOption>
            <#if codeOption.code_key == post_user.extendInfo.getString(userField.field_id.toLowerCase(),"")>${codeOption.code_name}</#if>
          </#list>
        <#elseif userField.field_showtype?number == _Constants.FIELD_SHOW_TYPE_SELECT>
          <#comment>  如果显示方式是下拉列表  </#comment>
          <#list _CodeUtil.getCodeList(userField.field_id) as codeOption>
            <#if codeOption.code_key == post_user.extendInfo.getString(userField.field_id.toLowerCase(),"")>${codeOption.code_name}</#if>
          </#list>
        </#if>
      </div>
      </#if>
      </#list>

      <#if post.user_id !=_EFUser.id >
      <div class="actionInfo">
        <a href="${_UrlUtil.encodeURL("/blog.do?_fn=ViewUserInfo&user_id="+post_user.id)}">
        <#if post_user.gender?default(_Constants.GENDER_CECRECY)?number == _Constants.GENDER_CECRECY>
          <#assign userInfoPic = "users.png"/>
        <#elseif post_user.gender?default(_Constants.GENDER_CECRECY)?number == _Constants.GENDER_MAN>
          <#assign userInfoPic = "boyHead.png"/>
        <#else>
          <#assign userInfoPic = "girlHead.png"/>
        </#if>
        <img src="${_resPath}/img/${userInfoPic}" title="个人资料"></a>
        <a href="${_UrlUtil.encodeURL("/blog/favor.do?user_id="+post_user.id)}"><img src="${_resPath}/img/mytopics.png" title="浏览文集"></a>
        <a href="${_UrlUtil.encodeURL("/blog/leaveword.do?user_id="+post_user.id+"#leaveword_link")}" name="leaveaaaaa"><img src="${_resPath}/img/leaveword.png" title="添加留言"></a>
        <a href="javascript:addFriend('${post_user.id}');"><img src="${_resPath}/img/addfriend.png" title="加为好友"></a>
        <a href="javascript:sendMessage('${post_user.id}');"><img src="${_resPath}/img/sendmsg.png" title="发短消息"></a>
      </div><#comment> end actionInfo </#comment>
      </#if>

      <#if showMedal && post_user.medal?default("") != "">
      <div class="medalInfo">
        <#list (post_user.medal).split("\\|") as medal>
         <#if medalMap[medal]?exists && !medalMap[medal].isEmpty()>
          <img src="${_contextPath}/${medalMap[medal].medal_icon}" title="${medalMap[medal].medal_name}"/>
         </#if>
        </#list>
      </div><#comment> end medalInfo </#comment>
      </#if>

    <#else>
        <div class="userName">
          <#if isManager || _PostUtil.isPostUser(_EFUser,post)><a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(post_user.id))}">匿名用户</a><#else>匿名用户</#if>
        </div>

        <#if showHead>
        <div class="userHeadPic">
          <img src="${_contextPath}/${_EFUserUtil.getAnonyousHead()}">
        </div>
        </#if>
     </#if>

    </#if><#comment> end user show</#comment>
    </div><#comment> end userInfo </#comment>
  </td>
  <td class="tdContent">
  <table class="content">
    <tr>
      <td>
        <table class="postTitle">
            <tr>
              <td class="td1"><a href="#${post.post_floor}"><b>${post.post_floor} 楼</b></a>&nbsp;&nbsp;&nbsp;发表于&nbsp;&nbsp;<span class="time">${_DateUtil.getDateTimeStr(_EFUser, post.post_time?number)}</span><#if post_type = _Constants.POST_TYPE_REWARD?string && post.post_id = rewardMap.reward_postid?default("-1")>
                <span class="font_hilite">&nbsp;&nbsp;&nbsp;&nbsp;最佳答案</span>
              </#if></td>
              <td class="td2">
               <#if isManager || (_logged  && post.user_id ==_EFUser.id && !isPostBanned && !isUserBanned ) >
               <#comment> 管理员权限</#comment>
                  <#if isFirst >
                    <a href="${_UrlUtil.encodeURL("/topic.do?_fn=Edit&post_id="+post.post_id)}">编辑</a> 
                  <#else>
                    <a href="${_UrlUtil.encodeURL("/post.do?_fn=Edit&post_id="+post.post_id)}">编辑</a>
                  </#if>
               </#if>
               <#if canReply>
                  <a href="${_UrlUtil.encodeURL("/post.do?_fn=Quote&post_parent="+post.post_id)}">引用</a> 
               </#if>
               <#if _logged>
                <a href="javascript:postReport('${post.post_id}');" title="举报不良信息">举报</a>
               </#if>
               <#if isManager>
                 <a href="javascript:ratePost('${post.post_id}')">评分</a>
                 <#if !isUserBanned>
                    <#if !isPostBanned>
                      <a href="javascript:banPost('${post.post_id}')">屏蔽</a>
                    <#else>
                      <a href="javascript:banPost('${post.post_id}')">解除屏蔽</a>
                    </#if>
                  </#if>
                  <#if !isFirst>
                    <a href="javascript:deletePost('${post.post_id}')">删除</a>
                  </#if>
               </#if>
               <#if canReply>
                    <a href="javascript:fastReply('', '${post.post_id}');">回复</a>
               </#if>
                <#comment>悬赏帖</#comment>
                <#if post_type = _Constants.POST_TYPE_REWARD?string>
                  <#if _logged && !rewardOver && !isFirst && _EFUser.id = topicInfo.user_id && post.user_id !=_EFUser.id>
                    <a href="javascript:doReward('${post.post_id}')" class="font_hilite">设为最佳</a> 
                  </#if>
                </#if>
                <a href="#"><img src="${_resPath}/img/top.gif" /></a>
            </td>
          </tr>
        </table><#comment> end postTitle</#comment>
      </td>
    </tr>

<#if isFirst && showPostInfo>
  <#if _TopicUtil.showMoneyTopic(topicInfo)><#comment> 金钱交易帖 </#comment>  
  <#assign credit1Name = _CreditUtil.getInfoMap("extcredit1").credit_name>
  <tr>
    <td class="postBuyInfo">
    <table>
    <tr>
     <td class="td1">
      &nbsp;售价:<span class="number">${topicInfo.post_money }</span>${credit1Name}&nbsp;|&nbsp;税率:<span class="number">${_ConfigUtil.getConfigInfo( "CREDIT_BARGAIN_TAX" )}%</span>&nbsp;|&nbsp;
      <#assign maxTimes = _ForumUtil.getConfigInfo(forum_id, "FORUM_POST_BUY_MAXTIMES" )?default("0")?number>交易次数限制:<#if maxTimes==0>不限制<#else> <span class="number">${maxTimes}</span> 次</#if>&nbsp;|&nbsp;已购买人数:<span class="number">${topicInfo.post_tradenum}</span>&nbsp;|&nbsp;楼主已收入:<span class="number">${topicInfo.buy_income?default("0")}</span>${credit1Name}
     </td>
     <td class="td2">
     [<a href="${_UrlUtil.encodeURL("/topicBuy.do?topic_id="+topic_id)}" title="查看全部付款用户记录">查看付款记录</a>]
       <#assign tmp = topicInfo.post_tradetype?default("0")?number/>
       <#if tmp == _Constants.POST_TRADE_TYPE_FREE>
         已经强制免费
       <#elseif tmp == _Constants.POST_TRADE_TYPE_REFUND>
         已经强制退款

       <#else>
         <#if isManager>
           &nbsp;[<a href="javascript:freeTopic();" title="全部用户可以免费查看主题内容" >强制免费</a>]
           &nbsp;[<a href="javascript:refundTopic();" title="退回购买者的花费,收回楼主的全部收入,主题免费。">强制退款</a>]
          </#if>
        </#if>
     &nbsp;</td>
    </tr>
    </table>
    <td>
  </tr>
   </#if><#comment> end 金钱交易帖 </#comment>
</#if>

    <tr>
      <td class="postContent">
        <table class="post">
          <#if post_index ==0>
            <#assign Post_ContentTop = _AdsUtil.getForumAds("Post_ContentTop",forum_id,_tplStyle)>
          <#elseif post_index ==1>
            <#assign Post_ContentTop = _AdsUtil.getForumAds("Post_ContentTop2",forum_id,_tplStyle)>
          <#elseif post_index ==2>
            <#assign Post_ContentTop = _AdsUtil.getForumAds("Post_ContentTop3",forum_id,_tplStyle)>
          <#else>
            <#assign Post_ContentTop = "">
          </#if>
          <#if Post_ContentTop?? && Post_ContentTop!="">
          <tr>
            <td>
              <div style="float:left;margin-bottom:5px;">
                ${Post_ContentTop}
              </div>
            </td>
          </tr>
          </#if>

          <#if showPostInfo && post.post_title??>
          <tr>
            <td class="title" style="font-size:${fontSize}px;">
              <div style="clear:both;">
                <#if topicInfo.post_face ? exists>
                <div style="float:left;margin-right:4px;clear:left;"><img src="${topicInfo.post_face}"/></div>

⌨️ 快捷键说明

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