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

📄 add.php

📁 极限网络智能办公系统 - Office Automation 2008 官方100% 源码
💻 PHP
字号:
<?php
 

include_once( "inc/auth.php" );
include_once( "inc/utility_sms1.php" );
include_once( "inc/check_type.php" );
include_once( "inc/utility_all.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";
if ( $BILL_DATE != "" )
{
	$TIME_OK = is_date( $BILL_DATE );
	if ( !$TIME_OK )
	{
		message( "错误", "日期格式不对,应形如 1999-1-2" );
		echo "\r\n<br>\r\n<div align=\"center\">\r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"location='new.php?BILL_ID=";
		echo $BILL_ID;
		echo "&CUR_PAGE=";
		echo $CUR_PAGE;
		echo "'\">\r\n</div>\r\n\r\n";
		exit( );
	}
}
$SEND_TIME = date( "Y-m-d H:i:s", time( ) );
if ( $INFO_ID == "" )
{
	$query = "insert into BILL_INFO(USER_ID,BILL_DATE,ITEM_ID,REMARK,PRICE,DEPT_ID) values ('".$TO_ID."','{$BILL_DATE}','{$ITEM_ID}','{$REMARK}','{$PRICE}','{$DEPT_ID}')";
}
else
{
	$query = "update BILL_INFO set USER_ID='".$TO_ID."',BILL_DATE='{$BILL_DATE}',ITEM_ID='{$ITEM_ID}',PRICE='{$PRICE}',REMARK='{$REMARK}',DEPT_ID='{$DEPT_ID}' where INFO_ID={$INFO_ID}";
}
exequery( $connection, $query );
echo "\r\n<script>\r\nparent.location=\"index.php\";\r\n</script>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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