searchbookok.php
来自「图书管理系统」· PHP 代码 · 共 64 行
PHP
64 行
<?php
session_start();
require "userfun.inc";
require "conn.php";
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<title><?php echo $webname;?>_所有图书</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<center>
<?php
require "top.php";
require "right.php";
//判断并接收传递来的参数
//判断是否是翻页时传递过来的参数
if(isset($_GET['bookid']))
{
$tbookid = $_GET['bookid'];
}
else
{
$tbookid = $_POST['bookid'];
}
if(isset($_GET['bookname']))
{
$tbookname = $_GET['bookname'];
}
else
{
$tbookname = $_POST['bookname'];
}
if(isset($_GET['bookauthor']))
{
$tbookauthor = $_GET['bookauthor'];
}
else
{
$tbookauthor = $_POST['bookauthor'];
}
if(isset($_GET['publish']))
{
$tpublish = $_GET['publish'];
}
else
{
$tpublish = $_POST['publish'];
}
$ufun = new useros();
$ufun -> searchbook($tbookid,$tbookname,$tbookauthor,$tpublish,$book);
require "foot.php";
?>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?