<?php session_start();?>
<?php include("../includes/connection.php"); ?>
<?php include("../includes/func.php");
?>
<?php if (empty($_SESSION["admin"])) redirectS("index.php?e=1");
$sql="select order_details,order_comments,order_admin_comments,order_serial,order_date from order_master where order_id=".$_GET["order_id"];
$cmd = mysql_query($sql);
$rs = mysql_fetch_array($cmd);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Administrative Panel : Order Details</title>
<link href="includes/style.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="600" border="0" cellpadding="0" cellspacing="1" class="bgDarkGray">
<tr><td align=right class="bgWhite"><a href="javascript:window.print();"><font class=Blue><b>Print<b></font> </a>
</td>
</tr>
      <tr>
        <td class="bgWhite">
		
		<table width="100%"  border="0">
            <tr align="center">
                <td colspan="2" class="note">&nbsp;<?php echo($errMsg); ?></td>
            </tr>
          
            <tr>
                <td width="20%" class="LabelBold">Number : </td>
               <td width="80%" class="Label"> <?php echo($rs["order_serial"]); ?></td>
            </tr>
			
            <tr>
                <td width="20%" class="LabelBold">Order Date : </td>
               <td width="80%" class="Label"> <?php echo($rs["order_date"]); ?></td>
            </tr>
			<tr>
                <td width="30%" class="LabelBold">ATI Comments : </td>
               <td width="70%" class="Label"> <?php echo($rs["order_admin_comments"]); ?></td>
            </tr>
			<tr>
                <td width="20%" class="LabelBold">Order Details : </td>
				<?$order_details=str_replace("small>PHOTO-","small><img src='../userfiles/PHOTO-",$rs["order_details"]);
				$order_details=str_replace("(Custom Image","'>(Custom Image",$order_details);?>
               <td width="80%" class="Label"> <?php echo($order_details); ?></td>
            </tr>
			<tr>
                <td width="80%" class="LabelBold" colspan=2>
				*If custom image is supplied by user,It can be downloaded from server userfiles folder.</td>
            </tr>
		</table>
		</td>
		</tr>
		
			


 
</table>
</form>
</body>
</html>
