<?PHP 
include("header.php");
//session_start();
//error_reporting(0);
include "checksession.php";
include "include/db-connect.php";
?>
     
  <div id="content">
  <div class="breadcrumb">
      </div>
              <div class="box">
    <div class="heading">
      <h1><img src="view/image/home.png" alt="" /> Supplier Balance</h1>
    </div>
    <div class="content">
      <div class="overview" style="width:43%; margin-left:300px;">
        <div class="dashboard-heading"> 
		  Supplier Balance
        </div>
        <div class="dashboard-content">
        

  <table class="list" cellspacing="0" > 
			<thead> 
                <tr>
                <td class="left">S.No</td>
                <td class="left">Supplier Name</td>
                <td class="left">Amount</td> 
                </tr>
              </thead>
			
			<tbody> 
       <?php 
		
		$qur="select * from `supplier` order by `id` asc"; 
		$result = mysql_query($qur)or die('Have an error in viewing data'.mysql_error());
		while ($row_section = mysql_fetch_array($result)) 
			{
				   $bal_amount= $row_section['bal_amount'];
			  ?>	    
			    <tr> 
                <td class="left"><? echo $ii=$ii+1; ?> </td>
                <td class="left"><?php echo $row_section['supplier_name']; ?> </td>
                <td class="left"><?php echo $bal_amount; ?> </td>
				</tr> 	 
            <?php } ?> 
			</tbody> 
			</table>
        </div>
        <div align="right"><?php echo $pagination; ?> 	</div>	
      </div>
                </div></div>
 				</form>
                 <script type="text/javascript">
						function formCallback(result, form) 
						{
							window.status = "valiation callback for form '" + form.id + "': result = " + result;
						}
						var valid = new Validation('profit_id', {immediate : true, onFormValidate : formCallback});
						Validation.addAllThese([
							['validate-password-confirm', 'Your confirmation password does not match your first password, please try again.', {
								equalToField : 'confirm_password'

							}]
						]);
					</script>
      </div></div></div>
    </div>
  </div>
</div>
</div>
<div id="footer">Copyright &copy; 2014 | Powered by <a href="http://linikantech.com/" target="_blank">Linikantech</a><!--<a href="http://www.opencart.com">OpenCart</a> &copy; 2009-2016 All Rights Reserved.<br />Version 1.5.6.4--></div>
</body></html>