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

📄 index.php

📁 极限网络智能办公系统—MYOA26—100%—源程序。
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title>分组管理</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n";
echo "<s";
echo "cript>\r\nfunction delete_group(GROUP_ID)\r\n{\r\n msg='确认要删除该分组么?';\r\n if(window.confirm(msg))\r\n {\r\n  URL=\"delete.php?GROUP_ID=\" + GROUP_ID;\r\n  window.location=URL;\r\n }\r\n}\r\n\r\n</script>\r\n</head>\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/notify_new.gif\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 新建分组</span><br>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<div align=\"center\">\r\n<input type=\"button\" value=\"新建分组\" class=\"BigButton\" onClick=\"location='new.php';\" title=\"创建新的分组,录入相关信息\">\r\n</div>\r\n\r\n<br>\r\n\r\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"3\">\r\n <tr>\r\n   <td background=\"/images/dian1.gif\" width=\"100%\"></td>\r\n </tr>\r\n</table>\r\n\r\n<table border=\"0\" widt";
echo "h=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/notify_open.gif\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 管理分组</span>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<br>\r\n\r\n";
$connection = openconnection( );
$query = "SELECT * from ADDRESS_GROUP where USER_ID='' order by GROUP_NAME asc";
$cursor = exequery( $connection, $query );
$ADD_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	++$GROUP_COUNT;
	$GROUP_ID = $ROW['GROUP_ID'];
	$GROUP_NAME = $ROW['GROUP_NAME'];
	if ( $GROUP_COUNT == 1 )
	{
		echo "\r\n    <table border=\"0\" cellspacing=\"1\" width=\"95%\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\">\r\n      <tr class=\"TableData\">\r\n        <td nowrap align=\"center\">默认</td>\r\n        <td nowrap align=\"center\">\r\n              &nbsp;&nbsp;\r\n          <a href=\"import.php?GROUP_ID=0\"> 导入</a>\r\n          <a href=\"export.php?GROUP_ID=0&TYPE=0\"> 导出Foxmail格式</a>\r\n          <a href=\"export.php?GROUP_ID=0&";
		echo "TYPE=1\"> 导出OutLook格式</a>\r\n        </td>\r\n      </tr>\r\n";
	}
	echo "    <tr class=\"TableData\">\r\n      <td nowrap align=\"center\">";
	echo $GROUP_NAME;
	echo "</td>\r\n      <td nowrap align=\"center\">\r\n          <a href=\"edit.php?GROUP_ID=";
	echo $GROUP_ID;
	echo "\"> 编辑</a>\r\n          <a href=\"javascript:delete_group(";
	echo $GROUP_ID;
	echo ");\"> 删除</a>\r\n          <a href=\"import.php?GROUP_ID=";
	echo $GROUP_ID;
	echo "\"> 导入</a>\r\n          <a href=\"export.php?GROUP_ID=";
	echo $GROUP_ID;
	echo "&TYPE=0\"> 导出Foxmail格式</a>\r\n          <a href=\"export.php?GROUP_ID=";
	echo $GROUP_ID;
	echo "&TYPE=1\"> 导出OutLook格式</a>\r\n      </td>\r\n    </tr>\r\n";
}
if ( $GROUP_COUNT == 0 )
{
	message( "", "无分组记录" );
	exit( );
}
else
{
	echo "   <thead class=\"TableHeader\">\r\n      <td nowrap align=\"center\">分组名称</td>\r\n      <td nowrap align=\"center\" width=\"300\">操作</td>\r\n   </thead>\r\n   </table>\r\n";
}
echo "\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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