<!doctype html>
<html dir="{-:*_LD_-}">
<head>
<meta charset="utf-8" />
<title>{-:@MANAGE-}</title>
{-include:../meta-}
<script>
var GV = {
	_LD_ : '{-:*_LD_-}',
	LANG_NAME : '{-:*LANG_NAME-}',
	EDITOR: {
		BASE_PATH: '{-:*__RES__-}js/editor/',
		PLUGIN_PATH: '{-:*__RES__-}js/editor/plugins/',
		UPLOAD_JSON: '{-url:editorjson/upload-}',
		FILE_MANAGER_JSON: '{-url:editorjson/file_manage-}',
		FORM_DATA : {
			'timeKey' : '{-:$_TK["timeKey"]-}',
			'token' : '{-:$_TK["token"]-}'
		}
	}
};
</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><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 class="active"><a href="{-url:admin@option/edit_custom_option-}">{-:@CUSTOM_OPTION-}</a></li>
</ul>

<form id="formEdit" class="form" action="" method="post">
	<div id="tabContent">
		<div class="alert margin">
			{-:@CUSTOM_OPTION_TIP-}
			<div>
				<span class="btn" id="add_custom_option">{-:@ADD_CUSTOM_OPTION-}</span>
				<span class="btn" id="sort_custom_option">{-:@SORT_CUSTOM_OPTION-}</span>
			</div>
		</div>
		<table class="formTable margin">
			{-foreach:$_CO,$co-}
			<tr>
				<td class="inputTitle">
					{-:$co['o_title']-} [{-:$co['o_key']-}]
					<span class="text-muted text-mi">HTML{-:@CODE-}: {-php:echo '{';-}-:$_G['{-:$co['o_key']-}']-}</span>
					<a href="{-url:admin@option/delete_custom_option_do?o_key={$co['o_key']}&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}" title="{-:@DELETE_CUSTOM_OPTION-}" class="close delete_confirm"></a></td>
				<td class=""></td>
			</tr>
			<tr>
				<td class="inputArea">
				{-if:'string' == $co['o_type']-}
					{-if:C('LANG.DETECT')-}
						<ul class="subnav subnav-pill margin-bottom" data-switcher="{'connect':'#tabContent_{-:$co['o_key']-}'}">
							<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_{-:$co['o_key']-}" class="switcher">
							<div class="tabCntnt">
								<input type="text" name="{-:$co['o_key']-}[{-:*LANG_NAME-}]" value="{-:$co['o_value'][LANG_NAME]-}" class="control-input" maxlength="255" size="50" />
							</div><!--/.tabCntnt-->
						{-foreach:$_LS,$alias,$lang-}
							{-if:$alias!==LANG_NAME-}<div class="tabCntnt">
								<input type="text" name="{-:$co['o_key']-}[{-:$alias-}]" value="{-:$co['o_value'][$alias]-}" class="control-input" maxlength="255" size="50" />
							</div><!--/.tabCntnt-->{-:/if-}
						{-:/foreach-}
						</div>
					{-else:-}
						<input type="text" name="{-:$co['o_key']-}[{-:*LANG_NAME-}]" value="{-:$co['o_value'][LANG_NAME]-}" class="control-input" maxlength="255" size="50" />
						{-foreach:$_LS,$alias,$lang-}
							{-if:$alias!==LANG_NAME-}
								<input type="hidden" name="{-:$co['o_key']-}[{-:$alias-}]" value="{-:$co['o_value'][$alias]-}">
							{-:/if-}
						{-:/foreach-}
					{-:/if-}
				{-elseif:'number' == $co['o_type']-}
					{-if:C('LANG.DETECT')-}
						<ul class="subnav subnav-pill margin-bottom" data-switcher="{'connect':'#tabContent_{-:$co['o_key']-}'}">
							<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_{-:$co['o_key']-}" class="switcher">
							<div class="tabCntnt">
								<input type="text" name="{-:$co['o_key']-}[{-:*LANG_NAME-}]" value="{-:$co['o_value'][LANG_NAME]-}" class="control-input" maxlength="20" size="10" />
							</div><!--/.tabCntnt-->
						{-foreach:$_LS,$alias,$lang-}
							{-if:$alias!==LANG_NAME-}<div class="tabCntnt">
								<input type="text" name="{-:$co['o_key']-}[{-:$alias-}]" value="{-:$co['o_value'][$alias]-}" class="control-input" maxlength="20" size="10" />
							</div><!--/.tabCntnt-->{-:/if-}
						{-:/foreach-}
						</div>
					{-else:-}
						<input type="text" name="{-:$co['o_key']-}[{-:*LANG_NAME-}]" value="{-:$co['o_value'][LANG_NAME]-}" class="control-input" maxlength="20" size="10" />
						{-foreach:$_LS,$alias,$lang-}
							{-if:$alias!==LANG_NAME-}
								<input type="hidden" name="{-:$co['o_key']-}[{-:$alias-}]" value="{-:$co['o_value'][$alias]-}">
							{-:/if-}
						{-:/foreach-}
					{-:/if-}
				{-elseif:'bool' == $co['o_type']-}
					{-if:C('LANG.DETECT')-}
						<ul class="subnav subnav-pill margin-bottom" data-switcher="{'connect':'#tabContent_{-:$co['o_key']-}'}">
							<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_{-:$co['o_key']-}" class="switcher">
							<div class="tabCntnt">
								<label><input type="radio" value="Y" name="{-:$co['o_key']-}[{-:*LANG_NAME-}]"{-if: 'Y' == $co['o_value'][LANG_NAME]-} checked="checked"{-:/if-}/> {-:@ON-}</label>
								<label><input type="radio" value="N" name="{-:$co['o_key']-}[{-:*LANG_NAME-}]"{-if: 'Y' != $co['o_value'][LANG_NAME]-} checked="checked"{-:/if-}/> {-:@OFF-}</label>
							</div><!--/.tabCntnt-->
						{-foreach:$_LS,$alias,$lang-}
							{-if:$alias!==LANG_NAME-}<div class="tabCntnt">
								<label><input type="radio" value="Y" name="{-:$co['o_key']-}[{-:$alias-}]"{-if: 'Y' == $co['o_value'][$alias]-} checked="checked"{-:/if-}/> {-:@ON-}</label>
								<label><input type="radio" value="N" name="{-:$co['o_key']-}[{-:$alias-}]"{-if: 'Y' != $co['o_value'][$alias]-} checked="checked"{-:/if-}/> {-:@OFF-}</label>
							</div><!--/.tabCntnt-->{-:/if-}
						{-:/foreach-}
						</div>
					{-else:-}
						<label><input type="radio" value="Y" name="{-:$co['o_key']-}[{-:*LANG_NAME-}]"{-if: 'Y' == $co['o_value'][LANG_NAME]-} checked="checked"{-:/if-}/> {-:@ON-}</label>
						<label><input type="radio" value="N" name="{-:$co['o_key']-}[{-:*LANG_NAME-}]"{-if: 'Y' != $co['o_value'][LANG_NAME]-} checked="checked"{-:/if-}/> {-:@OFF-}</label>
						{-foreach:$_LS,$alias,$lang-}
							{-if:$alias!==LANG_NAME-}
								<input type="hidden" name="{-:$co['o_key']-}[{-:$alias-}]" value="{-:$co['o_value'][$alias]-}">
							{-:/if-}
						{-:/foreach-}
					{-:/if-}
				{-elseif:'multi_text' == $co['o_type']-}
					{-if:C('LANG.DETECT')-}
						<ul class="subnav subnav-pill margin-bottom" data-switcher="{'connect':'#tabContent_{-:$co['o_key']-}'}">
							<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_{-:$co['o_key']-}" class="switcher">
							<div class="tabCntnt">
								<textarea name="{-:$co['o_key']-}[{-:*LANG_NAME-}]" class="control-input" style="width:500px;height:60px;">{-:$co['o_value'][LANG_NAME]-}</textarea>
							</div><!--/.tabCntnt-->
						{-foreach:$_LS,$alias,$lang-}
							{-if:$alias!==LANG_NAME-}<div class="tabCntnt">
								<textarea name="{-:$co['o_key']-}[{-:$alias-}]" class="control-input" style="width:500px;height:60px;">{-:$co['o_value'][$alias]-}</textarea>
							</div><!--/.tabCntnt-->{-:/if-}
						{-:/foreach-}
						</div>
					{-else:-}
						<textarea name="{-:$co['o_key']-}[{-:*LANG_NAME-}]" class="control-input" style="width:500px;height:60px;">{-:$co['o_value'][LANG_NAME]-}</textarea>
						<div style="display:none">
						{-foreach:$_LS,$alias,$lang-}
							{-if:$alias!==LANG_NAME-}
								<textarea name="{-:$co['o_key']-}[{-:$alias-}]">{-:$co['o_value'][$alias]-}</textarea>
							{-:/if-}
						{-:/foreach-}
						</div>
					{-:/if-}
				{-elseif:'html_text' == $co['o_type']-}
					{-if:C('LANG.DETECT')-}
						<ul class="subnav subnav-pill margin-bottom" data-switcher="{'connect':'#tabContent_{-:$co['o_key']-}'}">
							<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_{-:$co['o_key']-}" class="switcher">
							<div class="tabCntnt">
								<textarea name="{-:$co['o_key']-}[{-:*LANG_NAME-}]" class="editor" style="height:90px;">{-:$co['o_value'][LANG_NAME]|htmlspecialchars-}</textarea>
							</div><!--/.tabCntnt-->
						{-foreach:$_LS,$alias,$lang-}
							{-if:$alias!==LANG_NAME-}<div class="tabCntnt">
								<textarea name="{-:$co['o_key']-}[{-:$alias-}]" class="editor" style="height:90px;">{-:$co['o_value'][$alias]|htmlspecialchars-}</textarea>
							</div><!--/.tabCntnt-->{-:/if-}
						{-:/foreach-}
						</div>
					{-else:-}
						<textarea name="{-:$co['o_key']-}[{-:*LANG_NAME-}]" class="editor" style="height:90px;">{-:$co['o_value'][LANG_NAME]|htmlspecialchars-}</textarea>
						<div style="display:none">
						{-foreach:$_LS,$alias,$lang-}
							{-if:$alias!==LANG_NAME-}
								<textarea name="{-:$co['o_key']-}[{-:$alias-}]">{-:$co['o_value'][$alias]-}</textarea>
							{-:/if-}
						{-:/foreach-}
						</div>
					{-:/if-}
				{-elseif:'addon' == $co['o_type']-}
					{-if:C('LANG.DETECT')-}
						<ul class="subnav subnav-pill margin-bottom" data-switcher="{'connect':'#tabContent_{-:$co['o_key']-}'}">
							<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_{-:$co['o_key']-}" class="switcher">
							<div class="tabCntnt">
								<input id="{-:$co['o_key']-}_{-:*LANG_NAME-}" class="control-input input-inline" type="text" value="{-:$co['o_value'][LANG_NAME]-}" name="{-:$co['o_key']-}[{-:*LANG_NAME-}]" maxlength="255" size="50">
								<span id="{-:$co['o_key']-}_{-:*LANG_NAME-}_finder" to="#{-:$co['o_key']-}_{-:*LANG_NAME-}" class="btn finder">{-:@BROWSE_SERVER-}</span>
							</div><!--/.tabCntnt-->
						{-foreach:$_LS,$alias,$lang-}
							{-if:$alias!==LANG_NAME-}<div class="tabCntnt">
								<input id="{-:$co['o_key']-}_{-:$alias-}" class="control-input input-inline" type="text" value="{-:$co['o_value'][$alias]-}" name="{-:$co['o_key']-}[{-:*LANG_NAME-}]" maxlength="255" size="50">
								<span id="{-:$co['o_key']-}_{-:$alias-}_finder" to="#{-:$co['o_key']-}_{-:$alias-}" class="btn finder">{-:@BROWSE_SERVER-}</span>
							</div><!--/.tabCntnt-->{-:/if-}
						{-:/foreach-}
						</div>
					{-else:-}
						<input id="{-:$co['o_key']-}_{-:*LANG_NAME-}" class="control-input input-inline" type="text" value="{-:$co['o_value'][LANG_NAME]-}" name="{-:$co['o_key']-}[{-:*LANG_NAME-}]" maxlength="255" size="50">
						<span id="{-:$co['o_key']-}_{-:*LANG_NAME-}_finder" to="#{-:$co['o_key']-}_{-:*LANG_NAME-}" class="btn finder">{-:@BROWSE_SERVER-}</span>
						{-foreach:$_LS,$alias,$lang-}
							{-if:$alias!==LANG_NAME-}
								<input type="hidden" name="{-:$co['o_key']-}[{-:$alias-}]" value="{-:$co['o_value'][$alias]-}" />
							{-:/if-}
						{-:/foreach-}
					{-:/if-}
				{-elseif:'image' == $co['o_type']-}
					{-if:C('LANG.DETECT')-}
						<ul class="subnav subnav-pill margin-bottom" data-switcher="{'connect':'#tabContent_{-:$co['o_key']-}'}">
							<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_{-:$co['o_key']-}" class="switcher">
							<div class="tabCntnt">
								<input id="{-:$co['o_key']-}_{-:*LANG_NAME-}" class="control-input input-inline" type="text" value="{-:$co['o_value'][LANG_NAME]-}" name="{-:$co['o_key']-}[{-:*LANG_NAME-}]" maxlength="255" size="50">
								<span id="{-:$co['o_key']-}_{-:*LANG_NAME-}_finder" to="#{-:$co['o_key']-}_{-:*LANG_NAME-}" preview="#{-:$co['o_key']-}_{-:*LANG_NAME-}_preview" class="btn finder">{-:@BROWSE_SERVER-}</span><br />
								{-if:!empty($co['o_value'][LANG_NAME])-}
									<img id="{-:$co['o_key']-}_{-:*LANG_NAME-}_preview" height="90" class="margin-sm" src="{-:$co['o_value'][LANG_NAME]-}" />
								{-else:-}
									<img id="{-:$co['o_key']-}_{-:*LANG_NAME-}_preview" height="90" class="margin-sm" src="{-:*__APP__-}u/site/default_option_image.png" />
								{-:/if-}
							</div><!--/.tabCntnt-->
						{-foreach:$_LS,$alias,$lang-}
							{-if:$alias!==LANG_NAME-}<div class="tabCntnt">
								<input id="{-:$co['o_key']-}_{-:$alias-}" class="control-input input-inline" type="text" value="{-:$co['o_value'][$alias]-}" name="{-:$co['o_key']-}[{-:*LANG_NAME-}]" maxlength="255" size="50">
								<span id="{-:$co['o_key']-}_{-:$alias-}_finder" to="#{-:$co['o_key']-}_{-:$alias-}" preview="#{-:$co['o_key']-}_{-:$alias-}_preview" class="btn finder">{-:@BROWSE_SERVER-}</span><br />
								{-if:!empty($co['o_value'][$alias])-}
									<img id="{-:$co['o_key']-}_{-:$alias-}_preview" height="90" class="margin-sm" src="{-:$co['o_value'][$alias]-}" />
								{-else:-}
									<img id="{-:$co['o_key']-}_{-:$alias-}_preview" height="90" class="margin-sm" src="{-:*__APP__-}u/site/default_option_image.png" />
								{-:/if-}
							</div><!--/.tabCntnt-->{-:/if-}
						{-:/foreach-}
						</div>
					{-else:-}
						<input id="{-:$co['o_key']-}_{-:*LANG_NAME-}" class="control-input input-inline" type="text" value="{-:$co['o_value'][LANG_NAME]-}" name="{-:$co['o_key']-}[{-:*LANG_NAME-}]" maxlength="255" size="50">
						<span id="{-:$co['o_key']-}_{-:*LANG_NAME-}_finder" to="#{-:$co['o_key']-}_{-:*LANG_NAME-}" preview="#{-:$co['o_key']-}_{-:*LANG_NAME-}_preview" class="btn finder">{-:@BROWSE_SERVER-}</span><br />
						{-if:!empty($co['o_value'][LANG_NAME])-}
							<img id="{-:$co['o_key']-}_{-:*LANG_NAME-}_preview" height="90" class="margin-sm" src="{-:$co['o_value'][LANG_NAME]-}" />
						{-else:-}
							<img id="{-:$co['o_key']-}_{-:*LANG_NAME-}_preview" height="90" class="margin-sm" src="{-:*__APP__-}u/site/default_option_image.png" />
						{-:/if-}
						{-foreach:$_LS,$alias,$lang-}
							{-if:$alias!==LANG_NAME-}
								<input type="hidden" name="{-:$co['o_key']-}[{-:$alias-}]" value="{-:$co['o_value'][$alias]-}" />
							{-:/if-}
						{-:/foreach-}
					{-:/if-}
				{-:/if-}
				</td>
				<td class="inputTip">
					{-:$co['o_description']-}
				</td>
			</tr>
			{-:/foreach-}
		</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_custom_option_do-}" to="#formEdit">{-:@SUBMIT-}</span>
		<input class="btn" type="reset" value="{-:@RESET-}">
	</div><!--/#operation-->
