|
|
|
@ -84,7 +84,7 @@
|
|
|
|
|
<select id="server_id" name="server_id" class="reselect select_gallery" style="width:101px">
|
|
|
|
|
<option server-id="0" value="">请选择区服</option>
|
|
|
|
|
<?php foreach($servers as $server):?>
|
|
|
|
|
<option server-id="<?=$server['server_id']?>" value="<?=$servers['server_id']?>" <?php if($servers['server_id'] == I('server_id')):?>selected="selected"<?php endif;?>>
|
|
|
|
|
<option server-id="<?=$server['server_id']?>" value="<?=$server['id']?>" <?php if($server['id'] == I('server_id')):?>selected="selected"<?php endif;?>>
|
|
|
|
|
<?=$server['server_name']?>
|
|
|
|
|
</option>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
@ -280,7 +280,7 @@ $("#submit").click(function(){
|
|
|
|
|
var servers = result.data.servers
|
|
|
|
|
var str = "<option value=''>请选择区服</option>"
|
|
|
|
|
for (var i in servers){
|
|
|
|
|
str += "<option value='"+servers[i].server_name+"'>"+servers[i].server_name+"</option>"
|
|
|
|
|
str += "<option value='"+servers[i].id+"'>"+servers[i].server_name+"</option>"
|
|
|
|
|
}
|
|
|
|
|
$("#server_id").empty()
|
|
|
|
|
$("#server_id").append(str)
|
|
|
|
|