|
|
|
@ -46,10 +46,13 @@
|
|
|
|
|
|
|
|
|
|
<div class="form-group normal_space fl">
|
|
|
|
|
<span id="server_js">
|
|
|
|
|
<select id="server_id" name="server_name" class="reselect select_gallery" style="width:101px">
|
|
|
|
|
<select id="server_id" name="server_name" class="reselect select_gallery"
|
|
|
|
|
style="width:101px">
|
|
|
|
|
<option game-id="0" value="">请选择区服</option>
|
|
|
|
|
<volist name=":getServer_name_on($_REQUEST['game_name'])" id="vo">
|
|
|
|
|
<option value="{$vo.server_name}" <if condition="$_REQUEST['server_name'] eq $vo['server_name']">selected="selected"</if>>{$_REQUEST['server_name']}</option>
|
|
|
|
|
<volist name=":getServer_name_on($_GET['game_name'])" id="vo">
|
|
|
|
|
<option value="{$vo.server_name}"
|
|
|
|
|
<if condition="$_REQUEST['server_name'] eq $vo['server_name']">selected="selected"</if>
|
|
|
|
|
>{$vo.server_name}</option>
|
|
|
|
|
</volist>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
@ -64,9 +67,36 @@
|
|
|
|
|
<input type="text" name="user_account" id="user_account" class="txt normal_txt" style="width:110px;" placeholder="测试账号" value="{:I('user_account')}" onKeyDown="webchat_chkkeysend(event);">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group normal_space fl">
|
|
|
|
|
<input type="text" name="promote_name" id="promote_name" class="txt normal_txt" style="width:110px;" placeholder="推广员" value="{:I('promote_name')}" onKeyDown="webchat_chkkeysend(event);">
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div class="form-group normal_space fl">-->
|
|
|
|
|
<!-- <input type="text" name="promote_name" id="promote_name" class="txt normal_txt" style="width:110px;" placeholder="推广员" value="{:I('promote_name')}" onKeyDown="webchat_chkkeysend(event);">-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
|
|
<if condition="$thisParentPromoteId eq 0">
|
|
|
|
|
<div class="form-group normal_space fl">
|
|
|
|
|
<select id="team_leader_id" name="team_leader_id" class="reselect select_gallery" style="min-width:130px;">
|
|
|
|
|
<option value="0">组长账号</option>
|
|
|
|
|
<volist name=":getAllPromoteListByType(1)" id="vo">
|
|
|
|
|
<option value="{$vo.id}" <if condition="$vo.id eq $_GET['team_leader_id']"> selected="selected" </if>>{$vo['account']}({$vo['real_name']})</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</if>
|
|
|
|
|
<input id="promotesid" value="{$_GET['promote_id']}" type="hidden"/>
|
|
|
|
|
<div class="form-group normal_space fl">
|
|
|
|
|
<select id="promote_id" name="promote_id" class="reselect select_gallery" style="min-width:130px;">
|
|
|
|
|
<option value="0">推广员账号</option>
|
|
|
|
|
<notempty name="teamLeaderData">
|
|
|
|
|
<volist name="teamLeaderData" id="vo">
|
|
|
|
|
<option value="{$vo.id}">{$vo['account']}({$vo['real_name']})</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</notempty>
|
|
|
|
|
<if condition="$_GET['team_leader_id'] gt 0">
|
|
|
|
|
<volist name=":getAllPromoteListByType(3,false,empty(I('team_leader_id'))?PID:I('team_leader_id'))" id="vo">
|
|
|
|
|
<option value="{$vo.id}" <if condition="$vo.id eq $_GET['promote_id']"> selected="selected" </if>>{$vo['account']}({$vo['real_name']})</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group normal_space fl">
|
|
|
|
|
<input type="submit" class="submit" id='submit' value="查询" style="cursor:pointer;">
|
|
|
|
@ -162,6 +192,7 @@
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
$().ready(function(){
|
|
|
|
|
|
|
|
|
|
setValue('row','{:I("get.row",10)}');
|
|
|
|
|
$("#pagehtml a").on("click",function(event){
|
|
|
|
|
event.preventDefault();//使a自带的方法失效,即无法调整到href中的URL(http://www.baidu.com)
|
|
|
|
@ -170,6 +201,43 @@
|
|
|
|
|
$('#data_form').submit();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#team_leader_id').change(function () {
|
|
|
|
|
var promoteId = parseInt($(this).val());
|
|
|
|
|
var promoteValue = $(this).find("option:selected").text();
|
|
|
|
|
var html = "<option value='' selected>推广员账号</option>";
|
|
|
|
|
|
|
|
|
|
if (promoteId > 0) {
|
|
|
|
|
html += "<option value='" + promoteId + "'>" + promoteValue + "</option>";
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "{:U('getChildPromoteList')}",
|
|
|
|
|
type: "post",
|
|
|
|
|
data: {promote_id:promoteId},
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
success: function (data) {
|
|
|
|
|
var promoteData = data.data;
|
|
|
|
|
|
|
|
|
|
if (promoteData.length > 0) {
|
|
|
|
|
for (var i in promoteData) {
|
|
|
|
|
html += "<option value='" + promoteData[i]['id'] + "'>" + promoteData[i]['account'] + "(" + promoteData[i]['real_name'] + ")</option>";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showPromoteSelect(html);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
showPromoteSelect(html);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function showPromoteSelect(html)
|
|
|
|
|
{
|
|
|
|
|
$("#promote_id").empty();
|
|
|
|
|
$('#promote_id').html(html);
|
|
|
|
|
$("#promote_id").select2();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$('#sdate').datetimepicker({
|
|
|
|
|
lang:'ch',
|
|
|
|
|
format:'Y-m-d',
|
|
|
|
@ -277,7 +345,9 @@
|
|
|
|
|
+'/game_name/'+$('#game_id').val()
|
|
|
|
|
+'/server_name/'+$('#server_id').val()
|
|
|
|
|
+'/role_name/'+$('#role_name').val()
|
|
|
|
|
+'/user_account/'+$('#user_account').val()+'/promote_name/'+$('#promote_name').val();
|
|
|
|
|
+'/user_account/'+$('#user_account').val()
|
|
|
|
|
+'/promote_id/'+$('#promote_id').val()
|
|
|
|
|
+'/team_leader_id/'+$('#team_leader_id').val();
|
|
|
|
|
console.log(formsUrl);
|
|
|
|
|
$('#forms').attr('action',formsUrl);
|
|
|
|
|
|
|
|
|
@ -397,6 +467,23 @@
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
checkPromote();
|
|
|
|
|
function checkPromote() {
|
|
|
|
|
var promoteId = parseInt($('#team_leader_id').val());
|
|
|
|
|
var promoteValue = $('#team_leader_id').find("option:selected").text();
|
|
|
|
|
|
|
|
|
|
var promote_id = $('#promotesid').val();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (promoteId > 0) {
|
|
|
|
|
var html = "<option value='" + promoteId + "' ";
|
|
|
|
|
if (promote_id == 1) {
|
|
|
|
|
html += "selected='selected'";
|
|
|
|
|
}
|
|
|
|
|
html +=" >"+ promoteValue + "</option>";
|
|
|
|
|
$('#promote_id').children().first().after(html);
|
|
|
|
|
console.log(promote_id);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</block>
|
|
|
|
|