<?php include "header.php"; 
if($login_type=='admin'){
?> <section class="content">
      <div class="container-fluid">
                <!-- Page Header -->
                <div class="col-lg-12">
                    
   <div class="card card-danger">
              <div class="card-header">
                <h3 class="card-title">Software Payment Details <?php echo $code; ?></h3>
              </div>

      
              <!-- /.card-header -->
              <div class="card-body p-0">
                <table class="table table-sm">
                  <thead>
                    <tr>
                      <th style="width: 10px">#</th>
                      <th>Details</th>
                      <th>Mode</th>
                      <th style="width: 40px">Amount</th>
                      <th style="width: 40px">Date</th>
                       <th style="width: 40px">Note</th>
                    </tr>
                  </thead>
                  <tbody>
                  <?php
	 
$query = "SELECT * FROM soft_pay where code='$code'";
$numresults=mysql_query($query);
$numrows=mysql_num_rows($numresults);
$result = mysql_query($query) or die("Couldn't execute query");


?>
                 
                    <?php
while ( $a_row = mysql_fetch_array( $result ) )
 {?>
 
                    <tr>
                      <td><?php echo $a_row['id']; ?></td>
                      <td><?php echo $a_row['title']; ?></td>
                      <td>
                                <?php echo $a_row['credit_debit']; ?>           </td>
                      <td> <?php echo $a_row['amount']; ?></td>
                      <td><?php echo $a_row['cdate']; ?></td>
                      <td><?php echo $a_row['note']; ?></td>
                    </tr>
                    
                    <?php $counter++;
					$amountt+=$a_row['amount'];
					
					}?>
                    <tr style="background-color:#FF0000; color:#FFFFFF">
                      <td></td>
                      <td colspan="2"><div align="right">Dues =                     </div></td>
                      <td><?php echo $amountt; ?></td>
                      <td><span class="badge bg-success"></span></td>
                      <td><span class="badge bg-success"></span></td>
                    </tr>
                  </tbody>
                </table>
              </div>
              <!-- /.card-body -->
            </div>

   

 
  
 
</div></div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
  </div><?php } include "footer.php"; ?>