<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  
<script language="JavaScript" src="../jscript/gen_validatorv4.js"  type="text/javascript" xml:space="preserve"></script>

<?php

//include('../include/db.php');
include('../include/session.php');	

$order_no=$_GET['order_no'];
$status=$_GET['status'];
$company=$_GET['company'];

?>

<script language="JavaScript" src="../jscript/go_to_url.js"  type="text/javascript"></script> 

<link rel="stylesheet" type="text/css" href="../css/pop_up.css" />

</head>
<body >
<form action="save_purchase_order_status.php" method="get" name="form1" target="_top" id="form1">

<table width="400" border="0" align="center" cellpadding="0" cellspacing="0" class="list2">
  <tr>
  <td width="212" height="71" align="center"><label class="label_std">Change status purchase order no <?php echo $order_no ?><br /><br />
<?php echo $company ?>
    </label>
  </td>
   
  </tr>
  <tr>
    <td height="43" align="center">
    <?php if ($status=='yes') { ?> <label class="label_std" style="color:#F00"><b>Note: this purchase order has been authorised. It is possible the order has been used already.</b> </label> <?php } ?>
<br />

      <label class="label_std">
      Status authorised:&nbsp;&nbsp;
        <label>
          <input type="radio" name="status_group" value="yes" id="status_group_0"  <?php if ($status=='yes') { ?> checked="checked" <?php } ?> <?php if (($status=='void') OR ($status=='no')) { ?> disabled="disabled" <?php } ?> />
         <?php if ($status=='void') { ?><label style="color:#CCC">yes</label> <?php } else { ?>yes<?php } ?></label>
      
        <label>
          <input type="radio" name="status_group" value="no" id="status_group_1"  <?php if ($status=='no') { ?> checked="checked" <?php } ?>/>
          no</label>
      
        <label>
          <input type="radio" name="status_group" value="void" id="status_group_2"  <?php if ($status=='void') { ?> checked="checked" <?php } ?>/>
          void</label>
      </label>
      <label class="label_std"> </label>
     </td>
  </tr>
  <tr>
    <td height="45" align="center"><br />
    <input name="order_no" type="hidden" value="<?php echo $order_no ?>" />
    <input name="saved_status" type="hidden" value="<?php echo $status ?>" />
      <input name="input" type="submit" value="Change" class="imagebutton"  />
      <input name="button" type="button" class="imagebutton" id="button" onclick="MM_goToURL('parent','../store/void_purchase_order_list.php?date=');return document.MM_returnValue"  value="Cancel" />      
    </td>
  </tr>
</table>
</form>

</body>
</html>