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

📄 statmanager.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/eforumad.js"></script>

</head>

<body><!-- statmanager.ftl -->


<div id="wrap">

<#include "header.ftl"/>

<div id="content">

<div class="commonNavLine">
	<#assign onlyForumMenu = true/>
	<#assign nextForumNavStr = "管理团队信息"/>
	<#include "forum_nav.ftl"/>
</div><#comment>end commonNavLine </#comment>

<#assign currentChoice="ManagerStat">
<#include "statleft.ftl"/>

<div id="statManager" class="statContent">

<#comment> 获取用户组映射数据 </#comment>
<#assign group_map = _GroupUtil.getAllMap()/>

  <div class="commonBox">
    <table class="statManagers commonTable">
      <tr class="hd1">
        <td colspan="4">超级管理员&nbsp;•&nbsp;管理员&nbsp;•&nbsp;超级版主</td>
        <td align="right"><img src="${_resPath}/img/three_dot_yes.gif" alt="" style="cursor:pointer;" onclick="expandContent('statManagerBody');"></td>
      </tr>
      <tbody id="statManagerBody">
      <tr class="hd2">
        <td>用户名</td>
        <td>头衔</td>
        <td>上次访问</td>
        <td>近30天发帖</td>
        <td>近30天在线</td>
      </tr>
      <#comment> 超级管理员 </#comment>
      <#list superManagers as superAdmin>
        <#comment> 获取此管理用户信息 </#comment>
        <#assign superAdminUser = _StatUtil.getManagerStat(superAdmin)/>
        <#if superAdminUser ? exists>
          <tr class="content">
            <td class="td1"><a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(superAdminUser.user_id))}" target="_blank">${superAdminUser.user_nickname}</a></td>
            <td class="td2">${group_map[superAdminUser.group_id?string].group_name}</td>
            <td class="td3"><span class="time">${_DateUtil.shortTimeBetween(_EFUser,_DateUtil.getCurDateTimeLong(),superAdminUser.user_lastvisittime?default(0)?number)}</span></td>
            <td class="td6" title="总发帖:${superAdminUser.user_posts}"><span class="number">${superAdminUser.posts?default(0)}</span></td>
            <td class="td8" title="总在线:${_DateUtil.shortTimeBetween(_EFUser,superAdminUser.user_onlinetime?number,0)}"><span class="time">${_DateUtil.shortTimeBetween(_EFUser,superAdminUser.onlinetimes?default(0)?number,0)}</span></td>
          </tr>
        </#if>
        </tr>
        <tr>
          <td class="tdDivision"></td>
        </tr>
      </#list>
      </tbody>
    </table>
  </div>

  <#comment> 论坛 </#comment>
  <#assign forums = _ForumUtil.getForums()/>
  <#assign forumRootHasOwners = _StatUtil.getForumRootHasOwners()/>
    <div class="commonBox">
      <table class="statManagers commonTable">
        <tr class="hd1">
          <td colspan="5">版主&nbsp;•&nbsp;副版主</td>
          <td align="right"><img src="${_resPath}/img/three_dot_yes.gif" alt="" style="cursor:pointer;" onclick="expandContent('statForumManagerBody');"></td>
        </tr>
        <tbody id="statForumManagerBody">
          <tr class="hd2">
            <td>论坛</td>
            <td>用户名</td>
            <td>头衔</td>
            <td>上次访问</td>
            <td>近30天发帖</td>
            <td>近30天在线</td>
          </tr>
          <#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")>

            <#comment> 获取此论坛版面版主 </#comment>
            <#assign owners = _ForumUtil.getForumOwner(forumInfo.forum_id)/>
            <#list owners as owner>
              <#comment> 获取此管理用户信息 </#comment>
              <#assign ownerUser = _StatUtil.getManagerStat(owner?string)/>
              <tr class="content">
              <#if owner_index == 0>
                <td rowspan=${(owners.size())} class="forum_level">
                  <#list 0..forumInfo.forum_level?number-1 as i>
                    &nbsp;&nbsp;
                  </#list>
                  <#assign level = forumInfo.forum_level?number>
                  <#if level &gt; 1>
                    <span class="note">(${level-1})</span>&nbsp;
                  </#if>
                  <a href="${_UrlUtil.encodeURL("/"+_TopicUtil.getTopicURL(forumInfo.forum_id))}" target="_blank">
                    ${forumInfo.forum_name}</a>
                </td>
              </#if>
              <td><a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(ownerUser.user_id))}" target="_blank">${ownerUser.user_nickname}</a></td>
              <td class="td2">${group_map[ownerUser.group_id?string].group_name}</td>
              <td  class="td3">
              <span class="time">
              ${_DateUtil.happenedTime(_EFUser,ownerUser.user_lastvisittime?default(0)?number)}</span></td>  
              <td class="td6" title="总发帖:${ownerUser.user_posts}"><span class="number">${ownerUser.posts?default(0)}</span></td>
              <td class="td7" title="总在线:${_DateUtil.shortTimeBetween(_EFUser,ownerUser.user_onlinetime?default(0)?number,0)}">
              <span class="time">
              ${_DateUtil.shortTimeBetween(_EFUser,ownerUser.onlinetimes?default(0)?number,0)}</span></td>
            </tr>
            </#list>

            <#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>
        </tr>
        <tr>
          <td class="tdDivision"></td>
        </tr>
        </tbody>
      </table>
    </div><#comment> end forumOwnerStat</#comment>

</div><#comment> end statManager </#comment>

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

<#include "footer.ftl"/>

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

⌨️ 快捷键说明

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