From b45f71611a1b53e47d9f6fb23ffc00751c6f634c Mon Sep 17 00:00:00 2001 From: resicovenba Date: Tue, 13 Feb 2018 13:33:00 +0530 Subject: [PATCH] student entrollement in different branch with same num : kdk --- .../api/application/models/Student_model.php | 771 ++++---- Apollo/assets/js/controllers/studentCtrl.js | 159 +- .../assets/views/student/student_details.html | 1689 ++++++++--------- .../student/student_details_SuperAdmin.html | 582 +++++- 4 files changed, 1933 insertions(+), 1268 deletions(-) diff --git a/Apollo/api/application/models/Student_model.php b/Apollo/api/application/models/Student_model.php index 2c483c1e..2206b182 100755 --- a/Apollo/api/application/models/Student_model.php +++ b/Apollo/api/application/models/Student_model.php @@ -14,6 +14,7 @@ class Student_model extends CI_Model * created by kdk * */ + // get List of Branchs public function get_branch_list() { $this->db->select('t1.BranchCode,t1.BranchName'); $this->db->from('' . BRANCH . ' as t1'); @@ -48,18 +49,130 @@ class Student_model extends CI_Model } - // get student list based on login user + // get student list based on login user public function get_student_list($loginUserId, $loginUserBranchId, $loginUserType, $getSearchData) { // print_r($getSearchData);exit(); // echo $loginUserId, $loginUserBranchId, $loginUserType; exit(); if ($loginUserType == SUPER_ADMIN) { // list for super admin based on branch - if($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') { + if($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') { + $this->db->select('*'); + $this->db->from('' . STUDENTS . ' as t1'); + // $this->db->order_by('CreatedOn', 'DESC'); + // $this->db->where('BranchCode', $loginUserBranchId); + $this->db->join('' . STUDENTCOURSE . ' as t2', 't2.StudentID = t1.StudentID', 'LEFT'); + $this->db->where('t2.BranchID', $loginUserBranchId); + $this->db->group_by('t2.StudentID'); + $this->db->order_by('t2.CreatedOn', 'DESC'); + $stuDetails = $this->db->get(); + $checkArr = $stuDetails->result(); + if (count($checkArr) > 0) { + $results['studentList'] = true; + $results['student_details'] = $stuDetails->result(); + } else { + $results['studentList'] = false; + }} else { + // print_r($getSearchData);exit(); + // $this->db->select('t1.*'); + // // $this->db->from(STUDENTS); + // $this->db->from('' . STUDENTS . ' as t1'); + // $this->db->order_by('t1.CreatedOn', 'DESC'); + // $this->db->where('t1.BranchCode', $loginUserBranchId); + // $this->db->from('' . STUDENTCOURSE . ' as t2', 't2.StudentID = t1.StudentID', 'LEFT'); + // $this->db->where('t2.UniversityID', $getSearchData["University"]); + // $this->db->where('t2.CourseID', $getSearchData["Course"]); + $University = $getSearchData['University']; + $Course = $getSearchData['Course']; + // $Batch = $getSearchData['Batch']; + $Batch=''; + $StuStatus = $getSearchData['Status']; + + if($StuStatus == ''){ + $subQuery = "SELECT S.* + FROM ".STUDENTS." as S LEFT JOIN ".STUDENTCOURSE." as SC ON SC.StudentID = S.StudentID + LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON + SC.CourseID = C.CourseID + WHERE + (SC.UniversityID = '$University' + OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University')) + AND S.BranchCode = '$loginUserBranchId' + GROUP BY SC.StudentID + ORDER BY S.CreatedOn"; + } else { + $subQuery = "SELECT S.* + FROM ".STUDENTS." as S LEFT JOIN ".STUDENTCOURSE." as SC ON SC.StudentID = S.StudentID + LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON + SC.CourseID = C.CourseID + WHERE + (SC.UniversityID = '$University' + OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University')) + AND S.IsActive = '$StuStatus' + AND S.BranchCode = '$loginUserBranchId' + GROUP BY SC.StudentID + ORDER BY S.CreatedOn"; + } + + $stuDetails = $this->db->query($subQuery); + + // $stuDetails = $this->db->get(); + $checkArr = $stuDetails->result(); + if (count($checkArr) > 0) { + $results['studentList'] = true; + $results['student_details'] = $stuDetails->result(); + } else { + $results['studentList'] = false; + } + } + // if ($loginUserBranchId == 'All') { + // // for getting all branch details + // $staffId = $this->selfGetEmpId($loginUserId); + // $this->db->select('*'); + // $this->db->order_by('CreatedOn', 'DESC'); + // $this->db->from(STAFF); + // // not for SuperAdmin and Student Role code + // $this->db->where_not_in('StaffID', $staffId); + // // $this->db->where('BranchCode', $loginUserBranchId); + // $empDetails = $this->db->get(); + // $checkArr = $empDetails->result(); + // if (count($checkArr) > 0) { + // $results['employeeList'] = true; + // $results['employees_details'] = $empDetails->result(); + // } else { + // $results['employeeList'] = false; + // $results['message'] = 'No record found'; + // } + // } else { + // $staffId = $this->selfGetEmpId($loginUserId); + // $this->db->select('*'); + // $this->db->order_by('CreatedOn', 'DESC'); + // $this->db->from(STAFF); + // // not for SuperAdmin and Student Role code + // $this->db->where_not_in('StaffID', $staffId); + // $this->db->where('BranchCode', $loginUserBranchId); + // $empDetails = $this->db->get(); + // $checkArr = $empDetails->result(); + // if (count($checkArr) > 0) { + // $results['employeeList'] = true; + // $results['employees_details'] = $empDetails->result(); + // } else { + // $results['employeeList'] = false; + // $results['message'] = 'No record found'; + // } + // } + } else if ($loginUserType == ADMIN) { + // list for admin + if($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') { + // print_r($getSearchData);exit(); $this->db->select('*'); - $this->db->from(STUDENTS); - $this->db->order_by('CreatedOn', 'DESC'); - $this->db->where('BranchCode', $loginUserBranchId); + $this->db->from('' . STUDENTS . ' as t1'); + // $this->db->where('BranchCode', $loginUserBranchId); + // $this->db->group_by('user_id'); + $this->db->join('' . STUDENTCOURSE . ' as t2', 't2.StudentID = t1.StudentID', 'LEFT'); + $this->db->where('t2.BranchID', $loginUserBranchId); + $this->db->group_by('t2.StudentID'); + $this->db->order_by('t2.CreatedOn', 'DESC'); + $stuDetails = $this->db->get(); $checkArr = $stuDetails->result(); if (count($checkArr) > 0) { @@ -67,8 +180,9 @@ class Student_model extends CI_Model $results['student_details'] = $stuDetails->result(); } else { $results['studentList'] = false; - }} else { - // print_r($getSearchData);exit(); + } + } else { + // print_r($getSearchData);exit(); // $this->db->select('t1.*'); // // $this->db->from(STUDENTS); // $this->db->from('' . STUDENTS . ' as t1'); @@ -79,128 +193,19 @@ class Student_model extends CI_Model // $this->db->where('t2.CourseID', $getSearchData["Course"]); $University = $getSearchData['University']; - $Course = $getSearchData['Course']; - // $Batch = $getSearchData['Batch']; - $Batch=''; - $StuStatus = $getSearchData['Status']; - - if($StuStatus == ''){ - $subQuery = "SELECT S.* - FROM ".STUDENTS." as S LEFT JOIN ".STUDENTCOURSE." as SC ON SC.StudentID = S.StudentID - LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON - SC.CourseID = C.CourseID - WHERE - SC.UniversityID LIKE '%$University%' - AND SC.CourseID LIKE '%$Course%' - AND S.BranchCode = '$loginUserBranchId' - GROUP BY SC.StudentID - ORDER BY S.CreatedOn"; -} else { - $subQuery = "SELECT S.* - FROM ".STUDENTS." as S LEFT JOIN ".STUDENTCOURSE." as SC ON SC.StudentID = S.StudentID - LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON - SC.CourseID = C.CourseID - WHERE - SC.UniversityID LIKE '%$University%' - AND SC.CourseID LIKE '%$Course%' - AND S.IsActive = '$StuStatus' - AND S.BranchCode = '$loginUserBranchId' - GROUP BY SC.StudentID - ORDER BY S.CreatedOn"; -} - - $stuDetails = $this->db->query($subQuery); - - // $stuDetails = $this->db->get(); - $checkArr = $stuDetails->result(); - if (count($checkArr) > 0) { - $results['studentList'] = true; - $results['student_details'] = $stuDetails->result(); - } else { - $results['studentList'] = false; - } - } - // if ($loginUserBranchId == 'All') { - // // for getting all branch details - // $staffId = $this->selfGetEmpId($loginUserId); - // $this->db->select('*'); - // $this->db->order_by('CreatedOn', 'DESC'); - // $this->db->from(STAFF); - // // not for SuperAdmin and Student Role code - // $this->db->where_not_in('StaffID', $staffId); - // // $this->db->where('BranchCode', $loginUserBranchId); - // $empDetails = $this->db->get(); - // $checkArr = $empDetails->result(); - // if (count($checkArr) > 0) { - // $results['employeeList'] = true; - // $results['employees_details'] = $empDetails->result(); - // } else { - // $results['employeeList'] = false; - // $results['message'] = 'No record found'; - // } - // } else { - // $staffId = $this->selfGetEmpId($loginUserId); - // $this->db->select('*'); - // $this->db->order_by('CreatedOn', 'DESC'); - // $this->db->from(STAFF); - // // not for SuperAdmin and Student Role code - // $this->db->where_not_in('StaffID', $staffId); - // $this->db->where('BranchCode', $loginUserBranchId); - // $empDetails = $this->db->get(); - // $checkArr = $empDetails->result(); - // if (count($checkArr) > 0) { - // $results['employeeList'] = true; - // $results['employees_details'] = $empDetails->result(); - // } else { - // $results['employeeList'] = false; - // $results['message'] = 'No record found'; - // } - - // } - - } else if ($loginUserType == ADMIN) { - // list for admin - if($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') { - // print_r($getSearchData);exit(); - $this->db->select('*'); - $this->db->from(STUDENTS); - $this->db->where('BranchCode', $loginUserBranchId); - // $this->db->group_by('user_id'); - $this->db->order_by('CreatedOn', 'DESC'); - - $stuDetails = $this->db->get(); - $checkArr = $stuDetails->result(); - if (count($checkArr) > 0) { - $results['studentList'] = true; - $results['student_details'] = $stuDetails->result(); - } else { - $results['studentList'] = false; - } - } else { - // print_r($getSearchData);exit(); - // $this->db->select('t1.*'); - // // $this->db->from(STUDENTS); - // $this->db->from('' . STUDENTS . ' as t1'); - // $this->db->order_by('t1.CreatedOn', 'DESC'); - // $this->db->where('t1.BranchCode', $loginUserBranchId); - // $this->db->from('' . STUDENTCOURSE . ' as t2', 't2.StudentID = t1.StudentID', 'LEFT'); - // $this->db->where('t2.UniversityID', $getSearchData["University"]); - // $this->db->where('t2.CourseID', $getSearchData["Course"]); - - $University = $getSearchData['University']; - $Course = $getSearchData['Course']; - // $Batch = $getSearchData['Batch']; - $Batch=''; - $StuStatus = $getSearchData['Status']; - if($StuStatus == '' ){ + $Course = $getSearchData['Course']; + // $Batch = $getSearchData['Batch']; + $Batch=''; + $StuStatus = $getSearchData['Status']; + if($StuStatus == '' ){ $subQuery = "SELECT S.* FROM ".STUDENTS." as S LEFT JOIN ".STUDENTCOURSE." as SC ON SC.StudentID = S.StudentID LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON SC.CourseID = C.CourseID WHERE - SC.UniversityID LIKE '%$University%' - AND SC.CourseID LIKE '%$Course%' - AND S.BranchCode = '$loginUserBranchId' + (SC.UniversityID = '$University' + OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University')) + AND SC.BranchID = '$loginUserBranchId' GROUP BY SC.StudentID ORDER BY S.CreatedOn"; } else { @@ -209,112 +214,110 @@ class Student_model extends CI_Model LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON SC.CourseID = C.CourseID WHERE - SC.UniversityID LIKE '%$University%' - AND SC.CourseID LIKE '%$Course%' - AND S.IsActive = '$StuStatus' - AND S.BranchCode = '$loginUserBranchId' - GROUP BY SC.StudentID - ORDER BY S.CreatedOn"; -} - - - $stuDetails = $this->db->query($subQuery); - - // $stuDetails = $this->db->get(); - $checkArr = $stuDetails->result(); - if (count($checkArr) > 0) { - $results['studentList'] = true; - $results['student_details'] = $stuDetails->result(); - } else { - $results['studentList'] = false; - } - } - - } else if ($loginUserType == EMPLOYEE) { - // list for staff - // list for admin - if($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') { - // print_r($getSearchData);exit(); - - $this->db->select('t1.*'); - $this->db->from('' . STUDENTS . ' as t1'); - $this->db->join('' . STUDENTCOURSE . ' as t2', 't2.StudentID = t1.StudentID', 'LEFT'); - $this->db->where('t2.BranchID', $loginUserBranchId); - $this->db->group_by('t2.StudentID'); - // $this->db->from(STUDENTS); - $this->db->order_by('t2.CreatedOn', 'DESC'); - $stuDetails = $this->db->get(); - $checkArr = $stuDetails->result(); - if (count($checkArr) > 0) { - $results['studentList'] = true; - $results['student_details'] = $stuDetails->result(); - } else { - $results['studentList'] = false; - } - } else { - // print_r($getSearchData);exit(); - // $this->db->select('t1.*'); - // // $this->db->from(STUDENTS); - // $this->db->from('' . STUDENTS . ' as t1'); - // $this->db->order_by('t1.CreatedOn', 'DESC'); - // $this->db->where('t1.BranchCode', $loginUserBranchId); - // $this->db->from('' . STUDENTCOURSE . ' as t2', 't2.StudentID = t1.StudentID', 'LEFT'); - // $this->db->where('t2.UniversityID', $getSearchData["University"]); - // $this->db->where('t2.CourseID', $getSearchData["Course"]); - - $University = $getSearchData['University']; - $Course = $getSearchData['Course']; - // $Batch = $getSearchData['Batch']; - $Batch=''; - $StuStatus = $getSearchData['Status']; - - if($StuStatus == '' ){ - $subQuery = "SELECT S.* - FROM ".STUDENTS." as S LEFT JOIN ".STUDENTCOURSE." as SC ON SC.StudentID = S.StudentID - LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON - SC.CourseID = C.CourseID - WHERE - SC.UniversityID LIKE '%$University%' - AND SC.CourseID LIKE '%$Course%' - AND SC.BranchID = '$loginUserBranchId' - GROUP BY SC.StudentID - ORDER BY S.CreatedOn"; - // ### query branch code changed from student branch code to student course branch code - //AND S.BranchCode = '$loginUserBranchId' -> SC.BranchCode = '$loginUserBranchId' - } else { - $subQuery = "SELECT S.* - FROM ".STUDENTS." as S LEFT JOIN ".STUDENTCOURSE." as SC ON SC.StudentID = S.StudentID - LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON - SC.CourseID = C.CourseID - WHERE - SC.UniversityID LIKE '%$University%' - AND SC.CourseID LIKE '%$Course%' + (SC.UniversityID = '$University' + OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University')) AND S.IsActive = '$StuStatus' AND SC.BranchID = '$loginUserBranchId' GROUP BY SC.StudentID - ORDER BY S.CreatedOn"; - // ### query branch code changed from student branch code to student course branch code - //AND S.BranchCode = '$loginUserBranchId' -> SC.BranchCode = '$loginUserBranchId' - } + ORDER BY S.CreatedOn"; + } + $stuDetails = $this->db->query($subQuery); + // $stuDetails = $this->db->get(); + $checkArr = $stuDetails->result(); + if (count($checkArr) > 0) { + $results['studentList'] = true; + $results['student_details'] = $stuDetails->result(); + } else { + $results['studentList'] = false; + } + } + + } else if ($loginUserType == EMPLOYEE) { + // list for staff + // list for admin + if($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') { + // print_r($getSearchData);exit(); - $stuDetails = $this->db->query($subQuery); + $this->db->select('t1.*'); + $this->db->from('' . STUDENTS . ' as t1'); + $this->db->join('' . STUDENTCOURSE . ' as t2', 't2.StudentID = t1.StudentID', 'LEFT'); + $this->db->where('t2.BranchID', $loginUserBranchId); + $this->db->group_by('t2.StudentID'); + // $this->db->from(STUDENTS); + $this->db->order_by('t2.CreatedOn', 'DESC'); + $stuDetails = $this->db->get(); + $checkArr = $stuDetails->result(); + if (count($checkArr) > 0) { + $results['studentList'] = true; + $results['student_details'] = $stuDetails->result(); + } else { + $results['studentList'] = false; + } + } else { + // print_r($getSearchData);exit(); + // $this->db->select('t1.*'); + // // $this->db->from(STUDENTS); + // $this->db->from('' . STUDENTS . ' as t1'); + // $this->db->order_by('t1.CreatedOn', 'DESC'); + // $this->db->where('t1.BranchCode', $loginUserBranchId); + // $this->db->from('' . STUDENTCOURSE . ' as t2', 't2.StudentID = t1.StudentID', 'LEFT'); + // $this->db->where('t2.UniversityID', $getSearchData["University"]); + // $this->db->where('t2.CourseID', $getSearchData["Course"]); + + $University = $getSearchData['University']; + $Course = $getSearchData['Course']; + // $Batch = $getSearchData['Batch']; + $Batch=''; + $StuStatus = $getSearchData['Status']; + + if($StuStatus == '' ){ + $subQuery = "SELECT S.* + FROM ".STUDENTS." as S LEFT JOIN ".STUDENTCOURSE." as SC ON SC.StudentID = S.StudentID + LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON + SC.CourseID = C.CourseID + WHERE + (SC.UniversityID = '$University' + OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University')) + AND SC.BranchID = '$loginUserBranchId' + GROUP BY SC.StudentID + ORDER BY S.CreatedOn"; + // ### query branch code changed from student branch code to student course branch code + //AND S.BranchCode = '$loginUserBranchId' -> SC.BranchCode = '$loginUserBranchId' + } else { + $subQuery = "SELECT S.* + FROM ".STUDENTS." as S LEFT JOIN ".STUDENTCOURSE." as SC ON SC.StudentID = S.StudentID + LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON + SC.CourseID = C.CourseID + WHERE + (SC.UniversityID = '$University' + OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University')) + AND S.IsActive = '$StuStatus' + AND SC.BranchID = '$loginUserBranchId' + GROUP BY SC.StudentID + ORDER BY S.CreatedOn"; + // ### query branch code changed from student branch code to student course branch code + //AND S.BranchCode = '$loginUserBranchId' -> SC.BranchCode = '$loginUserBranchId' + } + + $stuDetails = $this->db->query($subQuery); - // $stuDetails = $this->db->get(); - $checkArr = $stuDetails->result(); - if (count($checkArr) > 0) { - $results['studentList'] = true; - $results['student_details'] = $stuDetails->result(); - } else { - $results['studentList'] = false; - } - } - } else { - - $results['studentList'] = false; - } - return $results; + // $stuDetails = $this->db->get(); + $checkArr = $stuDetails->result(); + if (count($checkArr) > 0) { + $results['studentList'] = true; + $results['student_details'] = $stuDetails->result(); + } else { + $results['studentList'] = false; + } + } + } else { + + $results['studentList'] = false; + } + return $results; } + // get a student cource list public function get_student_course_list($studentId, $req) { // echo $req['localBranchID'];exit(); $this->db->select('t1.*,t2.UniversityName,t3.CourseName,t3.Specilization1,t3.Specilization2,t4.BatchName'); @@ -353,25 +356,24 @@ class Student_model extends CI_Model // get university list public function get_university_list() { - $this->db->select('*'); - $this->db->order_by('CreatedOn', 'DESC'); - $this->db->from(UNIVERSITY); - $this->db->where('IsActive',1); - $univDetails = $this->db->get(); - $universityDetails = $univDetails->result(); - if (count($universityDetails) > 0) { - $results['univList'] = true; - $results['university_details'] = $universityDetails; - } else { - $results['univList'] = false; - $results['message'] = 'No record found'; - } + $this->db->select('*'); + $this->db->order_by('CreatedOn', 'DESC'); + $this->db->from(UNIVERSITY); + $this->db->where('IsActive',1); + $univDetails = $this->db->get(); + $universityDetails = $univDetails->result(); + if (count($universityDetails) > 0) { + $results['univList'] = true; + $results['university_details'] = $universityDetails; + } else { + $results['univList'] = false; + $results['message'] = 'No record found'; + } return $results; } - //get course for university - + //get course, batch for university public function get_courseBatch_list($univId) { $this->db->select('C.CourseID, C.CourseName,C.Specilization1,C.Specilization2'); $this->db->from(COURSE.' as C'); @@ -379,36 +381,33 @@ class Student_model extends CI_Model $this->db->where('IsActive',1); $courseDetails = $this->db->get(); if($courseDetails->result()){ - $this->db->select('B.BatchCode, B.BatchName'); - $this->db->from(BATCH.' as B'); - $this->db->where('UniversityID',$univId); - $this->db->where('IsActive',1); - $batchDetails = $this->db->get(); - if( $batchDetails->result()) { - $result['courseStatus'] = true; - $result['course_details'] = $courseDetails->result(); - $result['batch_details'] = $batchDetails->result(); - } else { - $result['courseStatus'] = false; - $result['message'] = "No records found!"; - } + $this->db->select('B.BatchCode, B.BatchName'); + $this->db->from(BATCH.' as B'); + $this->db->where('UniversityID',$univId); + $this->db->where('IsActive',1); + $batchDetails = $this->db->get(); + if( $batchDetails->result()) { + $result['courseStatus'] = true; + $result['course_details'] = $courseDetails->result(); + $result['batch_details'] = $batchDetails->result(); + } else { + $result['courseStatus'] = false; + $result['message'] = "No records found!"; + } } else { $result['courseStatus'] = false; $result['message'] = "No records found!"; } - return $result; } public function get_exist_stu_details($data, $reqArr) { // echo $data;exit(); - $this->db->select('t0.*'); $this->db->from('' . STUDENTS . ' as t0'); $this->db->where('t0.StudentID', $data); $personalDetails = $this->db->get()->result(); - $this->db->select('t1.*,t2.UniversityName,t3.CourseName,t3.Specilization1,t3.Specilization2,t4.BatchName, t5.BranchName'); // $this->db->from('' . STUDENTS . ' as t0'); $this->db->from('' . STUDENTCOURSE . ' as t1'); @@ -419,15 +418,13 @@ class Student_model extends CI_Model $this->db->where('t1.StudentID', $data); // $this->db->group_by('t1.StudentID'); $courseDetails = $this->db->get()->result(); - $result['personalDetails'] = $personalDetails; $result['courseDetails'] = $courseDetails; $result['existingStudentDetailsStatus'] = true; - return $result; } - // check exist + // check exist public function check_exist($data, $checkData) { if ($checkData == 'studentId') { @@ -441,14 +438,13 @@ class Student_model extends CI_Model // } else { // $result['existEmpId'] = false; // } - } else if ($checkData == 'mobileNumber') { // check for mobile number $this->db->select('*'); $this->db->from(STUDENTS); $this->db->where('MobileNumber', $data); $details = $this->db->get()->result(); - // echo count($details);exit(); + // echo count($details);exit(); if (count($details) > 0) { // print_r($details);exit(); // echo $details[0]->StudentID;exit(); @@ -458,40 +454,39 @@ class Student_model extends CI_Model $result['existMobile'] = true; $result['message'] = "This Mobile Number is already exist!"; } else { - $this->db->select('*'); - $this->db->from(LOGIN); - $this->db->where('MobileNumber', $data); - $details1 = $this->db->get()->result(); - if ( $details1 > 0) { - $datas['studentId'] = $details1[0]->StaffID; - $datas['type'] = $details1[0]->ListCode; - $result['details'] = $datas; - $result['existMobile'] = true; - $result['message'] = "This Mobile Number is already exist!"; - } else { - $result['existMobile'] = false; - } + $this->db->select('*'); + $this->db->from(LOGIN); + $this->db->where('MobileNumber', $data); + $details1 = $this->db->get()->result(); + if ( $details1 > 0) { + $datas['studentId'] = $details1[0]->StaffID; + $datas['type'] = $details1[0]->ListCode; + $result['details'] = $datas; + $result['existMobile'] = true; + $result['message'] = "This Mobile Number is already exist!"; + } else { + $result['existMobile'] = false; + } } - } else if ($checkData == 'emailId') { - // check for email id - $this->db->select('*'); - $this->db->from(STUDENTS); - $this->db->where('EmailID', $data); - if ($this->db->get()->first_row()) { - $result['existEmailId'] = true; - $result['message'] = "This EmailId is already exist!"; + } else if ($checkData == 'emailId') { + // check for email id + $this->db->select('*'); + $this->db->from(STUDENTS); + $this->db->where('EmailID', $data); + if ($this->db->get()->first_row()) { + $result['existEmailId'] = true; + $result['message'] = "This EmailId is already exist!"; + } else { + $result['existEmailId'] = false; + } } else { - $result['existEmailId'] = false; } - } else { - } return $result; } // add student course public function add_student_course( $studID, $Arr) { - if($this->getBranchActiveStatusforStuAdd($Arr['BranchID'])['branch_active_status'] === '1'){ $this->db->select('*'); $this->db->from(STUDENTCOURSE); @@ -515,8 +510,6 @@ class Student_model extends CI_Model $result['addStuCourseStatus'] = false; $result['message'] = "New Cource Cannot able to create for In-Active Branch"; } - - return $result; } @@ -534,10 +527,10 @@ class Student_model extends CI_Model $this->db->select('*'); $this->db->from(STUDENTS); $this->db->where('MobileNumber', $Arr['MobileNumber']); - if($this->db->get()->first_row()) { - $result['addStudentStatus'] = false; - $result['message'] = "This Student Already exist"; - } else { + if($this->db->get()->first_row()) { + $result['addStudentStatus'] = false; + $result['message'] = "This Student Already exist"; + } else { $this->db->insert(STUDENTS, $Arr); $insert_id = $this->db->insert_id('StudentID'); $courseArr['StudentID'] = $insert_id; @@ -574,50 +567,50 @@ class Student_model extends CI_Model $getUploadStatus = $this->upload_image($imageSource, $size, $target); $imageNameDb = $getUploadStatus['status'] == true ? $getUploadStatus['imageName'] : $getUploadStatus['imageName'] = 'default.jpeg'; $Arr['ProfilePicPath'] = "student/".$imageNameDb; - $this->db->select('*'); + $this->db->select('*'); $this->db->from(STUDENTS); $this->db->where('MobileNumber', $Arr['MobileNumber']); - if($this->db->get()->first_row()) { - $result['addStudentStatus'] = false; - $result['message'] = "This Student Already exist"; - } else { - $this->db->insert(STUDENTS, $Arr); - $insert_id = $this->db->insert_id('StudentID'); - $courseArr['StudentID'] = $insert_id; - if ($this->db->affected_rows() == '1') { - $this->db->insert(STUDENTCOURSE, $courseArr); - if ($this->db->affected_rows() == '1') { - $loginArr['StaffID'] = $courseArr['StudentID']; - $loginArr['ListCode'] = STUDENT; - $loginArr['MobileNumber'] = $Arr['MobileNumber']; - $loginArr['EmailId'] = $Arr['EmailID']; - $loginArr['IsActive'] = $Arr['IsActive']; - $loginArr['CreatedBy'] = $Arr['CreatedBy']; - $loginArr['CreatedOn'] = $Arr['CreatedOn']; - $loginArr['Password'] = ENCR_PASSWORD; - $this->db->insert(LOGIN, $loginArr); + if($this->db->get()->first_row()) { + $result['addStudentStatus'] = false; + $result['message'] = "This Student Already exist"; + } else { + $this->db->insert(STUDENTS, $Arr); + $insert_id = $this->db->insert_id('StudentID'); + $courseArr['StudentID'] = $insert_id; if ($this->db->affected_rows() == '1') { - $result['addStudentStatus'] = true; - $result['message'] = "Successfully student details added"; + $this->db->insert(STUDENTCOURSE, $courseArr); + if ($this->db->affected_rows() == '1') { + $loginArr['StaffID'] = $courseArr['StudentID']; + $loginArr['ListCode'] = STUDENT; + $loginArr['MobileNumber'] = $Arr['MobileNumber']; + $loginArr['EmailId'] = $Arr['EmailID']; + $loginArr['IsActive'] = $Arr['IsActive']; + $loginArr['CreatedBy'] = $Arr['CreatedBy']; + $loginArr['CreatedOn'] = $Arr['CreatedOn']; + $loginArr['Password'] = ENCR_PASSWORD; + $this->db->insert(LOGIN, $loginArr); + if ($this->db->affected_rows() == '1') { + $result['addStudentStatus'] = true; + $result['message'] = "Successfully student details added"; + } else { + $result['addStudentStatus'] = false; + $result['message'] = "Something went wrong.please try again"; + } + } else { + $result['addStudentStatus'] = false; + $result['message'] = "Something went wrong.please try again"; + } } else { $result['addStudentStatus'] = false; $result['message'] = "Something went wrong.please try again"; } - } else { - $result['addStudentStatus'] = false; - $result['message'] = "Something went wrong.please try again"; - } - } else { - $result['addStudentStatus'] = false; - $result['message'] = "Something went wrong.please try again"; } - } - } - }else { - $result['addStudentStatus'] = false; - $result['message'] = "New Student cannot able to create for In-Active Branch"; - - } + } + }else { + $result['addStudentStatus'] = false; + $result['message'] = "New Student cannot able to create for In-Active Branch"; + + } return $result; } @@ -631,12 +624,12 @@ class Student_model extends CI_Model $this->db->where('MobileNumber', $datas); $this->db->where_not_in('StudentID', $exceptId); if ($this->db->get()->first_row()) { - $result['existMobile'] = true; - $this->db->select('MobileNumber'); - $this->db->from(STUDENTS); - $this->db->where('StudentID', $exceptId); - $result['resetValue'] = $this->db->get()->first_row(); - $result['message'] = "This Mobile Number is already exist!"; + $result['existMobile'] = true; + $this->db->select('MobileNumber'); + $this->db->from(STUDENTS); + $this->db->where('StudentID', $exceptId); + $result['resetValue'] = $this->db->get()->first_row(); + $result['message'] = "This Mobile Number is already exist!"; } else { // check login $this->db->select('*'); @@ -654,7 +647,6 @@ class Student_model extends CI_Model $result['existMobile'] = false; } } - } else if ($checkFor == 'emailId') { // check update for email $this->db->select('*'); @@ -675,6 +667,7 @@ class Student_model extends CI_Model } return $result; } + // update student personal details public function update_student($empArr, $updateFor, $imagename, $imageSource, $size) { @@ -682,93 +675,91 @@ class Student_model extends CI_Model // print_r($empArr); // print_r($updateFor); // exit(); - $this->db->select('*'); + $this->db->select('*'); $this->db->from(STUDENTS); $this->db->where('MobileNumber', $empArr['MobileNumber']); $this->db->where_not_in('StudentID', $updateFor); if ($this->db->get()->first_row()) { - $result['updateStuStatus'] = false; - $result['message'] = "This Mobile Number Already Exist"; + $result['updateStuStatus'] = false; + $result['message'] = "This Mobile Number Already Exist"; } else { - $this->db->select('*'); + $this->db->select('*'); $this->db->from(LOGIN); $this->db->where('MobileNumber', $empArr['MobileNumber']); $this->db->where_not_in('StaffID', $updateFor); - if($this->db->get()->first_row()) { - $result['updateStuStatus'] = false; + if($this->db->get()->first_row()) { + $result['updateStuStatus'] = false; $result['message'] = "This Mobile Number Already Exist"; - } else { - $this->db->where('StudentID', $updateFor); + } else { + $this->db->where('StudentID', $updateFor); $this->db->update(STUDENTS, $empArr); - if ($this->db->affected_rows() == '1') { - $mobile = $empArr['MobileNumber']; - $email = $empArr['EmailID']; - $active = $empArr['IsActive']; - $updatedBy = $empArr['UpdatedBy']; - $updatedOn = $empArr['UpdatedOn']; - $sql = "UPDATE ".LOGIN." SET MobileNumber='$mobile', EmailId='$email', IsActive='$active', UpdatedBy='$updatedBy', UpdatedOn='$updatedOn' WHERE StaffID='$updateFor'"; - if($this->db->query($sql) == '1'){ - $result['updateStuStatus'] = true; - $result['message'] = "Successfully student details Updated"; - } else { - $result['updateStuStatus'] = false; - $result['message'] = "Something went wrong.please try again"; - } + if ($this->db->affected_rows() == '1') { + $mobile = $empArr['MobileNumber']; + $email = $empArr['EmailID']; + $active = $empArr['IsActive']; + $updatedBy = $empArr['UpdatedBy']; + $updatedOn = $empArr['UpdatedOn']; + $sql = "UPDATE ".LOGIN." SET MobileNumber='$mobile', EmailId='$email', IsActive='$active', UpdatedBy='$updatedBy', UpdatedOn='$updatedOn' WHERE StaffID='$updateFor'"; + if($this->db->query($sql) == '1'){ + $result['updateStuStatus'] = true; + $result['message'] = "Successfully student details Updated"; + } else { + $result['updateStuStatus'] = false; + $result['message'] = "Something went wrong.please try again"; + } } else { $result['updateStuStatus'] = false; $result['message'] = "Something went wrong.please try again"; } } - } } else { - - $this->db->select('*'); + $this->db->select('*'); $this->db->from(STUDENTS); $this->db->where('MobileNumber', $empArr['MobileNumber']); $this->db->where_not_in('StudentID', $updateFor); if ($this->db->get()->first_row()) { - $result['updateStuStatus'] = false; - $result['message'] = "This Mobile Number Already Exist"; + $result['updateStuStatus'] = false; + $result['message'] = "This Mobile Number Already Exist"; } else { - $this->db->select('*'); + $this->db->select('*'); $this->db->from(LOGIN); $this->db->where('MobileNumber', $empArr['MobileNumber']); $this->db->where_not_in('StaffID', $updateFor); - if($this->db->get()->first_row()) { - $result['updateStuStatus'] = false; + if($this->db->get()->first_row()) { + $result['updateStuStatus'] = false; $result['message'] = "This Mobile Number Already Exist"; - } else { - $target = "../images/student/"; - $getUploadStatus = $this->upload_image($imageSource, $size, $target); - $imageNameDb = $getUploadStatus['status'] == true ? $getUploadStatus['imageName'] : $getUploadStatus['imageName'] = 'default.jpeg'; - $empArr['ProfilePicPath'] = "student/".$imageNameDb; - $this->db->select('ProfilePicPath'); - $this->db->from(STUDENTS); - $this->db->where('StudentID', $updateFor); - $roleDetails = $this->db->get()->first_row(); - // echo $roleDetails->ProfilePicPath; - // exit(); - if( $roleDetails->ProfilePicPath != '' && $roleDetails->ProfilePicPath != 'student/default.jpeg'){ - unlink('../images/'.$roleDetails->ProfilePicPath); } else { - } + $target = "../images/student/"; + $getUploadStatus = $this->upload_image($imageSource, $size, $target); + $imageNameDb = $getUploadStatus['status'] == true ? $getUploadStatus['imageName'] : $getUploadStatus['imageName'] = 'default.jpeg'; + $empArr['ProfilePicPath'] = "student/".$imageNameDb; + $this->db->select('ProfilePicPath'); + $this->db->from(STUDENTS); + $this->db->where('StudentID', $updateFor); + $roleDetails = $this->db->get()->first_row(); + // echo $roleDetails->ProfilePicPath; + // exit(); + if( $roleDetails->ProfilePicPath != '' && $roleDetails->ProfilePicPath != 'student/default.jpeg'){ + unlink('../images/'.$roleDetails->ProfilePicPath); + } else { + } $this->db->where('StudentID', $updateFor); $this->db->update(STUDENTS, $empArr); if ($this->db->affected_rows() == '1') { - $mobile = $empArr['MobileNumber']; - $email = $empArr['EmailID']; - $active = $empArr['IsActive']; - $updatedBy = $empArr['UpdatedBy']; - $updatedOn = $empArr['UpdatedOn']; - $sql = "UPDATE ".LOGIN." SET MobileNumber='$mobile', EmailId='$email', IsActive='$active', UpdatedBy='$updatedBy', UpdatedOn='$updatedOn' WHERE StaffID='$updateFor'"; - if($this->db->query($sql) == '1'){ - $result['updateStuStatus'] = true; - $result['message'] = "Successfully student details Updated"; - } else { - $result['updateStuStatus'] = false; - $result['message'] = "Something went wrong.please try again"; - } + $mobile = $empArr['MobileNumber']; + $email = $empArr['EmailID']; + $active = $empArr['IsActive']; + $updatedBy = $empArr['UpdatedBy']; + $updatedOn = $empArr['UpdatedOn']; + $sql = "UPDATE ".LOGIN." SET MobileNumber='$mobile', EmailId='$email', IsActive='$active', UpdatedBy='$updatedBy', UpdatedOn='$updatedOn' WHERE StaffID='$updateFor'"; + if($this->db->query($sql) == '1'){ + $result['updateStuStatus'] = true; + $result['message'] = "Successfully student details Updated"; + } else { + $result['updateStuStatus'] = false; + $result['message'] = "Something went wrong.please try again"; + } } else { $result['updateStuStatus'] = false; $result['message'] = "Something went wrong.please try again"; diff --git a/Apollo/assets/js/controllers/studentCtrl.js b/Apollo/assets/js/controllers/studentCtrl.js index 5fba3cec..81477689 100755 --- a/Apollo/assets/js/controllers/studentCtrl.js +++ b/Apollo/assets/js/controllers/studentCtrl.js @@ -526,10 +526,10 @@ $scope.studentListLength = 0; // $scope.existingStudentId = response.data.details.studentId; SweetAlert.swal({ title: "Warning!", - text: "Student, Exsit with this same Number." + "\n Want to need see the details!", + text: "Student Exsit with this same Number." + "\n Do you want to Enroll New Cource!", type: "warning", showCancelButton: true, - confirmButtonColor: "#DD6B55", + confirmButtonColor: "#007aff", confirmButtonText: "Yes!" }, function (res) { if(res === true){ @@ -545,25 +545,6 @@ $scope.studentListLength = 0; swal("Warning!", response.data.message, "warning"); $scope.myModel.primaryPhone = ''; } - // swal({ - // title: 'Are you sure?', - // text: "You won't be able to revert this!", - // type: 'warning', - // showCancelButton: true, - // confirmButtonColor: '#3085d6', - // cancelButtonColor: '#d33', - // confirmButtonText: 'Yes, delete it!' - // }).then((result) => { - // if (result.value) { - // swal( - // 'Deleted!', - // 'Your file has been deleted.', - // 'success' - // ) - // } - // }) - // swal("Warning!", response.data.message + response.data.details.studentId, "warning"); - // $scope.myModel.primaryPhone = ''; } else { } }); @@ -646,6 +627,7 @@ $scope.studentListLength = 0; } else { swal(" ", response.data.message, "error"); // $scope.getStudentCourseList($scope.currentStudentId); + $scope.myModelCourse.dateofjoining = ''; } }); } @@ -1031,7 +1013,7 @@ $scope.studentListLength = 0; }]); // Student datails for super admin : Start -app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "$http", "API_POINTS", "$state", '$rootScope', '$cookies', 'md5', 'ipCookie', '$timeout', '$window', "flowFactory", function ($scope, toaster, $filter, ngTableParams, $http, apiPoint, $state, $rootScope, $cookies, md5, ipCookie, $timeout, $window, flowFactory) { +app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "$http", "API_POINTS", "$state", '$rootScope', '$cookies', 'md5', 'ipCookie', '$timeout', '$window', "flowFactory", "SweetAlert", function ($scope, toaster, $filter, ngTableParams, $http, apiPoint, $state, $rootScope, $cookies, md5, ipCookie, $timeout, $window, flowFactory, SweetAlert) { /** * student details capture * by : kdk @@ -1560,6 +1542,8 @@ $scope.myUnivSearch = ""; }); } + $scope.existingStudentView = false; + $scope.existingStudentId = ''; // check mobile number existing $scope.checkMobileExist = function () { var checkReq = { @@ -1574,14 +1558,141 @@ $scope.myUnivSearch = ""; } }; $http(checkReq).then(function (response) { + // if (response.data.existMobile == true) { + // swal("Warning!", response.data.message, "warning"); + // $scope.myModel.primaryPhone = ''; + + // } else { + // } if (response.data.existMobile == true) { - swal("Warning!", response.data.message, "warning"); - $scope.myModel.primaryPhone = ''; + if(response.data.details.type === 'R001'){ + // swal("Warning!", response.data.message, "warning"); + $scope.myModel.primaryPhone = ''; + // student registration find student previously exist + // $scope.existingStudentView = true; + // $scope.existingStudentId = response.data.details.studentId; + SweetAlert.swal({ + title: "Warning!", + text: "Student Exsit with this same Number." + "\n Do you want to Enroll New Cource!", + type: "warning", + showCancelButton: true, + confirmButtonColor: "#007aff", + confirmButtonText: "Yes!" + }, function (res) { + if(res === true){ + $scope.existingStudentView = true; + $scope.existingStudentId = response.data.details.studentId; + } + }); + + }else if (response.data.details.type === 'R002' || response.data.details.type === 'R003'){ + swal("Warning!", response.data.message, "warning"); + $scope.myModel.primaryPhone = ''; + } else { + swal("Warning!", response.data.message, "warning"); + $scope.myModel.primaryPhone = ''; + } } else { } }); } + $scope.stuExistingDetailsShowLoading = false; + + $scope.getExistStudentDetails = function() { + // alert($scope.existingStudentId); + $scope.stuExistingDetailsShowLoading = true; + var checkExisReq = { + method: 'POST', + url: apiPoint.url + 'getExistingStudentDetails/', + headers: { + 'Content-Type': 'application/json' + }, + data: { + data: $scope.existingStudentId, + reqDetails: localDetails + } + }; + $http(checkExisReq).then(function (response) { + if (response.data.existingStudentDetailsStatus == true) { + $scope.existingStuPersonalDetails = response.data.personalDetails[0]; + $scope.existingStuCourseDetails = response.data.courseDetails; + $scope.stuExistingDetailsShowLoading = false; + } else { + $scope.stuExistingDetailsShowLoading = false; + } + }); + } + + $scope.cancelExisStudentView = function() { + $scope.existingStudentView = false; + } + + // add student course for existing student + $scope.addCourseExistingStudent= { + + submit: function (form, myModelCourse, p) { + var firstError = null; + if (form.$invalid) { + var field = null, firstError = null; + for (field in form) { + if (field[0] != '$') { + if (firstError === null && !form[field].$valid) { + firstError = form[field].$name; + } + if (form[field].$pristine) { + form[field].$dirty = true; + } + } + } + angular.element('.ng-invalid[name=' + firstError + ']').focus(); + // swal("The form cannot be submitted because it contains validation errors!", "Errors are marked with a red, dashed border!", "error"); + } else { + // alert(JSON.stringify(p.StudentID)); + // alert(JSON.stringify(myModelCourse)); + var formate = "dd-MM-yyyy"; + $scope.myModelCourse.dateofjoining = $filter('date')(new Date($scope.myModelCourse.dateofjoining), formate); + var req = { + method: 'POST', + url: apiPoint.url + 'insertStudentCourse/', + headers: { + 'Content-Type': 'application/json' + }, + data: { + addStudent: p.StudentID, + coursedata: $scope.myModelCourse, + loginBranch: localDetails.localBranchID, + createdBy: localDetails.localUserID, + } + }; + $http(req).then(function (response) { + if (response.data.addStuCourseStatus == true) { + swal(" ","Student course added successfully. ", "success"); + $scope.disableButton = false; + $scope.viewStudentDetailsPage = false; + $scope.myActivateDiv(); + // $state.go($state.current, {}, { reload: true }); + // $scope.getStudentCourseList($scope.currentStudentId); + } else { + swal(" ", response.data.message, "error"); + // $scope.getStudentCourseList($scope.currentStudentId); + $scope.myModelCourse.dateofjoining = ''; + } + }); + } + }, + cancel: function() { + $scope.myModelCourse = { + 'university': '', + 'course': '', + 'batch': '', + 'dateofjoining': '', + 'enrollmentid': '' + }; + } + + } + // check emailId existing $scope.checkEmailExist = function () { var checkReq = { diff --git a/Apollo/assets/views/student/student_details.html b/Apollo/assets/views/student/student_details.html index 45fc0fe0..8218255d 100755 --- a/Apollo/assets/views/student/student_details.html +++ b/Apollo/assets/views/student/student_details.html @@ -12,40 +12,40 @@
- + +
@@ -57,7 +57,7 @@
-
+
- - - @@ -111,7 +110,7 @@ - - Loading...
-
+

