validate_number.php

来自「泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5」· PHP 代码 · 共 24 行

PHP
24
字号
<?php

header( "Content-Type: text/html; charset=gb2312" );
include_once( "inc/auth.php" );
$connection = openconnection( );
if ( $_REQUEST['appellation_id'] != NULL )
{
	$query = "select APPELLATION_NUMBER from officeitem_appellation where APPELLATION_NUMBER='".$_REQUEST['number']."' and APPELLATION_ID !=".$_REQUEST['appellation_id'];
}
else
{
	$query = "select APPELLATION_NUMBER from officeitem_appellation where APPELLATION_NUMBER='".$_REQUEST['number']."'";
}
$cursor = exequery( $connection, $query );
if ( $row = mysql_fetch_row( $cursor ) )
{
	echo "<script>\r\n\t\t\talert('此编号已经存在!');\r\n\t\t\tparent.document.form1.number.select();\r\n\t\t\t</script>";
}
else
{
	echo "<script>\r\n\t\t\tparent.document.form1.submit();\r\n\t\t\t</script>";
}
?>

⌨️ 快捷键说明

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