<!doctype html>
<html dir="{-:*_LD_-}">
<head>
<meta charset="utf-8" />
<title>{-:@MANAGE-}</title>
{-include:../meta-}
<script>
var GV = {
	_LD_ : '{-:*_LD_-}',
	LANG_NAME : '{-:*LANG_NAME-}',
	URL : {
		GET_MENU_LIST : '{-url:admin@menu/_get_menu_list-}'+'&'+Math.random(),
		GET_ACTN_LIST : '{-url:admin@menu/_get_actn_list-}'+'&'+Math.random(),
		GET_CATEGORY_SELECT : '{-url:admin@article_category/_get_category_select-}'
	}
};
</script>
</head>

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

<div class="alert">
	<ul data-switcher="{'connect':'#quickbuild'}" class="subnav subnav-pill">
		<li><a href="#">{-:@CATEGORY-}</a></li>
		<li><a href="#">{-:@ARTICLE-}</a></li>
		<li><a href="#">{-:@SINGLE_PAGE-}</a></li>
		<li><a href="#">{-:@OTHER-}</a></li>
	</ul>
	<div id="quickbuild" class="switcher margin-top-sm">
		<div class="tabCntnt">
			<input id="article_category_id" type="hidden" />
			<span id="article_category_id_category_select" class="category_select" to='#article_category_id'></span>
			<span class="btn btn-sm build_menu_category">{-:@BUILD_MENU-}</span>
		</div>
		<div class="tabCntnt">
			<label>{-:@ARTICLE_ID-} <input id="article_id" type="text" validate="/\S+/" value="1" class="control-input input-inline input-sm" maxlength="11" size="10"></label>
			<span class="btn btn-sm build_menu_article">{-:@BUILD_MENU-}</span>
		</div>
		<div class="tabCntnt">
			<label>{-:@SINGLE_PAGE_ID-} <input id="single_page_id" type="text" validate="/\S+/" value="1" class="control-input input-inline input-sm" maxlength="11" size="10"></label>
			<span class="btn btn-sm build_menu_single_page">{-:@BUILD_MENU-}</span>
		</div>
		<div class="tabCntnt">
			<span class="btn btn-sm build_menu" url="index">{-:@HOME_INDEX-}</span>
			<span class="btn btn-sm build_menu" url="guestbook_list">{-:@GUESTBOOK_LIST-}</span>
		</div>
	</div>
</div>

<form id="formAdd" action="" method="post">
<ul class="subnav subnav-tab">
	<li class="active"><a href="#">{-:@ADD_MENU-}</a></li>
