Zhiqim Account(前端账户管理台)是在ZhiqimManager基础上改造成用于前端注册登录的管理系统,增加组织结构和余额,开放注册组织和组织管理员,可以添加组织内的部门和角色和操作员。并增加该管理台上的一些组件,如充值支付等组件。适用于二级代理管理或该大型组织机构

森中灵 最后提交于9月前 整理为组织方式和替换新的jar
orgSelector.zml3KB
${Styles.htmlOverflowHidden()}
<script>
function doSelector()
{
    var orgId = Z.FM.getChecked("orgId");
    
    var ajax = new Z.Ajax();
    ajax.setClassName("ZmrOrgPresenter");
    ajax.setMethodName("doSelectOrg");
    ajax.addParam("orgId", orgId);
    ajax.setFailureAlert();
    ajax.setSuccessReloadParent();
    ajax.execute();
}
</script>

<#-- 查询 -->
<div class="z-fixed z-t0 z-l0 z-w100p z-pd10 z-bg-gray" style="z-index:99">
<form method="post">
    <select name="orgType" class="z-float-left z-select z-w80 zi-h35" data-role="z-select" data-class="zi-bd-r-none zi-lh200p ${zmr_color_class}" data-options="maxHeight:220px;" onchange="this.form.submit();">
        <option value="">全部</option>
        <#for item : ZmrOrgTypeDao.list()>
        <option value="${item.getOrgTypeId()}" ${item.getOrgTypeId()==orgType?"selected":""}>${item.getOrgTypeName()}</option>
        </#for>
    </select>
    <input name="orgName" class="z-float-left z-input zi-h35 zi-bd-r-none" style="width:270px" placeholder="组织名称" value="${orgName}" maxlength="20">
    <button type="submit" class="z-float-left z-button z-w70 z-h35 zi-bd-rd0 ${zmr_color_class}"><i class="z-font z-query"></i></button>
</form>
</div>

<#-- 列表 -->
<div class="z-w100p z-pd10" style="margin-top:55px;height:256px;">
<table class="z-table z-bordered z-text-center zi-h30-tr">
<tr class="z-h40 z-bg-gray">
    <td width="60">选择</td>
    <td width="*">组织名称</td>
    <td width="80">组织状态</td>
</tr>
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
    <td><input name="orgId" type="radio" data-role="z-radio" data-class="z-blue" value="${root.getOrgId()}"></td>
    <td align="left" class="zi-pd-l6"><i class="z-ico z-tree z-normal z-30 z-root z-mg-r3"></i>#{root.getOrgName()}</td>
    <td><#if root.getOrgStatus() == 0>正常<#else><span class="z-color-red">停用</span></#if></td>
</tr>
<#for item : result.list()>
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
    <td><input name="orgId" type="radio" data-role="z-radio" data-class="z-blue" value="${item.getOrgId()}"></td>
<#if item.getOrgLevel() == 0 >
    <td align="left" class="zi-pd-l6"><i class="z-ico z-tree z-normal z-30 z-root z-mg-r3"></i>#{item.getOrgName()}</td>
</#if>
<#if item.getOrgLevel() == 1 >
    <td align="left" class="zi-pd-l6">
        <#if item_index == result.size()-1>
        <i class="z-ico z-tree z-30 z-normal z-lastnode"></i>
        <#else>
        <i class="z-ico z-tree z-30 z-normal z-node"></i>
        </#if>
        <i class="z-ico z-tree z-item z-mg-r3"></i>#{item.getOrgName()}
    </td>
</#if>
    <td><#if item.getOrgStatus() == 0>正常<#else><span class="z-color-red">停用</span></#if></td>
</tr>
</#for>
</table>
</div>
<div class="z-fixed z-l0 z-w100p z-h50 z-pd10 z-bg-gray" style="bottom:60px;">
<div class="z-relative-right">
    ${Pagings.toHtmlLink(result, link)}
</div>
</div>
<#-- 操作 -->
<div class="z-fixed z-b0 z-l0 z-w100p z-h60 z-pd10 z-bg-gray z-text-center">
    <button class="z-button z-large z-w150 ${zmr_color_class}" onclick="doSelector();">确定</button>
    <button class="z-button z-large z-w70 z-mg-l10" onclick="parent.Z.Dialog.close(location.hash);">取消</button>
</div>