<?php
include_once('includes/top.php');
include_once('opendb.php');
$brcode=$_SESSION['brcode'];
$user=$_SESSION['user'];
//$br=$_SESSION['branch'];
if(strlen($user)<=0)
{
  print "<script> alert('Invalid User'); document.location='inde.php' </script>";
  return;
}
?>
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Online Shopping and Inventory Management System</title>
<style>
#txt{
font-family: Arial, Helvetica;
background-color: #F2F2F2;

}


.submit button { 
	background: -moz-linear-gradient(center top, #f3f3f3, #dddddd);
	background: -webkit-gradient(linear, left top, left bottom, from(#f3f3f3), to(#dddddd));
	background:  -o-linear-gradient(top, #f3f3f3, #dddddd);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f3f3f3', EndColorStr='#dddddd');
	border-color:#000; 
	border-width:1px;
	border-radius:4px 4px 4px 4px;
	-moz-border-radius: 4px;
    -webkit-border-radius: 4px;
	color:#333;
	cursor:pointer;
	display:inline-block;
	padding:6px 6px 4px;
	margin-top:10px;
	font:12px; 
	width:100px;
}

.button:hover { background:#ddd; }

</style>

<link type="text/css" href="includes/style1.css" rel="stylesheet" />
<link type="text/css" href="css/form1.css" rel="stylesheet" />

<?php //include('includes/top.php'); ?>
<body style="text-align: center; height:100%;width:100%;margin: 0 auto !important;">
<br><br><br><br>
 <?
  $qry=mysqli_query($db,"select distinct(invno) from prodinvoicewholesale where brcode='$brcode' order by invno ");
 ?>
 
<table align='center'>
<form name='f1' action='countersale_wholesaleedit.php' onsubmit="return validateForm()"  >
           <tr><td> <b><font style="color:white;">Invoice Number:</font></b></td><td><select id="cid"  name='inno' >
          <option>-Select-</option>
           <?
           while($row=mysqli_fetch_array($qry))
             {
                print "<option>$row[0]</option>"  ;
             }?>
</td><td ><input type='submit' name='edit' value='OpenPage' ></td></tr>

           








</table>




</body>