<?php
session_start();
require_once "../init.php";
require_once "../authority.inc.php";

$hot="secuclass";
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" 
/>
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/admin/lib/html5.js"></script>
<script type="text/javascript" src="/admin/lib/respond.min.js"></script>
<script type="text/javascript" src="/admin/lib/PIE_IE678.js"></script>
<![endif]-->

<link rel="stylesheet" type="text/css" href="/admin/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/admin/lib/Hui-iconfont/1.0.7/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/admin/lib/icheck/icheck.css" />
<link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/css/style.css" />


<!--[if IE 6]>
<script type="text/javascript" src="/admin/static/h-ui.admin/js/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>权限类型设置</title>
<LINK href="../share/style.css" rel="stylesheet">
<script>
function checkKey(form){
  if(event.keyCode==13){
     checkadd(form);
  }
}
function checkadd(form){
   if(form.Name.value==""){
     alert("请输入类别名称");
	 form.Name.focus();
	 return ;
   }
   form.submit();
}
</script>
<script src='../share/global.js'></script>
</head>
<body>
<? include "../share/top.php"?>
<div id="topLink">
<div id="topInfo">
	<span class="tTitle">系统管理</span>
	<span class="sarr"> >> </span>权限类型设置
	<span class="sarr"> >> </span><a href="<?=$GLOBALS["parentpath"]?>">返回到管理首页</a>
</div>
</div><div class="page-container">
<!--子导航-->
<? include "nav.inc.php"?>

<table width="100%"  border="0" cellspacing="0" cellpadding="0" id="table" class="table">
<tr id="tr">
<td colspan="4">权限类型设置</td>
</tr>
  <?
	  $sql="select * from secu_class";
	  $res=$DB->query($sql);
	  $icount=0;
	  echo "<tr id='td'>";
	  while($sesu_class=$DB->fetch_array($res)){
		$icount++;
		echo "<td>
				<form method='post' action='secu_class_modi.php'>
				<input type='text' name='ID' value='$sesu_class[ID]' size='6' class='inputline' readonly>
				<input type='text' name='Name' value='$sesu_class[Name]' size='15' class='inputline' onkeypress='checkKey(this.form)'>
				<input type='button' value='修改' onclick='checkadd(this.form)' class='bt2'>
				<input type='button' value='删除' onclick='location=\"secu_class_del.php?ID=$sesu_class[ID]\"' class='bt2'>
				</form>
			  </td>";
		if($icount%3==0)echo "</tr><tr id='td'>";
	  }
	?>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <form action="secu_class_add.php" method="post">
	<tr>
	  <td align="right" width="40%">新增权限类别:</td>
	  <td height="50"><input name="Name" type="text" class="inputline">
		  <input name="button" type="button" class="button" onclick="checkadd(this.form)" value="提交"></td>
	</tr>
  </form>
</table></div>
<? 
$DB->close();
include "../share/bottom.php";
?>
</body>
</html>
