:: **Zploit** v1.0 | Current Path: **/home/bbbncs7/amtechint.com/admin/**
:: Editing File: inquiry_detail.php
<?php include "param.php"; include "func.php"; include "chk_login.php"; ?> <html> <head> <title><?=$web_title?></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="chk_frm.js"></script> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="21" align="center" valign="top"><?php include("top_cp.php"); ?></td> </tr> <tr> <td align="center" valign="top"><table width="990" height="100%" border="0" cellpadding="0" cellspacing="0" class="base"> <tr> <td height="2" colspan="2"><img src="imgs/cp/spacer.gif" width="8" height="8"></td> </tr> <tr> <td width="190" valign="top"><?php include("left_cp.php"); ?></td> <td width="800" valign="top"><table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="552" height="29" background="imgs/cp/menu_cat_bg.jpg" class="left_menu_head" style="padding:4px;"><a href="home.php" class="left_menu_head">Home</a> | <a href="inquiries.php" class="left_menu_head">Inquiries List</a> | <?=ch_lvl('mid')+1000?> </td> <td width="248" align="right" background="imgs/cp/menu_cat_bg.jpg" class="left_menu_head" style="padding:4px;"> </td> </tr> <tr> <td colspan="2"><table width="800" border="0" cellpadding="0" cellspacing="0" class="base"> <tr> <td height="29" background="imgs/cp/menu_bg.jpg" class="left_menu_head"> Customer Information</td> </tr> <?php $QRY = qry_run("select * from tbl_inquiry where mainid = ".ch_lvl('mid').""); if (num_rec($QRY) > 0) { $rs = fetch_rec($QRY); ?> <tr> <td><table width="100%" border="0" cellpadding="2" cellspacing="0" class="base"> <tr> <td width="22%" height="25" align="right"><strong>Name:</strong></td> <td width="78%" align="left"><?=$rs['fname']?></td> </tr> <tr> <td height="25" align="right"><strong>Address 1:</strong></td> <td align="left"> <?=$rs['address1']?> </td> </tr> <tr> <td height="25" align="right"><strong>Address 2:</strong></td> <td align="left"> <?=$rs['address2']?> </td> </tr> <tr> <td height="25" align="right"><strong>Phone:</strong></td> <td align="left"> <?=$rs['phone']?> </td> </tr> <tr> <td height="25" align="right"><strong>Mobile:</strong></td> <td align="left"> <?=$rs['mobile']?> </td> </tr> <tr> <td height="25" align="right"><strong>Fax:</strong></td> <td align="left"> <?=$rs['fax']?> </td> </tr> <tr> <td height="25" align="right"><strong>E-mail:</strong></td> <td align="left"> <?=$rs['email']?> </td> </tr> <tr> <td height="25" align="right"><strong>Country:</strong></td> <td align="left"> <?=$rs['country']?> </td> </tr> </table></td> </tr> <tr> <td height="29" background="imgs/cp/menu_bg.jpg" class="left_menu_head"> Inquiry Detail </td> </tr> <tr> <td><table width="100%" border="0" cellpadding="4" cellspacing="0" class="base"> <tr> <td width="22%" height="25" align="right"><strong>Inquiry ID: </strong></td> <td width="78%" align="left"> <?=$rs['mainid']+1000?> </td> </tr> <tr> <td height="25" align="right"><strong>Inquiry Date:</strong></td> <td align="left"> <?=$rs['pdate']?> </td> </tr> <tr> <td height="25" align="right"><strong>Payment Type:</strong></td> <td align="left"> <?=$rs['ptype']?> </td> </tr> <tr> <td height="25" align="right"><strong>Shipping Type:</strong></td> <td align="left"> <?=$rs['stype']?> </td> </tr> </table></td> </tr> <tr> <td height="30" background="imgs/cp/menu_bg.jpg" class="left_menu_head"> Product Detail </td> </tr> <tr> <td align="right"><table width="800" border="1" cellpadding="4" cellspacing="0" bordercolor="#F1F1F1" class="base" style="border-collapse:collapse;"> <tr bgcolor="#F1F1F1"> <td width="110" height="25"> </td> <td width="591"><strong>Product Information</strong></td> <td width="67"><strong>Qty</strong></td> </tr> <?php $tlt_qty = 0; $tlt_price = 0; $QRYp = qry_run("select * from tbl_inquiry_detail where mainid = ".$rs['mainid']." order by subid"); if (num_rec($QRYp) > 0) { while($rsp = fetch_rec($QRYp)) { ?> <tr> <td height="50" align="center"><img src="pictures/<?=$rsp['img1']?>" width="100"></td> <td> <strong> <?=$rsp['pname']?> <br> <?=$rsp['part']?> </strong> <br> <?=$rsp['opt']?> </td> <td> <?=$rsp['qty']?> </td> </tr> <?php $tlt_qty = $tlt_qty + $rsp['qty']; } ?> <tr> <td height="30" align="center"> </td> <td align="right">Total Quantity:</td> <td> <strong> <?=$tlt_qty?> </strong> </td> </tr> <?php } ?> </table></td> </tr> <?php } ?> </table></td> </tr> </table></td> </tr> <tr> <td height="2" colspan="2"><img src="imgs/cp/spacer.gif" width="8" height="8"></td> </tr> </table></td> </tr> <tr> <td height="29" align="center" background="imgs/cp/btm_bg22.jpg"><?php include("btm_cp.php"); ?></td> </tr> </table> </body> </html>