
<div class="page-content">




<?php
include("common/sitemap.php");
?>                            <div class="container-fluid">
                                


<div data-widget-group="group1">

<div class="row">
		<div class="col-md-9">
			<div class="alert alert-info mb-xl">
				<h3>Search</h3>
<div class="form-group"><form action="#" method="post">
					<div class="col-sm-5">
						<input type="text" class="form-control" name="date" placeholder="Please Select Date" id="datepicker"/>
					</div>

					
						

					<div class="col-sm-2">
<button class="btn-primary btn" type="submit">Submit</button>					</div></form>
<br />


				</div>			</div>
		</div>
	</div>

	
	
	<div class="row">
	
	
		<div class="col-md-12">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h2>List</h2>
					<div class="panel-ctrls"></div>
				</div>
				<div class="panel-body no-padding" style="padding:20px">
				<?php
				$timestamp = strtotime($_REQUEST['date']);
				$date=date('d-m-Y',$timestamp);
				if($_REQUEST['date'] !='')
				{
				
				?>
					<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%">
						<thead>
							<tr>
								<th width="3%">S.No.</th>
								<th width="13%">Receipt No</th>
								<th width="16%">SID</th>
								<th width="49%">Student Name</th>
								<th width="19%">Amount</th>
							</tr>
						</thead>
						
						<tbody>
							<?php
							$GetList = mysql_query("SELECT * FROM  `sgvu_finence_receipt1` WHERE  `date` =  '$date' AND `status` ='3' ORDER BY  `sgvu_finence_receipt1`.`recpt_no` ASC ");
							while($GetList1 = mysql_fetch_assoc($GetList))
							{
							 $s =$_REQUEST['v'];

$u = $s+0;
							
							?>
							
							<tr class="odd">
								<td align="center"><?php echo $_REQUEST['v'] = $u+1; ?></td>
								<td><?php echo $GetList1['recpt_no']; ?></td>
								   <td class="center"><?php echo $GetList1['sid']; ?>
</td>
								   <td class="center"><?php 
												$GetStudent=mysql_query("SELECT * FROM  `sgvu_cash_receipt` WHERE  `recpt_no` =  '$GetList1[recpt_no]'");
												$GetStudent1=mysql_fetch_assoc($GetStudent);
												echo $GetStudent1['student_name'];
												 ?>
</td>
								   <td class="center">Rs. <?php 
												if($GetList1['ip']=='2')
												{
												echo '00';
												}
												else
												{
												echo $amt[]=$GetList1['amount']; 
												}
												
												?>
</td>
							   </tr>
							   <?php
							   }
							   ?>
							   
							   
						
							
						</tbody>
						<tfoot><tr>
								<th width="3%"></th>
								<th width="13%"></th>
								<th width="16%"></th>
								<th width="49%"><div align="right">G.Total</div></th>
								<th width="19%">Rs.<?php echo array_sum($amt);?></th>
							</tr></tfoot>
					</table>
					<a href="daily-report-cash.php?id=<?php echo $convert->encode($date);?>" target="_blank" class="btn btn-inverse"><i class="ti ti-printer"></i> Print</a>
					<?php
					}
					else
					{
					echo '<h5>Please select date</h5>';
					}
					?>
					
					
									</div>
				<div class="panel-footer"></div>
			</div>
		</div>
	</div>
	
	
	

	
	
	
	
	
</div>
                            </div> <!-- .container-fluid -->
                        </div>
						
						<script type="text/javascript" src="assets/js/jquery-1.10.2.min.js"></script> 							<!-- Load jQuery -->
<script type="text/javascript" src="assets/js/jqueryui-1.10.3.min.js"></script> 							<!-- Load jQueryUI -->
<script type="text/javascript" src="assets/js/bootstrap.min.js"></script> 								<!-- Load Bootstrap -->
<script type="text/javascript" src="assets/js/enquire.min.js"></script> 									<!-- Load Enquire -->

<script type="text/javascript" src="assets/plugins/velocityjs/velocity.min.js"></script>					<!-- Load Velocity for Animated Content -->
<script type="text/javascript" src="assets/plugins/velocityjs/velocity.ui.min.js"></script>

<script type="text/javascript" src="assets/plugins/wijets/wijets.js"></script>     						<!-- Wijet -->

<script type="text/javascript" src="assets/plugins/codeprettifier/prettify.js"></script> 				<!-- Code Prettifier  -->
<script type="text/javascript" src="assets/plugins/bootstrap-switch/bootstrap-switch.js"></script> 		<!-- Swith/Toggle Button -->

<script type="text/javascript" src="assets/plugins/bootstrap-tabdrop/js/bootstrap-tabdrop.js"></script>  <!-- Bootstrap Tabdrop -->

<script type="text/javascript" src="assets/plugins/iCheck/icheck.min.js"></script>     					<!-- iCheck -->

<script type="text/javascript" src="assets/plugins/nanoScroller/js/jquery.nanoscroller.min.js"></script> <!-- nano scroller -->

<script type="text/javascript" src="assets/js/application.js"></script>
<script type="text/javascript" src="assets/demo/demo.js"></script>
<script type="text/javascript" src="assets/demo/demo-switcher.js"></script>

<script type="text/javascript" src="assets/plugins/datatables/jquery.dataTables.js"></script>
<script type="text/javascript" src="assets/plugins/datatables/dataTables.bootstrap.js"></script>
<script type="text/javascript" src="assets/demo/demo-datatables.js"></script>
<script type="text/javascript" src="assets/plugins/form-daterangepicker/moment.min.js"></script>              			<!-- Moment.js for Date Range Picker -->

<script type="text/javascript" src="assets/plugins/form-colorpicker/js/bootstrap-colorpicker.min.js"></script> 			<!-- Color Picker -->

<script type="text/javascript" src="assets/plugins/form-daterangepicker/daterangepicker.js"></script>     				<!-- Date Range Picker -->
<script type="text/javascript" src="assets/plugins/bootstrap-datepicker/bootstrap-datepicker.js"></script>      			<!-- Datepicker -->
<script type="text/javascript" src="assets/plugins/bootstrap-timepicker/bootstrap-timepicker.js"></script>      			<!-- Timepicker -->
<script type="text/javascript" src="assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script> <!-- DateTime Picker -->

<script type="text/javascript" src="assets/plugins/clockface/js/clockface.js"></script>     								<!-- Clockface -->


<script type="text/javascript" src="assets/demo/demo-pickers.js"></script>

