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

📄 update.php

📁 极限网络智能办公系统 - Office Automation 2008 官方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</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$query = "SELECT * from SYS_CODE where CODE_NO='".$CODE_NO."' and PARENT_NO='{$PARENT_NO}' and CODE_ID!={$CODE_ID}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	message( "提示", "代码编号".$CODE_NO."已存在!" );
	button_back( );
	exit( );
}
$query = "update SYS_CODE set CODE_NO='".$CODE_NO."',CODE_NAME='{$CODE_NAME}',CODE_ORDER='{$CODE_ORDER}' where CODE_ID={$CODE_ID}";
exequery( $connection, $query );
$query = "SELECT * from SYS_CODE where CODE_NO='".$PARENT_NO."' and PARENT_NO=''";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$CODE_ID = $ROW['CODE_ID'];
}
header( "location:index.php?CODE_ID=".$CODE_ID );
?>

⌨️ 快捷键说明

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