<head>
<script type="text/javascript" src="../jscript/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="../css/wizard.css" />
<script type="text/javascript">
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
</script>
</head>
<?php include('../include/wait.php') ?>
<link href="../css/wait.css" rel="stylesheet" type="text/css">
<body onLoad="MM_showHideLayers('wait','','hide')" onFocus="MM_showHideLayers('wait','','hide');">

<div class="wizard_page_middle_frame">
<form id="feedbackform" method="get" action="acceptanceWiz6.php" >
<div class="wizard_frame">
  <table width="650" align="center" id="table_resume_wizard" >
              <tr>
                <td width="143" align="left" valign="top">Customer:</td>
                <td width="197" align="left" valign="top"><?php echo $_SESSION['comp_name'] ?></td>
                <td width="104" align="left" valign="top">&nbsp;</td>
                <td width="206" align="left" valign="top">&nbsp;</td>
              </tr>
              <?php if ($_SESSION['type']=="corporate") { ?>
              <tr>
                <td align="left" valign="top">Quotation no:</td>
                <td align="left" valign="top">Q<?php echo $_SESSION['quote_no'] ?></td>
                <td align="left" valign="top">Job card no:</td>
                <td align="left" valign="top"><?php echo $_SESSION['job_card_no'] ?></td>
              </tr>
              <?php } ?>
              <tr>
                <td align="left" valign="top">Project:</td>
                <td align="left" valign="top"><?php echo $_SESSION['project'] ?></td>
                <td align="left" valign="top">&nbsp;</td>
                <td align="left" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td align="left" valign="top">Project no:</td>
                <td align="left" valign="top"><?php echo $_SESSION['project_no'] ?></td>
                <td align="left" valign="top">&nbsp;</td>
                <td align="left" valign="top">&nbsp;</td>
              </tr>
              
              <tr> 
                <td align="left" valign="top"><?php if ($_SESSION['type']=="corporate") { echo "Company:"; } else {echo "Customer:" ;} ?></td>
                <td align="left" valign="top"><?php if ($_SESSION['type']=="corporate") { echo  $_SESSION['comp_name'] ; } else {echo $_SESSION['title']." ".$_SESSION['name_2']." ".$_SESSION['comp_name'] ;} ?></td>
                <td align="left" valign="top">&nbsp;</td>
                <td align="left" valign="top">&nbsp;</td>
              </tr>
             
              <tr>
                <td align="left" valign="top">Job value:</td>
                <td align="left" valign="top"><?php echo number_format($_SESSION['received'], 2, '.', ',') ?></td>
                <td align="left" valign="top">Quote value:</td>
                <td align="left" valign="top"><?php echo number_format($_SESSION['value'], 2, '.', ',') ?></td>
              </tr>
              <?php 
			  if ($_SESSION['account']=="cash") { ?>
              <tr>
                <td align="left" valign="top">Receipt:</td>
                <td align="left" valign="top"><?php echo $_SESSION['receipt']?></td>
                <td align="left" valign="top">&nbsp;</td>
                <td align="left" valign="top">&nbsp;</td>
              </tr>
              <?php } ?>
              <?php 
			  if ($_SESSION['account']=="account") { ?>
              <tr>
                <td align="left" valign="top">Order:</td>
                <td align="left" valign="top"><?php echo $_SESSION['order']?></td>
                <td align="left" valign="top">&nbsp;</td>
                <td align="left" valign="top">&nbsp;</td>
              </tr>
              <?php } ?>
              <tr>
                <td align="left" valign="top">Accepted by::</td>
                <td align="left" valign="top"><?php echo $_SESSION['acceptor'] ?></td>
                <td align="left" valign="top">&nbsp;</td>
                <td align="left" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td align="left" valign="top">Order date:</td>
                <td align="left" valign="top"><?php echo date("d-m-Y", strtotime($_SESSION['acceptance_date'])) ?></td>
                <td align="left" valign="top">&nbsp;</td>
                <td align="left" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td align="left" valign="top">Note:</td>
                <td colspan="3" align="left" valign="top"><?php echo $_SESSION['note'] ?>&nbsp;</td>
              </tr>
            </table>
 </div>             
<div class="wizard_spacer_frame" style="height:17px;"></div>
            <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>

<div class="wizard_frame">
              <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','acceptanceWizbase.php?s=6&p=4');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">&nbsp;</td>
                  <td width="125" align="right" valign="top"><input name="cancel_button" type="button" class="imagebutton" id="cancel_button" onClick="editwindow=dhtmlmodal.open('editBox', 'iframe', '../edit_windows/undo_quote.php?quote_no=<?php echo $_SESSION['quote_no'] ?>&status=cancel&p=5', 'Cancel create job', 'width=500px,height=125px,center=1,resize=0,scrolling=0')
needToConfirm = false;
editwindow.onclose=function(){return window}; return false; MM_showHideLayers('wait','','show');" value="Cancel" /></td>
                  <td width="110" align="right" valign="top"><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>
</body>
