<?php
session_start();
// ============
include("../../php_crud/my_class.php");
$obj=new my_class();
// ============
$branchid = $_SESSION['LOGIN_BRANCH'];
extract($_GET);
?>
<script src="module/ct/js/result.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;">

<legend><div class="widget-header header-color-green2">
<h4 class="lighter smaller" style="font-weight:bold;">Class Test Result Processing</h4></div></legend>




<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" id="branch_control">
					<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" id="branch_control">
				<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" id="branch_control">
				<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">Exam Term<font color="#FF0000">*</font></label>
			<div class="controls">
				<!--<select class="select_list" id="exam_term" onchange="call_sub(this.value)">-->
				<select class="select_list" id="exam_term" onchange="call_sub()">
					<option value="">---SELECT---</option>
						<?php 
						$table_name="_int_exam_term";
						$column="_id,_term_name";
						$where_cond="_branch_id='".$_SESSION['LOGIN_BRANCH']."' 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['_term_name']."</option>";
						}
						?>
				</select>
			</div>
		</div>		
	</div>		
	<div class="span3">
		<div class="control-group">
			<label class="control-label" for="form-field-1">Subject<font color="#FF0000">*</font></label>
				<!--<select id="sub_id" class="sub-select" onchange="call_term(this.value)">-->
				<select id="sub_id" class="sub-select" onchange="">
					<option value="">- - - Select Subject - - -</option>
				</select>
		</div>
	</div>
	 
	<div class="span3">
		<div class="control-group" >
			<label class="control-label" for="form-field-1">Select Exam Session<font color="#FF0000">*</font></label>
			<div class="controls" id="branch_control">
				<select class="select_list" id="exam_session">
					<option value="">- - Select - -</option>
					<?php
		   			for ($x = date('Y')-1; $x <= date('Y')+2; $x++) {
					?>
		   			<option <?php if($x==date('Y')) echo 'selected'; ?> value="<?php echo $x; ?>"><?php echo $x; ?></option>
		   			<?php } ?>		   		
		    	</select>
			</div>
		</div>
		
	</div>

	<div class="span3">
		<div class="control-group" >
			<label class="control-label" for="form-field-1">Class Test<font color="#FF0000">*</font></label>
			<select id="method" class="sub-select" onchange="call_ct_count(this.value)">
				<option value="">---Process Method---</option>	
				<option value="1">Best</option>
				<option value="2">Average</option>		
			</select>
		</div>	
	<div class="control-group best"  >
		<label class="control-label" for="form-field-1">Class Test<font color="#FF0000">*</font></label>
		<select id="method" class="sub-select" onchange="">
			<option value="">---Process Method---</option>	
			<option value="1">Best</option>
			<option value="2">Avarage</option>		
		</select> 
	</div>
</div>
</div>
 

	<div class="row-fluid" style="margin-left:50px;">       
		<div class="span4">
			<div class="control-group">
					<label class="control-label" for="form-field-1">&nbsp;</label>

				<div class="controls">
					<button class="btn btn-small btn-success" type="button" id="btn_save">
						<i class="icon-ok bigger-100"></i>
						Save
					</button>

					&nbsp; &nbsp; &nbsp;
					<button class="btn btn-small btn-danger" type="reset" id="btn_reset">
						<i class="icon-undo bigger-100"></i>
						Reset
					</button>
				</div>
			</div>
		</div>
	</div>
	<br/> 
</div>	
	
	<div class="row-fluid">       
		<div id="ct_result_prcess_div" class="span12">
			 
		</div>
	</div>