<?php
	require "../commonincludefiles.php";
   	$objSemester = new LecMgmt();
	$i=0;
	$order_field=" date_id ";
	$order_type=" ASC ";
	$rs = $objSemester->getAllRecordsdate($limit,$start,$where,$order_field,$order_type);
	$total = dbRows($rs);
	$SemesterData = array("count" => $total, "data" => array());
	if(dbRows($rs) > 0){
		while($row = dbArray($rs)){
			$temparray["date_id"]  = $row["date_id"];
			$temparray["date_name"]  = $row["date_name"];
			
			$SemesterData["data"][$i] = $temparray;   
			$i++;
		}
	}
	echo json_encode($SemesterData);	
?>