No records found...

@@ -150,8 +149,8 @@

--> - -
+ +
@@ -204,13 +203,15 @@ ACTIVE DEACTIVE -
{{p.Comments}}
+ +
{{p.Comments}}
+ - + - + @@ -248,366 +249,366 @@ -
-
-
-
-
-
- - Personal Details - -
-
-
-
- -
-
-
-
-
-
Profile Picture
-
+
+
+ +
+
+
+ + Personal Details + +
+
+
+
+ +
+
+
+
+
+
Profile Picture
+
+
-
- - + - + .uploader { + clear: both; + } + +
-
-
-
-
- - -
-
- +
-
- + +
-
-
-
-
-
-
-
-
-
-
-
- - Course Details - -
-
-
+
+ + Course Details + +
+
+ - - University is Required -
+ University is Required +
-
+
-
- Course is required -
+
-
- -
- Batch is required -
-
-
-
+
+
-
-
-
-
+
-
-
-
-
-
- -
- - -
- - - - - Date of Joining is required -
-
-
-
-
- - + + Enrollment ID is required
-
- - - -
-
- -
-
-
-
-

Fetching ...

-
-
-
- + +
+
+
+ + + +
+
+ +
+
+ +
+
+

Fetching ...

+
+
+
+ -
-
-
-
- - Personal Details - -
-
-
- -
-
-
- -
- -
+
+
+
+ + Personal Details + +
+
+
-
+
+
+
+ + +
+ +
+ +
+ +
+
+
+ - - Mobile Number is required. - Enter a Valid Phone Number -
-
-
+
+ - - First Name is required - Invalid First Name -
-
-
+
+ - - Last Name is required - Invalid Last Name -
-
-
-
-
+
+
+
+ - - Father Name is required - Invalid Father Name -
-
-
+
+ - - Mother Name is required - Invalid Mother Name -
-
-
+
+ - - Email is required. - Please, enter a valid email address. -
-
-
-
-
+
+
+
+ - - Alternate Mobile Number is required. - Enter a Valid Phone Number -
+ + Alternate Mobile Number is required. + Enter a Valid Phone Number +
-
-
-
+
+ - - -
-
-
-
-
+
+
+
+ - - Permanent Address is required -
-
-
+
+ - - Current Address is required -
-
-
+
+ - - Aadhar Number is required. - Enter a Valid Aadhar Number -
-
-
+ + Aadhar Number is required. + Enter a Valid Aadhar Number +
+
+
-
-
-
-
+
+
+ - - Invalid Caste Name -
-
-
+
+ - - Invalid Category Name -
-
+ + Invalid Category Name +
+
-
+
-
-
-
+ + Enter a Valid Qualification +
+
+
-
-
-
-
-
+
+
+
+ - - Invalid Referred By -
-
-
+
+ - - Refer's Mobile Number is required. - Enter a Valid Phone Number -
-
-
+
+ - - Max 100 Characters. - -
-
-
-
-
+
+
+
+ -
- - -
-
- - -
-
-
-
+
+ - - Max 100 Characters. - De-Active Comments is required -
+ + Max 100 Characters. + De-Active Comments is required +
-
- - - -
- -
- - Course Details - -
- - - - - - - - - - - - - - - - - - - - - - - -
University - Course - Batch - Date of Joining - Status - Enrolled Branch -
{{s.UniversityName}}{{s.CourseName}}{{s.BatchName}}{{s.DOJ}}Active - In-Active{{s.BranchName}}
-
-
- -
-
-
-
+ + +
+
+
+ -
-
-
- - Add New Cource - +
+
+
+ + Add New Cource + -
-
-
-
-
+
-
+ Batch is required -
-
+
+
-
-
+
+
-
-
+ Invalid Specilization 2 + + +
+
-
+
-
-
-
-
+
+
+ - - Enrollment ID is required -
-
-
+ + Enrollment ID is required +
+
+
-
-
-
-
-
-
+
+
+
+
+ - +
+
+
+ +
-
- - -
-
- -
+
+
-
diff --git a/Apollo/assets/views/student/student_details_SuperAdmin.html b/Apollo/assets/views/student/student_details_SuperAdmin.html index aa19ef54..f832ddb0 100644 --- a/Apollo/assets/views/student/student_details_SuperAdmin.html +++ b/Apollo/assets/views/student/student_details_SuperAdmin.html @@ -273,7 +273,7 @@ -
+
@@ -824,6 +824,586 @@
+ +
+ +
+
+

