<!doctype html>
<html dir="{-:*_LD_-}">
<head>
<meta charset="utf-8" />
<title>{-:@MANAGE-}</title>
{-include:../meta-}
<script>
var GV = {
	_LD_ : '{-:*_LD_-}',
	LANG_NAME : '{-:*LANG_NAME-}'
};
</script>
</head>

<body>
<div class="container margin">

<ul class="subnav subnav-tab">
	<li><a href="{-url:admin@option/edit_option_site-}">{-:@SITE-}</a></li>
	<li><a href="{-url:admin@option/edit_option_core-}">{-:@CORE-}</a></li>
	<li class="active"><a href="{-url:admin@option/edit_option_platform-}">{-:@PLATFORM-}</a></li>
	<li><a href="{-url:admin@option/edit_option_language-}">{-:@LANGUAGE-}</a></li>
	<li><a href="{-url:admin@option/edit_option_index-}">{-:@INDEX-}</a></li>
	<li><a href="{-url:admin@option/edit_option_upload-}">{-:@UPLOAD-}</a></li>
	<li><a href="{-url:admin@option/edit_option_image-}">{-:@IMAGE-}</a></li>
	<li><a href="{-url:admin@option/edit_option_interaction-}">{-:@INTERACTION-}</a></li>
	<li><a href="{-url:admin@option/edit_option_administrator-}">{-:@ADMINISTRATOR-}</a></li>
	<li><a href="{-url:admin@option/edit_custom_option-}">{-:@CUSTOM_OPTION-}</a></li>
</ul>

<form id="formEdit" class="form" action="" method="post">
	<div id="tabContent">
		<table class="formTable margin">
			<tr>
				<td class="inputTitle">{-:@PLATFORM_DETECT-} [platform/detect]</td>
				<td class=""></td>
			</tr>
			<tr>
				<td class="inputArea">
					<label><input type="radio" value="0" name="platform[detect]"{-if:0==$_O['platform']['detect']-} checked="checked"{-:/if-}> {-:@OFF-}</label>
					<label><input type="radio" value="1" name="platform[detect]"{-if:1==$_O['platform']['detect']-} checked="checked"{-:/if-}> {-:@ON-}</label>
				</td>
				<td class="inputTip">
					<span class="text-danger">*</span> {-:@PLATFORM_DETECT_TIP-}
				</td>
			</tr>
			<tr>
				<td class="inputArea" colspan="2">
					<table id="platformList" class="table table-hover table-bordered">
						<tr>
							<th scope="col">{-:@PLATFORM-}</th>
							<th scope="col">{-:@HOST-}</th>
							<th scope="col">{-:@TEMPLATE_DIRECTORY-}</th>
						</tr>
						<tr>
							<td>
								<label><input type="checkbox" disabled="disabled" checked="checked"> {-:@PC_VERSION-}</label>
							</td>
							<td>
								<label><input type="text" size="30" maxlength="255" class="control-input input-sm" value="{-:$_O['platform']['host']['desktop']-}" name="platform[host][desktop]"></label>
							</td>
							<td>__THEME__</td>
						</tr>
						<tr>
							<td>
								<label><input type="checkbox" value="pad" name="platform[agent][1]"{-if:in_array('pad', $_O['platform']['agent'])-} checked="checked"{-:/if-}> {-:@PAD_VERSION-}</label>
							</td>
							<td>
								<label><input type="text" size="30" maxlength="255" class="control-input input-sm" value="{-:$_O['platform']['host']['pad']-}" name="platform[host][pad]"></label>
							</td>
							<td>__THEME__pad</td>
						</tr>
						<tr>
							<td>
								<label><input type="checkbox" value="mobile" name="platform[agent][2]"{-if:in_array('mobile', $_O['platform']['agent'])-} checked="checked"{-:/if-}> {-:@MOBILE_VERSION-}</label>
							</td>
							<td>
								<label><input type="text" size="30" maxlength="255" class="control-input input-sm" value="{-:$_O['platform']['host']['mobile']-}" name="platform[host][mobile]"></label>
							</td>
							<td>__THEME__mobile</td>
						</tr>
						<tr>
							<td>
								<label><input type="checkbox" value="wml" name="platform[agent][3]"{-if:in_array('wml', $_O['platform']['agent'])-} checked="checked"{-:/if-}> {-:@WML_VERSION-}</label>
							</td>
							<td>
								<label><input type="text" size="30" maxlength="255" class="control-input input-sm" value="{-:$_O['platform']['host']['wml']-}" name="platform[host][wml]"></label>
							</td>
							<td>__THEME__wml</td>
						</tr>
					</table>
					<span class="text-muted"><span class="text-danger">*</span> {-:@PLATFORM_AGENT_TIP-}</span>
				</td>
			</tr>
			<tr>
				<td class="inputTitle">{-:@TEMPLATE-} [platform/template]</td>
				<td class="inputTitle">{-:@TPL_PROTECTION-} [platform/tpl_protection]</td>
			</tr>
			<tr>
				<td class="inputArea">
					<select class="control-input input-inline" name="platform[template]">
					{-foreach:$_TL,$k,$v-}
						<option value="{-:$v['dir']-}"{-if:$v['name']==$_O['platform']['template']-} selected="selected"{-:/if-}>{-:$v['name']-}</option>
					{-:/foreach-}
					</select><br />
					<span class="text-muted"><span class="text-danger">*</span> {-:@PLATFORM_TEMPLATE_TIP-}</span>
				</td>
				<td class="inputArea">
					<label><input type="radio" value="0" name="platform[tpl_protection]"{-if:0==$_O['platform']['tpl_protection']-} checked="checked"{-:/if-}> {-:@OFF-}</label>
					<label><input type="radio" value="1" name="platform[tpl_protection]"{-if:1==$_O['platform']['tpl_protection']-} checked="checked"{-:/if-}> {-:@ON-}</label><br />
					<span class="text-muted"><span class="text-danger">*</span> {-:@PLATFORM_TPL_PROTECTION_TIP-}</span>
				</td>
			</tr>
			<tr>
				<td class="inputTitle">{-:@SKIN-} [platform/skin]</td>
				<td class=""></td>
			</tr>
			<tr>
				<td class="inputArea">
					<select class="control-input input-inline" name="platform[skin]">
					{-foreach:$_SL,$k,$v-}
						<option value="{-:$v['dir']-}"{-if:$v['name']==$_O['platform']['skin']-} selected="selected"{-:/if-}>{-:$v['name']-}</option>
					{-:/foreach-}
					</select>
				</td>
				<td class="inputTip">
					<span class="text-danger">*</span> {-:@PLATFORM_SKIN_TIP-}
				</td>
			</tr>
		</table>
	</div>

	<div id="operation">
		<input name="timeKey" type="hidden" value="{-:$_TK['timeKey']-}">
		<input name="token" type="hidden" value="{-:$_TK['token']-}">
		<span class="btn btn-info submit" action="{-url:admin@option/edit_option_platform_do-}" to="#formEdit">{-:@SUBMIT-}</span>
		<input class="btn" type="reset" value="{-:@RESET-}">
	</div><!--/#operation-->
</form>

</div>
<script src="{-:*__RES__-}js/loga.js"></script>
<script src="{-:*__RES__-}js/jquery.js"></script>
<script src="{-:*__RES__-}fea/js/fea.min.js"></script>
<script src="{-:*__STYLE__-}js/common.js"></script>
<script src="{-:*__STYLE__-}js/admin.js"></script>
<script src="{-:*__STYLE__-}js/option.js"></script>
</body>
</html>