<?
if(!$UploadAction):
?>
<?
//本程序是為輸出書名,作者、出版社資料而設。
//編者:孔秀祥。日期:2001/3/25
?>
<HTML><HEAD>
<TITLE>書目查詢 </TITLE>
</HEAD>
<BODY><TABLE align=CENTER> " /> 欧美一区二区三区网站,黄色一级一级,夜夜狠狠

一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

圖書管理程序(三)

圖書查詢部分:
<?
if(!$UploadAction):
?>
<?
//本程序是為輸出書名,作者、出版社資料而設。
//編者:孔秀祥。日期:2001/3/25
?>
<HTML><HEAD>
<TITLE>書目查詢 </TITLE>
</HEAD>
<BODY><TABLE align=CENTER>
<FORM ENCTYPE= "multipart/form-data" NAME = "SubmitForm"
ACTION= "<? $php_SELF ?>" METHOD = "POST">
<INPUT TYPE= "hidden" NAME = "MAX_FILE_SIZE" VALUE ="20000000">
<INPUT TYPE= "hidden" NAME = "UploadAction" VALUE = "1">

<!--TR><TD>文件名<TD><INPUT NAME = "UploadFile" TYPE = "file" VALUE="" SIZE = "30"></TR-->
<TR><TD align=center>著作名<TD><INPUT NAME = "b_name" TYPE = "text" VALUE="" SIZE = "30" maxlength=100></TD></TR>
<TR><TD align=center>作者<TD>姓<INPUT NAME = "a_first1" TYPE = "text" VALUE="" SIZE = "6" maxlength=20>
名<INPUT NAME = "a_last1" TYPE = "text" VALUE="" SIZE = "6" maxlength=20></TD></TR>
<TR><TD align=center>出版社<TD><INPUT NAME = "p_name" TYPE = "text" VALUE="" SIZE = "30" maxlength=100></TD></TR>
<TR><TD>出版日期<TD><INPUT NAME = "p_year" TYPE = "text" VALUE="" SIZE = "4">年
<!--INPUT NAME = "p_month" TYPE = "text" VALUE="" SIZE = "2">月 <-->
<TR><TD>ISBN<TD><INPUT NAME = "isbn" TYPE = "text" VALUE="" SIZE = "25">

</TABLE><TABLE align=center>
<TR><TD align=center>
<INPUT NAME = "submit" VALUE = "提交" TYPE = "submit">
<TD><INPUT NAME = "reset" VALUE = "重置" TYPE = "reset">
</TD></TR>
</FORM></CENTER></TABLE></BODY>

</HTML>

<?

else:
session_start();
require "config.php3";

$b_price=$b_price_a.".".$b_price_b;

$UploadAction=0;
$repeat=0;      //是不是重復了。
$TimeLimit=0; //設置超時限制時間缺省時間為 30秒設置為0時為不限時
set_time_limit($TimeLimit);
@MYSQL_CONNECT($hostname,$dbusername,$dbpassword) OR DIE("不能連接數據庫!");
@mysql_select_db("$dbname") or die("不能選擇數據庫!");
//$q="select books.books_id, books.books_name,author.first_name,author.last_name,publisher.publisher_name from books,author,books_author,publisher where books.books_name="$b_name" and books.publisher_id=publisher.publisher_id and books.books_id=books_author.books_id and books_author.author_id=author.author_id";
if($b_name!="")
    $bn="books.books_name="$b_name" and ";
if($p_name!="")
    $pn="publisher.publisher_name="$p_name" and ";
if($a_first1!="")
    $af="author.first_name="$a_first1" and ";
if($a_last1!="")
    $al="author.last_name="$a_last1" and ";
if($p_year!=""){
    $date_p="books.date_pub rlike '^$p_year.*' and ";
    }
if($isbn!="")
    $is="books.ISBN="$isbn" and ";
$q="select books.books_id, books.books_name,author.first_name,author.last_name,publisher.publisher_name from books,author,books_author,publisher  
where $bn $pn $af $al $date_p $is books.publisher_id=publisher.publisher_id and books.books_id=books_author.books_id and books_author.author_id=author.author_id order by books.books_name";


$r = @mysql_query($q);
if(!$r){
    echo "查詢無效 <BR>";
    exit;
}
if(mysql_num_rows($r)<1){
    $msg="沒有符合要求的記錄。";
    xueroom_error_exit($msg,$php_SELF);

}

while($count=mysql_fetch_array($r)){  
    $books_id=$count[0];
    $books_name=$count[1];
    $first_name=$count[2];
    $last_name=$count[3];
    $publisher_name=$count[4];
    if($book!=$books_id){
        $repeat++;
        echo "<BR>".$repeat."、";
        echo "《".$books_name."》";
        echo "出版社:".$count[4];
        echo "  作者:";
    }
    echo "$first_name$last_name ";
    $book=$books_id;
}

echo"<BR><A HREF = $php_SELF>返回 </A>";
echo"</BODY></HTML>";

?>
<?
endif;
?>


php技術圖書管理程序(三),轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 精品福利| 久久国产自偷自偷免 | 影院成人区精品一区二区婷婷丽春院影视 | 92精品国产自产在线观看48 | sihu国产午夜精品一区二区三区 | 激情五月网站 | 黄网站免费观看 | 一本久久道 | 中文字幕视频二区 | 另类视频综合 | 日本亚洲一区二区三区 | 亚洲综合久 | 欧美另类videosbestsex | 9久re在线观看视频精品 | 亚洲综合在线成人一区 | 涩涩涩在线视频 | 91av在线导航 | 亚洲视频二区 | 91久久网| 午夜欧美 | 五月婷婷婷婷 | 性色在线播放 | 4hu四虎永久地址 | 综合图片亚洲网友自拍10p | 亚洲欧美色一区二区三区 | 亚洲伦理中文字幕一区 | 精品福利 | 日本高清中文字幕一区二区三区a | 中文字幕国产在线 | 在线观看亚洲一区二区 | 91aaa免费免费国产在线观看 | 久久综合一区 | 日韩精品一区二区三区在线观看 | 亚洲欧洲视频 | 中文字幕日韩精品一区口 | 久久综合久久综合久久 | 久久精品成人 | 4hu四虎永久网址 | 四虎国产精品永久地址99 | 婷婷综合在线 | 美女视频黄是免费 |