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

📄 userindexmanage.ftl

📁 学生选课系统 赶快来下载啊啊好东西 呵呵啊啊 啊啊啊啊啊
💻 FTL
📖 第 1 页 / 共 4 页
字号:
<#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/drag.js"></script>
<script type="text/javascript" src="${_contextPath}/ef/js/base.js"></script>
<script type="text/javascript" src="${_contextPath}/ef/js/eforumad.js"></script>
</head>

<body><!-- userindexmanage.ftl -->
<#comment> 获取用户组映射数据 </#comment>
<#assign group_map = _GroupUtil.getAllMap()/>
<#assign blogUserSpace = _EFUserUtil.getEFUserSpace(_EFUser.id)/>

<div id="wrap">

<#include "header.ftl"/>

<div id="content">

<#include "blognav_inc.ftl"/>

<div id="blogLeft">

<div id="userIndexManageClass" 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('userIndexManageClassTable');">
		</td>
	</tr>
<tbody id="userIndexManageClassTable" class="content">
  <#comment> 从缓存中获取我收藏的版面,并循环 </#comment>
  <#list blogUserSpace.favorForums as favorForum>
    <#comment> 从缓存中论坛信息 </#comment>
    <#assign forum = _ForumUtil.getForumInfo(favorForum)/>
    <#comment>判断当前论坛关闭,只有管理角色(管理员\超级管理员)才可以查看</#comment>
    <#if forum.forum_status?number == _Constants.FORUM_STATUS_USE ||
        _EFUser.groupId?number == _Constants.USERGROUP_SYSTEM_SUPERADMIN || _EFUser.groupId?number == _Constants.USERGROUP_SYSTEM_ADMIN>
      <#comment>判断当前论坛隐藏,只有管理角色(管理员\超级管理员)和允许查看隐藏论坛的用户组才可以查看</#comment>
      <#if forum.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")>
        <tr class="optionLine">
          <td class="option" colspan=2>
          <#comment>判断此论坛是否在页面栏目配置中</#comment>
          <#if blogUserSpace.specForumPageItemSet.contains(forum.forum_id?string)>
            <a id="ITEM_KEY_FAVOR_FORUM_${forum.forum_id}_OPTION_A" href="javascript:addItem('ITEM_KEY_FAVOR_FORUM_${forum.forum_id}');">${forum.forum_name}&nbsp;<img src="${_resPath}/img/add_item.gif" id="ITEM_KEY_FAVOR_FORUM_${forum.forum_id}_OPTION" style="display:none;"></a>
          <#else>
            <a id="ITEM_KEY_FAVOR_FORUM_${forum.forum_id}_OPTION_A" href="javascript:addItem('ITEM_KEY_FAVOR_FORUM_${forum.forum_id}');">${forum.forum_name}&nbsp;<img src="${_resPath}/img/add_item.gif" id="ITEM_KEY_FAVOR_FORUM_${forum.forum_id}_OPTION"></a>
          </#if>
          </td>
        </tr>
      </#if>
    </#if>
  </#list>
  <tr class="optionLine">
    <td class="option" colspan=2>
    <#comment>判断收藏的版面是否在页面栏目配置中</#comment>
    <#if blogUserSpace.forumPageItem.item_key ? exists>
      <a id="ITEM_KEY_FAVOR_FORUMS_OPTION_A" href="javascript:addItem('ITEM_KEY_FAVOR_FORUMS');">收藏的版面&nbsp;<img src="${_resPath}/img/add_item.gif" id="ITEM_KEY_FAVOR_FORUMS_OPTION" style="display:none;"></a>
    <#else>
      <a id="ITEM_KEY_FAVOR_FORUMS_OPTION_A" href="javascript:addItem('ITEM_KEY_FAVOR_FORUMS');">收藏的版面&nbsp;<img src="${_resPath}/img/add_item.gif" id="ITEM_KEY_FAVOR_FORUMS_OPTION"></a>
    </#if>
    </td>
  </tr>
  <tr class="optionLine">
    <td class="option" colspan=2>
    <#comment>判断收藏的主题是否在页面栏目配置中</#comment>
    <#if blogUserSpace.topicFavorPageItem.item_key ? exists>
      <a id="ITEM_KEY_FAVOR_OPTION_A" href="javascript:addItem('ITEM_KEY_FAVOR');">收藏的主题&nbsp;<img src="${_resPath}/img/add_item.gif" id="ITEM_KEY_FAVOR_OPTION" style="display:none;"></a>
    <#else>
      <a id="ITEM_KEY_FAVOR_OPTION_A" href="javascript:addItem('ITEM_KEY_FAVOR');">收藏的主题&nbsp;<img src="${_resPath}/img/add_item.gif" id="ITEM_KEY_FAVOR_OPTION"></a>
    </#if>
      </td>
  </tr>
  <tr class="optionLine">
    <td class="option" colspan=2>
    <#comment>判断关注的主题是否在页面栏目配置中</#comment>
    <#if blogUserSpace.topicAttePageItem.item_key ? exists>
      <a id="ITEM_KEY_ATTENTION_OPTION_A" href="javascript:addItem('ITEM_KEY_ATTENTION');">关注的主题&nbsp;<img src="${_resPath}/img/add_item.gif" id="ITEM_KEY_ATTENTION_OPTION" style="display:none;"></a>
    <#else>
      <a id="ITEM_KEY_ATTENTION_OPTION_A" href="javascript:addItem('ITEM_KEY_ATTENTION');">关注的主题&nbsp;<img src="${_resPath}/img/add_item.gif" id="ITEM_KEY_ATTENTION_OPTION"></a>
    </#if>
    </td>
  </tr>
  <tr class="optionLine">
    <td class="option" colspan=2>
    <#comment>判断订阅的主题是否在页面栏目配置中</#comment>
    <#if blogUserSpace.topicSubscriptPageItem.item_key ? exists>
      <a id="ITEM_KEY_SUBSCRIPT_OPTION_A" href="javascript:addItem('ITEM_KEY_SUBSCRIPT');">订阅的主题&nbsp;<img src="${_resPath}/img/add_item.gif" id="ITEM_KEY_SUBSCRIPT_OPTION" style="display:none;"></a>
    <#else>
      <a id="ITEM_KEY_SUBSCRIPT_OPTION_A" href="javascript:addItem('ITEM_KEY_SUBSCRIPT');">订阅的主题&nbsp;<img src="${_resPath}/img/add_item.gif" id="ITEM_KEY_SUBSCRIPT_OPTION"></a>
    </#if>
      </td>
  </tr>
  <tr class="optionLine">
    <td class="option" colspan=2>
    <#comment>判断在线好友是否在页面栏目配置中</#comment>
    <#if blogUserSpace.friendPageItem.item_key ? exists>    
      <a id="ITEM_KEY_FRIEND_OPTION_A" href="javascript:addItem('ITEM_KEY_FRIEND');">好友&nbsp;<img src="${_resPath}/img/add_item.gif" id="ITEM_KEY_FRIEND_OPTION" style="display:none;"></a>
    <#else>
      <a id="ITEM_KEY_FRIEND_OPTION_A" href="javascript:addItem('ITEM_KEY_FRIEND');">好友&nbsp;<img src="${_resPath}/img/add_item.gif" id="ITEM_KEY_FRIEND_OPTION"></a>
    </#if>
    </td>
  </tr>
