<head>
<?php
	$table_name = $_SESSION['db_prefix']."_customer";
    $customer_query = "SELECT comp_name, bag_box, box_no, postal_place, phone, contact_1, email_1   FROM $table_name WHERE cust_id = '".$_SESSION['id']."' ";
	
	$customer_result = mySQL_query($customer_query);
	
    $b1 = mysql_result($customer_result, 0, "comp_name");
	$b2 = mysql_result($customer_result, 0, "bag_box");
	$b3 = mysql_result($customer_result, 0, "box_no");
	$b4 = mysql_result($customer_result, 0, "postal_place");
	$b5 = mysql_result($customer_result, 0, "phone");
	$b6 = mysql_result($customer_result, 0, "contact_1");
	$b7 = mysql_result($customer_result, 0, "email_1");
?>


</head>
<?php include('../include/wait.php') ?>
<body onLoad="MM_showHideLayers('wait','','hide')" onFocus="MM_showHideLayers('wait','','hide'); " onBlur="MM_showHideLayers('wait','','hide');" >

<div class="page_middle_frame">
<form id="feedbackform" method="get" action="quoteRequestWiz6.php" >
  <table width=595 border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#0066FF" border-collapse="collapse">
     <tr>
            <td width="525" >
             Enquiry details:
              <table width="670" id="table_details_display">
                <tr>
                  <td width="123">Sales representative:</td>
                  <td><?php echo $_SESSION['seller'] ?></td>
                </tr>
              </table>
            
            <br />


             Quotation request for:
            
              <table width="670" id="table_details_display">
                <tr>
                  <td width="123">Name:</td>
                  <td colspan="3"><?php echo  $b1 ?></td>
                </tr>
                <tr>
                  <td>Contact person:</td>
                  <td width="195"><?php echo $_SESSION['comp_contact'] ?></td>
                  <td width="86">Phone/cell:</td>
                  <td width="246"><?php echo $_SESSION['contact_phone'] ?></td>
                </tr><br />


                <tr>
                  <td>Address:</td>
                  <td colspan="3"><?php echo $b2." ".$b3.", ".$b4?></td>
                </tr>
                <tr>
                  <td>Telephone:</td>
                  <td><?php echo $b5 ?></td>
                  <td>e-mail:</td>
                  <td><?php echo $b7 ?></td>
                </tr>
              </table>
            
<br />
               Quotation details:
                <table width="670" id="table_details_display">
                  <tr>
                    <td width="116">Enquiry date:</td>
                    <td colspan="5"><strong><span class="wizard"><?php echo date("d-m-Y", strtotime($_SESSION['receive_date'])) ?></span></strong></td>
                  </tr>
                  <tr>
                    <td>Project type:</td>
                    <td colspan="5"><?php echo $_SESSION['project'] ?></td>
                  </tr>
                  <tr>
                    <td>Project no:</td>
                    <td width="146"><?php echo $_SESSION['project_no'] ?></td>
                    <td width="58" align="right">Area:</td>
                    <td width="114"><?php echo $_SESSION['project_area'] ?></td>
                    <td width="57" align="right">Place:</td>
                    <td width="151"><?php echo $_SESSION['project_place'] ?></td>
                  </tr>
                  <tr>
                    <td>Project description:</td>
                    <td colspan="5"><?php echo $_SESSION['description'] ?></td>
                  </tr>
                </table>
              
<br />

          <label class="label_std" style="color:#F00;">A quote number will be generated on saving the request. This number will be shown on the request view.</label>
           
<br />
<br />

            <div class="wizard_frame">
              <label class="label_std">If you want to make changes use the 'Prev' button to go back. <br />
              Click 'New' to make a new entry or to finish the wizard click 'Finish'.</label>
           </div>
       </td>
           
    </tr>
    <tr>
    <td>
          
              <table width="675" height="50" align="center" id="table_button_bar">
                <tr>
                  <td width="117" valign="top"><input type="button" name="lastprev_button" class="imagebutton" value="Prev" onClick="needToConfirm = false;MM_showHideLayers('wait','','show');MM_goToURL('parent','quoteRequestWizbase.php?s=6&amp;p=2');return document.MM_returnValue" /></td>
                  <td width="115" valign="top">
                    <input name="s" type="hidden" id="s" value="5" />
                    <input name="p" type="hidden" id="p" value="5" />
                  </td>
                  <td width="99" valign="top"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onClick="needToConfirm = false; cancel_confirmation(1, '../sales/sales_main.php?date='); " value="Cancel" /></td>
                  <td width="255" align="right" valign="top"><input type="submit" name="new_button" class="imagebutton" id="new_button" value="New" onClick="needToConfirm = false; MM_showHideLayers('wait','','show');" onMouseDown="MM_showHideLayers('wait','','show');"  />
                      <td width="65" align="right" valign="top"><input  name="finish_button" type="submit" class="imagebutton" id="finish_button" value="Finish" onClick="needToConfirm = false;MM_showHideLayers('wait','','show')"  />                                        
              </table></td>
          </tr>
  </table>
 
  
</form>
</div>
</body>

