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

?>
<style type="text/css">
i{
	cursor:pointer;
}

.select_list{
	width: 200px;
}

.input_sub{
	width: 185px;
}
.select_list1{
	width: 100px;
	float: left;
	margin-left: 3px;
	margin-right: 3px;
}
</style>


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


<div class="row-fluid" id="first_part">
<form class="form-vertical" >
	 <input type="hidden" id="branchid" name="branchid" value="<?php echo $_SESSION['LOGIN_BRANCH'];?>"/>
	   
<legend>
<div class="widget-header header-color-green2">
    	<h4 class="lighter smaller" style="font-weight:bold;">Student Wise Scholarship Declare</h4>
    </div>
</legend>
<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; margin-top:-20px;">
<div class="row-fluid">
	<div class="span3">
		<div class="control-group" >
			<label class="control-label" for="form-field-1">Select Shift<font color="#FF0000">*</font></label>

			<div class="controls">
			  	<select class="select_list" id="shift_id" onchange="call_medium(this.value)">
				<option value="">---SELECT---</option>
				<?php 
				$table_name="_int_institute_setup";
				$column="_id,_name";
				$where_cond="_pid='".$_SESSION['LOGIN_BRANCH']."' AND _type='SH' AND _status='A'";
				$data_list=$obj->View_all_data_row_column_By_Cond($table_name,$column,$where_cond);
									
				foreach($data_list AS $index1=>$data4_institute){ echo "<option value='".$data4_institute['_id']."'>".$data4_institute['_name']."</option>";
				}
				?>
				</select>
			</div>
		</div>		
	</div>	
	
	<div class="span3">
		<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" onchange="call_class(this.value)">
		   		<option value="">- - - - - -</option>
		    </select>
			</div>
		</div>
	</div>

	<div class="span3">
		<div class="control-group" >
			<label class="control-label" for="form-field-1">Select Class<font color="#FF0000">*</font></label>

			<div class="controls">
				<select class="select_list" id="class_id" onchange="call_department(this.value)">
		   		<option value="">- - - - - -</option>
		    </select>
			</div>
		</div>
	</div>

	<div class="span3">
		<div class="control-group" >
			<label class="control-label" for="form-field-1">Select Department<font color="#FF0000">*</font></label>

			<div class="controls">
				<select class="select_list" id="department_id" onchange="call_std_type(this.value)">
		   		<option value="">- - - - - -</option>
		    </select>
			</div>
		</div>
	</div>
</div>

<div class="row-fluid">
	<div class="span3">
		<div class="control-group" >
			<label class="control-label" for="form-field-1">Select Student Type<font color="#FF0000">*</font></label>

			<div class="controls">
				<select class="select_list" id="student_type_id" onchange="call_section(this.value)">
		   		<option value="">- - - - - -</option>
		    </select>
			</div>
		</div>
	</div>
	
    
    <div class="span3">
		<div class="control-group" >
			<label class="control-label" for="form-field-1">Select Section<font color="#FF0000">*</font></label>

			<div class="controls">
				<select class="select_list" id="section_id" onchange="call_std_list(this.value)">
		   		<option value="">- - - - - -</option>
		    </select>
			</div>
		</div>
	</div>
    
    <div class="span3">
		<div class="control-group" >
			<label class="control-label" for="form-field-1">Select Session<font color="#FF0000">*</font></label>

			<div class="controls">
    <select id="session_id" name="session_id"  style="width: 200px; line-height:25px;">
			<?php
					for ($j=date('Y'); $j < date('Y')+2; $j++) { 							
					?>
				    <option <?php if($j==$data['_session']){echo 'selected';} ?> value="<?php echo $j; ?>"><?php echo $j; ?></option>
				    <?php } ?>
				</select>
               </div>
		</div>
	</div>
    
    

</div>
</div>
<!-- ============== -->

</form>
</div>



<!-- ============================================================================ -->


<div class="row-fluid section_wise_scholarship"  id="second_part">
</div>




<div id="modal-table_add" class="modal hide fade  " style="overflow-x:show;" tabindex="-1">
	<form class="form-vertical" >
	<div class="modal-header no-padding">
		<div class="table-header">
			<button type="button" class="close" data-dismiss="modal">&times;</button>
			Student Scholarship Declare
		</div>
	</div>
	<div class="modal-body" id="model_table_value_add" style="min-height: 350px !important;
    overflow-y: none;">
	</div>

	<div class="modal-footer">
		<button onclick="call_save_scholar()" class="btn btn-small btn-success" data-dismiss="modal" type="button" style=" display: block; float: left;">
			<i class="icon-ok bigger-100"></i>
			Save
		</button>

		<button class="btn btn-small btn-danger pull-left" data-dismiss="modal" style="float: left;">
			<i class="icon-remove"></i>
			Close
		</button>		
	</div>
	</form>
									
</div>

<!-- ==================================== -->

<div id="modal-table_edit" class="modal hide fade  " style="overflow-x:show;" tabindex="-1">
	<form class="form-vertical" >
	<div class="modal-header no-padding">
		<div class="table-header">
			<button type="button" class="close" data-dismiss="modal">&times;</button>
			Student Scholarship Edit
		</div>
	</div>
	<div class="modal-body" id="model_table_value_edit" style="min-height: 350px !important;
    overflow-y: none;">
	</div>

	<div class="modal-footer">
		<button onclick="call_update_scholar()" class="btn btn-small btn-success" data-dismiss="modal" type="button" style=" display: block; float: left;">
			<i class="icon-ok bigger-100"></i>
			Save
		</button>

		<button class="btn btn-small btn-danger pull-left" data-dismiss="modal" style="float: left;">
			<i class="icon-remove"></i>
			Close
		</button>		
	</div>
	</form>
									
</div>

<!---All Update -->

<div id="modal-table_edit2" class="modal hide fade  " style="overflow-x:show;" tabindex="-1">
	<form class="form-vertical" >
	<div class="modal-header no-padding">
		<div class="table-header">
			<button type="button" class="close" data-dismiss="modal">&times;</button>
			All Students Scholarship Edit
		</div>
	</div>
	<div class="modal-body" id="model_table_value_edit2" style="min-height: 350px !important;
    overflow-y: none;">
	</div>

	<div class="modal-footer">
		<button onclick="call_all_update_scholar()" class="btn btn-small btn-success" data-dismiss="modal" type="button" style=" display: block; float: left;">
			<i class="icon-ok bigger-100"></i>
			Update
		</button>

		<button class="btn btn-small btn-danger pull-left" data-dismiss="modal" style="float: left;">
			<i class="icon-remove"></i>
			Close
		</button>		
	</div>
	</form>
									
</div>



