You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
131 lines
5.7 KiB
HTML
131 lines
5.7 KiB
HTML
<extend name="Public/base" />
|
|
|
|
<block name="body">
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
|
|
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
|
|
<div class="main-place">
|
|
<span class="main-placetitle">位置</span>
|
|
<ul class="main-placeul">
|
|
<li><a href="{:U('Game/lists')}">游戏</a></li>
|
|
<li><a href="{:U('Server/lists')}">区服管理</a></li>
|
|
<li><a href="#">{$meta_title}</a></li>
|
|
</ul>
|
|
</div>
|
|
<!-- 标签页导航 -->
|
|
<div class="tab-wrap">
|
|
<div class="tab_nav jstabnav">
|
|
<ul>
|
|
<volist name=":parse_config_attr($model['field_group'])" id="group">
|
|
<li data-tab="tab{$key}" <eq name="key" value="1">class="current"</eq>><a href="javascript:void(0);">{$group}</a></li>
|
|
</volist>
|
|
</ul></div>
|
|
<div class="tab-content tab_content">
|
|
<!-- 表单 -->
|
|
<form id="form" action="{:U('editServer?model='.$model['id'])}" method="post" class="form-horizontal">
|
|
<!-- 基础文档模型 -->
|
|
<div id="tab1" class="tab-pane in tab1 tab_table">
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr>
|
|
<td class="l">游戏名称:</td>
|
|
<td class="r" >
|
|
<input type="text" class="txt " name="game_name" value="{$data['game_name']}" readonly="readonly" placeholder="请输入游戏名称">
|
|
<input type="hidden" class="txt " name="game_id" value="{$data['game_id']}" readonly="readonly" placeholder="请输入游戏名称">
|
|
</td>
|
|
<td class="l">运营平台:</td>
|
|
<td class="r table_radio">
|
|
<volist name=":get_systems_list()" id="vo">
|
|
<eq name="data.server_version" value="$key">
|
|
<label class="server_version_name"><input type="radio" class="inp_radio" checked value="{$key}" name="server_version" > {$vo}</label>
|
|
</eq>
|
|
</volist>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="l">区服名称:</td>
|
|
<td class="r" >
|
|
<input type="text" class="txt " name="server_name" value="{$data['server_name']}">
|
|
</td>
|
|
<td class="l">显示状态:</td>
|
|
<td class="r table_radio">
|
|
<label>
|
|
<input type="radio" value="0" name="show_status" <eq name="data['show_status']" value="0">checked="checked"</eq>> 关闭
|
|
</label>
|
|
<label>
|
|
<input type="radio" value="1" name="show_status" <eq name="data['show_status']" value="1">checked="checked"</eq>> 开启
|
|
</label>
|
|
<label>
|
|
<input type="radio" value="2" name="show_status" <eq name="data['show_status']" value="2">checked="checked"</eq>> 驳回
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="l">开服时间:</td>
|
|
<td class="r" >
|
|
<input type="text" class="txt time" name="start_time" value="{:time_format($data['start_time'],'Y-m-d H:i')}">
|
|
</td>
|
|
<td class="l">区服描述:</td>
|
|
<td class="r" colspan='3'>
|
|
<input type="text" class="txt " name="desride" value="{$data['desride']}">
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
<div class="form-item cf">
|
|
<input type="hidden" name="id" value="{$data.id}">
|
|
<button class="submit_btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</block>
|
|
|
|
<block name="script">
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
|
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
|
|
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
|
|
<script type="text/javascript">
|
|
//导航高亮
|
|
highlight_subnav('{:U('developers/server')}');
|
|
$('.side-sub-menu').eq(0).show();
|
|
Think.setValue("game_id", {$data.game_id|default = 0});
|
|
$('#submit').click(function(){
|
|
$('#form').submit();
|
|
});
|
|
|
|
$(function(){
|
|
$("#game_name").val($("#game_id option:selected").text());
|
|
$('.date').datetimepicker({
|
|
format: 'yyyy-mm-dd',
|
|
language:"zh-CN",
|
|
minView:2,
|
|
autoclose:true
|
|
});
|
|
$('.time').datetimepicker({
|
|
language:"zh-CN",
|
|
hour: 13,
|
|
minute: 15
|
|
});
|
|
showTab();
|
|
});
|
|
|
|
/*获取游戏名称*/
|
|
$("#game_id").change(function(){
|
|
var ratio_type=$("#game_id").children('option:selected').attr('sdk_version');
|
|
$("#game_name").val($("#game_id option:selected").text());
|
|
$("input[name='server_version']").val('ratio_type');
|
|
if(ratio_type==2){
|
|
$(".server_version_name").html('<input type="radio" class="inp_radio" checked value="2" name="server_version" > 苹果');
|
|
}else{
|
|
$(".server_version_name").html('<input type="radio" class="inp_radio" checked value="1" name="server_version" > 安卓');
|
|
}
|
|
});
|
|
</script>
|
|
</block>
|