<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title><!--{$UUDEV_PAGE_TITLE}--></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--{include file=elements/header.css.html}-->
<!--{include file=elements/header.js.html type=common}-->
<!--{include file=elements/header.js.html type=popbox}-->
<!--{include file=elements/header.js.html type=valid}-->
</head>
<body>
<div id="outside">
	<!--{include file=frame/top.html}-->
	<div id="mainareaContent">
		<!--{include file=frame/left.html}-->
		<div id="rightContent">
			<div id="topContent">
				<div class="sitmap">
					<span class="r"><!--{include file="elements/uuadvad.html"}--></span>互动社区&nbsp;&gt;&nbsp;菜单管理&nbsp;&gt;&nbsp;菜单列表
				</div>
			</div>
			<div class="tabcontent">
				<a href="index.php?r=User.userlist" class="link">会员列表</a>
				<a href="index.php?r=SiteSet.userset" class="link">属性设置</a>
				<a href="index.php?r=User.honourlist" class="link">会员头衔</a>
				<a href="index.php?r=SiteSet.experienceset" class="link">会员经验</a>
				<a href="index.php?r=User.forumroleimg" class="link">管理员身份勋章</a>
				<a href="index.php?r=User.albumlist" class="link">会员相册</a>
				<a href="index.php?r=User.listphotoframe" class="link">会员相框</a>
				<a href="index.php?r=User.msglist" class="link">会员消息</a>
				<a href="index.php?r=SiteSet.msgboxset" class="link">信箱设置</a>
				<a href="index.php?r=Menu" class="nolink">菜单管理</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent">
					<form id="UserForm" action="index.php?r=Menu.addAclMap&menuId=<!--{$menuId}-->" method="post">
						<input type="hidden" name="returnParams" value="<!--{$returnParams}-->"/>
						<table class="tbl_edit" width="100%">
							
							<tr>
								<td class="td_name">当前菜单</td>
								<td class="td_content"><!--{$menu.parent}-->-><!--{$menu.menu_name}--></td>
							</tr>
							
							<tr>
								<td class="td_name">控制器</td>
								<td class="td_content">
									<select id="controller" name="controller">
									<!--{foreach from=$controllers item=v}-->
									<option value="<!--{$v.controller}-->" <!--{if $v.controller == $controller}-->selected<!--{/if}--> ><!--{$v.controller}--></option>
									<!--{/foreach}-->
									</select></td>
							</tr>
							
							<tr>
								<td class="td_name">动作</td>
								<td class="td_content">
									
									<ul id="actions">
										
									</ul>
								</td>
							</tr>
							<tr>
								<td class="noborder"></td>
								<td class="noborder"><button id= "formsubmit" type="submit" class="butsubmit">提交</button>&nbsp;&nbsp;<button type="button" class="but2font" onClick="window.location.href='index.php?<!--{$returnParams}-->'">返回</button></td>
							</tr>
						</table>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
<script>
$(document).ready(function(){
	
	$.ajax({
		type:'get',
		async:false,
		url:"index.php?r=Menu.getactions",
		data:{controller:function(){return $("#controller").val();},menuId:"<!--{$menuId}-->"},
		//dataType:'json',
		success:function(data){
			$("#actions").html(data);
		}
		
	});
	
	$("#controller").change(function(){
		var v = $(this).val();
			$.ajax({
				type:'get',
				async:false,
				url:"index.php?r=Menu.getactions",
				data:{controller:v,menuId:"<!--{$menuId}-->"},
				//dataType:'json',
				success:function(data){
					$("#actions").empty().html(data);
				}
				
			});
	});
});
</script>
</html>