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

📄 user_switch.php

📁 蓝芒图书管理系统 蓝芒图书管理系统 蓝芒图书管理系统
💻 PHP
字号:
<?php
include("header.php");
include("checking.php");
function listeditor()
{
	echo "";
}
?>
<div align="center">
  <center>
  <table border="1" width="80%" bordercolor="#008000" cellspacing="0" cellpadding="0" height="18">
    <tr>
      <td width="100%" height="16" valign="top">
<?php
if($mode==""):
?>
<p align="center" class="1">查找网络注册用户</p>
<form method="POST" action="user_switch.php?mode=search">
  <p align="center">用户名:<input type="text" name="name" size="18">&nbsp;&nbsp;&nbsp; 
  证件号码:<input type="text" name="document" size="20"></p>
  <p align="center"><input type="submit" value="提交" name="B1"></p>
</form>
<?php
endif;
if($mode=="search")
{
	if((trim($name)=="") && (trim($document)=="") )
	{
		echo "<p align=center>两个输入条件应至少有一个不为空<br><a href=\"javascript:history.go(-1)\">返回</a>";
		exit();
	}
	if(trim($name)!="")
		$sql="select * from papared_user where name='".$name."'";
	else
		$sql="select * from papared_user where document='".$document."'";
	$rs=mysql_query($sql,$conn);
	if(mysql_num_rows($rs)==0)
	{
		echo "<p align=center>没有找到符合条件的记录,请检查输入是否正确<br><a href=\"javascript:history.go(-1)\">返回</a>";
		exit();
	}
	echo "<p align=\"center\" class=\"1\">用户登记</p>";
	while($lists=mysql_fetch_array($rs))
	{
?>
	  <form action="user_register.php?mode=doit&papared_id=<?php echo $lists[id]?>" method="post">
        <table border="0" width="100%" cellspacing="0" cellpadding="0" height="86">
          <tr>
            <td width="50%" height="18" align="right">姓名*:</td>
            <td width="50%" height="18"><input type="text" name="name" size="20" value="<?php echo $lists[name] ?>" ></td>
          </tr>
          <tr>
            <td width="50%" height="18" align="right">证件号码*:</td>
            <td width="50%" height="18"><input type="text" name="document" size="20" value="<?php echo $lists[document] ?>"></td>
          </tr>
          <tr>
            <td width="50%" height="18" align="right">编号*:</td>
            <td width="50%" height="18"><input type="text" name="editor" size="20" value="<?php listeditor()?>"></td>
          </tr>
          <tr>
            <td width="50%" height="18" align="right">住址*:</td>
            <td width="50%" height="18"><input type="text" name="dress" size="20" value="<?php echo $lists[dress] ?>"></td>
          </tr>
          <tr>
            <td width="50%" height="18" align="right">Email:</td>
            <td width="50%" height="18"><input type="text" name="email" size="20"  value="<?php echo $lists[email] ?>"></td>
          </tr>
          <tr>
            <td width="50%" height="18" align="right">电话*:</td>
            <td width="50%" height="18"><input type="text" name="phone" size="20" value=0 value="<?php echo $lists[phone] ?>"></td>
          </tr>
          <tr>
            <td width="50%" height="18" align="right">密码*:</td>
            <td width="50%" height="18"><input type="password" name="passwords" size="20" value="<?php echo $lists[password] ?>"></td>
          </tr>
<?php
if($flag!=0):
?>    
          <tr>
            <td width="50%" height="14" colspan="2" align="right">
              <p align="center"><br><input type="submit" name="T7" size="20" value="提交"><input type="reset" name="T7" size="20"></p>
            </td>
          </tr>
<?php
endif;
?>
        </table>
        </form>	
<?php
	}
}
?>
	
      </td>
    </tr>
  </table>
  </center>
</div>

⌨️ 快捷键说明

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