<?php

if(!$session->isRadstoneReceptionUser() && !$session->isAdmin()){
	?>
	<script language="javascript" type="text/javascript">
        <!--
		  window.location="denied.php";
        -->
   </script>
   
	   <?php 
}else{

?>


<link rel="stylesheet" type="text/css" href="../css/jquery.autocomplete.css" />
<script type="text/javascript" src="../css/jquery.1.4.2.js"></script>
<script type="text/javascript" src="../css/jquery.autocomplete.js"></script>
<link rel="stylesheet" type="text/css" href="../css/wizard.css" />
<script>
 $(document).ready(function(){
  $("#order_no_text").autocomplete("order_autocomplete.php", {
        selectFirst: true
  });
 });
</script>

      
<form id="form1" method="get" action="editWizbase.php"> 
  <table width=595 border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#0066FF" border-collapse="collapse">
    <tr>
      <td width="525" ><?php If  ($_SESSION['order_no']!="") { ?>  <p class="wizard2"> <img src="../img/icon-error.png" alt="." width="30" height="30" />&nbsp;&nbsp;&nbsp;&nbsp;
        <label class="std">Order no" <?php echo $_SESSION['order_no'] ?>" does not exist or cannot be edited anymore.<br />
Enter a new order no.</label>
      </p><?php } ?>
        <p class="wizard">
        <label class="std">enter order number to change delivery date:&nbsp;&nbsp;</label> 
        <input type="text" class="wizard1" name="order_no_text" id="order_no_text" "this.value='';" >
        <br />
      <font size="1" color="red"><b>NOTE: only orders which are not fully delivered yet can be edited</b></font></p>
        <br>
<br>

        
        
    </tr>
    <tr>
      <td><table width="590" height="50" align="center" id="tableButtonBar">
          <tr>
            <td width="117">&nbsp;</td>
            <td width="115"><span class="wizard">
              <input name="s" type="hidden" id="s" value="35" />
              <input name="p" type="hidden" id="p" value="35" />
            </span></td>
            <td width="99">&nbsp;</td>
            <td width="125"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onClick="needToConfirm = false; confirmRefresh();" value="Cancel" /></td>
            <td width="110" align="left"><input type="submit" name="next_button" id="next_button" class="imagebutton" value="Next" onClick="needToConfirm = false; " /></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
<script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("form1");
  frmvalidator.EnableMsgsTogether();
  frmvalidator.addValidation("order_no_text","req","Enter order number to edit.");
  </script>

</body>

<?php } ?>