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

📄 add.php

📁 图书管理系统
💻 PHP
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>增加内容</title>
<style type="text/css">
TABLE {        color: #0000ff; FONT-FAMILY: "宋体"; FONT-SIZE: 16pt }
a:link {  color: #D033ff; FONT-FAMILY: "宋体"; FONT-SIZE: 9pt; text-decoration: none}
a:hover {  color: #0000ff; FONT-FAMILY: "宋体"; FONT-SIZE: 9pt; text-decoration: none}
a:visited {  color: #D033FF; FONT-FAMILY: "宋体"; FONT-SIZE: 9pt; text-decoration: none}
</style>
</head>
<body background="bg.gif">
<p><a href="add1.php">增加书名</a>
<?
include("header.inc");
$pageok=20;
$query=mysql_query("select * from wenxue2");
while ($array=mysql_fetch_row($query)){
if ($array[1]==$lx){
$lxmc=$array[0];
}
echo '  <a href="add.php?lx='.$array[1].'&page=1">'.$array[0].'</a>';
}
echo '</p><h1 align="center"><font color="#8000FF">'.$lxmc.'</font></h1>';
$query=mysql_query("select count(*) from wenxue1 where lx='$lx'");
$array=mysql_fetch_row($query);
$pagejs=ceil($array[0]/$pageok);
$rows=($page-1)*$pageok;
$query=mysql_query("select sm,smxlh from wenxue1 where lx='$lx' order by date desc limit $rows,$pageok");
echo '<table border="2" width="100%">';
while ($array=mysql_fetch_row($query)){
echo '<tr><td width="50%" height="22"><strong>'.$array[0].'</strong>  <a href="add2.php?smxlh='.$array[1];
echo '">增加</a> <a href="modi.php?smxlh='.$array[1].'">修改</a> <a href="del.php?smxlh='.$array[1].'">删除</a></td>';
if ($array=mysql_fetch_row($query)){
echo '<td width="50%" height="22"><strong>'.$array[0].'</strong>  <a href="add2.php?smxlh='.$array[1];
echo '">增加</a> <a href="modi.php?smxlh='.$array[1].'">修改</a> <a href="del.php?smxlh='.$array[1].'">删除</a></td></tr>';
} else {
echo '<td width="50%" height="22"> </td></tr>';
}
}
echo '<tr><td width="100%" colspan="2"><p align="right">';
if ($page>1){
$page1=$page-1;
echo '<a href="add.php?lx='.$lx.'&page='.$page1.'">上一页</a>  ';
}
if ($page<$pagejs){
$page1=$page+1;
echo '<a href="add.php?lx='.$lx.'&page='.$page1.'">下一页</a>  ';
}
?>
<a href="javascript:window.close()">关闭窗口</a>
  </td></tr>
  </table>
<p align="center"><img src="lygzs.gif" width="143" height="22"
alt="lygzs.gif (3234 字节)"></p>
</body>
</html>

⌨️ 快捷键说明

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