<!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="formList" action="" method="post">
<ul class="subnav subnav-tab">
	<li class="active"><a href="#">{-:@MENU_SPACE_LIST-}</a></li>
</ul>
<div id="tabContent">
	{-if:empty($_MSL)-}
		<div class="placeholder margin">{-:@LIST_EMPTY-}</div>
	{-else:-}
		<table class="table table-hover">
			<tr>
				<th scope="col" width="18"><input type="checkbox" class="select_all" to="ms_alias"></th>
				<th scope="col">{-:@ALIAS-}</th>
				<th scope="col">{-:@NAME-}</th>
				<th scope="col">{-:@DESCRIPTION-}</th>
				<th scope="col">{-:@MANAGE-}</th>
			</tr>
			{-foreach:$_MSL,$ms-}
			<tr>
				<td><input name="ms_alias[{-:$ms['ms_alias']-}]" type="checkbox" value="{-:$ms['ms_alias']-}"></td>
				<td>{-:$ms['ms_alias']-}</td>
				<td>
					<input type="text" name="ms_name[{-:$ms['ms_alias']-}][{-:*LANG_NAME-}]" validate="/\S+/" value="{-:$ms['ms_name'][LANG_NAME]-}" class="control-input input-sm" size="16" maxlength="96" />
				{-foreach:$ms['ms_name'],$lang,$msn-}
					{-if:$lang!==LANG_NAME-}
					<input type="hidden" name="ms_name[{-:$ms['ms_alias']-}][{-:$lang-}]" value="{-:$msn-}" />
					{-:/if-}
				{-:/foreach-}
				</td>
				<td>{-:$ms['ms_description'][LANG_NAME]-}</td>
				<td>
					<a href="{-url:admin@menu/list_menu?ms_alias={$ms['ms_alias']}-}">{-:@MENU_LIST-}</a> | <a href="{-url:admin@menu_space/edit_space?ms_alias={$ms['ms_alias']}-}">{-:@EDIT-}</a> | <a href="{-url:admin@menu_space/delete_space_do?ms_alias={$ms['ms_alias']}&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}" class="delete_confirm">{-:@DELETE-}</a>
					<span class="btn btn-sm get_menu_code" ms_alias="{-:$ms['ms_alias']-}" >{-:@GET_CODE-}</span>
				</td>
			</tr>
			{-:/foreach-}
		</table>
	{-:/if-}
</div>
<div id="operation" class="margin">
	<input name="timeKey" type="hidden" value="{-:$_TK['timeKey']-}">
	<input name="token" type="hidden" value="{-:$_TK['token']-}">
	<a class="btn" href="{-url:admin@menu_space/add_space-}">{-:@ADD_MENU_SPACE-}</a>
	<span class="btn submit" action="{-url:admin@menu_space/update_space_do-}" to="#formList">{-:@UPDATE_SELECTED-}</span>
	<span class="btn submit" action="{-url:admin@menu_space/delete_space_do-}" to="#formList">{-:@DELETE_SELECTED-}</span>
	<input class="btn" type="reset" value="{-:@RESET-}">
	<a class="btn" href="{-url:admin@menu/list_menu-}">{-:@MENU_LIST-}</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_space.js"></script>
</body>
</html>