</ul>
<div id="tabContent">
	<table class="formTable margin">
		<tr>
			<td class="inputTitle">{-:@MENU_SPACE-}</td>
			<td class="inputTitle">{-:@PARENT_MENU-}</td>
		</tr>
		<tr>
			<td class="inputArea">
				<select name="ms_alias" id="ms_alias" class="control-input input-inline">
					<option selected="selected" value=''>{-:@MENU_SPACE-}</option>
				{-foreach:$_MSL,$ms-}
					<option value="{-:$ms['ms_alias']-}">{-:$ms['ms_name']-}</option>
				{-:/foreach-}
				</select> <span class="text-danger">*</span> <span class="text-muted">{-:@MENU_SPACE_TIP-}</span>
			</td>
			<td class="inputArea">
				<select name="m_parent_id" id="m_parent_id" class="control-input input-inline">
				</select>
				<span class="text-danger">*</span> <span class="text-muted">{-:@M_PARENT_ID_TIP-}</span>
			</td>
		</tr>
		<tr>
			<td class="inputTitle">{-:@NAME-}</td>
			<td rowspan="2" class="inputArea">
				<strong>{-:@ALIAS-}</strong> <input id="m_alias" type="text" name="m_alias" value="" class="control-input input-sm input-inline" size="16" maxlength="32"> <span class="text-muted">{-:@M_ALIAS_TIP-}</span><br />
				<strong>{-:@TIP-}</strong> <input id="m_tip" type="text" name="m_tip" value="" class="control-input input-sm input-inline" size="30" maxlength="255"> <span class="text-muted">{-:@M_TIP_TIP-}</span>
			</td>
		</tr>
		<tr>
			<td class="inputArea">
				<input id="m_name" type="text" name="m_name" validate="/\S+/" value="" class="control-input input-inline" size="24" maxlength="96"> <span class="text-danger">*</span> <span class="text-muted">{-:@M_NAME_TIP-}</span>
			</td>
		</tr>
		<tr>
			<td colspan="2" class="inputTitle">{-:@URL-} <span class="text-danger">*</span> <span class="text-muted text-normal">{-:@COMPOSE_URL_TIP-}</span></td>
		</tr>
		<tr>
			<td colspan="2" class="inputArea">
				<input id="m_url" type="text" name="m_url" validate="/\S+/" value="" class="control-input input-inline ltr" maxlength="255" size="90"> <span class="text-danger">*</span> <span class="text-muted">{-:@M_URL_TIP-}</span>
			</td>
		</tr>
		<tr>
			<td class="inputTitle">{-:@TYPE-}</td>
			<td class="inputTitle">{-:@DISPLAY_ORDER-}</td>
		</tr>
		<tr>
			<td class="inputArea">
				<label><input id="compose_btn" type="radio" onClick="$('#compose_url').show();" value="0" name="m_type"> {-:@COMPOSE-}</label>
				<label><input type="radio" onClick="$('#compose_url').hide();" checked="checked" value="1" name="m_type"> {-:@DIRECT-}</label> <span class="text-danger">*</span> <span class="text-muted">{-:@M_TYPE_TIP-}</span>
			</td>
			<td class="inputTip">
				<input type="text" name="m_display_order" validate="/\S+/" value="50" class="control-input input-inline" size="4" maxlength="5"> <span class="text-danger">*</span> <span class="text-muted">{-:@M_DISPLAY_ORDER_TIP-}</span>
			</td>
		</tr>
		<tr id="compose_url" style="display:none">
			<td colspan="2" class="inputArea">
				<table class="listTable" style="width:98%">
					<tr>
						<th colspan="7">{-:@COMPOSE_URL-}</th>
					</tr>
					<tr>
						<td>home@</td>
						<td>
							<select class="get_actn_list control-input input-inline" id="ctrlr">
								<option selected="selected" value="">{-:@CHOOSE_CTRLR-}</option>
							{-foreach:$_CL,$c-}
								<option value="{-:$c['ctrlr']-}">{-:$c['name']-}</option>
							{-:/foreach-}
							</select>
						</td>
						<td>/</td>
						<td>
							<select class="control-input input-inline" id="actn">
							</select>
						</td>
						<td>?</td>
						<td><input class="control-input" type="text" value="" id="params" maxlength="96" size="30"></td>
						<td><span class="btn compose_url">{-:@COMPOSE-}</span></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td class="inputTitle">{-:@TARGET-}</td>
			<td></td>
		</tr>
		<tr>
			<td class="inputArea">
				<input id="m_target" type="text" name="m_target" validate="/\S+/" value="_self" class="control-input input-inline" size="20" />
				<select id="m_target_select" onChange="$('#m_target').val($('#m_target_select').val());" class="control-input input-inline">
					<option value="">{-:@SELECT-}</option>
					<option selected="selected" value="_self">{-:@SELF_WINDOW-}</option>
					<option value="_blank">{-:@NEW_WINDOW-}</option>
					<option value="_parent">{-:@PARENT_FRAME-}</option>
					<option value="_top">{-:@TOP_FRAME-}</option>
					<option value="">{-:@CUSTOM-}</option>
				</select>
			</td>
			<td class="inputTip">
				<span class="text-danger">*</span> <span class="text-muted">{-:@M_TARGET_TIP-}</span>
			</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']-}">
	<span class="btn btn-info submit" action="{-url:admin@menu/add_menu_do-}" to="#formAdd">{-:@SUBMIT-}</span>
	<input class="btn" type="reset" value="{-:@RESET-}">
	<a class="btn" href="{-url:admin@menu/list_menu-}">{-:@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="{-:*__STYLE__-}js/common.js"></script>
<script src="{-:*__STYLE__-}js/admin.js"></script>
<script src="{-:*__STYLE__-}js/menu.js"></script>
<script src="{-:*__STYLE__-}js/article_category.js"></script>
</body>
</html>