check_user.php

来自「通达OA官方提供的30源代码,感觉很实在」· PHP 代码 · 共 37 行

PHP
37
字号
<?
include_once("inc/auth.php");
include_once("inc/utility_all.php");
?>

<html>
<head>
<title>用户名检测</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">

<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/menu/hrms.gif" width=22 height=22 align="absmiddle"><span class="big3">&nbsp;用户名检测</span><br>
    </td>
    </tr>
</table>
<br>
<?
$query="select USER_ID from USER where USER_ID='$USER_ID'";
$cursor= exequery($connection,$query);
if($ROW=mysql_fetch_array($cursor))
{
	   Message("提示","用户名 ".$USER_ID." 已经使用请选择其他用户名");
}
else
{
	   Message("提示","用户名 ".$USER_ID." 可以继续使用");
}
?>    
<div align="center">
   <br>
   <input type="button" class="BigButton" value="关闭" onclick="window.close();">
</div>
</body>
</html>

⌨️ 快捷键说明

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