search.php
来自「图书管理系统的代码,是一个不错的东东哦 用户名为ADMIN为管理员」· PHP 代码 · 共 60 行
PHP
60 行
<script language="javascript">
function checksearch(){
if (form1.id.value=="" && form1.title.value=="" && form1.author.value=="" && form1.publisher.value=="" && form1.year.value==""){
// 没有输入查询信息
alert("没有输入查询信息!");
return false;
}
return true;
}
</script>
<html>
<body>
<form name="form1" method="post" action="<?php echo url("Default","SearchResult"); ?>" onsubmit="return checksearch()">
<table width="60%" border="0" cellspacing="1" cellpadding="3" align="center">
<tr>
<th colspan="2">图 书 查 询</th>
</tr>
<tr>
<td width="26%" align="right">图书编号:</td>
<td width="74%">
<input type="text" name="id" size="10">
</td>
</tr>
<tr>
<td width="26%" align="right">书名:</td>
<td height="25" width="74%">
<input type="text" name="title" size="50">
</td>
</tr>
<tr>
<td height="25" width="26%" align="right">作者:</td>
<td width="74%">
<input type="text" name="author" size="50" maxlength="100">
</td>
</tr>
<tr>
<td width="26%" align="right">出版社:</td>
<td width="74%">
<input type="text" name="publisher" size="50" maxlength="100">
</td>
</tr>
<tr>
<td width="26%" align="right">出版年份:</td>
<td width="74%">
<input type="text" name="year" size="10">
</td>
</tr>
<tr>
<td width="26%" align="right">
<input type="submit" name="Submit" value="提交">
</td>
<td width="74%">
<input type="reset" name="Submit2" value="重置">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?