1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
<?php require_once('../webadmin/configure.php');?> <?php $langcode ='en';?> <!doctype html> <!-- HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="js/html5shiv.js"></script> <![endif]--> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="../css/style.css" /> </head>
<body> <?php //Product Detail $result30 = mysql_query("SELECT * FROM products_detail WHERE productsdetid='".$_GET['productsdetid']."' "); $row30 = mysql_fetch_array($result30,MYSQL_ASSOC) ?> <div id="product_popup_page"> <?php //Check img size $getsize = getimagesize("../images/product/large/".$row30{'productsdetimage'}); if($getsize[0] > $getsize[1]){ // 0=w 1=h $imgfile = "max-width='900' height='450'"; } else { $imgfile = "height='450'"; } ?> <table width="900" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="middle"><img src="../images/product/large/<?=$row30{'productsdetimage'};?>" <?=$imgfile;?> alt="" /></td> </tr> </table> <div class="product_popup_frame"> <div class="product_popup_text"> <span class="product_popup_title">NAME:</span> <?=$row30{'productsdetname'.$langcode.''};?> </div> <div class="product_popup_text"> <span class="product_popup_text_header">SPECIFICATION:</span> <?=$row30{'productsdetspec'.$langcode.''};?> </div> </div> <div class="product_popup_button"> <div class="product_popup_button_text"> <span class="product_popup_button_header">+</span>ADD TO ENQUIRY LIST </div> <div class="product_popup_button_text"> <span class="product_popup_button_header">></span>SEND YOU ENQUITY </div> </div> </div> </body> </html>
|