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

$department_id;
$section_id;
$operation;
$ct_date;

$det_in = $obj->Details_By_Cond("_int_institute_setup_vw","section_id='$section_id'");
extract($det_in);

?>

<style type="text/css">
.sub-select {
    border: 2px solid red;
    color: blue;
    font-size: 16px;
}
</style>

<div class="row-fluid">
	 	<input type="hidden" id="branchid" name="branchid" value="<?php echo $_SESSION['LOGIN_BRANCH'];?>"/>

	 	<input type="hidden" id="date" name="date" value="<?php echo $ct_date;?>"/>
	 	<input type="hidden" id="exam_session" name="date" value="<?php echo $exam_session;?>"/>
	 	<input type="hidden" id="exam_term" name="date" value="<?php echo $exam_term;?>"/>

	<legend>
		<div class="row-fluid">
			<div class="span12">
				Class Test Marks Entry Sheet for: (<?php echo 'Shift: '.$det_in['shift'].', Medium: '.$det_in['medium'].', Class: '.$det_in['class'].', Department: '.$det_in['department'].', Student Type: '.$det_in['student_type'].', Section: '.$det_in['section']; ?>).
			</div>
			<div class="span4" style="text-align: right;">
				<select id="subject_id" class="sub-select" onchange="call_class_test(this.value,<?php echo $exam_term; ?>)">
					<option value="">- - - Select Subject - - -</option>
					<?php
		   			foreach($obj->ct_sub_names("_br_id='$branchid' AND _dep_id='$department_id'") as $value){
					extract($value);
					?>
		   			<option value="<?php echo $value['_sub_id']; ?>"><?php echo $value['_subject_full_name']; if(!empty($value['_sub_code'])){echo ' ('.$value['_sub_code'].')';} ?>
		   			</option>
		   			<?php } ?>
				</select>
			</div>

			<div class="span3" style="text-align: right;">
			<select id="ct_id" class="sub-select" onchange="call_mark_entry_sheet_by_sub(this.value,<?php echo $section_id; ?>)">
				<option value="">---Class Tests---</option>
			
			</select>
		</div>
		</div>
	</legend>
</div>

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

<div class="row-fluid show_mark_entry_sheet">

</div>
