📄 index.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_app(APP_ID)\r\n{\r\n msg='确认要删除该应用么?这将删除应用描述与步骤设置且不可恢复!';\r\n if(window.confirm(msg))\r\n {\r\n URL=\"delete.php?APP_ID=\"+APP_ID;\r\n window.location=URL;\r\n }\r\n}\r\n</script>\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.gi";
echo "f\" 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%\" cellspa";
echo "cing=\"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_APP order by APP_ID";
$cursor = exequery( $connection, $query );
$APP_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
++$APP_COUNT;
$APP_ID = $ROW['APP_ID'];
$FORM_ID = $ROW['FORM_ID'];
$APP_TYPE = $ROW['APP_TYPE'];
$APP_FLD_VIEW = $ROW['APP_FLD_VIEW'];
$APP_FLD_READONLY = $ROW['APP_FLD_READONLY'];
$APP_FLD_LIST = $ROW['APP_FLD_LIST'];
$APP_FLD_REPORT = $ROW['APP_FLD_REPORT'];
$APP_FLD_CTRL = $ROW['APP_FLD_CTRL'];
$APP_DESC = $ROW['APP_DESC'];
$FUNC_ID = $ROW['FUNC_ID'];
$EDIT_APP_ID = $ROW['EDIT_APP_ID'];
$query = "SELECT FORM_DESC from IK_FORM WHERE FORM_ID={$FORM_ID}";
$cursor1 = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor1 ) )
{
$FORM_DESC = $ROW['FORM_DESC'];
}
if ( $APP_TYPE == "1" )
{
$APP_TYPE_NAME = "新建单记录";
}
else if ( $APP_TYPE == "2" )
{
$APP_TYPE_NAME = "新建多记录";
}
else if ( $APP_TYPE == "3" )
{
$APP_TYPE_NAME = "修改";
}
else if ( $APP_TYPE == "4" )
{
$APP_TYPE_NAME = "查询";
}
else
{
$APP_TYPE_NAME = "未定义";
}
if ( $APP_COUNT == 1 )
{
echo " <table border=\"0\" cellspacing=\"1\" width=\"95%\" 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 <td nowrap align=\"center\">表单描述</td>\r\n <td nowrap align=\"center\">不显示字段</td>\r\n <td nowrap align=\"center\">只读字段</td>\r\n ";
echo " <td nowrap align=\"center\">列表/必填字段</td>\r\n <td nowrap align=\"center\">报表合计字段</td>\r\n <td nowrap align=\"center\">列表允许管理</td>\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\r\n";
}
if ( $APP_COUNT % 2 == 1 )
{
$TableLine = "TableLine1";
}
else
{
$TableLine = "TableLine2";
}
echo " <tr class=\"";
echo $TableLine;
echo "\">\r\n <td nowrap align=\"center\">";
echo $APP_ID;
echo "</td>\r\n <td nowrap align=\"center\">";
echo $APP_DESC;
echo "</td>\r\n <td nowrap align=\"center\">";
echo $APP_TYPE_NAME;
echo "</td>\r\n <td nowrap align=\"center\">";
echo $FORM_DESC;
echo "</td>\r\n <td nowrap title=\"";
echo $APP_FLD_VIEW;
echo "\">";
echo substr( $APP_FLD_VIEW, 0, 20 );
echo "</td>\r\n <td nowrap title=\"";
echo $APP_FLD_READONLY;
echo "\">";
echo substr( $APP_FLD_READONLY, 0, 20 );
echo "</td>\r\n <td nowrap title=\"";
echo $APP_FLD_LIST;
echo "\">";
echo substr( $APP_FLD_LIST, 0, 20 );
echo "</td>\r\n <td nowrap title=\"";
echo $APP_FLD_REPORT;
echo "\">";
echo substr( $APP_FLD_REPORT, 0, 20 );
echo "</td>\r\n <td nowrap align=\"center\">";
if ( $APP_FLD_CTRL == "1" )
{
print "是";
}
else
{
print "否";
}
echo "</td>\r\n <td nowrap align=\"center\">";
echo $EDIT_APP_ID;
echo "</td>\r\n <td nowrap align=\"center\">";
echo $FUNC_ID;
echo "</td>\r\n <td nowrap> \r\n <a href=\"edit.php?APP_ID=";
echo $APP_ID;
echo "\">编辑</a> \r\n";
echo " <a href=\"javascript:delete_app(";
echo $APP_ID;
echo ");\">删除</a>\r\n </td>\r\n </tr>\r\n";
}
if ( 0 < $APP_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 + -