<?php
require_once('../config/config.php');
require_once(CLASS_DIR.'dbClass.php');
$obj = new DBClass();
$cupage = 'contact';


$sql = "SELECT * FROM enquiry WHERE id = '".$_GET['id']."'";
$rs = $obj->executeQry($sql,$link);
$row = $obj->fetchrow();

$dat = explode('-', $row['ondate']);
$dat = $dat[1].'-'.$dat[2].'-'.$dat[0];
require_once(INCLUDES_DIR.ADMHEADER); 
?>
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="29" align="center" class="submenu"><a href="enquiries.php">Enquiries</a></td>
    <td align="center" class="submenu"><a href="contactus.php">Contact Us</a></td>
  </tr>
</table>
<table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="17"></td>
  </tr>
  <tr>
    <td><table width="910" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td class="pagehead"><table width="900" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="315" height="35">View Enquiry Details</td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td valign="top" bgcolor="#FFFFFF" class="innermain"><table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="25">&nbsp;</td>
          </tr>
          <tr>
            <td valign="top" class="bdr4"><table width="800" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td bgcolor="#990066" class="form_head">Details</td>
                </tr>
              <tr>
                <td valign="top" class="form_bg"><table width="500" border="0" cellpadding="0" cellspacing="0" class="form_txt1">
		
                  <tr>
                    <td align="left" width="30">Name</td>
			<td align="center" width="5">:</td>
                    <td><? echo $row['name'];?></td>
                    </tr>
                  <tr>
                    <td>Email: </td>
			<td>:</td>
                    <td><? echo $row['email'];?></td>
                    </tr>
                  <tr>
                    <td>Phone/Mobile: </td>
			<td>:</td>
                    <td><? echo $row['phone'];?>/<? echo $row['mobile'];?></td>
                    </tr>
                  <tr>
                    <td>Requirement: </td>
			<td>:</td>
                    <td><? echo $row['requirement'];?></td>
                    </tr>
                  <tr>
                    <td>Details: </td>
			<td>:</td>
                    <td><? echo $row['comment'];?></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td bgcolor="#990066" class="form_head">&nbsp;</td>
              </tr>
              </table></td>
          </tr>
          </table></td>
      </tr>
      </table></td>
  </tr>
  <tr>
    <td height="40">&nbsp;</td>
  </tr>
</table>

<?php require_once(INCLUDES_DIR.ADMFOOTER); ?>
