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

📄 forumtagsearch.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 = "'${forum_name}' 的流行标签 - ">
<#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/eforumad.js"></script>

<script language="JavaScript">
<!--

  function gotoPage(_pNo){
    $("_pNo").value = _pNo;
    $("tagSearch").submit();
  }

//-->
</script>

</head>

<body><!-- forumtagsearch.ftl -->

<div id="wrap">

<#include "header.ftl"/>

<form method="post" id="tagSearch" action="${_UrlUtil.encodeURL("/topic.do?_fn=TagSearch")}">
<input type="hidden" name="_pNo" id="_pNo" value="1">
<div id="content">

<div class="commonNavLine">
	<#assign onlyForumMenu = false/>
	<#assign nextForumNavStr = "版面标签查询"/>
	<#include "forum_nav.ftl"/>
</div><#comment>end commonNavLine </#comment>

<div id="commonLeft">
<div id="forumTagSearch" class="commonNavBox">
<table class="outline">
	<tr class="hd">
		<td class="td1">
			搜索
		</td>
		<td class="td2">
			<img src="${_resPath}/img/side_view_yes.gif" style="cursor:pointer;" onclick="expandContent('forumTagSearchTable');">
		</td>
	</tr>
<tbody id="forumTagSearchTable" class="content">
	<tr class="infoLine">
		<td class="option" colspan="2">
			<input type="text" id="tag_name" name="tag_name" value="${tag_name?default("")}" size="18" class="input1">
		</td>
	</tr>
	<tr class="infoLine">
		<td class="option" colspan="2">
			<select name="order_name">
				<option value="${_Constants.TAG_ORDER_VIEWNUM}" <#if order_name?default(_Constants.TAG_ORDER_VIEWNUM)?number == _Constants.TAG_ORDER_VIEWNUM> selected </#if>>点击数</option>
				<option value="${_Constants.TAG_ORDER_TOPICNUM}" <#if order_name?default(_Constants.TAG_ORDER_TOPICNUM)?number == _Constants.TAG_ORDER_TOPICNUM> selected </#if>>主题数</option>
			</select>
			<select name="order_type">
				<option value="${_Constants.ORDER_TYPE_DESC}" <#if order_type?default(_Constants.ORDER_TYPE_DESC)?number == _Constants.ORDER_TYPE_DESC> selected </#if>>降序</option>
				<option value="${_Constants.ORDER_TYPE_ASC}" <#if order_type?default(_Constants.ORDER_TYPE_ASC)?number == _Constants.ORDER_TYPE_ASC> selected </#if>>升序</option>
			</select>
		</td>
	</tr>
	<tr class="infoLine">
		<td class="option" colspan="2">
			<div class="selectComponent" onmouseover="popMenu('forum_name')">
				<span id="forum_name">
        <#if forum_id ? exists>${_ForumUtil.getForumInfo(forum_id).forum_name}
        <#else>请选择版面
        </#if>
        </span>&nbsp;<img src="${_resPath}/img/drop.gif"/>
			</div>
			<input type="hidden" name="forum_id" id="forum_id" value="${forum_id?default("-1")}">
		</td>
	</tr>
	<tr class="actionLine">
		<td class="option" colspan="2">
			<input type="button" class="middleButton" value="标签搜索" onclick="formSubmit('tagSearch',this)">
		</td>
	</tr>
</tbody>
</table>
</div><#comment> end tagSearch </#comment>


<div id="forum_name_Items" class="menu commonSelectPop">
<ul>
<#assign curHideFlag = false/><#comment>隐藏标识</#comment>
<#assign curLevel = 0/><#comment>判断级别</#comment>

