Zhiqim Admin(简版的管理台)是从知启蒙管理台分离出来,保留系统参数表、系统菜单表、操作员、操作日志,去除组织、部门、角色等复杂权限功能,仅保留操作员独立权限功能。系统设计时保留ZmrSessionUser和ZmrOperator类,方便以后升级到知启蒙管理台。

森中灵 最后提交于2月前 修复cache显示错误,增加移动不带条件方法,增加操作日志不带说明方法
operatorOnline.zml1KB
${zhiqim_manager_breadcrumb_parent("operator.htm", "操作员管理", "操作员在线列表")}
${zhiqim_manager_content()}

<script>
function doRemove(sessionId)
{
    var ajax = new Z.Ajax();
    ajax.setClassName("ZmrOperatorPresenter");
    ajax.setMethodName("doRemoveOnlineOperator");
    ajax.addParam(sessionId);
    ajax.setFailureAlert();
    ajax.setSuccessAlertReload("剔除成功");
    ajax.execute();
}
</script>

<#-- 导航 -->
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul class="z-mg-r10">
    ${zhiqim_manager_tabnav("操作员管理", "/"+zhiqim_manager+"/operator.htm", true)}
    ${zhiqim_manager_tabnav("操作日志", "/"+zhiqim_manager+"/operateLog.htm", true)}
    <li class="z-active">操作员在线</li>
</ul>
</nav>
</div>

<#-- 列表 -->
<table class="z-table z-bordered z-mg-t20 z-pd10 z-bg-white z-lh150p z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
    <td width="180">操作员账号</td>
    <td width="180">操作员名称</td>
    <td width="20%">登录时间</td>
    <td width="*">最后访问</td>
    <td width="120">管理员</td>
    <td width="120">操作</td>
</tr>
<#for item : result.list()>
<tr class="z-h60" bgcolor="${zhiqim_manager_tr_bg(item_index)}">
    <td>${item.getOperatorCode()}</td>
    <td>${item.getOperatorName()}</td>
    <td>${item.getCreateTime()}</td>
    <td>${item.getLastAccessTime()}(还剩<span class="z-text-red">${item.getRemainMinute()}</span>分钟)</td>
    <td><#if item.getOperatorType() lt 2>是<#else>否</#if></td>
    <td>
        <#if sessionUser.getSessionId() == item.getSessionId()>
        自己
        <#elseif ZmrAdminMutexRule.check(request, item)>
        <button class="z-button z-red" onclick="doRemove('${item.getSessionId()}')">剔除</button>
        <#else>
        --
        </#if>
    </td>
</tr>
</#for>
${zhiqim_manager_tr_no_record(result, "暂时没有操作员在线")}
</table>
${zhiqim_manager_paging(result)}
${zhiqim_manager_content_end()}