|
|
@ -26,10 +26,10 @@
|
|
|
|
<span class="title_main">{$meta_title}</span>
|
|
|
|
<span class="title_main">{$meta_title}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="trunk-content article">
|
|
|
|
<div class="trunk-content article">
|
|
|
|
<div class="trunk-search clearfix">
|
|
|
|
<div class="trunk-search clearfix jssearch">
|
|
|
|
<form action="{:U('Query/promoteQuota',['row'=>I('get.row')])}" method="post" enctype="multipart/form-data">
|
|
|
|
<!-- <form action="" method="get" enctype="multipart/form-data">-->
|
|
|
|
<input type="hidden" name="parent_id" value="{:I('parent_id', 0)}">
|
|
|
|
|
|
|
|
<div class="form-group normal_space">
|
|
|
|
<div class="form-group normal_space">
|
|
|
|
|
|
|
|
<input type="hidden" id="parent_id" name="parent_id" value="{:I('parent_id', 0)}">
|
|
|
|
<select name="promote_id" class="reselect select_gallery" style="width: 220px;" >
|
|
|
|
<select name="promote_id" class="reselect select_gallery" style="width: 220px;" >
|
|
|
|
<option value="0">请选择{$searchLevelName}</option>
|
|
|
|
<option value="0">请选择{$searchLevelName}</option>
|
|
|
|
<volist name="subPromotes" id="promote">
|
|
|
|
<volist name="subPromotes" id="promote">
|
|
|
@ -67,14 +67,14 @@
|
|
|
|
<input type="text" class="txt float-input" name="level_end" style="width: 50px" value="{:I('level_end')}" >
|
|
|
|
<input type="text" class="txt float-input" name="level_end" style="width: 50px" value="{:I('level_end')}" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="submit" class="submit normal_space" value="查询">
|
|
|
|
<input type="submit" id="submit" class="submit normal_space" value="查询" url="{:U('Query/promoteQuota','model='.$model['name'],false)}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php if ($prevParentId > 0):?>
|
|
|
|
<?php if ($prevParentId > 0):?>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<a class="submit normal_space" href="{:U('Query/promoteQuota', ['row'=>I('get.row'), 'parent_id' => $prevParentId,'time'=>$time])}" style="line-height: 36px; display: inline-block; text-align: center; background: #E5E5E5; color: #2bd8ed; cursor: pointer;">返回上级</a>
|
|
|
|
<a class="submit normal_space search-parent" parent-id="{$prevParentId}" href="javascript:;" style="line-height: 36px; display: inline-block; text-align: center; background: #E5E5E5; color: #2bd8ed; cursor: pointer;">返回上级</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php endif;?>
|
|
|
|
<?php endif;?>
|
|
|
|
</form>
|
|
|
|
<!-- </form>-->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="trunk-list list_normal">
|
|
|
|
<div class="trunk-list list_normal">
|
|
|
|
<table class="table normal_table">
|
|
|
|
<table class="table normal_table">
|
|
|
@ -102,7 +102,7 @@
|
|
|
|
<td>{$record.role_num}</td>
|
|
|
|
<td>{$record.role_num}</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<?php if($record['current_display'] == '' && $record['level'] < 4):?>
|
|
|
|
<?php if($record['current_display'] == '' && $record['level'] < 4):?>
|
|
|
|
<a href="{:U('Query/promoteQuota', ['parent_id' => $record['id'], 'time' => $time])}">查看下级</a>
|
|
|
|
<a class="search-children" parent-id="{$record['id']}" href="javascript:;">查看下级</a>
|
|
|
|
<?php endif;?>
|
|
|
|
<?php endif;?>
|
|
|
|
<?php if($record['current_display'] != ''):?>
|
|
|
|
<?php if($record['current_display'] != ''):?>
|
|
|
|
<a href="{:U('Query/quotaDtl', ['parent_id' => I('parent_id', 0), 'time' => $time, 'promote_id' => $record['id'], 'relation_game_id' => I('relation_game_id', ''), 'sdk_version' => I('sdk_version', ''), 'server_id' => I('server_id', ''), 'level_begin' => I('level_begin', ''), 'level_end' => I('level_end', ''), 'is_self' => 1])}">查看详情</a>
|
|
|
|
<a href="{:U('Query/quotaDtl', ['parent_id' => I('parent_id', 0), 'time' => $time, 'promote_id' => $record['id'], 'relation_game_id' => I('relation_game_id', ''), 'sdk_version' => I('sdk_version', ''), 'server_id' => I('server_id', ''), 'level_begin' => I('level_begin', ''), 'level_end' => I('level_end', ''), 'is_self' => 1])}">查看详情</a>
|
|
|
@ -184,6 +184,28 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#submit').click(function () {
|
|
|
|
|
|
|
|
var url = $(this).attr('url');
|
|
|
|
|
|
|
|
console.log(url);
|
|
|
|
|
|
|
|
var query = $('.jssearch').find('input').serialize();
|
|
|
|
|
|
|
|
query += "&" + $('.jssearch').find('select').serialize();
|
|
|
|
|
|
|
|
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
|
|
|
|
|
|
|
|
query = query.replace(/^&/g, '');
|
|
|
|
|
|
|
|
if (url.indexOf('?') > 0) {
|
|
|
|
|
|
|
|
url += '&' + query;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
url += '?' + query;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
window.location.href = url;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('.search-children, .search-parent').click(function (e) {
|
|
|
|
|
|
|
|
var parentId = $(this).attr('parent-id');
|
|
|
|
|
|
|
|
$('#parent_id').val(parentId);
|
|
|
|
|
|
|
|
$('#submit').click();
|
|
|
|
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
</block>
|
|
|
|
</block>
|