<#list _ForumUtil.getForums() as forum>
<#assign forumInfo = _ForumUtil.getForumInfo(forum.forum_id)/>
<#comment>如果判断级别高于版面的级别,则遵循当前隐藏标识状态,否则根据版面的设置进行处理</#comment>
<#if curHideFlag && curLevel &lt; forumInfo["forum_level"]?number>
<#else>
  <#assign curShowFlag = false/>
  <#comment>判断当前论坛关闭,只有管理角色(管理员\超级管理员)才可以查看</#comment>
  <#if forumInfo.forum_status?number == _Constants.FORUM_STATUS_USE ||
    _EFUser.groupId?number == _Constants.USERGROUP_SYSTEM_SUPERADMIN || 
    _EFUser.groupId?number == _Constants.USERGROUP_SYSTEM_ADMIN>
  <#comment>判断当前论坛隐藏,只有管理角色(管理员\超级管理员)和允许查看隐藏论坛的用户组才可以查看</#comment>
  <#if forumInfo.forum_ishide?number == _Constants.FORUM_ISHIDEN_SHOW ||
    !_ConfigUtil.isYes("SECURITY_HIDE_FORBIDDEN_FORUM") || 
    _EFUser.groupId?number == _Constants.USERGROUP_SYSTEM_SUPERADMIN ||
    _EFUser.groupId?number == _Constants.USERGROUP_SYSTEM_ADMIN || _GroupUtil.isYes(_EFUser.groupId?string,"USERGROUP_VISIT_HIDDENFORUM")>

    <#if forumInfo["forum_type"]=="0">
      <li class="divLi">${forumInfo["forum_name"]}</li>
    <#else>
      <li>
      <#if forumInfo["forum_level"]?number &gt; 2>
      <a href="javascript:selectForum('${forumInfo["forum_id"]}','${forumInfo["forum_name"]}')" >(&nbsp;${forumInfo["forum_name"]}&nbsp;)</a>
      <#else>
      <a href="javascript:selectForum('${forumInfo["forum_id"]}','${forumInfo["forum_name"]}')" >${forumInfo["forum_name"]}</a>
      </#if>
      </li>
    </#if>

    <#comment>如果不隐藏,则还原各个标识</#comment>
    <#assign curHideFlag = false/>
    <#assign curLevel = 0/>
    <#assign curShowFlag = true/>
    </#if>
    </#if>
    
    <#comment>如果原来显示,现在隐藏了,则记录标识</#comment>
    <#if !curHideFlag && !curShowFlag>
      <#assign curLevel = forumInfo["forum_level"]?number/>
      <#assign curHideFlag = true/>
    </#if>

    <#comment>如果隐藏,且当前级别高于判断级别,则升级判断级别</#comment>
    <#if curHideFlag && forumInfo["forum_level"]?number &lt; curLevel>
      <#assign curLevel = forumInfo["forum_level"]?number/>
    </#if>

  </#if>

</#list>
</ul>
</div>

<#if processedList ? exists>
<div id="forumTagSearchPopTag" class="commonNavBox">
<table class="outline">
	<tr class="hd">
		<td class="td1">
			版面流行标签
		</td>
		<td class="td2">
			<img src="${_resPath}/img/side_view_yes.gif" style="cursor:pointer;" onclick="expandContent('forumTagSearchPopTagTable');">
		</td>
	</tr>
<tbody id="forumTagSearchPopTagTable" class="content">
  <tr class="areaLine">
		<td class="area" colspan=2>
		<div class="tagCloud">
		<#assign tags = _TagUtil.getTopicListTags(forum_id,40) />
		<#list tags as tag>
			<span><a href="${_UrlUtil.encodeURL("/topic.do?_fn=TagTopicList&forum_id="+forum_id+"&tag_id="+tag.tag_id+"&tag_name="+tag.tag_name?url)}" style="${tag.tagAttribute}" target="_blank">${tag.tag_name}</a></span>
		</#list>
		</div>
		</td>
  </tr>
</tbody>
</table>
</div><#comment> end tagSearchPopTag </#comment>
</#if>

</div><#comment> end commonLeft </#comment>

<div id="commonRight">

<div id="forumTags" class="noteBox commonOuter">

  <table class="commonInnerTable">
    <tr class="hd">
      <td class="hdTitle">
        <#if processedList?exists>搜索结果<#else>版面流行标签</#if>
      </td>
    </tr>
    <tr>
      <td class="content">
        <#if processedList ? exists>
          <#if processedList.size() &gt; 0>
            <div class="tagCloud">
            <#list processedList as tag>
              <span><a href="${_UrlUtil.encodeURL("/topic.do?_fn=TagTopicList&keywordTagName="+tag_name?default("")?url+"&forum_id="+forum_id+"&tag_id="+tag.tag_id+"&tag_name="+tag.tag_name?url)}" style="${tag.tagAttribute}">${tag.tag_name}</a></span>
            </#list>
            </div><#comment> end tagsContent </#comment>
          <#else>
            <#assign noDataInfo = "没有符合条件的版面标签"/>
            <#assign isTable = false/>
            <#include "nodatainfo_inc.ftl"/>
          </#if>
        <#else>
          <div class="tagCloud">
            <#list _TagUtil.getTopicListTags(forum_id,40) as forumTag>
				      <span><a href="${_UrlUtil.encodeURL("/topic.do?_fn=TagTopicList&forum_id="+forum_id+"&tag_id="+forumTag.tag_id+"&tag_name="+forumTag.tag_name?url)}" style="${forumTag.tagAttribute}" target="_blank">${forumTag.tag_name}</a></span>
			      </#list>
          </div><#comment> end tagsContent </#comment>
        </#if>
      </td>
    </tr>
  </table>
</div><#comment> end forumTags </#comment>

<div id="pageNavigationDiv">
  <#assign pagination=Context["PAGE_FORUM_TAG_LIST"]?default(_EmptyObject.pagination()) />
  <@html.doPagination pagination=pagination/>
</div>

</div><#comment> end commonRight </#comment>

</div><#comment> end content </#comment>
</form>

<#assign _show_temp_=false>
<#include "footer.ftl"/>

</div><#comment>end wrap </#comment>
</body>
</html>

⌨️ 快捷键说明

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