<? include("header.php");
//session_start();
//error_reporting(0);
include "checksession.php";
include ("include/db-connect.php");
if(isset($_REQUEST['submit']))
	{
	$supplier_name= $_REQUEST['sup_name'];
	$sup_name=base64_encode($supplier_name);
	?>
    <script>
	window.location='view_havetopay.php?sup=<? echo $sup_name ?>';
	</script>
    <? }?>		 

<div id="content">
  <div class="breadcrumb">
      </div>
              <div class="box">
    <div class="heading">
      <h1><img src="view/image/home.png" />Payable Amount</h1>
    </div>
    <div class="content">
        <div class="dashboard-heading">View Payable report</div>
        <div class="dashboard-content">
        
 
 <?php if($_REQUEST['no']=='suc'){ echo "<div class='alert_succes'>Enter Again</div>"; } else { echo "";}?>

 <form method="post" id="client" enctype="multipart/form-data">
 			 <?php
                 $product_id= $_REQUEST['pid'];
				 $query = mysql_query("SELECT * FROM ".$SUPPLIER."");
                ?>
              
              <table width="50%" align="center" cellpadding="8">
              <tr>
              <td style="font-size:18px;">Supplier Name</td>
              <td><select name="sup_name" required="required" style="width:300px;height:30px;" autofocus="autofocus">
                <option value="" hidden="">Select One</option>
                <?php
				   while($rows = mysql_fetch_array($query)){ ?>
                <option value="<?php echo $rows['supplier_name']; ?>"><?php echo ucwords($rows['supplier_name']); ?></option>
                <?php } ?>
                </select></td>
              </tr>
              <tr>
              <td>&nbsp;</td>
              <td><input type="submit" name="submit" value="Next&nbsp;&gt;&gt;" style="background:#090;color:#FFF;width:80px;height:30px;border:0px;border-radius:10px 6px;font-family:'Comic Sans MS', cursive"></td>
              </tr>
              </table>
   </form>
      </div>
    </div>
  </div>
</div>
</div>
<?  include("footer.php"); ?>