⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 popedom.php

📁 简单的权限管理系统
💻 PHP
字号:
<?php
	require_once ( "./config.inc.php" );
	
	$db = new clsMYSQL();
	$db->connect();
	$pi = new PopedomInformation();
	$pi->setDB( $db );
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>权限详细信息设定</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="./images/admin.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE type=text/css>.style1 {
	COLOR: #ff0000
}
</STYLE>
</HEAD>

<script language="javascript">

	function change()
	{
		var pText = document.forms[0].popedomlist[document.forms[0].popedomlist.selectedIndex].text;
		var pValue = document.forms[0].popedomlist[document.forms[0].popedomlist.selectedIndex].value;
		
		pText = pText.substring( pValue.length, pText.length );
		
		document.forms[0].popedomname.value = pText;
		document.forms[0].popedomcode.value = pValue;
	}
	
	function isAppend()
	{
		if( true == document.forms[0].action[0].checked )
		{
			document.forms[0].level[0].disabled = false;
			document.forms[0].level[1].disabled = false;
			document.forms[0].level[0].checked = true;
		}
		else{
			document.forms[0].level[0].disabled = true;
			document.forms[0].level[1].disabled = true;
			document.forms[0].level[0].checked = false;
			document.forms[0].level[1].checked = false;
		}
	}

</script>




<BODY>
<TABLE cellSpacing=0 cellPadding=0 width=768 align=center border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
        <TBODY>
        <TR>
          <TD align=right width=12><IMG height=36 
            src="./images/left_corner.gif" width=12></TD>
          <TD align=middle width=40><IMG height=36 
            src="./images/sort.gif" width=40></TD>
          <TD background=./images/bg_top.gif><A 
            class=tablehint>权限详细信息设定</A></TD>
          <TD align=right background=./images/bg_top.gif><A 
            style="CURSOR: hand" 
          onclick=javascript:location.reload();>刷新本页</A></TD>
          <TD align=left width=52><IMG height=36 
            src="./images/right_corner.gif" 
    width=52></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD 
    style="BORDER-TOP-WIDTH: 1px; BORDER-RIGHT: #404f52 1px solid; BORDER-BOTTOM-WIDTH: 1px; BORDER-LEFT: #404f52 1px solid" 
    width="100%" bgColor=#e7f3ff>
      <FORM name="form1" onsubmit="return checkForm(this)" action="save.php" method="post">
      <TABLE cellSpacing=1 cellPadding=3 width="100%" bgColor=#777777>
        <TBODY>
        <TR align=middle bgColor=#b6cdef>
          <TD class=titler colSpan=7><A class=tabletitle>请填写以下信息</A></TD></TR>
        <TR bgColor=#e7f3ff>
          <TD width="20%" rowSpan=28 bgcolor="#e7f3ff">
            <P align=center>
              <select name="popedomlist" size="8" onclick="change()">
                <?=$pi->getPopedomSelectList()?>
              </select>
            </P>
            </TD>
          <TD vAlign=center noWrap align=left width="8%" 
          bgColor=#b6cdef>权限组名</TD>
          <TD><input type="text" name="popedomname"></TD>
          <TD width="8%" bgcolor="#b6cdef">权限代码</TD>
          <TD colSpan=2><input name="popedomcode" type="text" id="popedomcode" readonly=""></TD>
          <TD width="1%" rowSpan=28 bgcolor="#e7f3ff">&nbsp;</TD></TR>
        <TR bgColor=#e7f3ff>
                <TD vAlign=center align=left width="8%" bgColor=#b6cdef nowrap>操作类型</TD>
                <TD width="34%"><input type="radio" name="action" value="append" onClick="isAppend()">
                增加  
                  <input name="action" type="radio" value="edit" onClick="isAppend()" checked>
                  修改当前
                  <input type="radio" name="action" value="del" onClick="isAppend()">
                删除当前</TD>
                <TD width="8%" align=left vAlign=center bgColor=#b6cdef nowrap>级别选择</TD>
                <TD colspan="2"><input type="radio" name="level" value="homology" disabled>
                  平级增加
                    <input type="radio" name="level" value="subordinate" disabled>
                    下级增加</TD>
          </TR>
        <TR bgColor=#e7f3ff>
                <TD vAlign=center noWrap align=left width="8%" bgColor=#b6cdef>&nbsp;</TD>
                <TD colspan="3">&nbsp;</TD>
                <TD width="9%" align=left vAlign=center bgColor=#b6cdef>&nbsp;</TD>
              </TR>
        <TR bgColor=#e7f3ff>
          <TD vAlign=center align=left bgColor=#e7f3ff 
            colSpan=5>&nbsp;</TD>
        </TR>
        <TR vAlign=center align=middle bgColor=#b6cdef>
          <TD colSpan=5>
            <DIV align=center> <INPUT name="submit" type=submit value=存储> 
            <INPUT type=reset value=全部重置 name=reset> 
      </DIV></TD></TR></TBODY></TABLE>
      </FORM></TD></TR>
  <TR>
    <TD class=helptext 
    style="BORDER-TOP-WIDTH: 1px; BORDER-RIGHT: #404f52 1px solid; BORDER-LEFT: #404f52 1px solid; BORDER-BOTTOM: #404f52 1px solid" 
    vAlign=bottom width="100%" background="" 
      height=25>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=style1>选择后请选择存储</SPAN> 
  </TD>
  </TR></TBODY></TABLE></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -