<!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"]-}'
		}
	},
	URL : {
		GET_EXTENSION_HASHCODE : '{-url:admin@extension/_get_extension_hashcode-}'
	}
};
</script>
</head>

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

<form id="formEdit" action="" enctype="multipart/form-data" method="post">
<ul class="subnav subnav-tab" data-switcher="{'connect':'#tabContent'}">
	<li><a href="#">{-:@GENERAL-}</a></li>
	<li><a href="#">{-:@FILE_LIST-}</a></li>
	<li><a href="#">{-:@ADVANCE-}</a></li>
	<li><a href="#">{-:@OTHER-}</a></li>
</ul>
<div id="tabContent" class="switcher">
	<div class="tabCntnt">
		<table class="formTable">
			<tr>
				<td class="inputTitle">{-:@EXTENSION_NAME-}</td>
				<td class="inputTitle">{-:@EXTENSION_ALIAS-}</td>
				<td class="inputTitle">{-:@EXTENSION_TYPE-}</td>
			</tr>
			<tr>
				<td class="inputArea">
					<input type="text" name="e_name" validate="/\S+/" value="" class="control-input input-inline" maxlength="64" size="30"> <span class="text-danger">*</span>
				</td>
				<td class="inputArea">
					<input type="text" name="e_alias" validate="/[A-Za-z0-9_\-]+/" value="" class="control-input input-inline" maxlength="64" size="20"> <span class="text-danger">*</span>
				</td>
				<td class="inputArea">
					<label><input type="radio" name="e_type" value="module"> {-:@MODULE-}</label>
					<label><input type="radio" name="e_type" value="plugin" checked="checked"> {-:@PLUGIN-}</label>
					<label><input type="radio" name="e_type" value="template"> {-:@TEMPLATE-}</label>
					<label><input type="radio" name="e_type" value="patch"> {-:@PATCH-}</label>
					<label><input type="radio" name="e_type" value="other"> {-:@OTHER-}</label>
				</td>
			</tr>
			<tr>
				<td class="inputTitle">{-:@AUTHOR-}</td>
				<td class="inputTitle">{-:@AUTHOR_EMAIL-}</td>
				<td class="inputTitle">{-:@AUTHOR_SITE-}</td>
			</tr>
			<tr>
				<td class="inputArea">
					<input type="text" name="e_author" validate="/\S+/" value="" class="control-input input-inline" maxlength="64" size="20"> <span class="text-danger">*</span>
				</td>
				<td class="inputArea">
					<input type="text" name="e_author_email" value="" class="control-input input-inline" maxlength="255" size="30"> <span class="text-danger">*</span>
				</td>
				<td class="inputArea">
					<input type="text" name="e_author_site" value="http://" class="control-input input-inline ltr" maxlength="255" size="30" placeholder="http://">
				</td>
			</tr>
			<tr>
				<td class="inputTitle">{-:@EXTENSION_HASHCODE-}</td>
				<td class="inputTitle">{-:@VERSION-}</td>
				<td class="inputTitle">{-:@PUBLISH_TIME-}</td>
			</tr>
			<tr>
				<td class="inputArea">
					<input type="hidden" name="e_hashcode" value="">
					<span id="e_hashcode" class="badge badge-info" style="display:none"></span><br />
					<span id="get_hashcode" class="btn btn-sm">{-:@BUILD-}</span> <span class="text-muted"><span class="text-danger">*</span> {-:@EXTENSION_HASHCODE_TIP-}</span>
				</td>
				<td class="inputArea">
					<input type="text" name="e_version" validate="/\S+/" value="1.0.0" class="control-input input-inline" maxlength="64" size="10">
				</td>
				<td class="inputArea">
					<input type="text" name="e_publish_date" validate="/\S+/" value="{-php:echo(date('Y-m-d'));-}" class="control-input input-inline" maxlength="64" size="10">
				</td>
			</tr>
			<tr>
				<td colspan="3" class="inputTitle">{-:@INSTRUCTION-}</td>
			</tr>
			<tr>
				<td colspan="3" class="inputArea">
					<textarea class="editor" name="e_instruction" style="width:640px;height:120px;"></textarea>
				</td>
			</tr>
		</table>
	</div>
	<div class="tabCntnt">
		<table class="formTable">
			<tr>
				<td class="inputTitle">{-:@EXTENSION_FILE_LIST-}</td>
				<td class=""></td>
			</tr>
			<tr>
				<td class="inputArea">
					<textarea class="control-input input-inline rtl" name="file_list" style="width:640px;height:300px;"></textarea>
				</td>
				<td class="inputTip">
					<span class="text-danger">*</span> {-:@FILE_LIST_TIP-}
				</td>
			</tr>
		</table>
	</div>
	<div class="tabCntnt">
		<table class="formTable">
			<tr>
				<td colspan="2" class="inputTitle">{-:@MANAGE_MENU-}</td>
			</tr>
			<tr>
				<td class="inputArea">
					<textarea class="control-input input-inline ltr" name="e_manage_menu" style="width:640px;height:40px;"></textarea>
				</td>
				<td class="inputTip">
					{-:@EXTENSION_MANAGE_MENU_TIP-}
				</td>
			</tr>
			<tr>
				<td colspan="2" class="inputTitle">{-:@INSTALL_SQL-} <label class="text-normal text-mi"><input type="checkbox" to1="e_install_sql_upload" to2="e_install_sql" class="toggle_field"> {-:@UPLOAD-}</label></td>
			</tr>
			<tr>
				<td class="inputArea">
					<input id="e_install_sql_upload" type="file" name="e_install_sql_upload" style="display:none;" >
					<textarea id="e_install_sql" class="control-input input-inline ltr" name="e_install_sql" style="width:640px;height:120px;"></textarea>
				</td>
				<td class="inputTip">{-:@EXTENSION_INSTALL_SQL_TIP-}</td>
			</tr>
			<tr>
				<td colspan="2" class="inputTitle">{-:@UNINSTALL_SQL-} <label class="text-normal text-mi"><input type="checkbox" to1="e_uninstall_sql_upload" to2="e_uninstall_sql" class="toggle_field"> {-:@UPLOAD-}</label></td>
			</tr>
			<tr>
				<td class="inputArea">
					<input id="e_uninstall_sql_upload" type="file" name="e_uninstall_sql_upload" style="display:none;" >
					<textarea id="e_uninstall_sql" class="control-input input-inline ltr" name="e_uninstall_sql" style="width:640px;height:120px;"></textarea>
				</td>
				<td class="inputTip">{-:@EXTENSION_UNINSTALL_SQL_TIP-}</td>
			</tr>
			<tr>
				<td colspan="2" class="inputTitle">{-:@INSTALL_PHP-} <label class="text-normal text-mi"><input type="checkbox" to1="e_install_php_upload" to2="e_install_php" class="toggle_field"> {-:@UPLOAD-}</label></td>
			</tr>
			<tr>
				<td class="inputArea">
					<input id="e_install_php_upload" type="file" name="e_install_php_upload" style="display:none;" >
					<textarea id="e_install_php" class="control-input input-inline ltr" name="e_install_php" style="width:640px;height:120px;"></textarea>
				</td>
				<td class="inputTip">{-:@EXTENSION_INSTALL_PHP_TIP-}</td>
			</tr>
			<tr>
				<td colspan="2" class="inputTitle">{-:@UNINSTALL_PHP-} <label class="text-normal text-mi"><input type="checkbox" to1="e_uninstall_php_upload" to2="e_uninstall_php" class="toggle_field"> {-:@UPLOAD-}</label></td>
			</tr>
			<tr>
				<td class="inputArea">
					<input id="e_uninstall_php_upload" type="file" name="e_uninstall_php_upload" style="display:none;" >
					<textarea id="e_uninstall_php" class="control-input input-inline ltr" name="e_uninstall_php" style="width:640px;height:120px;"></textarea>
				</td>
				<td class="inputTip">{-:@EXTENSION_UNINSTALL_PHP_TIP-}</td>
			</tr>
		</table>
	</div>
	<div class="tabCntnt">
		<table class="formTable">
			<tr>
				<td colspan="2" class="inputTitle">{-:@LANGUAGE-} <span class="btn btn-sm" id="add_language">{-:@ADD-}</span></td>
			</tr>
			<tr>
				<td class="inputArea">
					<table id="language_list">
						<tr>
							<td class="inputArea">
								<label><input type="file" name="e_lang_upload[]"></label> <span class="btn btn-sm delete_language">{-:@DELETE-}</span>
							</td>
						</tr>
					</table>
				</td>
				<td class="inputTip">{-:@LOGA_PACKAGE_LANG_TIP-}</td>
			</tr>
			<tr>
				<td colspan="2" class="inputTitle">{-:@ROUTE-} <label class="text-normal text-mi"><input type="checkbox" to1="e_route_upload" to2="e_route" class="toggle_field"> {-:@UPLOAD-}</label></td>
			</tr>
			<tr>
				<td class="inputArea">
					<input id="e_route_upload" type="file" name="e_route_upload" style="display:none;" >
					<textarea id="e_route" class="control-input input-inline ltr" name="e_route" style="width:640px;height:90px;"></textarea>
				</td>
				<td class="inputTip">{-:@LOGA_PACKAGE_ROUTE_TIP-}</td>
			</tr>
		</table>
	</div>
</div>
<div id="operation" class="margin">
	<input name="timeKey" type="hidden" value="{-:$_TK['timeKey']-}">
	<input name="token" type="hidden" value="{-:$_TK['token']-}">
	<label class="text-sm">{-:@COMPRESS-} <input name="compressed" type="checkbox" checked="checked" value="1" /></label>
	<span class="btn btn-info submit" action="{-url:admin@extension/package_extension_do-}" to="#formEdit">{-:@PACKAGE-}</span>
	<input class="btn" type="reset" value="{-:@RESET-}">
	<a class="btn" href="{-url:admin@extension/list_extension-}">{-:@BACK-}</a>
</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="{-:*__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/admin.js"></script>
<script src="{-:*__STYLE__-}js/editor.js"></script>
<script src="{-:*__STYLE__-}js/extension.js"></script>
</body>
</html>