📄 validate_sort.php
字号:
<?php
header( "Content-Type: text/html; charset=gb2312" );
include_once( "inc/auth.php" );
$connection = openconnection( );
if ( $_REQUEST['sort_id'] != NULL )
{
$query = "select SORT_ID from officeitem_sort where SORT='".$_REQUEST['sort']."' and SORT_ID !=".$_REQUEST['sort_id'];
}
else
{
$query = "select SORT_ID from officeitem_sort where SORT='".$_REQUEST['sort']."'";
}
$cursor = exequery( $connection, $query );
if ( $row = mysql_fetch_row( $cursor ) )
{
echo "<script>\r\n\t\t\talert('此办公用品类别已经创建!');\r\n\t\t\tparent.document.form1.sort.select();\r\n\t\t\t</script>";
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -