//盤點狀況查詢 //require_once('mysql.php'); require_once('mssql.php'); header('P3P: CP=CAO PSA OUR'); //IE SESSION / COOKIES in IFRAME 解決辦法 //require_once('menu.php');//選單 session_start(); //$_SESSION['source_path'] = '/hcp_sap/sap_oitm.php'; //require_once('../ip_check.php');//外部IP檢查 //mssql_select_db($myDB, $mssql) or die("Couldn't open database $myDB"); if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $editFormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); } ?>
此網頁使用框架,但是您的瀏覽器並不支援。