<!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');	
include('../include/formValidations.php');

$quote_no=$_GET['quote_no'];
$status=$_GET['status'];
$p=$_GET['p'];

?>


<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]+"'");
}
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
//-->
</script>

<style>
label.label_std{
	margin-left:5px;
    line-height:20px;
	padding-top:6px;
    color:#000;
    text-shadow:1px 1px 1px #fff;
    font:bold 12px Arial;
}

input.imagebutton{
	background-color:#E1E1E1;
	width: 100px;
	height: 24px;
	border:solid;
	border-width:1px;
	border-color:#FB6808;
	cursor:pointer;
	color:#000000;
	font:bold 12px Arial;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	-moz-box-shadow:0px 0px 0px #CCC;
	-webkit-box-shadow:0px 0px 0px #CCC;
	box-shadow:0px 0px 0px #CCC;
	
}
</style>


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

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

<table width="470" border="0" align="center" cellpadding="0" cellspacing="0" class="list2">
  <tr>
  <?php if ($status=='undo') { ?>
    <td align="center"><label class="label_std">Do you want to undo the acceptance of Quotation no Q<?php echo $quote_no ?>?<br /><br />

If you select "Yes", the status of this quotation will be reversed to "Pending"</label>
	  <input name="quote_no_text" type="hidden" value="<?php echo $quote_no ?>" />
      </td>
  <?php } ?> 
  <?php if ($status=='cancel') { ?>
    <td align="center"><label class="label_std">Do you want to cancel this wizard for creating job no J<?php echo $quote_no ?>?<br />
<br />
If you select "Yes", the status of this quotation will be reversed to "Pending"</label>
	<input name="quote_no_text" type="hidden" value="<?php echo $quote_no ?>" />
      </td>
  <?php } ?>  
  </tr>
  <tr>
    <td height="45" align="center"><br />
      <input name="input" type="submit" value="Yes" class="imagebutton"  />
      <input name="button" type="button" class="imagebutton" id="button" onclick="MM_goToURL('parent','../sales/acceptanceWizbase.php?p=<?php echo $p ?>&s=');return document.MM_returnValue"  value="Cancel" />      
    </td>
  </tr>
</table>
</form>

</body>
</html>