<!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">

<form id="formEdit" action="" method="post">
<ul class="subnav subnav-tab">
	<li class="active"><a href="#">{-:@EDIT_AD_SPACE-}</a></li>
</ul>
<div id="tabContent">
	<table class="formTable">
		<tr>
			<td class="inputTitle">{-:@ALIAS-}</td>
			<td class=""></td>
		</tr>
		<tr>
			<td class="inputArea">
				{-:$_ASI['as_alias']-}
			</td>
			<td class="inputTip">
				<span class="text-danger">*</span> {-:@AS_ALIAS_TIP-}
			</td>
		</tr>
		<tr>
			<td class="inputTitle">{-:@NAME-}</td>
			<td class=""></td>
		</tr>
		<tr>
			<td class="inputArea">
			{-if:C('LANG.DETECT')-}
				<ul class="subnav subnav-pill margin-bottom" data-switcher="{'connect':'#tabContent_asname'}">
					<li><a href="#">{-:*LANG_NAME|get_langName-}</a></li>
				{-foreach:$_LS,$alias,$lang-}
					{-if:$alias!==LANG_NAME-}<li><a href="#">{-:$lang-}</a></li>{-:/if-}
				{-:/foreach-}
				</ul>
				<div id="tabContent_asname" class="switcher">
					<div class="tabCntnt">
						<input type="text" name="as_name[{-:*LANG_NAME-}]" validate="/\S+/" value="{-:$_ASI['as_name'][LANG_NAME]-}" class="control-input input-inline" maxlength="64" size="30">
					</div><!--/.tabCntnt-->
				{-foreach:$_LS,$alias,$lang-}
					{-if:$alias!==LANG_NAME-}<div class="tabCntnt">
						<input type="text" name="as_name[{-:$alias-}]" validate="/\S+/" value="{-:$_ASI['as_name'][$alias]-}" class="control-input input-inline" maxlength="64" size="30">
					</div><!--/.tabCntnt-->{-:/if-}
				{-:/foreach-}
				</div>
			{-else:-}
				<input type="text" name="as_name[{-:*LANG_NAME-}]" validate="/\S+/" value="{-:$_ASI['as_name'][LANG_NAME]-}" class="control-input input-inline" maxlength="64" size="30">
				{-foreach:$_LS,$alias,$lang-}
					{-if:$alias!==LANG_NAME-}
						<input type="hidden" name="as_name[{-:$alias-}]" value="{-:$_ASI['as_name'][$alias]-}">
					{-:/if-}
				{-:/foreach-}
			{-:/if-}
			</td>
			<td class="inputTip">
				<span class="text-danger">*</span> {-:@AS_NAME_TIP-}
			</td>
		</tr>
		<tr>
			<td class="inputTitle">{-:@SIZE-}</td>
			<td class=""></td>
		</tr>
		<tr>
			<td class="inputArea">
				<input type="text" name="as_width" validate="/\S+/" value="{-:$_ASI['as_width']-}" class="control-input input-inline" size="6" maxlength="10"> &times; <input type="text" name="as_height" validate="/\S+/" value="{-:$_ASI['as_height']-}" class="control-input input-inline" size="6" maxlength="10">
			</td>
			<td class="inputTip">
				<span class="text-danger">*</span> {-:@AS_SIZE_TIP-}
			</td>
		</tr>
		<tr>
			<td class="inputTitle">{-:@TYPE-}</td>
			<td></td>
		</tr>
		<tr>
			<td class="inputArea">
				<label><input type="radio" value="code" name="as_type" {-if:'code' == $_ASI['as_type']-} checked="checked"{-:/if-}> {-:@CODE-}</label>
				<label><input type="radio" value="text" name="as_type" {-if:'text' == $_ASI['as_type']-} checked="checked"{-:/if-}> {-:@TEXT-}</label>
				<label><input type="radio" value="image" name="as_type" {-if:'image' == $_ASI['as_type']-} checked="checked"{-:/if-}> {-:@IMAGE-}</label>
				<label><input type="radio" value="slide" name="as_type" {-if:'slide' == $_ASI['as_type']-} checked="checked"{-:/if-}> {-:@SLIDE-}</label>
			</td>
			<td class="inputTip">
				<span class="text-danger">*</span> <span class="text-muted">{-:@AS_TYPE_TIP-}</span>
			</td>
		</tr>
		<tr>
			<td class="inputTitle">{-:@STATUS-}</td>
			<td class=""></td>
		</tr>
		<tr>
			<td class="inputArea">
				<label><input type="radio" name="as_status" value="1"{-if:1==$_ASI['as_status']-} checked="checked"{-:/if-}> {-:@ON-}</label>
				<label><input type="radio" name="as_status" value="0"{-if:0==$_ASI['as_status']-} checked="checked"{-:/if-}> {-:@OFF-}</label>
			</td>
			<td class="inputTip">
				<span class="text-danger">*</span> {-:@AS_STATUS_TIP-}
			</td>
		</tr>
		<tr>
			<td class="inputTitle">{-:@DEFAULT-}</td>
			<td class=""></td>
		</tr>
		<tr>
			<td class="inputArea">
			{-if:C('LANG.DETECT')-}
				<ul class="subnav subnav-pill margin-bottom" data-switcher="{'connect':'#tabContent_asdefault'}">
					<li><a href="#">{-:*LANG_NAME|get_langName-}</a></li>
				{-foreach:$_LS,$alias,$lang-}
					{-if:$alias!==LANG_NAME-}<li><a href="#">{-:$lang-}</a></li>{-:/if-}
				{-:/foreach-}
				</ul>
				<div id="tabContent_asdefault" class="switcher">
					<div class="tabCntnt">
						<textarea class="control-input" name="as_default[{-:*LANG_NAME-}]" style="width:480px;height:105px;">{-:$_ASI['as_default'][LANG_NAME]-}</textarea>
					</div><!--/.tabCntnt-->
				{-foreach:$_LS,$alias,$lang-}
					{-if:$alias!==LANG_NAME-}<div class="tabCntnt">
						<textarea class="control-input" name="as_default[{-:$alias-}]" style="width:480px;height:105px;">{-:$_ASI['as_default'][$alias]-}</textarea>
					</div><!--/.tabCntnt-->{-:/if-}
				{-:/foreach-}
				</div>
			{-else:-}
				<textarea class="control-input" name="as_default[{-:*LANG_NAME-}]" style="width:480px;height:105px;">{-:$_ASI['as_default'][LANG_NAME]-}</textarea>
				<div style="display:none">
				{-foreach:$_LS,$alias,$lang-}
					{-if:$alias!==LANG_NAME-}
						<textarea name="as_default[{-:$alias-}]">{-:$_ASI['as_default'][$alias]-}</textarea>
					{-:/if-}
				{-:/foreach-}
				</div>
			{-:/if-}
			</td>
			<td class="inputTip">
				{-:@AS_DEFAULT_TIP-}
			</td>
		</tr>
	</table>
</div>
<div id="operation" class="margin">
	<input name="timeKey" type="hidden" value="{-:$_TK['timeKey']-}">
	<input name="token" type="hidden" value="{-:$_TK['token']-}">
	<input type="hidden" value="{-:$_ASI['as_alias']-}" name="as_alias">
	<span class="btn btn-info submit" action="{-url:admin@ad_space/edit_space_do-}" to="#formEdit">{-:@SUBMIT-}</span>
	<input class="btn" type="reset" value="{-:@RESET-}">
	<a class="btn" href="{-url:admin@ad_space/list_space-}">{-:@BACK-}</a>
	<span class="btn dialog" to="adSpaceCode">{-:@GET_CODE-}</span>
</div><!--/#operation-->
</form>

<div style="display:none">
	<div id="adSpaceCode">
<span>{-:@HTML_CODE-}</span>
<pre><code>&lt;loga:ad alias=&quot;{-:$_ASI['as_alias']-}&quot;&gt;</code></pre>
	</div>
</div><!--/hidden-->
</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>
</body>
</html>