📄 add_role.tpl
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>权限管理-添加角色</title>
<link href="main.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
{literal}
<script language="javascript">
<!--
function checkforum()
{
if(document.add_role.role_name.value=="")
{
alert("请填写角色名称!");
document.add_role.role_name.focus();
return false;
}
else{
return true;
}
}
function check_all()
{
var chk = document.getElementsByName("popedom_code[]");
if(document.all.adminflag.value=="no")
{
for (i=0;i<chk.length;i++)
{
chk[i].checked = true;
}
document.all.checkall.value="取消"
document.all.adminflag.value="yes"
}
else
{
for (i=0;i<chk.length;i++)
{
chk[i].checked = false;
}
document.all.checkall.value="全选"
document.all.adminflag.value="no"
}
return;
}
//-->
</script>
{/literal}
</head>
<body leftmargin="0" topmargin="0" rightmargin="0" marginheight="0" bgcolor="ffffee">
<br>
<form name="add_role" action="add_role.php" method="post" onsubmit="return checkforum()">
<table width="80%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#f2f2f2" class=p9 >
<tr bgcolor="#7596E2">
<td colspan="2">
<div align="left"><strong><font color="#FFFFFF">添加角色</font></strong></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>角色名称</td>
<td>
<input name="role_name" type="text" id="role_name" size="30">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td>角色描述</td>
<td>
<textarea name="role_memo" cols="60" rows="8"></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2"> </td>
</tr>
<tr bgcolor="#7596E2">
<td colspan="2"><strong><font color="#FFFFFF">拥有权限</font></strong>
<input type=button name=checkall value="全选" onclick="check_all()">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2">
{section name=layers loop=$item_array step=1}
{if $smarty.section.layers.index%5 eq 0}
<br>
{/if}
<input name="popedom_code[]" type="checkbox" value="{$item_array[layers].popedom_code}">
{$item_array[layers].popedom_name}
{math equation="x + y" x=$smarty.section.layers.index y=1 assign="next_index"}
{/section}
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2">
<input type='hidden' name='adminflag' value='no'>
<input name="s_action" type="hidden" id="s_action" value="add">
<input type="button" name="btn_back" value=" 返回 " onClick="javascript:history.back();">
<input name="btn_submit" type="submit" id="btn_submit" value=" 提交 ">
</td>
</tr>
</table>
<br>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -