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

📄 index.php

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

include_once( "inc/auth.php" );
include_once( "inc/utility.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\r\n";
echo "<s";
echo "cript>\r\nfunction delete_form(TABLE_ID)\r\n{\r\n msg='确认要删除该表结构么?这将删除表结构及其字段信息且不可恢复!';\r\n if(window.confirm(msg))\r\n {\r\n  URL=\"delete.php?TABLE_ID=\"+TABLE_ID;\r\n  window.location=URL;\r\n }\r\n}\r\n\r\nfunction drop_table(TABLE_NAME)\r\n{\r\n msg='确认要删除该表么?这将删除实体表且不可恢复!';\r\n if(window.confirm(msg))\r\n {\r\n  URL=\"drop.php?TABLE_NAME=\"+TABLE_NAME;\r\n  window.location=URL;";
echo "\r\n }\r\n}\r\n</script>\r\n\r\n</head>\r\n\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='edit.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\" width=\"100%\" cellspacing=\"";
echo "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><br>\r\n    </td>\r\n  </tr>\r\n</table>\r\n<br>\r\n\r\n";
$connection = openconnection( );
$query = "SELECT * from IK_TABLE";
$cursor = exequery( $connection, $query );
$TABLE_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	++$TABLE_COUNT;
	$TABLE_ID = $ROW['TABLE_ID'];
	$TABLE_NAME = $ROW['TABLE_NAME'];
	$TABLE_DESC = $ROW['TABLE_DESC'];
	if ( $TABLE_COUNT == 1 )
	{
		echo "  <table border=\"0\" cellspacing=\"1\" width=\"500\" align=\"center\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\">\r\n    <tr class=\"TableHeader\">\r\n      <td nowrap align=\"center\">表名</td>\r\n      <td nowrap align=\"center\">表描述</td>\r\n      <td nowrap align=\"center\">操作</td>\r\n    </tr>\r\n";
	}
	if ( $TABLE_COUNT % 2 == 1 )
	{
		$TableLine = "TableLine1";
	}
	else
	{
		$TableLine = "TableLine2";
	}
	echo "\r\n    <tr class=\"";
	echo $TableLine;
	echo "\">\r\n      <td width=\"250\" nowrap align=\"center\">";
	echo $TABLE_NAME;
	echo "</td>\r\n      <td width=\"250\" nowrap align=\"center\">";
	echo $TABLE_DESC;
	echo "</td>\r\n      <td nowrap>\r\n          <a href=\"edit.php?TABLE_ID=";
	echo $TABLE_ID;
	echo "\">编辑</a>&nbsp;&nbsp;\r\n          <a href=\"field?TABLE_ID=";
	echo $TABLE_ID;
	echo "\">编辑字段</a>&nbsp;&nbsp;\r\n          <a href=\"create.php?TABLE_ID=";
	echo $TABLE_ID;
	echo "\"><font color=\"FF0000\">创建表</a>&nbsp;&nbsp;\r\n          <a href=\"javascript:drop_table('";
	echo $TABLE_NAME;
	echo "');\"><font color=\"FF0000\">删除表</a>&nbsp;&nbsp;\r\n          <a href=\"javascript:delete_form(";
	echo $TABLE_ID;
	echo ");\">删除</a>&nbsp;\r\n      </td>\r\n    </tr>\r\n";
}
if ( 0 < $TABLE_COUNT )
{
	echo "  </table>\r\n";
}
else
{
	message( "", "尚未定义表" );
}
echo "\r\n<div align=\"center\">\r\n<BR>\r\n<input type=\"button\"  value=\"返回\" class=\"BigButton\" onClick=\"location='../';\">\r\n</div>\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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