<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="{-:*__THEME__-}/admin/css/c.css" />
<link rel="stylesheet" type="text/css" href="{-:*__THEME__-}/admin/css/mf.css" />
</head>
<body>
<form id="formSearch" action="" method="post">
<div class="mainTips">
	<label><select name="ms_alias">
		<option value="0">{-:@MENU_SPACE-}</option>
	{-foreach:$_MSL,$ms-}
		<option value="{-:$ms['ms_alias']-}"{-if:$ms['ms_alias']==ARequest::get('ms_alias')-} selected="selected"{-:/if-}>{-:$ms['ms_name']-}</option>
	{-:/foreach-}
	</select></label>
	<label><span class="btn_l submit" action="{-url:menu/list_menu-}" to="#formSearch">{-:@SEARCH-}</span></label>
</div><!--/.mainTips-->
</form>
<form id="formList" action="" method="post">
<dl class="abox">
	<dt><strong>{-:@MENU-}{-:@LIST-}</strong></dt>
	<dd>
		<table class="listTable">
			<tr>
				<th scope="col" width="18"><input type="checkbox" class="select_all" to="menu_id"></th>
				<th scope="col">{-:@MENU_SPACE-}</th>
				<th scope="col">{-:@DISPLAY_ORDER-}</th>
				<th scope="col">{-:@NAME-}</th>
				<th scope="col">{-:@TYPE-}</th>
				<th scope="col">{-:@MANAGE-}</th>
			</tr>
			{-foreach:$_ML,$m-}
			<tr s_id="{-:$m['menu_id']-}" p_id="{-:$m['m_parent_id']-}">
				<td><input name="menu_id[{-:$m['menu_id']-}]" type="checkbox" value="{-:$m['menu_id']-}"></td>
				<td>[{-:$m['ms_alias']-}]{-:$m['ms_name']-}</td>
				<td><input type="text" class="i" size="6" maxlength="10" name="m_display_order[{-:$m['menu_id']-}]" value="{-:$m['m_display_order']-}"></td>
				<td>{-if:isset($m['m_sub_menu'])-}<span class="toggle_tr fc_gry" toggle_tr_id="{-:$m['menu_id']-}">┣</span>{-else:-}<span class="fc_gry">　 </span>{-:/if-}<input type="text" class="i" size="10" maxlength="96" name="m_name[{-:$m['menu_id']-}]" value="{-:$m['m_name']-}"></td>
				<td>{-if:0 == $m['m_type']-}{-:@COMPOSE-}{-elseif:1 == $m['m_type']-}{-:@DIRECT-}{-:/if-}</td>
				<td><a href="{-:$m['m_url']|get_url~@me,$m['m_type']-}">{-:@VIEW-}</a> | <a href="{-url:menu/edit_menu?menu_id={$m['menu_id']}-}">{-:@EDIT-}</a> | <a href="{-url:menu/delete_menu_do?menu_id={$m['menu_id']}-}" onclick="javascript:return delete_confirm();" >{-:@DELETE-}</a></td>
			</tr>
				{-foreach:$m['m_sub_menu'],$sm-}
			<tr s_id="{-:$sm['menu_id']-}" p_id="{-:$sm['m_parent_id']-}" style="display:none;">
				<td><input name="menu_id[{-:$sm['menu_id']-}]" type="checkbox" value="{-:$sm['menu_id']-}"></td>
				<td>[{-:$sm['ms_alias']-}]{-:$sm['ms_name']-}</td>
				<td><input type="text" class="i" size="6" maxlength="10" name="m_display_order[{-:$sm['menu_id']-}]" value="{-:$sm['m_display_order']-}"></td>
				<td><span class="fc_gry">　┗ </span><input type="text" class="i" size="10" maxlength="96" name="m_name[{-:$sm['menu_id']-}]" value="{-:$sm['m_name']-}"></td>
				<td>{-if:0 == $sm['m_type']-}{-:@COMPOSE-}{-elseif:1 == $sm['m_type']-}{-:@DIRECT-}{-:/if-}</td>
				<td><a href="{-:$sm['m_url']|get_url~@me,$sm['m_type']-}">{-:@VIEW-}</a> | <a href="{-url:menu/edit_menu?menu_id={$sm['menu_id']}-}">{-:@EDIT-}</a> | <a href="{-url:menu/delete_menu_do?menu_id={$sm['menu_id']}-}" onclick="javascript:return delete_confirm();" >{-:@DELETE-}</a></td>
			</tr>
				{-:/foreach-}
			{-:/foreach-}
		</table>
	</dd>
</dl><!--/.abox-->
<div id="operation">
	<a class="btn_l" href="{-url:menu/add_menu-}">{-:@ADD-}{-:@MENU-}</a>
	<span class="btn_l submit" action="{-url:menu/update_menu_do-}" to="#formList">{-:@UPDATE_SELECTED-}</span>
	<span class="btn_l submit" action="{-url:menu/delete_menu_do-}" to="#formList">{-:@DELETE_SELECTED-}</span>
	<a class="btn_l" href="{-url:menu_space/list_space-}">{-:@MENU_SPACE-}{-:@LIST-}</a>
</div><!--/#operation-->
</form>
<script type="text/javascript" src="{-:*__PUBLIC__-}/js/jquery.js"></script>
<script type="text/javascript" src="{-:*__THEME__-}/admin/js/c.js"></script>
</body>
</html>