{x2;include:header}
<body>
{x2;include:nav}
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span2">
			{x2;include:menu}
		</div>
		<div class="span10" id="datacontent">
			<ul class="breadcrumb">
				<li><a href="index.php?{x2;$_app}-master">{x2;$apps[$_app]['appname']}</a> <span class="divider">/</span></li>
				<li><a href="index.php?user-master-actor">角色管理</a> <span class="divider">/</span></li>
				<li class="active">添加角色</li>
			</ul>
			<ul class="nav nav-tabs">
				<li class="active">
					<a href="#">添加角色</a>
				</li>
				<li class="pull-right">
					<a href="index.php?user-master-actor">角色列表</a>
				</li>
			</ul>
			<form action="index.php?user-master-actor-add" method="post" class="form-horizontal">
				<fieldset>
					<div class="control-group">
					</div>
					<div class="control-group">
						<label for="groupname" class="control-label">角色名</label>
						<div class="controls">
							<input name="args[groupname]" type="text" value="" id="groupname" size="25" needle="needle" maxlength="40" msg="请输入角色名称" />
							<span class="help-block">请输入角色名称</span>
						</div>
					</div>
					<div class="control-group">
						<label for="groupdescribe" class="control-label">角色描述</label>
						<div class="controls">
							<textarea class="input-xxlarge" rows="7" id="groupdescribe" name="args[groupdescribe]"></textarea>
							<span class="help-block">对这个角色进行描述</span>
						</div>
					</div>
					<div class="control-group">
						<label for="groupmoduleid" class="control-label">绑定模型</label>
						<div class="controls">
							<select name="args[groupmoduleid]" id="groupmoduleid" needle="needle" msg="您必须为这个角色绑定一个模型">
							<option value="">请选择模型</option>
							{x2;tree:$modules,module,mid}
							<option value="{x2;v:module['moduleid']}">{x2;v:module['modulename']}</option>
							{x2;endtree}
							</select>
							<span class="help-block">为这个角色绑定一个模型</span>
						</div>
					</div>
					<div class="control-group">
						<div class="controls">
							<button class="btn btn-primary" type="submit">提交</button>
							<input type="hidden" name="insertactor" value="1"/>
							<input type="hidden" name="page" value="{x2;$page}"/>
							{x2;tree:$search,arg,aid}
							<input type="hidden" name="search[{x2;v:key}]" value="{x2;v:arg}"/>
							{x2;endtree}
					</div>
				</fieldset>
			</form>
		</div>
	</div>
</div>
</body>
</html>