Fetching ...

+
+
+
+ +
+
+
+
+ + Personal Details + +
+
+
+ +
+
+
+ + +
+ +
+ +
+ +
+
+
+ + + Mobile Number is required. + Enter a Valid Phone Number +
+
+ + + First Name is required + Invalid First Name +
+
+ + + Last Name is required + Invalid Last Name +
+
+
+
+ + + Father Name is required + Invalid Father Name +
+
+ + + + Mother Name is required + Invalid Mother Name +
+
+ + + Email is required. + Please, enter a valid email address. +
+
+
+
+ + + Alternate Mobile Number is required. + Enter a Valid Phone Number +
+ +
+
+ + + + + Date of Birth is required. + Enter a Valid Date of Birth +
+
+
+ + + +
+
+
+
+ + + Permanent Address is required +
+
+ + + Current Address is required +
+
+ + + Aadhar Number is required. + Enter a Valid Aadhar Number +
+
+
+ +
+
+
+ + + Aadhar Number is required. + Enter a Valid Details +
+
+ + + Aadhar Number is required. + Enter a Valid Details +
+
+
+
+ + + + Invalid Caste Name +
+
+ + + + Invalid Category Name +
+
+ +
+ +
+ + + + Invalid Religion Name +
+
+ + + + Invalid Nationality Name +
+
+ + + + Enter a Valid Qualification +
+
+
+ +
+ + + + Invalid Occupation +
+
+ + + + Invalid Designation +
+
+ + + Invalid Company +
+
+
+
+ + + Invalid Referred By +
+
+ + + Refer's Mobile Number is required. + Enter a Valid Phone Number +
+
+ + + Max 100 Characters. + +
+
+
+
+ +
+ + +
+
+ + +
+
+
+ + + Max 100 Characters. + De-Active Comments is required +
+ +
+ + + +
+ +
+ + Course Details + +
+ + + + + + + + + + + + + + + + + + + + + + + +
University + Course + Batch + Date of Joining + Status + Enrolled Branch +
{{s.UniversityName}}{{s.CourseName}}{{s.BatchName}}{{s.DOJ}}Active + In-Active{{s.BranchName}}
+
+
+ +
+
+
+ +
+
+
+ + Add New Cource + + +
+
+
+ + + + University is Required +
+ +
+ + +
+ fetching... +
+
+ +
+ Course is required + +
+ +
+ + +
+ fetching... +
+
+ +
+ Batch is required + +
+
+ +
+
+ +
+ + + + + Invalid Specilization 1 + + +
+
+ + + + + Invalid Specilization 2 + + +
+
+ +
+ +
+ + + + + Invalid Specilization 1 + + +
+
+ + + + + Invalid Specilization 2 + + +
+
+
+ + + Enrollment ID is required +
+
+
+ + +
+ + + + + Date of Joining is required +
+
+
+
+
+ + +
+
+
+
+
+
+
+ + + +
+
+
+
+
+ +