course details changes done
This commit is contained in:
parent
29767bebe0
commit
ccafe81776
@ -16,23 +16,43 @@ class Studentview_model extends CI_Model
|
|||||||
* */
|
* */
|
||||||
|
|
||||||
// get student list based on login user
|
// get student list based on login user
|
||||||
public function getStudentInfo($requestedBy=null)
|
public function getStudentInfo($requestedBy=null,$requestFrom=null)
|
||||||
{
|
{
|
||||||
$this->db->select('ST.*');
|
if($requestFrom !='1'){
|
||||||
$this->db->from( LOGIN . ' as LO');
|
$this->db->select('ST.*');
|
||||||
$this->db->join( STUDENTS . ' as ST', 'LO.StaffID = ST.StudentID');
|
$this->db->from( LOGIN . ' as LO');
|
||||||
$this->db->where('LO.ID', $requestedBy);
|
$this->db->join( STUDENTS . ' as ST', 'LO.StaffID = ST.StudentID');
|
||||||
$studentDetails = $this->db->get()->first_row();
|
$this->db->where('LO.ID', $requestedBy);
|
||||||
if($studentDetails){
|
$studentDetails = $this->db->get()->first_row();
|
||||||
$result['studentStatus'] = true;
|
if($studentDetails){
|
||||||
$result['studentDetails'] = $studentDetails;
|
$result['studentStatus'] = true;
|
||||||
// get student course details
|
$result['studentDetails'] = $studentDetails;
|
||||||
$result['courseDetails'] = $this->getStudentCourse($studentDetails->StudentID);
|
// get student course details
|
||||||
|
$result['courseDetails'] = $this->getStudentCourse($studentDetails->StudentID);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$result['studentStatus'] = false;
|
||||||
|
$result['studentInfo'] = "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$result['studentStatus'] = false;
|
$this->db->select('ST.*');
|
||||||
$result['studentInfo'] = "";
|
$this->db->from( LOGIN . ' as LO');
|
||||||
|
$this->db->join( STUDENTS . ' as ST', 'LO.StaffID = ST.StudentID');
|
||||||
|
$this->db->where('ST.StudentID', $requestedBy);
|
||||||
|
$studentDetails = $this->db->get()->first_row();
|
||||||
|
if($studentDetails){
|
||||||
|
$result['studentStatus'] = true;
|
||||||
|
$result['studentDetails'] = $studentDetails;
|
||||||
|
// get student course details
|
||||||
|
$result['courseDetails'] = $this->getStudentCourse($studentDetails->StudentID);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$result['studentStatus'] = false;
|
||||||
|
$result['studentInfo'] = "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -273,7 +293,7 @@ class Studentview_model extends CI_Model
|
|||||||
* get student application details
|
* get student application details
|
||||||
* created by kms*/
|
* created by kms*/
|
||||||
public function getStudentApplicationDetails($studentID=null,$courseID=null){
|
public function getStudentApplicationDetails($studentID=null,$courseID=null){
|
||||||
$this->db->select('AS.CourseID,AS.CertificationType,AS.AppDate,AS.Comments,CF.Sem_Year,PLD.ListName');
|
$this->db->select('AS.CourseID,AS.AppDate,AS.Comments,CF.Sem_Year,PLD.ListName');
|
||||||
$this->db->from(APPLICATION_STATUS.' as AS');
|
$this->db->from(APPLICATION_STATUS.' as AS');
|
||||||
$this->db->join(COURSE_FEES.' as CF','CF.ID = AS.CourseID');
|
$this->db->join(COURSE_FEES.' as CF','CF.ID = AS.CourseID');
|
||||||
$this->db->join(COURSE.' as CU', 'CU.CourseID = CF.CourseID');
|
$this->db->join(COURSE.' as CU', 'CU.CourseID = CF.CourseID');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user