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

📄 itemdetail.php

📁 klkuigghi jbvvjjgkhilllllllllllllllllllllllllll
💻 PHP
字号:
<html>
<head>
<title>InterShop-Detail</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style.css">
<style type="text/css">
<!--
td {  font-size: 11px}
a:link {  font-size: 11px; text-decoration: none}
a:active {  font-size: 11px; text-decoration: none}
a:hover {  font-size: 11px; text-decoration: none}
a:visited {  font-size: 11px; text-decoration: none}
-->
</style>
</head>
<body>
<form action="tocart.php" method=post name=form1>
<table width="400" border="0" cellspacing="0" cellpadding="0" > 
  <tr> 
    <td valign="top" > 
             
                    <?php
				 require("../dbcon.inc");
				 $wh="";
				 #Tim theo Items
				 $ID=$HTTP_GET_VARS{"ItemID"};
				 $ID=str_replace ("'", "''", $ID);
				 if($ID!=""){
				  	$wh.=" and ItemID= '".$ID."'";
				 }
				 $wh=" and (activate=1 ".$wh.")";
				
				 $stSQL ="select ItemID,ItemName,Description, AuthName,Pages,Price,PublishYear,Edition, Size from tblBooks, tblauthors where tblBooks.AuthID= tblauthors.AuthID ".$wh;
				 //echo $stSQL;
				 $result = mysql_query($stSQL, $link);
	        	         $totalRows=mysql_num_rows($result);
		 ?>
	    </td>
        </tr>
        <tr> 
          
          <td align="middle" valign="top" > 
              <table width="100%" border="0" cellspacing="1" cellpadding="1">
                <tr> 
                   <tr valign="top"> 
                  <td colspan="7" align="middle"> 
                    
                  </td>
                </tr>
                  <td  valign="top"> 
                    
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
               
                <?php
					  
			
			if($row = mysql_fetch_array ($result))
			   {			 		
				$itemid=$row["ItemID"];
				$itemname=$row["ItemName"];
				$description=$row["Description"];
				$authname=$row["AuthName"];							
				$pages=$row["Pages"];							
				$price=$row["Price"];
				$publishyear=$row["PublishYear"];
				$edition=$row["Edition"];
				$size=$row["Size"];
				
		 ?>
                <tr valign="top"> 
                  <td  align="middle" width="3%" height="41">&nbsp;</td>
                  <td colspan="6" height="41" ><font face="Arial" color="#0066cc" size=3>
			 
                    <b> 
                    <?=$itemname?>
                    </b> </font><br><font face="Arial" color="#0066cc" >
                    Author: 
                    <?=$authname?>
                    </font></td>
                </tr>
		 <tr valign="top"> 
                  <td colspan="7" align="middle"> 
                    <hr noshade size="1">
                  </td>
                </tr>
                <tr valign="top"> 
                  <td  align="middle" width="3%">&nbsp;</td>
                  <td width="34%" ><font face="Arial" color="#0066cc"> 
                    <img src="../books/<?=$itemid?>.jpg">
                    </font></td>
                  <td colspan="5" > 
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td width="27%"><font face="Arial" color="#ff6600">Price</font></td>
                        <td width="73%"><font face="Arial" color="#0066cc"> 
                          <?=$price?>
                          </font></td>
                      </tr>
                      <tr> 
                        <td width="27%"><font face="Arial" color="#ff6600">Edition</font></td>
                        <td width="73%"><font face="Arial" color="#0066cc"> 
                          <?=$edition?>
                          </font></td>
                      </tr>
                      <tr> 
                        <td width="27%"><font face="Arial" color="#ff6600">Year</font></td>
                        <td width="73%"><font  face="Arial" 
                        color=#0066cc> 
                          <?=$publishyear?>
                          </font></td>
                      </tr>
                      <tr> 
                        <td width="27%"><font face="Arial" color="#ff6600">Pages</font></td>
                        <td width="73%"><font face="Arial" color="#0066cc"> 
                          <?=$pages?>
                          </font></td>
                      </tr>
                      <tr> 
                        <td width="27%"><font face="Arial" color="#ff6600">Size</font></td>
                        <td width="73%"><font face="Arial" color="#0066cc"> 
                          <?=$size?>
                          </font></td>
                      </tr>
                    </table>
                  </td>
                </tr>
                <tr valign="top"> 
                  <td  align="middle" width="3%">&nbsp;</td>
                  <td width="34%" ><font face="Arial" color="#ff6600">Description</font></td>
                  <td colspan="5" >&nbsp;</td>
                </tr>
                <tr valign="top"> 
                  <td  align="middle" width="3%">&nbsp;</td>
                  <td colspan="6" ><font face="Arial" color="#0066cc"> 
                    <?=$description?>
                    </font></td>
                </tr>
                <tr valign="top">
                  <td  align="middle" width="3%">&nbsp;</td>
                  <td width="34%" >&nbsp;</td>
                  <td colspan="5" >&nbsp;</td>
                </tr>
                <tr valign="top"> 
                  <td  align="middle" width="3%">&nbsp;</td>
                  <td width="34%" >&nbsp;</td>
                  <td colspan="5" >&nbsp;</td>
                </tr>
                <?php
		}
		else
		{
		?>
                <tr valign="top"> 
                  <td width="3%" align="middle">&nbsp;</td>
                  <td colspan=6 valign=center align="center"><b>
			<font face="Arial" color="#FF0000">Oop! 
                    Items not found! please select other criteria.</font></b></td>
                </tr>
                <?php
		 }
		 ?>
              </table>
                  </td>
                </tr>
                <tr> 
                  
                  <td width="100%" colspan=6><font face="Arial" color="#FF6600"> 
		    <input type=submit value="Add to Cart" style="width:100"  class=button>
                    <input type=button value="Close" onclick="window.close();" class=button>
                    <input type=hidden name="itemid" value="<?=$itemid?>">
                    </font></td>
                </tr>
                
              </table>
           
          </td>
        </tr>
        
      </table>
  </form>
</body>
</html>

⌨️ 快捷键说明

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