index.php
来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 95 行
PHP
95 行
<?
include_once 'inc/auth.php';
echo '
<html>
<head>
<title>公共用户组管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
echo '<s';
echo 'cript>
function delete_group(GROUP_ID)
{
msg=\'确认要删除该用户组么?\';
if(window.confirm(msg))
{
URL="delete.php?GROUP_ID=" + GROUP_ID;
window.location=URL;
}
}
</script>
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/notify_new.gif" align="absmiddl';
echo 'e">';
echo '<s';
echo 'pan class="big3"> 新建公共用户组</span><br>
</td>
</tr>
</table>
<div align="center">
<input type="button" value="新建公共用户组" class="BigButton" onClick="location=\'new.php\';" title="创建新的公共用户组">
</div>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/notify_open.gif" align="absmiddle">';
echo '<s';
echo 'pan class="big3"> 管理公共用户组</span>
</td>
</tr>
</table>
<br>
';
$query = 'SELECT * from USER_GROUP where USER_ID=\'\' order by ORDER_NO';
$cursor = exequery ($connection, $query);
if ((mysql_num_rows ($cursor) == 0))
{
message ('', '无定义的用户组');
exit ();
}
echo '<table border="0" cellspacing="1" class="small" align="center" bgcolor="#000000" cellpadding="3">
<tr class="TableHeader">
<td nowrap align="center" width="200">用户组名称</td>
<td nowrap align="center" width="60">排序号</td>
<td nowrap align="center" width="120">操作</td>
</tr>
';
while ($ROW = mysql_fetch_array ($cursor))
{
$GROUP_ID = $ROW['GROUP_ID'];
$GROUP_NAME = $ROW['GROUP_NAME'];
$ORDER_NO = $ROW['ORDER_NO'];
echo ' <tr class="TableData">
<td nowrap align="center">';
echo $GROUP_NAME;
echo '</td>
<td nowrap align="center">';
echo $ORDER_NO;
echo '</td>
<td nowrap align="center">
<a href="edit.php?GROUP_ID=';
echo $GROUP_ID;
echo '"> 编辑</a>
<a href="javascript:delete_group(';
echo $GROUP_ID;
echo ');"> 删除</a>
<a href="set_user.php?GROUP_ID=';
echo $GROUP_ID;
echo '"> 设置用户</a>
</td>
</tr>
';
}
echo '</table>
<br>
<div align="center">
<input type="button" value="返回" class="BigButton" title="返回" name="button2" OnClick="location=\'../dept_new.php\'">
</div>
</body>
</html>
';
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?