</form>
</div>

<div id="form_add_custom_option" style="display:none">
<form id="formAdd" action="{-url:admin@option/add_custom_option_do-}" method="post">
	<table class="formTable">
		<tr>
			<td class="inputArea"><strong>{-:@OPTION_TITLE-}</strong></td>
			<td class="inputArea">
				{-if:C('LANG.DETECT')-}
					<ul class="subnav subnav-pill margin-bottom" data-switcher="{'connect':'#tabContentName'}">
						<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="tabContentName" class="switcher">
						<div class="tabCntnt">
							<input type="text" name="o_title[{-:*LANG_NAME-}]" validate="/\S+/" value="" class="control-input" maxlength="64" size="30">
						</div><!--/.tabCntnt-->
					{-foreach:$_LS,$alias,$lang-}
						{-if:$alias!==LANG_NAME-}<div class="tabCntnt">
							<input type="text" name="o_title[{-:$alias-}]" validate="/\S+/" value="" class="control-input" maxlength="64" size="30">
						</div><!--/.tabCntnt-->{-:/if-}
					{-:/foreach-}
					</div>
				{-else:-}
					<input type="text" name="o_title[{-:*LANG_NAME-}]" validate="/\S+/" value="" class="control-input" maxlength="64" size="30">
					{-foreach:$_LS,$alias,$lang-}
						{-if:$alias!==LANG_NAME-}
							<input type="hidden" name="o_title[{-:$alias-}]" value="">
						{-:/if-}
					{-:/foreach-}
				{-:/if-}
			</td>
		</tr>
		<tr>
			<td class="inputArea"><strong>{-:@OPTION_KEY-}</strong></td>
			<td class="inputArea">
				<input type="text" name="o_key" validate="/\S+/" value="" class="control-input" maxlength="96" size="30">
				<span class="text-danger">*</span> <span class="text-muted">{-:@OPTION_KEY_TIP-}</span>
			</td>
		</tr>
		<tr>
			<td class="inputArea"><strong>{-:@OPTION_TYPE-}</strong></td>
			<td class="inputArea">
				<label><input type="radio" value="string" name="o_type" checked="checked"> {-:@STRING-}</label>
				<label><input type="radio" value="number" name="o_type"> {-:@NUMBER-}</label>
				<label><input type="radio" value="bool" name="o_type"> {-:@BOOLEAN-}</label>
				<label><input type="radio" value="multi_text" name="o_type"> {-:@MULTI_TEXT-}</label>
				<label><input type="radio" value="html_text" name="o_type"> {-:@HTML_TEXT-}</label>
				<label><input type="radio" value="addon" name="o_type"> {-:@ADDON-}</label>
				<label><input type="radio" value="image" name="o_type"> {-:@IMAGE-}</label>
			</td>
		</tr>
		<tr>
			<td class="inputArea"><strong>{-:@OPTION_DESCRIPTION-}</strong></td>
			<td class="inputArea">
				{-if:C('LANG.DETECT')-}
					<ul class="subnav subnav-pill margin-bottom" data-switcher="{'connect':'#tabContentDesc'}">
						<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="tabContentDesc" class="switcher">
						<div class="tabCntnt">
							<textarea class="control-input" name="o_description[{-:*LANG_NAME-}]" style="width:480px;height:70px;"></textarea>
						</div><!--/.tabCntnt-->
					{-foreach:$_LS,$alias,$lang-}
						{-if:$alias!==LANG_NAME-}<div class="tabCntnt">
							<textarea class="control-input" name="o_description[{-:$alias-}]" style="width:480px;height:70px;"></textarea>
						</div><!--/.tabCntnt-->{-:/if-}
					{-:/foreach-}
					</div>
				{-else:-}
					<textarea class="control-input" name="o_description[{-:*LANG_NAME-}]" style="width:480px;height:70px;"></textarea>
					<div style="display:none">
					{-foreach:$_LS,$alias,$lang-}
						{-if:$alias!==LANG_NAME-}
							<textarea name="o_description[{-:$alias-}]"></textarea>
						{-:/if-}
					{-:/foreach-}
					</div>
				{-:/if-}
				<input name="timeKey" type="hidden" value="{-:$_TK['timeKey']-}">
				<input name="token" type="hidden" value="{-:$_TK['token']-}">
				<input name="o_display_order" type="hidden" value="0">
				<br /><span class="text-muted">{-:@OPTION_DESCRIPTION_TIP-}</span>
			</td>
		</tr>
	</table>
