@ -36,19 +36,30 @@
< img src = "{:check_logo_is_exist(C('CH_LOGO_BACKSTAGE'),'logo_default.png')}" style = "height:40px;margin:0px;" >
< / div >
< div class = "subNavBox" >
< a href = "{:U('Promote/index')}" class = "subNav < if condition='CONTROLLER_NAME eq Promote and ACTION_NAME eq index '>active</if >"> 后台首页 < / a >
< a href = "{:U('Promote/index')}" class = "subNav < ?=is_active_class(['Promote'], ['index'])? >"> 后台首页 < / a >
<?php if ($loginer['level'] < 4) :?>
< div class = "subNav jssubNav" > < i class = "prev_icon icon_guanli" > < / i > < span > 管理中心< / span > < i class = "arrow_icon" > < / i > < / div >
< div class = "navContent jsnavContent" >
<!-- <a href="{:U('Promote/base_info')}" class="<if condition='CONTROLLER_NAME eq Promote and ACTION_NAME eq base_info '>active</if> ">账户信息</a> -->
< ?php
function promote_is_active_class($promoteType)
{
return is_active_class(
['Promote'],
['children', 'addPromote', 'edit_chlid'],
function() use($promoteType) {
return $_GET["promote_type"] == $promoteType;
}
);
}
?>
<?php if (in_array($loginer['level'], [1])):?>
< a href = "{:U('Promote/children', ['promote_type' => 0])}" class = "<if condition='$_GET[" promote_type " ] = = 0 and CONTROLLER_NAME eq Promote and ( ACTION_NAME eq children or ACTION_NAME eq addPromote or ACTION_NAME eq edit_chlid ) ' > active< / if > ">部门长管理< / a >
< a href = "{:U('Promote/children', ['promote_type' => 0])}" class = "< ?=promote_is_active_class(0)?>"> 部门长管理< / a >
<?php endif;?>
<?php if (in_array($loginer['level'], [1, 2])):?>
< a href = "{:U('Promote/children', ['promote_type' => 1])}" class = "<if condition='$_GET[" promote_type " ] = = 1 and CONTROLLER_NAME eq Promote and ( ACTION_NAME eq children or ACTION_NAME eq addPromote or ACTION_NAME eq edit_chlid ) ' > active< / if > ">组长管理< / a >
< a href = "{:U('Promote/children', ['promote_type' => 1])}" class = "< ?=promote_is_active_class(1)?>"> 组长管理< / a >
<?php endif;?>
<?php if (in_array($loginer['level'], [1, 2, 3])):?>
< a href = "{:U('Promote/children', ['promote_type' => 2])}" class = "<if condition='$_GET[" promote_type " ] = = 2 and CONTROLLER_NAME eq Promote and ( ACTION_NAME eq children or ACTION_NAME eq addPromote or ACTION_NAME eq edit_chlid ) ' > active< / if > ">推广员管理< / a >
< a href = "{:U('Promote/children', ['promote_type' => 2])}" class = "< ?=promote_is_active_class(2)?>"> 推广员管理< / a >
<?php endif;?>
< / div >
<?php endif;?>
@ -58,101 +69,101 @@
<?php if($isOpenQuery):?>
< div class = "subNav jssubNav" > < i class = "prev_icon icon_shujvi" > < / i > < span > 数据管理< / span > < i class = "arrow_icon" > < / i > < / div >
< div class = "navContent jsnavContent" >
< a href = "{:U('Query/dailySummary')}" class = "< if condition='CONTROLLER_NAME eq Query and ACTION_NAME eq dailySummary '>active</if> "> 每日概况< / a >
< a href = "{:U('Query/summary')}" class = "< if condition='CONTROLLER_NAME eq Query and ACTION_NAME eq summary '>active</if> "> 数据汇总< / a >
< a href = "{:U('Query/dailySummary')}" class = "< ?=is_active_class(['Query'], ['dailySummary'])?> "> 每日概况< / a >
< a href = "{:U('Query/summary')}" class = "< ?=is_active_class(['Query'], ['summary'])?> "> 数据汇总< / a >
<?php if($canViewUserRecharge):?>
< a href = "{:U('Query/recharge')}" class = "< if condition='CONTROLLER_NAME eq Query and (ACTION_NAME eq recharge or ACTION_NAME eq viewSpendDetailed) '>active</if> "> 订单查询< / a >
< a href = "{:U('Query/recharge')}" class = "< ?=is_active_class(['Query'], ['recharge', 'viewSpendDetailed'])?> "> 订单查询< / a >
<?php endif;?>
< a href = "{:U('Query/register')}" class = "< if condition='CONTROLLER_NAME eq Query and (ACTION_NAME eq register or ACTION_NAME eq viewRole) '>active</if> "> 注册明细< / a >
< a href = "{:U('Query/register')}" class = "< ?=is_active_class(['Query'], ['register', 'viewRole'])?> "> 注册明细< / a >
<?php if($canViewUserRecharge):?>
< a href = "{:U('Query/arpu')}" class = "< if condition='CONTROLLER_NAME eq Query and ACTION_NAME eq arpu '>active</if> "> ARPU统计< / a >
< a href = "{:U('Query/arpu')}" class = "< ?=is_active_class(['Query'], ['arpu'])?> "> ARPU统计< / a >
<?php endif;?>
<!-- <a href="{:U('Query/retention_analysis')}" class="< if condition='CONTROLLER_NAME eq Query and ACTION_NAME eq retention_analysis '>active</if> ">留存统计</a> -->
< a href = "{:U('Query/userRoles')}" class = "< if condition='CONTROLLER_NAME eq Query and ACTION_NAME eq userRoles '>active</if> "> 角色查询< / a >
<!-- <a href="{:U('Query/retention_analysis')}" class="< ?=is_active_class(['Query'], ['retention_analysis'])?> ">留存统计</a> -->
< a href = "{:U('Query/userRoles')}" class = "< ?=is_active_class(['Query'], ['userRoles'])?> "> 角色查询< / a >
<?php if($canViewUserRecharge):?>
< a href = "{:U('Query/userRecharges')}" class = "< if condition='CONTROLLER_NAME eq Query and ACTION_NAME eq userRecharges '>active</if> "> 充值玩家< / a >
< a href = "{:U('Query/userRecharges')}" class = "< ?=is_active_class(['Query'], ['userRecharges'])?> "> 充值玩家< / a >
<?php endif;?>
< a href = "{:U('Query/achievement')}" class = "< if condition='CONTROLLER_NAME eq Query and ACTION_NAME eq achievement '>active</if> "> 团队/推广员业绩< / a >
<!-- <a href="{:U('Query/promoteQuota')}" class="< if condition='CONTROLLER_NAME eq Query and (ACTION_NAME eq promoteQuota or ACTION_NAME eq quotaDtl) '>active</if> ">推广员指标</a> -->
< a href = "{:U('Query/iosDownLoadData')}" class = "< if condition='CONTROLLER_NAME eq Query and (ACTION_NAME eq iosDownLoadData or ACTION_NAME eq iosDownLoadData) '>active</if> "> IOS下载数统计< / a >
< a href = "{:U('Query/userretention')}" class = "< if condition='CONTROLLER_NAME eq Query and (ACTION_NAME eq userretention) '>active</if> "> 用户留存率< / a >
< a href = "{:U('Query/gameData')}" class = "< if condition='CONTROLLER_NAME eq Query and (ACTION_NAME eq gameData) '>active</if> "> 游戏分区数据汇总< / a >
< a href = "{:U('Query/achievement')}" class = "< ?=is_active_class(['Query'], ['achievement'])?> "> 团队/推广员业绩< / a >
<!-- <a href="{:U('Query/promoteQuota')}" class="< ?=is_active_class(['Query'], ['promoteQuota', 'quotaDtl'])?> ">推广员指标</a> -->
< a href = "{:U('Query/iosDownLoadData')}" class = "< ?=is_active_class(['Query'], ['iosDownLoadData'])?> "> IOS下载数统计< / a >
< a href = "{:U('Query/userretention')}" class = "< ?=is_active_class(['Query'], ['userretention'])?> "> 用户留存率< / a >
< a href = "{:U('Query/gameData')}" class = "< ?=is_active_class(['Query'], ['gameData'])?> "> 游戏分区数据汇总< / a >
< / div >
<?php endif;?>
<?php if ($canViewUserRecharge && $loginer['level'] == 1) :?>
< div class = "subNav jssubNav" > < i class = "prev_icon icon_caiwu" > < / i > < span > 财务管理< / span > < i class = "arrow_icon" > < / i > < / div >
< div class = "navContent jsnavContent" >
< a href = "{:U('Finance/index')}" class = "< if condition='CONTROLLER_NAME eq Finance and ACTION_NAME eq index '>active</if> "> 结算中心< / a >
< a href = "{:U('Finance/settlementDtl')}" class = "< if condition='CONTROLLER_NAME eq Finance and ACTION_NAME eq settlementDtl '>active</if> "> 结算明细< / a >
< a href = "{:U('Finance/withdrawRecord')}" class = "< if condition='CONTROLLER_NAME eq Finance and (ACTION_NAME eq withdrawRecord or ACTION_NAME eq withdrawDtl or ACTION_NAME eq settlementOrder) '>active</if> "> 提现记录< / a >
<?php if ($loginer['withdraw_show'] == 1) :?>
< a href = "{:U('Withdraw/index')}" class = "< if condition='CONTROLLER_NAME eq Withdraw and (ACTION_NAME eq index or ACTION_NAME eq withdrawDetail or ACTION_NAME eq withdrawOrderDetail) '>active</if> "> 公司结算< / a >
<?php endif;?>
< / div >
< a href = "{:U('Finance/index')}" class = "< ?=is_active_class(['Finance'], ['index'])?> "> 结算中心< / a >
< a href = "{:U('Finance/settlementDtl')}" class = "< ?=is_active_class(['Finance'], ['settlementDtl'])?> "> 结算明细< / a >
< a href = "{:U('Finance/withdrawRecord')}" class = "< ?=is_active_class(['Finance'], ['withdrawRecord', 'withdrawDtl', 'settlementOrder'])?> "> 提现记录< / a >
<?php if ($loginer['withdraw_show'] == 1) :?>
< a href = "{:U('Withdraw/index')}" class = "< ?=is_active_class(['Withdraw'], ['index', 'withdrawDetail', 'withdrawOrderDetail'])?> "> 公司结算< / a >
<?php endif;?>
< / div >
<?php endif ;?>
< div class = "subNav jssubNav" > < i class = "prev_icon icon_fenbao" > < / i > < span > 游戏管理< / span > < i class = "arrow_icon" > < / i > < / div >
< div class = "navContent jsnavContent" >
< a href = "{:U('Game/index')}" class = "< if condition='CONTROLLER_NAME eq Game and (ACTION_NAME eq index) '>active</if> "> 专服管理< / a >
< a href = "{:U('Game/index')}" class = "< ?=is_active_class(['Game'], ['index'])?> "> 专服管理< / a >
<?php if($isOpenQuery):?>
< a href = "{:U('Game/mix')}" class = "< if condition='CONTROLLER_NAME eq Game and (ACTION_NAME eq mix) '>active</if> "> 混服管理< / a >
< a href = "{:U('Game/mix')}" class = "< ?=is_active_class(['Game'], ['mix'])?> "> 混服管理< / a >
< if condition = "getParentPromoteId(PID) eq 0" >
< a href = "{:U('GameDivide/index')}" class = "< if condition='CONTROLLER_NAME eq GameDivide and (ACTION_NAME eq index ) '>active</if> "> 分成比例< / a >
< a href = "{:U('Promote/setChildGamePermission')}" class = "< if condition='CONTROLLER_NAME eq Promote and (ACTION_NAME eq setChildGamePermission ) '>active</if> "> 设置< / a >
< a href = "{:U('GameDivide/index')}" class = "< ?=is_active_class(['GameDivide'], ['index'])?> "> 分成比例< / a >
< a href = "{:U('Promote/setChildGamePermission')}" class = "< ?=is_active_class(['Promote'], ['setChildGamePermission'])?> "> 设置< / a >
< / if >
< a href = "{:U('Apply/feature')}" class = "< if condition='CONTROLLER_NAME eq Apply and (ACTION_NAME eq feature or ACTION_NAME eq my_game or ACTION_NAME eq my_game_ch or ACTION_NAME eq child_game ) '>active</if> "> 资料专区< / a >
< a href = "{:U('Apply/feature')}" class = "< ?=is_active_class(['Apply'], ['feature'])?> "> 资料专区< / a >
<?php endif;?>
< / div >
< div class = "subNav jssubNav" > < i class = "prev_icon icon_fenbao" > < / i > < span > 安全管理< / span > < i class = "arrow_icon" > < / i > < / div >
< div class = "navContent jsnavContent" >
<!-- <a href="{:U('Apply/app_index')}" class="<if condition='CONTROLLER_NAME eq Apply and ACTION_NAME eq app_index '>active</if> ">APP列表</a>-->
< a href = "{:U('Safe/bindTel')}" class = "< if condition='CONTROLLER_NAME eq Safe and (ACTION_NAME eq bindTel or ACTION_NAME eq bindTel or ACTION_NAME eq bindTel or ACTION_NAME eq bindTel ) '>active</if> "> 短信登陆设置< / a >
< a href = "{:U('Download/listsIndex')}" class = "< if condition='CONTROLLER_NAME eq Download and (ACTION_NAME eq listsIndex or ACTION_NAME eq listsIndex or ACTION_NAME eq my_game_ch or ACTION_NAME eq child_game ) '>active</if> "> 下载日志管理< / a >
< a href = "{:U('Safe/modifyloginpassword')}" class = "< if condition='CONTROLLER_NAME eq Safe and (ACTION_NAME eq modifyloginpassword or ACTION_NAME eq my_game or ACTION_NAME eq my_game_ch or ACTION_NAME eq child_game ) '>active</if> "> 修改登录密码< / a >
< a href = "{:U('Safe/setSafeIndex')}" class = "< if condition='CONTROLLER_NAME eq Safe and (ACTION_NAME eq setSafeIndex or ACTION_NAME eq my_game or ACTION_NAME eq my_game_ch or ACTION_NAME eq child_game ) '>active</if> "> 设置安全密码< / a >
<!-- <a href="{:U('Apply/app_index')}" class="<?=is_active_class(['Apply'], ['app_index'])?> ">APP列表</a>-->
< a href = "{:U('Safe/bindTel')}" class = "< ?=is_active_class(['Safe'], ['bindTel'])?> "> 短信登陆设置< / a >
< a href = "{:U('Download/listsIndex')}" class = "< ?=is_active_class(['Download'], ['listsIndex'])?> "> 下载日志管理< / a >
< a href = "{:U('Safe/modifyloginpassword')}" class = "< ?=is_active_class(['Safe'], ['modifyloginpassword'])?> "> 修改登录密码< / a >
< a href = "{:U('Safe/setSafeIndex')}" class = "< ?=is_active_class(['Safe'], ['setSafeIndex'])?> "> 设置安全密码< / a >
<?php if ($loginer['level'] == 1) :?>
< a href = "{:U('Safe/modifyBaseInfo')}" class = "< if condition='CONTROLLER_NAME eq Safe and (ACTION_NAME eq modifyBaseInfo or ACTION_NAME eq my_game or ACTION_NAME eq my_game_ch or ACTION_NAME eq child_game ) '>active</if> "> 用户基本信息< / a >
< a href = "{:U('Safe/modifyBaseInfo')}" class = "< ?=is_active_class(['Safe'], ['modifyBaseInfo'])?> "> 用户基本信息< / a >
<?php endif;?>
< a href = "{:U('Safe/promoteLogs')}" class = "< if condition='CONTROLLER_NAME eq Safe and (ACTION_NAME eq promoteLogs or ACTION_NAME eq promoteLogs or ACTION_NAME eq promoteLogs or ACTION_NAME eq promoteLogs ) '>active</if> "> 操作日志< / a >
< a href = "{:U('Safe/promoteLogs')}" class = "< ?=is_active_class(['Safe'], ['promoteLogs'])?> "> 操作日志< / a >
< / div >
<?php if($loginer['level'] <= 2):?>
< div class = "subNav jssubNav" > < i class = "prev_icon icon_fenbao" > < / i > < span > 测试资源< / span > < i class = "arrow_icon" > < / i > < / div >
< div class = "navContent jsnavContent" >
< a href = "{:U('TestingResource/index')}" class = "< if condition='CONTROLLER_NAME eq TestingResource and ACTION_NAME eq index '>active</if> "> 测试资源申请< / a >
< a href = "{:U('TestingResource/batches')}" class = "< if condition='CONTROLLER_NAME eq TestingResource and ACTION_NAME eq batches '>active</if> "> 测试资源申请记录< / a >
< a href = "{:U('TestingResource/index')}" class = "< ?=is_active_class(['TestingResource'], ['index'])?> "> 测试资源申请< / a >
< a href = "{:U('TestingResource/batches')}" class = "< ?=is_active_class(['TestingResource'], ['batches'])?> "> 测试资源申请记录< / a >
< / div >
<?php endif;?>
<?php if(C('APP_ENV') == 'dev' || in_array($loginer['company_id'], [334, 370])):?>
< div class = "subNav jssubNav" > < i class = "prev_icon icon_fenbao" > < / i > < span > 评级管理< / span > < i class = "arrow_icon" > < / i > < / div >
< div class = "navContent jsnavContent" >
<?php if($loginer['level'] <= 2):?>
< a href = "{:U('PromoteGrade/settings')}" class = "< if condition='CONTROLLER_NAME eq PromoteGrade and (ACTION_NAME eq settings or ACTION_NAME eq setting) '>active</if> "> 评级设定< / a >
< a href = "{:U('PromoteGrade/settings')}" class = "< ?=is_active_class(['PromoteGrade'], ['settings', 'setting'])?> "> 评级设定< / a >
<?php endif;?>
< a href = "{:U('PromoteGrade/index')}" class = "< if condition='CONTROLLER_NAME eq PromoteGrade and ACTION_NAME eq index '>active</if> "> 团队评级< / a >
< a href = "{:U('PromoteGrade/index')}" class = "< ?=is_active_class(['PromoteGrade'], ['index'])?> "> 团队评级< / a >
< / div >
<?php endif;?>
<!-- <eq name="parent_id" value="0">
< div class = "subNav jssubNav" > < i class = "prev_icon icon_fenbao" > < / i > < span > 扶持管理< / span > < i class = "arrow_icon" > < / i > < / div >
< div class = "navContent jsnavContent" >
< a href = "{:U('Support/index')}" class = "< if condition='CONTROLLER_NAME eq Support and (ACTION_NAME eq index or ACTION_NAME eq add or ACTION_NAME eq apply ) '>active</if> "> 扶持申请< / a >
< a href = "{:U('Support/lists')}" class = "< if condition='CONTROLLER_NAME eq Support and ACTION_NAME eq lists '>active</if> "> 扶持记录< / a >
< a href = "{:U('Support/quota')}" class = "< if condition='CONTROLLER_NAME eq Support and ACTION_NAME eq quota '>active</if> "> 扶持额度< / a >
< / div >
< / eq > -->
<!-- <eq name="parent_id" value="0">
< div class = "subNav jssubNav" > < i class = "prev_icon icon_fenbao" > < / i > < span > 扶持管理< / span > < i class = "arrow_icon" > < / i > < / div >
< div class = "navContent jsnavContent" >
< a href = "{:U('Support/index')}" class = "< ?=is_active_class(['Support'], ['add', 'apply'])?> "> 扶持申请< / a >
< a href = "{:U('Support/lists')}" class = "< ?=is_active_class(['Support'], ['lists'])?> "> 扶持记录< / a >
< a href = "{:U('Support/quota')}" class = "< ?=is_active_class(['Support'], ['quota'])?> "> 扶持额度< / a >
< / div >
< / eq > -->
<!-- <div class="subNav jssubNav"><i class="prev_icon icon_fuli"></i><span>会长福利</span><i class="arrow_icon"></i></div> -->
< div class = "subNav jssubNav" > < i class = "prev_icon icon_fuli" > < / i > < span > 平台币管理< / span > < i class = "arrow_icon" > < / i > < / div >
< div class = "navContent jsnavContent" >
< a href = "{:U('PromoteCoin/myCoin')}" class = "< if condition='CONTROLLER_NAME eq PromoteCoin and (ACTION_NAME eq myCoin or ACTION_NAME eq coinRecord or ACTION_NAME eq coinRecordDesc) '>active</if> "> 我的平台币< / a >
< a href = "{:U('PromoteCoin/transferLogs')}" class = "< if condition='CONTROLLER_NAME eq PromoteCoin and (ACTION_NAME eq shift or ACTION_NAME eq transferLogs) '>active</if> "> 平台币转移< / a >
< a href = "{:U('PromoteCoin/myCoin')}" class = "< ?=is_active_class(['PromoteCoin'], ['myCoin', 'coinRecord', 'coinRecordDesc'])?> "> 我的平台币< / a >
< a href = "{:U('PromoteCoin/transferLogs')}" class = "< ?=is_active_class(['PromoteCoin'], ['shift', 'transferLogs'])?> "> 平台币转移< / a >
<?php if($loginer['level'] == 1):?>
< a href = "{:U('CoinOrder/order_list')}" class = "< if condition='CONTROLLER_NAME eq CoinOrder and (ACTION_NAME eq order_list or ACTION_NAME eq order_add or ACTION_NAME eq order_detail) '>active</if> "> 平台币充值< / a >
< a href = "{:U('CoinOrder/order_list')}" class = "< ?=is_active_class(['CoinOrder'], ['order_list', 'order_add', 'order_detail'])?> "> 平台币充值< / a >
<?php endif;?>
< / div >
<?php if($canViewUserRecharge):?>
< div class = "subNav jssubNav" > < i class = "prev_icon icon_fuli" > < / i > < span > 玩家管理< / span > < i class = "arrow_icon" > < / i > < / div >
< div class = "navContent jsnavContent" >
< a href = "{:U('Players/playAction')}" class = "< if condition='CONTROLLER_NAME eq Players and (ACTION_NAME eq playAction)'>active</if> "> 行为日志< / a >
< a href = "{:U('Players/playAction')}" class = "< ?=is_active_class(['Players'], ['playAction'])?> "> 行为日志< / a >
< / div >
<?php endif;?>
< / div >