update.php
来自「极限网络智能办公系统—MYOA26—100%—源程序。」· PHP 代码 · 共 35 行
PHP
35 行
<?php
include_once( "inc/auth.php" );
include_once( "inc/check_type.php" );
include_once( "inc/conn.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</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$connection = openconnection( );
if ( !is_number( $ITEM_ID ) )
{
message( "错误", "序号应为整数" );
button_back( );
exit( );
}
if ( !is_number( $WIDTH ) )
{
message( "错误", "宽度应为整数" );
button_back( );
exit( );
}
if ( !is_number( $HEIGHT ) )
{
message( "错误", "高度应为整数" );
button_back( );
exit( );
}
if ( $ITEM_TYPE == "1" )
{
$HEIGHT = 1;
}
$query = "update FLOW_FORM_ITEM set ITEM_ID={$ITEM_ID},ITEM_NAME='{$ITEM_NAME}',ITEM_TYPE='{$ITEM_TYPE}',WIDTH={$WIDTH},HEIGHT={$HEIGHT},NEW_LINE='{$NEW_LINE}' where ID={$ID}";
exequery( $connection, $query );
header( "location: index.php?FORM_ID={$FORM_ID}" );
echo "\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?