</form>
</div>
<div id="form_sort_custom_option" style="display:none">
	<form id="formSort" action="{-url:admin@option/sort_custom_option_do-}" method="post">
		<table id="co_set" class="table table-hover table-condensed co_set_root">
			<tbody class="co_set">
				<tr>
					<th></th>
					<th>{-:@TITLE-}</th>
					<th>{-:@KEY-}</th>
					<th>{-:@TYPE-}</th>
					<th>{-:@DESCRIPTION-}</th>
				</tr>
			{-foreach:$_CO,$co-}
				<tr class="co_item">
					<td class="tree-sortable-handle"><i class="icon-bars"></i></td>
					<td>{-:$co['o_title']-}</td>
					<td>
						{-:$co['o_key']-}
						<input class="co_sort" name="sort[{-:$co['o_key']-}]" type="hidden" value="{-:$co['o_display_order']-}">
					</td>
					<td>
					{-if:'string'==$co['o_type']-}
						{-:@STRING-}
					{-elseif:'number'==$co['o_type']-}
						{-:@NUMBER-}
					{-elseif:'bool'==$co['o_type']-}
						{-:@BOOLEAN-}
					{-elseif:'multi_text'==$co['o_type']-}
						{-:@MULTI_TEXT-}
					{-elseif:'html_text'==$co['o_type']-}
						{-:@HTML_TEXT-}
					{-elseif:'addon'==$co['o_type']-}
						{-:@ADDON-}
					{-elseif:'image'==$co['o_type']-}
						{-:@IMAGE-}
					{-:/if-}
					</td>
					<td>{-:$co['o_description']-}</td>
				</tr>
			{-:/foreach-}
			</tbody>
		</table>
		<input name="timeKey" type="hidden" value="{-:$_TK['timeKey']-}">
		<input name="token" type="hidden" value="{-:$_TK['token']-}">
	</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="{-:*__RES__-}js/editor/editor.js"></script>
<script src="{-:*__RES__-}js/editor/lang/{-:*LANG_NAME-}.js"></script>
<script src="{-:*__STYLE__-}js/common.js"></script>
<script src="{-:*__STYLE__-}js/editor.js"></script>
<script src="{-:*__STYLE__-}js/admin.js"></script>
<script src="{-:*__STYLE__-}js/option.js"></script>
</body>
</html>