<?php
session_start();
// ============
include("../../asset/theme/css/myfunc.php");
include("../../php_crud/my_class.php");
$obj=new my_class();
// ============
extract($_GET);
$branchid = $_SESSION['LOGIN_BRANCH'];

?>

	 

	 <table id="sample-table-273" class="table table-striped table-bordered table-hover" style="font-size:10px; width: 79%;">
		<thead>
			<th>Sl</th>
			<th>Fee Head</th>
			<th>Amount</th>
			<th>Purpose</th>
			<th>Action</th>
			
			
			
		</thead>
		<tbody>
			<?php

			 $i=0;
			foreach($obj->View_All_By_Cond("_fee_details_invoice","_invoice_no IS NULL AND _br_id='$branchid' AND _month='$month' AND _year='$year' AND _std_id='$student_id' ") as $value){		 
						
			$i++;
			
			?>	
			<tr id="delete">


				<td class="td_pad">
    
					<?php echo $i; ?>
				</td>
				<td class="td_pad">

				<?php /*?><select class="select_list e_fee_head" id="e_fee_head" name="fee_head[]">
		   			<?php 
							foreach($obj->View_All_By_Cond("_int_fee_head","_branch_id='$branchid'") as $value1)
														
							{
								$selected='';
								if($value1['_fee_head']==$value['_fee_head']){
								$selected='selected';
							}
																
							echo "<option value='".$value1['_fee_head']."' ".$selected.">".$value1['_fee_head']."</option>";
							}
					?>
		   		</select><?php */?>
					<?php echo $value['_fee_head']; ?>
				</td>
				<td class="td_pad" >
				<input name="amount[]" id="e_amount" value="<?php echo $value['_amount']; ?>" type="text">
				<input type="hidden" id="e_id" name="id" value="<?php echo $value['_id'];?>"/>
				
				</td>
				<td class="td_pad" >
				<input name="purpuse[]" id="e_purpuse" value="<?php echo $value['_purpuse']; ?>" type="text">
				</td>
				<td class="td_pad">
					<?php
					if($_SESSION['delete']=='Y'){
					?>	
					<i class="icon-trash bigger-170" style="hover:cursor;" href="#modal-table" data-toggle="modal" id="del" onclick="delete_invoice(<?php echo $value['_id'];?>,<?php echo $value['_std_id']; ?>,<?php echo $value['_month']; ?>,<?php echo $value['_year']; ?>,<?php echo $value['_class_id']; ?>)"></i>
					<?php } ?>
				</td>
				

			</tr>	
			
			<?php
			}
			?>	
			
		</tbody>


	</table>
	   

