<?php
session_start();
// ============
include("../../asset/theme/css/myfunc.php");
include("../../php_crud/my_class.php");

$obj=new my_class();


?>
<script src="module/fees/js/fee_report.js" type="text/javascript"></script>

<div class="row-fluid" style="background-color:#f5f5f5;-webkit-box-shadow: 0 8px 6px -6px black; -moz-box-shadow: 0 8px 6px -6px black; box-shadow: 0 8px 6px -6px black; padding-bottom:10px;">
	<legend>
		<div class="widget-header header-color-green2">
			<h4 class="lighter smaller" style="font-weight:bold;">Total Fee Collection By Date</h4>
		</div>
	</legend>
	<div class="row-fluid">
		<div class="span4">
			<div class="control-group">
				<label class="control-label" for="id-date-range-picker-2">Select Date range</label>
				<div class="control-group">
					<div class="row-fluid input-prepend">
						<span class="add-on">
							<i class="icon-calendar"></i>
						</span>
						<input class="date_range" type="text" name="date-range-picker-2" id="id-date-range-picker-2" />
					</div>
				</div>
			</div>
		</div>
		<div class="span4">
			<div class="control-group" >
				<label class="control-label" for="form-field-1">Select Medium<font color="#FF0000">*</font></label>
				<div class="controls">
					<select class="select_list" id="medium_id">
						<option value="">---SELECT---</option>
					<?php 
						$table_name="_int_institute_setup";
						$column="DISTINCT(_name)";
						$where_cond="_type='ME' AND _status='A'";
						$data_list=$obj->View_colmn_By_Cond($table_name,$column,$where_cond);
											
						foreach($data_list AS $index1=>$data4_institute){ 
							echo "<option value='".$data4_institute['_name']."'>".$data4_institute['_name']."</option>";
						}
					?>
					</select>
				</div>
			</div>
		</div>
		<div class="span4">
			<div class="control-group">
				<div class="input-prepend">
					<label class="control-label" for="id-date-range-picker-1">.</label>
					<button id="fee_report" class="btn btn-small btn-success" type="button">
						<i class="icon-ok bigger-100"></i>
						Go
					</button>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="row-fluid" id="result_data" style="margin-top: 15px;"></div>

<div id="vw_date_coll_det_modal" class="modal hide fade" style="left: 35%; overflow-x:show; width:70%;" tabindex="-1">
	<div class="modal-header no-padding">
		<div class="table-header">
			<button type="button" class="close" data-dismiss="modal">&times;</button>
			Datewise Total Fee Collection Information (Detailed)
		</div>
	</div>
	<div class="modal-body " id="vw_date_coll_det_body"></div>
	<div class="modal-footer">
		<button class="btn btn-small btn-primary pull-left" type="button" id="btn_update" data-dismiss="modal" onclick="perform_print_det_from_modal()">
			<i class="icon-print bigger-100"></i>
			Print
		</button>
		<button class="btn btn-small btn-danger pull-left" data-dismiss="modal">
			<i class="icon-remove"></i>Close
		</button>
	</div>
</div>

<script type="text/javascript">
		$('#id-date-range-picker-2').daterangepicker({
		format: 'DD/MM/YYYY',
		maxDate: new Date() ,
		minDate: new Date(new Date().setYear(new Date().getFullYear() - 1))
	}).prev().on(ace.click_event, function(){			
		$(this).next().focus();
	});

</script>
