{x2;if:!$userhash}
{x2;include:header}
<body>
{x2;include:nav}
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span2">
			{x2;include:menu}
		</div>
		<div class="span10" id="datacontent">
{x2;endif}
			<ul class="breadcrumb">
				<li><a href="index.php?{x2;$_app}-master">{x2;$apps[$_app]['appname']}</a> <span class="divider">/</span></li>
				<li><a href="index.php?{x2;$_app}-master-basic">考场管理</a> <span class="divider">/</span></li>
				<li class="active">修改考场</li>
			</ul>
			<ul class="nav nav-tabs">
				<li class="active">
					<a href="#">修改考场</a>
				</li>
				<li class="dropdown pull-right">
					<a href="index.php?exam-master-basic&page={x2;$page}{x2;$u}">考场管理</a>
				</li>
			</ul>
        	<form action="index.php?exam-master-basic-modifybasic" method="post" class="form-horizontal">
				<fieldset>
					<div class="control-group">
						<label for="basic" class="control-label">考场名称</label>
						<div class="controls">
							<input id="basic" name="args[basic]" type="text" value="{x2;$basic['basic']}" needle="needle" msg="您必须输入考场名称" />
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">考场状态</label>
						<div class="controls">
							<label class="radio inline">
								<input name="args[basicclosed]" type="radio" value="0" {x2;if:!$basic['basicclosed']}checked{x2;endif}/>开启
							</label>
							<label class="radio inline">
								<input name="args[basicclosed]" type="radio" value="1" {x2;if:$basic['basicclosed']}checked{x2;endif}/>关闭
							</label>
						</div>
					</div>
					<div class="control-group">
						<label for="basicthumb" class="control-label">考场缩略图</label>
						<div class="controls">
							<div class="thumbuper pull-left">
								<div class="thumbnail">
									<a href="javascript:;" class="second label""><em class="uploadbutton" id="catimg" exectype="thumb"></em></a>
									<div class="first" id="catimg_percent"></div>
									<div class="boot"><img src="{x2;if:$basic['basicthumb']}{x2;$basic['basicthumb']}{x2;else}app/core/styles/images/noimage.gif{x2;endif}" id="catimg_view"/><input type="hidden" name="args[basicthumb]" value="{x2;$basic['basicthumb']}" id="catimg_value"/></div>
								</div>
							</div>
						</div>
					</div>
					<div class="control-group">
						<label for="basicapi" class="control-label">API标识</label>
						<div class="controls">
							<input id="basicapi" name="args[basicapi]" type="text" value="{x2;$basic['basicapi']}" datatype="datatable" max="12" msg="API标识为不超过12字符的英文或数字" />
							<span class="help-block">API标识用于对外提供接口信息，如果单独使用本系统无须填写</span>
						</div>
					</div>
					<div class="control-group">
						<label for="basicsubjectid" class="control-label">考试科目</label>
						<div class="controls">
							<select id="basicsubjectid" name="args[basicsubjectid]" needle="needle" msg="您必须选择考试科目">
			        		<option value="">选择科目</option>
					  		{x2;tree:$subjects,subject,sid}
					  		<option value="{x2;v:subject['subjectid']}"{x2;if:v:subject['subjectid'] == $basic['basicsubjectid']} selected{x2;endif}>{x2;v:subject['subject']}</option>
					  		{x2;endtree}
					  		</select>
						</div>
					</div>
					<div class="control-group">
						<label for="basicareaid" class="control-label">考试地区</label>
						<div class="controls">
							<select id="basicareaid" name="args[basicareaid]" needle="needle" msg="您必须选择考试地区">
			        		<option value="">选择地区</option>
					  		{x2;tree:$areas,area,aid}
					  		<option value="{x2;v:area['areaid']}"{x2;if:v:area['areaid'] == $basic['basicareaid']} selected{x2;endif}>{x2;v:area['area']}</option>
					  		{x2;endtree}
					  		</select>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">做为免费考场</label>
						<div class="controls">
							<label class="radio inline">
								<input name="args[basicdemo]" type="radio" value="1" {x2;if:$basic['basicdemo']}checked{x2;endif}/>是
							</label>
							<label class="radio inline">
								<input name="args[basicdemo]" type="radio" value="0" {x2;if:!$basic['basicdemo']}checked{x2;endif}/>否
							</label>
							<span class="help-block">免费考场用户开通考场时不扣除积分</span>
						</div>
					</div>
					<div class="control-group">
						<label for="basicprice" class="control-label">价格设置</label>
						<div class="controls">
							<textarea class="input-xlarge" rows="4" name="args[basicprice]" id="basicprice">{x2;$basic['basicprice']}</textarea>
						  	<span class="help-block">请按照“时长:开通所需积分”格式填写，每行一个，时长以天为单位，免费考场此设置无效。</span>
						</div>
					</div>
					<div class="control-group">
						<div class="controls">
							<button class="btn btn-primary" type="submit">提交</button>
							<input type="hidden" name="basicid" value="{x2;$basic['basicid']}"/>
							<input type="hidden" name="page" value="{x2;$page}"/>
							<input type="hidden" name="modifybasic" value="1"/>
							{x2;tree:$search,arg,aid}
							<input type="hidden" name="search[{x2;v:key}]" value="{x2;v:arg}"/>
							{x2;endtree}
						</div>
					</div>
				</fieldset>
			</form>
{x2;if:!$userhash}
		</div>
	</div>
</div>
</body>
</html>
{x2;endif}