<?php 
if ($_SESSION['job_card_no']=='') {
?>
<script language="javascript" type="text/javascript">
          needToConfirm = false;
          window.location="orders_no_return.php";
</script>
<?php
}
else {

$table_name = $_SESSION['db_prefix']."_order_job_lines_supply_temp";
$line_query = "SELECT *  FROM $table_name WHERE job_card_no = '".$_SESSION['job_card_no']."' AND  user_name =  '".$_SESSION['username']."' ";
$line_result = mySQL_query($line_query);
$line_num = mysql_num_rows($line_result);

$cust_id = $_SESSION['cust_id'];
?>

</head>
<?php include('../include/wait.php') ?>

<body onLoad="MM_showHideLayers('wait','','hide')" onFocus="MM_showHideLayers('wait','','hide');"  onBlur="MM_showHideLayers('wait','','hide');">

<div class="wizard_page_middle_frame">
<form id="feedbackform" method="get" action="installJobWiz5.php" >
<div class="wizard_frame">
<?php 
include('../include/customer_block.php');
?>
</div> 
<div class="wizard_frame">
<table width="650" id="table_details_display">
    <tr>
      <td align="left" valign="top">Project:</td>
      <td colspan="2" align="left" valign="top"><?php  echo $_SESSION['project'];  ?></td>
      <td align="left" valign="top"><?php echo 'Job card no:&nbsp;&nbsp;'.$_SESSION['job_card_no'];  ?></td>
    </tr>
    <tr>
      <td align="left" valign="top">Project description:</td>
      <td colspan="3" align="left" valign="top"><?php  echo $_SESSION['project_description'];  ?></td>
      </tr>
    <tr>
      <td align="left" valign="top">Forman:</td>
      <td colspan="3" align="left" valign="top"><?php  echo $_SESSION['forman_name'];  ?></td>
      </tr>
    <tr>
      <td align="left" valign="top">Order date:;</td>
      <td width="186" align="left" valign="top"><?php  echo date("d-m-Y", strtotime($_SESSION['order_date']));  ?></td>
      <td width="86" align="left" valign="top"></td>
      <td width="232" align="left" valign="top"></td>
    </tr>
    <tr>
      <td align="left" valign="top">Installation date:</td>
      <td align="left" valign="top"><?php  echo date("d-m-Y", strtotime($_SESSION['deliver_date']));  ?></td>
      <td align="left" valign="top">Confirmed:</td>
      <td align="left" valign="top"><?php echo $_SESSION['confirm']?><?php if ($_SESSION['confirm']=='no') { ?>
        <img src="../images/exclamation_mark_red_small.png" width="10" height="16">        <?php  } ?></td>
      </tr>
    <tr>
      <td align="left" valign="top">Vehicle:</td>
      <td colspan="3" align="left" valign="top"><?php  echo $_SESSION['vehicle_name'];  ?></td>
    </tr>
    <tr>
      <td width="126" align="left" valign="top">Project place:</td>
      <td colspan="3" align="left" valign="top"><?php echo $_SESSION['project_no'] ?>&nbsp;&nbsp;<?php echo $_SESSION['project_area']?>&nbsp;&nbsp;<?php echo $_SESSION['project_place']?></td>
      </tr>
    <tr>
      <td align="left" valign="top">Route description:</td>
      <td colspan="3" align="left" valign="top"><?php  echo $_SESSION['route'];  ?></td>
    </tr>
    <tr>
      <td align="left" valign="top">Notes:</td>
      <td colspan="3" align="left" valign="top"><?php echo $_SESSION['quote_note'] ?>&nbsp;</td>
    </tr>
  </table>
</div>    
       
    <div class="wizard_frame">
          <input name="s" type="hidden" id="s" value="3" />
          <input name="p" type="hidden" id="p" value="3" />
          <label class="label_std">If you want to make changes use the 'Prev' button to go back. <br />
            To finish the wizard click 'Finish'.</label>
    </div>
        <div class="wizard_frame">
      <table width="590" height="50" align="center" id="table_button_bar">
          <tr>
            <td width="117"><input type="button" name="lastprev_button" class="imagebutton" value="Prev" onClick="needToConfirm = false;   MM_showHideLayers('wait','','show'); MM_goToURL('parent','installJobWizbase.php?s=&p=2');return document.MM_returnValue" /></td>
            <td width="115">&nbsp;</td>
            <td width="99">&nbsp;</td>
            <td width="125"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onClick="javascript:cancel_confirmation(1, '../orders/orders_main.php'); needToConfirm = false;" value="Cancel" /></td>
            <td width="110"><input  name="finish_button" type="submit" class="imagebutton" id="finish_button" value="Finish" onClick="needToConfirm = false; MM_showHideLayers('wait','','show');"  /></td>
          </tr>
        </table>
        </div>

</form>
</div>
<?php
}
?>