</tbody>
</table>
</div><#comment> userIndexManageClass </#comment>
<input type="hidden" name="layout_id_select" id="layout_id_select" value="t_1_1">
<input type="button" class="middleButton" value="保&nbsp;存" onclick="javascript:saveUserPageItem();">
</div><#comment> end blogLeft </#comment>

<form method="post" id="userPageItemForm" action="${_UrlUtil.encodeURL("/blog.do")}">
<input type="hidden" name="_fn" value="SaveUserIndexManage">
<input type="hidden" name="_item_order_para" id="_item_order_para" value = "">

<div id="blogRight">

<div id="userIndexManage" class="commonBox">
  <table class="commonTable">
    <tr class="hd1">
      <td>
        类博客收藏区预览
      </td>
      <td align="right"><img src="${_resPath}/img/three_dot_yes.gif" alt="" style="cursor:pointer;" onclick="expandContent('userIndexManageCon');"></td>
    </tr>
  </table>

<div id="userIndexManageCon" class="blogFavor">
<table width="100%" id=t_1 >
<tr>
  <td class="layout_grid" id="t_1_1">
    <#comment>按照位置顺序获取用户页面栏目配置</#comment>
    <#list blogUserSpace.pageItems as userPageItem>
      <#assign isForum = false>
      <#assign itemPara = _StringUtil.twoSignStr2Map("{","}","=",userPageItem.item_parameter?default(""))/>
      <#if userPageItem.item_key == _PageItemKey.ITEM_KEY_FAVOR_FORUM 
        || userPageItem.item_key == _PageItemKey.ITEM_KEY_ATTENTION 
        || userPageItem.item_key == _PageItemKey.ITEM_KEY_FAVOR 
        || userPageItem.item_key == _PageItemKey.ITEM_KEY_SUBSCRIPT>
        <#comment>收藏论坛\我的关注\我的收藏\我的订阅</#comment>
        <#if userPageItem.item_key == _PageItemKey.ITEM_KEY_FAVOR_FORUM>
          <#assign divID = _PageItemKey.ITEM_KEY_FAVOR_FORUM + "_" + userPageItem.forum_id/>
          <#comment>获取论坛信息</#comment>
          <#assign forumInfo = _ForumUtil.getForumInfo(userPageItem.forum_id)/>
          <#comment>获取页面管理项配置</#comment>
          <#assign pageManageOptions = _ConfigUtil.getManageOption(_PageItemKey.ITEM_KEY_FAVOR_FORUM,_tplStyle)/>
          <#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")>
              <#assign h2Title = forumInfo.forum_name/>
              <#assign topicList = userForumTopics[userPageItem.forum_id]/>
              <#assign forumStatus = true>
              <#assign isForum = true>
            <#else>
              <#assign h2Title = "隐藏论坛"/>
              <#assign forumStatus = false>
            </#if>
          <#else>
            <#assign h2Title = "关闭论坛"/>
            <#assign forumStatus = false>
          </#if>
        <#elseif userPageItem.item_key == _PageItemKey.ITEM_KEY_ATTENTION>
          <#assign divID = _PageItemKey.ITEM_KEY_ATTENTION/>
          <#assign h2Title = "关注的主题"/>
          <#assign topicList = userAttenTopics/>
          <#assign forumStatus = true>
          <#comment>获取页面管理项配置</#comment>
          <#assign pageManageOptions = _ConfigUtil.getManageOption(_PageItemKey.ITEM_KEY_ATTENTION,_tplStyle)/>
        <#elseif userPageItem.item_key == _PageItemKey.ITEM_KEY_FAVOR>
          <#assign divID = _PageItemKey.ITEM_KEY_FAVOR/>
          <#assign h2Title = "收藏的主题"/>
          <#assign topicList = userFavorTopics/>
          <#assign forumStatus = true>
          <#comment>获取页面管理项配置</#comment>
          <#assign pageManageOptions = _ConfigUtil.getManageOption(_PageItemKey.ITEM_KEY_FAVOR,_tplStyle)/>
        <#elseif userPageItem.item_key == _PageItemKey.ITEM_KEY_SUBSCRIPT>
          <#assign divID = _PageItemKey.ITEM_KEY_SUBSCRIPT/>
          <#assign h2Title = "订阅的主题"/>
          <#assign topicList = userSubscriptTopics/>
          <#assign forumStatus = true>
          <#comment>获取页面管理项配置</#comment>
          <#assign pageManageOptions = _ConfigUtil.getManageOption(_PageItemKey.ITEM_KEY_SUBSCRIPT,_tplStyle)/>
        </#if>
        <#assign topic_items = ""/>
        <#assign link_type = ""/>
        <#assign col_num = "1"/>
        <#list pageManageOptions as pageManageOption>
          <#if pageManageOption.optionName == "topic_items">
            <#if itemPara[pageManageOption.optionName] ? exists>
              <#assign topic_items = itemPara[pageManageOption.optionName]/>
            <#else>
              <#assign topic_items = pageManageOption.optionDefault/>
            </#if>
          <#elseif pageManageOption.optionName == "link_type">
            <#if itemPara[pageManageOption.optionName] ? exists>
              <#assign link_type = itemPara[pageManageOption.optionName]/>
            <#else>
              <#assign link_type = pageManageOption.optionDefault/>
            </#if>
          <#elseif pageManageOption.optionName == "col_num">
            <#if itemPara[pageManageOption.optionName] ? exists>
              <#assign col_num = itemPara[pageManageOption.optionName]/>
            <#else>
              <#assign col_num = pageManageOption.optionDefault/>
            </#if>
          </#if>
        </#list>
        <div id="${divID}" class="<#if col_num == "1"> leftContent <#else>unitContent</#if> pageItemOrder">
          <div class="innerContent">
          <h2>
            <div class="actions">
              <a href="javascript:void(0)" onclick="popMenu('${divID}_EDIT');" id="${divID}_EDIT"><img src="${_resPath}/img/edit_1.gif" alt="编辑" ></a>
              <div id="${divID}_EDIT_Items" class="menu pageManageEdit">
              <table>
                <#list pageManageOptions as pageManageOption>
                  <tr>
                    <td class="td1">
                      <span>${pageManageOption.optionDesc}</span>
                    </td>
                    <td class="td2">
                      <#if pageManageOption.optionType?number == _Constants.PAGE_MANAGE_OPTION_TYPE_SELECT_MULTIPLE>
                        <#if itemPara[pageManageOption.optionName] ? exists>
                          <#assign defaultValue = _StringUtil.signStr2Set(",",itemPara.get(pageManageOption.optionName))/>
                        <#else>
                          <#assign defaultValue = _StringUtil.signStr2Set(",",pageManageOption.optionDefault)/>
                        </#if>
                        <#list pageManageOption.options as option>
                          <span><input type="checkbox" name="${divID}_${pageManageOption.optionName}_SELECT" value="${option.value}" <#if defaultValue.contains(option.value)>checked</#if>>${option.name}</span><br>
                        </#list>
                        </select>
                      <#else>
                        <#if itemPara[pageManageOption.optionName] ? exists>
                          <#assign defaultValue = itemPara.get(pageManageOption.optionName)/>
                        <#else>
                          <#assign defaultValue = pageManageOption.optionDefault/>
                        </#if>
                        <select name="${divID}_${pageManageOption.optionName}_SELECT">
                        <#list pageManageOption.options as option>
                          <option value="${option.value}" <#if option.value == defaultValue>selected</#if>>${option.name}
                        </#list>

⌨️ 快捷键说明

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