Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
da6cc0d4ba
@ -129,6 +129,9 @@ $route['updateStudentImgDetails'] = 'Student_Controller/updateStudentImgDetails'
|
||||
$route['getBranchListDetails'] = 'Student_Controller/getBranchListDetails';
|
||||
$route['getBranchActiveStatusforStuAdd'] = 'Student_Controller/getBranchActiveStatusforStuAdd';
|
||||
$route['getExistingStudentDetails'] = 'Student_Controller/getExistingStudentDetails';
|
||||
$route['addStudentEntrollDocDetails'] = 'Student_Controller/addStudentEntrollDocDetails';
|
||||
$route['getListofStuDocDetails'] = 'Student_Controller/getListofStuDocDetails';
|
||||
$route['deleteStuDocDetails'] = 'Student_Controller/deleteStuDocDetails';
|
||||
|
||||
//batch
|
||||
$route['addBatchDetails'] = 'Batch_Controller/addBatchDetails';
|
||||
|
||||
@ -222,6 +222,101 @@ class Student_Controller extends REST_Controller {
|
||||
}
|
||||
}
|
||||
|
||||
// get student entrollment document details
|
||||
public function getListofStuDocDetails_post() {
|
||||
$StudentID = $this->post('exceptId');
|
||||
$localdata = $this->post('localData');
|
||||
|
||||
$studentDocDetails = $this->student_model->getStudent_doc_details($StudentID);
|
||||
if ($studentDocDetails)
|
||||
{
|
||||
$studentDocDetails['status'] = REST_Controller::HTTP_OK;
|
||||
// Set the response and exit
|
||||
$this->response($studentDocDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||
}
|
||||
else
|
||||
{
|
||||
// Set the response and exit
|
||||
$this->response([
|
||||
'message' => 'No users were found',
|
||||
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
|
||||
}
|
||||
}
|
||||
|
||||
public function deleteStuDocDetails_post() {
|
||||
$StudentID = $this->post('exceptId');
|
||||
$docEntryId = $this->post('docDetailsID');
|
||||
$localdata = $this->post('localData');
|
||||
|
||||
$stuDocDeleteDetails = $this->student_model->deleteStu_doc_details($StudentID, $docEntryId);
|
||||
if ($stuDocDeleteDetails)
|
||||
{
|
||||
$stuDocDeleteDetails['status'] = REST_Controller::HTTP_OK;
|
||||
// Set the response and exit
|
||||
$this->response($stuDocDeleteDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||
}
|
||||
else
|
||||
{
|
||||
// Set the response and exit
|
||||
$this->response([
|
||||
'message' => 'No users were found',
|
||||
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function addStudentEntrollDocDetails_post() {
|
||||
// echo $this->post('stuDocProof_Status');exit();
|
||||
$docName = $_FILES['stuDocProof']['name'] ;
|
||||
$docsize = $_FILES['stuDocProof']['size'] ;
|
||||
$docSource = $_FILES['stuDocProof']['tmp_name'];
|
||||
|
||||
|
||||
$temp= $this->post('data');
|
||||
$data = json_decode($temp, true);
|
||||
$updatedBy = $this->post('updatedBy');
|
||||
$studentId = $this->post('studentID');
|
||||
|
||||
$doc_upload_status = $this->post('stuDocProof_Status');
|
||||
|
||||
$req['doc_name'] = $docName;
|
||||
$req['doc_size'] = $docsize;
|
||||
$req['doc_source'] = $docSource;
|
||||
|
||||
$req['document_type_name'] = $data['documentName'];
|
||||
$req['document_status'] = '';
|
||||
$req['document_comments'] = $data['documentComments'];
|
||||
|
||||
$req['student_id'] = $studentId;
|
||||
|
||||
$req['CreatedBy'] = $updatedBy;
|
||||
$date = date('Y-m-d H:i:s');
|
||||
$req['CreatedOn'] = $date;
|
||||
|
||||
$studentEntrollDocAdd = $this->student_model->student_entroll_doc_add( $req, $doc_upload_status);// Check if the employee exist
|
||||
if ($studentEntrollDocAdd)
|
||||
{
|
||||
$studentEntrollDocAdd['status'] = REST_Controller::HTTP_OK;
|
||||
// Set the response and exit
|
||||
$this->response($studentEntrollDocAdd, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||
}
|
||||
else
|
||||
{
|
||||
// Set the response and exit
|
||||
$this->response([
|
||||
'message' => 'No users were found',
|
||||
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
|
||||
}
|
||||
// print_r($temp);
|
||||
// echo $docName, $studentId, $data['documentName'];
|
||||
// exit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function updateStudentImgDetails_post() {
|
||||
|
||||
$imagename = $_FILES['idStuUpProof']['name'];
|
||||
|
||||
@ -53,20 +53,17 @@ class StatusUpdation_model extends CI_Model
|
||||
return $results;
|
||||
}
|
||||
|
||||
public function get_couser_name($cours) {
|
||||
|
||||
public function get_couser_name($cours) {
|
||||
$this->db->select('t2.CourseName');
|
||||
// $this->db->from('' . COURSE_FEES . ' as t1');
|
||||
$this->db->from('' . COURSE . ' as t2');
|
||||
$this->db->where('t2.CourseID', $cours);
|
||||
$roleDetails = $this->db->get()->first_row();
|
||||
return "$roleDetails->CourseName";
|
||||
|
||||
return "$roleDetails->CourseName";
|
||||
}
|
||||
|
||||
// update Application status
|
||||
public function update_applicationStatus($arr,$reqDetails) {
|
||||
|
||||
$this->db->insert_batch(APPLICATION_STATUS, $arr);
|
||||
if ($this->db->affected_rows() >= 1) {
|
||||
if($this->get_ListCode_status($arr[0]['ListCode'])){
|
||||
@ -102,9 +99,9 @@ class StatusUpdation_model extends CI_Model
|
||||
$dateToMsg = $arr[0]['CDate'];
|
||||
$statuToMsg = $this->get_status_name_ListCode($arr[0]['ListCode']);
|
||||
// $cerNamtToMsg = $this->get_certificate_name($arr[0]['CertificationType']);
|
||||
$cerNamtToMsg = 'MARK CARD';
|
||||
$getSemYearMsg = $this->get_couser_sem_yr_msg($arr[0]['CourseID']);
|
||||
$mesg = "Status Update : $cerNamtToMsg $getSemYearMsg - $statuToMsg $dateToMsg.";
|
||||
$cerNamtToMsg = 'MARK CARD';
|
||||
$getSemYearMsg = $this->get_couser_sem_yr_msg($arr[0]['CourseID']);
|
||||
$mesg = "Status Update : $cerNamtToMsg $getSemYearMsg - $statuToMsg $dateToMsg.";
|
||||
|
||||
// $mesg = "Status Update : $cerNamtToMsg - $statuToMsg $dateToMsg.";
|
||||
$this->smssend($arr, $mesg);
|
||||
@ -165,93 +162,92 @@ class StatusUpdation_model extends CI_Model
|
||||
|
||||
public function get_prev_status_list($reqDetailsFor, $reqDetails){
|
||||
if( $reqDetailsFor == 'STUDY_MATERIAL') {
|
||||
$searchFor = 'M001';
|
||||
$searchTableFor = STUDY_MATERIAL_STATUS;
|
||||
$this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year');
|
||||
$this->db->from(''. $searchTableFor . ' as t1');
|
||||
$this->db->where('t1.StudentID', $reqDetails['student']);
|
||||
$this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT');
|
||||
$this->db->where('t2.CourseID', $reqDetails['CourseID']);
|
||||
$this->db->join('' . LOGIN . ' as t3', 't3.ID = t1.CreatedBy', 'LEFT');
|
||||
$this->db->join('' . STAFF . ' as t4', 't4.StaffID = t3.StaffID', 'LEFT');
|
||||
$this->db->join('' . PICK_LIST_DETAILS . ' as t5', 't5.ListCode = t1.ListCode', 'LEFT');
|
||||
$this->db->order_by('t1.CreatedOn', 'DESC');
|
||||
$statusDetails = $this->db->get();
|
||||
$prevStatusDetails = $statusDetails->result();
|
||||
if (count($prevStatusDetails) > 0) {
|
||||
$results['preStatusDetails'] = true;
|
||||
$results['preStatus_details_list'] = $prevStatusDetails;
|
||||
} else {
|
||||
$results['preStatusDetails'] = false;
|
||||
$results['message'] = 'No record found';
|
||||
}
|
||||
$searchFor = 'M001';
|
||||
$searchTableFor = STUDY_MATERIAL_STATUS;
|
||||
$this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year');
|
||||
$this->db->from(''. $searchTableFor . ' as t1');
|
||||
$this->db->where('t1.StudentID', $reqDetails['student']);
|
||||
$this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT');
|
||||
$this->db->where('t2.CourseID', $reqDetails['CourseID']);
|
||||
$this->db->join('' . LOGIN . ' as t3', 't3.ID = t1.CreatedBy', 'LEFT');
|
||||
$this->db->join('' . STAFF . ' as t4', 't4.StaffID = t3.StaffID', 'LEFT');
|
||||
$this->db->join('' . PICK_LIST_DETAILS . ' as t5', 't5.ListCode = t1.ListCode', 'LEFT');
|
||||
$this->db->order_by('t1.CreatedOn', 'DESC');
|
||||
$statusDetails = $this->db->get();
|
||||
$prevStatusDetails = $statusDetails->result();
|
||||
if (count($prevStatusDetails) > 0) {
|
||||
$results['preStatusDetails'] = true;
|
||||
$results['preStatus_details_list'] = $prevStatusDetails;
|
||||
} else {
|
||||
$results['preStatusDetails'] = false;
|
||||
$results['message'] = 'No record found';
|
||||
}
|
||||
} else if ( $reqDetailsFor == 'APPICATION_STATUS' ) {
|
||||
$searchFor = 'A001';
|
||||
$searchTableFor = APPLICATION_STATUS;
|
||||
$this->db->select('t1.*, t4.Firstname, t5.ListName, t6.CertificateName');
|
||||
$this->db->from(''. $searchTableFor . ' as t1');
|
||||
$this->db->where('t1.StudentID', $reqDetails['student']);
|
||||
// $this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT');
|
||||
// $this->db->where('t2.CourseID', $reqDetails['CourseID']);
|
||||
$this->db->join('' . LOGIN . ' as t3', 't3.ID = t1.CreatedBy', 'LEFT');
|
||||
$this->db->join('' . STAFF . ' as t4', 't4.StaffID = t3.StaffID', 'LEFT');
|
||||
$this->db->join('' . PICK_LIST_DETAILS . ' as t5', 't5.ListCode = t1.ListCode', 'LEFT');
|
||||
$this->db->join('' . CERTIFICATION . ' as t6', 't6.CertificationID = t1.CertificationType', 'LEFT');
|
||||
$this->db->order_by('t1.CreatedOn', 'DESC');
|
||||
$statusDetails = $this->db->get();
|
||||
$prevStatusDetails = $statusDetails->result();
|
||||
if (count($prevStatusDetails) > 0) {
|
||||
$results['preStatusDetails'] = true;
|
||||
$results['preStatus_details_list'] = $prevStatusDetails;
|
||||
} else {
|
||||
$results['preStatusDetails'] = false;
|
||||
$results['message'] = 'No record found';
|
||||
}
|
||||
$searchFor = 'A001';
|
||||
$searchTableFor = APPLICATION_STATUS;
|
||||
$this->db->select('t1.*, t4.Firstname, t5.ListName, t6.CertificateName');
|
||||
$this->db->from(''. $searchTableFor . ' as t1');
|
||||
$this->db->where('t1.StudentID', $reqDetails['student']);
|
||||
// $this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT');
|
||||
// $this->db->where('t2.CourseID', $reqDetails['CourseID']);
|
||||
$this->db->join('' . LOGIN . ' as t3', 't3.ID = t1.CreatedBy', 'LEFT');
|
||||
$this->db->join('' . STAFF . ' as t4', 't4.StaffID = t3.StaffID', 'LEFT');
|
||||
$this->db->join('' . PICK_LIST_DETAILS . ' as t5', 't5.ListCode = t1.ListCode', 'LEFT');
|
||||
$this->db->join('' . CERTIFICATION . ' as t6', 't6.CertificationID = t1.CertificationType', 'LEFT');
|
||||
$this->db->order_by('t1.CreatedOn', 'DESC');
|
||||
$statusDetails = $this->db->get();
|
||||
$prevStatusDetails = $statusDetails->result();
|
||||
if (count($prevStatusDetails) > 0) {
|
||||
$results['preStatusDetails'] = true;
|
||||
$results['preStatus_details_list'] = $prevStatusDetails;
|
||||
} else {
|
||||
$results['preStatusDetails'] = false;
|
||||
$results['message'] = 'No record found';
|
||||
}
|
||||
} else if ( $reqDetailsFor == 'CERTIFICATION_STATUS' ) {
|
||||
$searchFor = 'C001';
|
||||
$searchTableFor = CERTIFICATION_STATUS;
|
||||
$this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year');
|
||||
$this->db->from(''. $searchTableFor . ' as t1');
|
||||
$this->db->where('t1.StudentID', $reqDetails['student']);
|
||||
$this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT');
|
||||
$this->db->where('t2.CourseID', $reqDetails['CourseID']);
|
||||
$this->db->join('' . LOGIN . ' as t3', 't3.ID = t1.CreatedBy', 'LEFT');
|
||||
$this->db->join('' . STAFF . ' as t4', 't4.StaffID = t3.StaffID', 'LEFT');
|
||||
$this->db->join('' . PICK_LIST_DETAILS . ' as t5', 't5.ListCode = t1.ListCode', 'LEFT');
|
||||
// $this->db->join('' . CERTIFICATION . ' as t6', 't6.CertificationID = t1.CertificationType', 'LEFT');
|
||||
$this->db->order_by('t1.CreatedOn', 'DESC');
|
||||
$statusDetails = $this->db->get();
|
||||
$prevStatusDetails = $statusDetails->result();
|
||||
if (count($prevStatusDetails) > 0) {
|
||||
$results['preStatusDetails'] = true;
|
||||
$results['preStatus_details_list'] = $prevStatusDetails;
|
||||
} else {
|
||||
$results['preStatusDetails'] = false;
|
||||
$results['message'] = 'No record found';
|
||||
}
|
||||
$this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year');
|
||||
$this->db->from(''. $searchTableFor . ' as t1');
|
||||
$this->db->where('t1.StudentID', $reqDetails['student']);
|
||||
$this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT');
|
||||
$this->db->where('t2.CourseID', $reqDetails['CourseID']);
|
||||
$this->db->join('' . LOGIN . ' as t3', 't3.ID = t1.CreatedBy', 'LEFT');
|
||||
$this->db->join('' . STAFF . ' as t4', 't4.StaffID = t3.StaffID', 'LEFT');
|
||||
$this->db->join('' . PICK_LIST_DETAILS . ' as t5', 't5.ListCode = t1.ListCode', 'LEFT');
|
||||
// $this->db->join('' . CERTIFICATION . ' as t6', 't6.CertificationID = t1.CertificationType', 'LEFT');
|
||||
$this->db->order_by('t1.CreatedOn', 'DESC');
|
||||
$statusDetails = $this->db->get();
|
||||
$prevStatusDetails = $statusDetails->result();
|
||||
if (count($prevStatusDetails) > 0) {
|
||||
$results['preStatusDetails'] = true;
|
||||
$results['preStatus_details_list'] = $prevStatusDetails;
|
||||
} else {
|
||||
$results['preStatusDetails'] = false;
|
||||
$results['message'] = 'No record found';
|
||||
}
|
||||
} else if ( $reqDetailsFor == 'ANSWERBOOKLET_STATUS' ) {
|
||||
$searchFor = 'B001';
|
||||
$searchTableFor = ANSWER_BOOKLET;
|
||||
$this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year');
|
||||
$this->db->from(''. $searchTableFor . ' as t1');
|
||||
$this->db->where('t1.StudentID', $reqDetails['student']);
|
||||
$this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT');
|
||||
$this->db->where('t2.CourseID', $reqDetails['CourseID']);
|
||||
$this->db->join('' . LOGIN . ' as t3', 't3.ID = t1.CreatedBy', 'LEFT');
|
||||
$this->db->join('' . STAFF . ' as t4', 't4.StaffID = t3.StaffID', 'LEFT');
|
||||
$this->db->join('' . PICK_LIST_DETAILS . ' as t5', 't5.ListCode = t1.ListCode', 'LEFT');
|
||||
$this->db->order_by('t1.CreatedOn', 'DESC');
|
||||
$statusDetails = $this->db->get();
|
||||
$prevStatusDetails = $statusDetails->result();
|
||||
if (count($prevStatusDetails) > 0) {
|
||||
$results['preStatusDetails'] = true;
|
||||
$results['preStatus_details_list'] = $prevStatusDetails;
|
||||
} else {
|
||||
$results['preStatusDetails'] = false;
|
||||
$results['message'] = 'No record found';
|
||||
}
|
||||
$searchFor = 'B001';
|
||||
$searchTableFor = ANSWER_BOOKLET;
|
||||
$this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year');
|
||||
$this->db->from(''. $searchTableFor . ' as t1');
|
||||
$this->db->where('t1.StudentID', $reqDetails['student']);
|
||||
$this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT');
|
||||
$this->db->where('t2.CourseID', $reqDetails['CourseID']);
|
||||
$this->db->join('' . LOGIN . ' as t3', 't3.ID = t1.CreatedBy', 'LEFT');
|
||||
$this->db->join('' . STAFF . ' as t4', 't4.StaffID = t3.StaffID', 'LEFT');
|
||||
$this->db->join('' . PICK_LIST_DETAILS . ' as t5', 't5.ListCode = t1.ListCode', 'LEFT');
|
||||
$this->db->order_by('t1.CreatedOn', 'DESC');
|
||||
$statusDetails = $this->db->get();
|
||||
$prevStatusDetails = $statusDetails->result();
|
||||
if (count($prevStatusDetails) > 0) {
|
||||
$results['preStatusDetails'] = true;
|
||||
$results['preStatus_details_list'] = $prevStatusDetails;
|
||||
} else {
|
||||
$results['preStatusDetails'] = false;
|
||||
$results['message'] = 'No record found';
|
||||
}
|
||||
}
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
@ -274,8 +270,6 @@ class StatusUpdation_model extends CI_Model
|
||||
|
||||
// update answer booklet status
|
||||
public function update_answerbooklet($arr,$reqDetails) {
|
||||
|
||||
|
||||
// print_r($arr);exit();
|
||||
$this->db->insert_batch(ANSWER_BOOKLET, $arr);
|
||||
if ($this->db->affected_rows() >= 1) {
|
||||
@ -291,7 +285,6 @@ class StatusUpdation_model extends CI_Model
|
||||
}
|
||||
|
||||
public function get_couser_sem_yr_msg($cours) {
|
||||
|
||||
$this->db->select('t1.Sem_Year, t2.CourseName');
|
||||
$this->db->from('' . COURSE_FEES . ' as t1');
|
||||
$this->db->join('' . COURSE . ' as t2', 't2.CourseID = t1.CourseID', 'LEFT');
|
||||
@ -335,52 +328,102 @@ class StatusUpdation_model extends CI_Model
|
||||
SFS.CourseID = '$reqData'
|
||||
AND SFS.StudentID = '$stuFor'";
|
||||
// AND CF.ProgramType ='Y001'";
|
||||
|
||||
$queryDetails = $this->db->query($subQuery);
|
||||
$results['semYearResult'] = true;
|
||||
$results['semYear_result_details'] = $queryDetails->result();
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
// get serach result
|
||||
public function get_search_result($reqData, $req) {
|
||||
|
||||
// print_r($reqData['University']);
|
||||
// print_r($req);
|
||||
// exit();
|
||||
$University = $reqData['University'];
|
||||
$Course = $reqData['Course'];
|
||||
$Batch = $reqData['Batch'];
|
||||
|
||||
$branch = $req['localBranchID'];
|
||||
|
||||
if( $branch == 'All' ) {
|
||||
$subQuery = "SELECT S.* , SC.CourseID , C.CourseName , U.UniversityName
|
||||
|
||||
// echo $University;
|
||||
// echo $branch
|
||||
|
||||
if($University != '' && $Course == '' && $Batch == '') {
|
||||
$subQuery = "SELECT S.* , SC.ID as UNI_ID, SC.CourseID , C.CourseName , C.CourseCode, U.UniversityName
|
||||
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')
|
||||
OR (SC.BatchCode = '$Batch' AND SC.CourseID = '$Course' AND SC.UniversityID = '$University'))
|
||||
SC.UniversityID = '$University'
|
||||
AND S.IsActive = '1'
|
||||
AND SC.IsActive = '1'";
|
||||
|
||||
// AND S.BranchCode = '$branch'
|
||||
// SC.UniversityID LIKE '%$University%'
|
||||
// AND SC.CourseID LIKE '%$Course%'
|
||||
// AND SC.BatchCode LIKE '%$Batch%'
|
||||
$queryDetails = $this->db->query($subQuery);
|
||||
$results['searchResult'] = true;
|
||||
$results['search_result_details'] = $queryDetails->result();
|
||||
} else {
|
||||
// echo $University;
|
||||
// echo $branch;
|
||||
$subQuery = "SELECT S.* , SC.CourseID , C.CourseName , U.UniversityName
|
||||
} else if ($University != '' && $Course != '' && $Batch == '' ) {
|
||||
$subQuery = "SELECT S.* , SC.ID as UNI_ID, SC.CourseID , C.CourseName , C.CourseCode, U.UniversityName
|
||||
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')
|
||||
OR (SC.BatchCode = '$Batch' AND SC.CourseID = '$Course' AND SC.UniversityID = '$University'))
|
||||
SC.CourseID = '$Course' AND SC.UniversityID = '$University'
|
||||
AND S.IsActive = '1'
|
||||
AND SC.IsActive = '1'";
|
||||
// AND S.BranchCode = '$branch'
|
||||
// SC.UniversityID LIKE '%$University%'
|
||||
// AND SC.CourseID LIKE '%$Course%'
|
||||
// AND SC.BatchCode LIKE '%$Batch%'
|
||||
$queryDetails = $this->db->query($subQuery);
|
||||
$results['searchResult'] = true;
|
||||
$results['search_result_details'] = $queryDetails->result();
|
||||
} else if ( $University != '' && $Course == '' && $Batch != '' ) {
|
||||
$subQuery = "SELECT S.* , SC.ID as UNI_ID, SC.CourseID , C.CourseName ,C.CourseCode, U.UniversityName
|
||||
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.BatchCode = '$Batch' AND SC.UniversityID = '$University'
|
||||
AND S.IsActive = '1'
|
||||
AND SC.IsActive = '1'";
|
||||
// AND S.BranchCode = '$branch'
|
||||
// SC.UniversityID LIKE '%$University%'
|
||||
// AND SC.CourseID LIKE '%$Course%'
|
||||
// AND SC.BatchCode LIKE '%$Batch%'
|
||||
$queryDetails = $this->db->query($subQuery);
|
||||
$results['searchResult'] = true;
|
||||
$results['search_result_details'] = $queryDetails->result();
|
||||
}else if ( $University != '' && $Course != '' && $Batch != '' ) {
|
||||
$subQuery = "SELECT S.* , SC.ID as UNI_ID, SC.CourseID , C.CourseName ,C.CourseCode, U.UniversityName
|
||||
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.BatchCode = '$Batch' AND SC.CourseID = '$Course' AND SC.UniversityID = '$University'
|
||||
AND S.IsActive = '1'
|
||||
AND SC.IsActive = '1'";
|
||||
// AND S.BranchCode = '$branch'
|
||||
// SC.UniversityID LIKE '%$University%'
|
||||
// AND SC.CourseID LIKE '%$Course%'
|
||||
// AND SC.BatchCode LIKE '%$Batch%'
|
||||
$queryDetails = $this->db->query($subQuery);
|
||||
$results['searchResult'] = true;
|
||||
$results['search_result_details'] = $queryDetails->result();
|
||||
}
|
||||
} else {
|
||||
// echo $University;
|
||||
// echo $branch;
|
||||
|
||||
if($University != '' && $Course == '' && $Batch == '') {
|
||||
$subQuery = "SELECT S.* , SC.ID as UNI_ID, SC.CourseID , C.CourseName , C.CourseCode, U.UniversityName
|
||||
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'
|
||||
AND S.IsActive = '1'
|
||||
AND SC.BranchID = '$branch'
|
||||
AND SC.IsActive = '1'";
|
||||
@ -388,10 +431,61 @@ class StatusUpdation_model extends CI_Model
|
||||
// SC.UniversityID LIKE '%$University%'
|
||||
// AND SC.CourseID LIKE '%$Course%'
|
||||
// AND SC.BatchCode LIKE '%$Batch%'
|
||||
|
||||
$queryDetails = $this->db->query($subQuery);
|
||||
$results['searchResult'] = true;
|
||||
$results['search_result_details'] = $queryDetails->result();
|
||||
} else if ($University != '' && $Course != '' && $Batch == '' ) {
|
||||
$subQuery = "SELECT S.* , SC.ID as UNI_ID, SC.CourseID , C.CourseName , C.CourseCode, U.UniversityName
|
||||
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.CourseID = '$Course' AND SC.UniversityID = '$University'
|
||||
AND S.IsActive = '1'
|
||||
AND SC.BranchID = '$branch'
|
||||
AND SC.IsActive = '1'";
|
||||
// AND S.BranchCode = '$branch'
|
||||
// SC.UniversityID LIKE '%$University%'
|
||||
// AND SC.CourseID LIKE '%$Course%'
|
||||
// AND SC.BatchCode LIKE '%$Batch%'
|
||||
$queryDetails = $this->db->query($subQuery);
|
||||
$results['searchResult'] = true;
|
||||
$results['search_result_details'] = $queryDetails->result();
|
||||
} else if ( $University != '' && $Course == '' && $Batch != '' ) {
|
||||
$subQuery = "SELECT S.* , SC.ID as UNI_ID, SC.CourseID , C.CourseName ,C.CourseCode, U.UniversityName
|
||||
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.BatchCode = '$Batch' AND SC.UniversityID = '$University'
|
||||
AND S.IsActive = '1'
|
||||
AND SC.BranchID = '$branch'
|
||||
AND SC.IsActive = '1'";
|
||||
// AND S.BranchCode = '$branch'
|
||||
// SC.UniversityID LIKE '%$University%'
|
||||
// AND SC.CourseID LIKE '%$Course%'
|
||||
// AND SC.BatchCode LIKE '%$Batch%'
|
||||
$queryDetails = $this->db->query($subQuery);
|
||||
$results['searchResult'] = true;
|
||||
$results['search_result_details'] = $queryDetails->result();
|
||||
} else if ( $University != '' && $Course != '' && $Batch != '' ) {
|
||||
$subQuery = "SELECT S.* , SC.ID as UNI_ID, SC.CourseID , C.CourseName , C.CourseCode, U.UniversityName
|
||||
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.BatchCode = '$Batch' AND SC.CourseID = '$Course' AND SC.UniversityID = '$University'
|
||||
AND S.IsActive = '1'
|
||||
AND SC.BranchID = '$branch'
|
||||
AND SC.IsActive = '1'";
|
||||
// AND S.BranchCode = '$branch'
|
||||
// SC.UniversityID LIKE '%$University%'
|
||||
// AND SC.CourseID LIKE '%$Course%'
|
||||
// AND SC.BatchCode LIKE '%$Batch%'
|
||||
$queryDetails = $this->db->query($subQuery);
|
||||
$results['searchResult'] = true;
|
||||
$results['search_result_details'] = $queryDetails->result();
|
||||
}
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
@ -410,16 +504,14 @@ class StatusUpdation_model extends CI_Model
|
||||
// University Details
|
||||
$resultArr['UniversityID'] = $clip->UniversityID;
|
||||
$resultArr['UniversityName'] = $clip->UniversityName;
|
||||
|
||||
// Course Details
|
||||
$this->db->select('t2.CourseID, t2.CourseName');
|
||||
$this->db->select('t2.CourseID, t2.CourseName, t2.CourseCode');
|
||||
$this->db->from(''.COURSE. ' as t2');
|
||||
$this->db->where('t2.UniversityID', $clip->UniversityID);
|
||||
$this->db->where('t2.IsActive', 1);
|
||||
$courDetails = $this->db->get();
|
||||
$courseDetails = $courDetails->result();
|
||||
$resultArr['Course'] =$courseDetails;
|
||||
|
||||
// Batch Details
|
||||
$this->db->select('t3.BatchName, t3.BatchCode');
|
||||
$this->db->from(''.BATCH. ' as t3');
|
||||
@ -438,10 +530,8 @@ class StatusUpdation_model extends CI_Model
|
||||
|
||||
// http://www.24x7sms.com/downloads/24X7SMS_http_API2.0.pdf
|
||||
// API Key : xegCdYUIMf3
|
||||
|
||||
// Your new password for logging into Apollo student portal is (Password). Please change the password as soon as you login.
|
||||
// This is the template to be used.
|
||||
|
||||
public function smssend($arr, $msg)
|
||||
{
|
||||
$number =array();
|
||||
@ -514,8 +604,6 @@ class StatusUpdation_model extends CI_Model
|
||||
$this->db->where('PLD.IsActive','1');
|
||||
$checkStatus=$this->db->get()->last_row();
|
||||
if($checkStatus){
|
||||
|
||||
|
||||
$studentDetails = $this->studentInfo($fromDetails);
|
||||
if($studentDetails){
|
||||
$arrayDetails['MobileNumber']=$studentDetails->MobileNumber;
|
||||
@ -554,43 +642,7 @@ class StatusUpdation_model extends CI_Model
|
||||
$this->db->where('IsActive', '1');
|
||||
$activityDetails=$this->db->get(ACTIVITY)->last_row();
|
||||
if($activityDetails){
|
||||
|
||||
$newLeadDetails['MobileNumber'] = $arrayDetails['MobileNumber'];
|
||||
$newLeadDetails['LeadName'] = $arrayDetails['LeadName'];
|
||||
$newLeadDetails['CreatedBy'] = $arrayDetails['CreatedBy'];
|
||||
$newLeadDetails['CreatedOn'] = $arrayDetails['CreatedOn'];
|
||||
$this->db->insert(LEAD_DETAILS, $newLeadDetails);
|
||||
// this if for insert lead details
|
||||
if($this->db->affected_rows() == '1'){
|
||||
// get and store insert id from db
|
||||
$track_Details['LeadID']=$this->db->insert_id();
|
||||
$track_Details['ActivityStatus'] = $activityDetails->ActivityID;
|
||||
$track_Details['University'] = $arrayDetails['University'];
|
||||
$track_Details['Course'] = $arrayDetails['Course'];
|
||||
$track_Details['AssignedTo'] = $arrayDetails['CreatedBy'];
|
||||
$track_Details['StatusCode'] = $arrayDetails['StatusCode'];
|
||||
$track_Details['CreatedBy'] = $arrayDetails['CreatedBy'];
|
||||
$track_Details['CreatedOn'] = $arrayDetails['CreatedOn'];
|
||||
$track_Details['CreatedBranch']=$arrayDetails['CreatedBranch'];
|
||||
$this->db->insert(LEAD_TRACKING, $track_Details);
|
||||
// this if for insert tracking details
|
||||
if($this->db->affected_rows() == '1'){
|
||||
$insertfollowup_Details['TrackingID']=$this->db->insert_id();
|
||||
$insertfollowup_Details['FollowupOn']=$arrayDetails['FollowupOn'];
|
||||
$insertfollowup_Details['FollowupComments']=$arrayDetails['FollowupComments'];
|
||||
$insertfollowup_Details['CreatedBy'] = $arrayDetails['CreatedBy'];
|
||||
$insertfollowup_Details['CreatedOn'] = $arrayDetails['CreatedOn'];
|
||||
$this->db->insert(LEAD_TRACKING_FOLLOWUP, $insertfollowup_Details);
|
||||
// this if for insert follow up details
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// hide tracking updated code
|
||||
|
||||
/*$this->db->select('LD.LeadID,LT.TrackingID');
|
||||
$this->db->select('LD.LeadID,LT.TrackingID');
|
||||
$this->db->from(LEAD_DETAILS.' as LD');
|
||||
$this->db->join(LEAD_TRACKING.' as LT', 'LT.LeadID = LD.LeadID');
|
||||
$this->db->where('LD.MobileNumber',$arrayDetails['MobileNumber']);
|
||||
@ -609,7 +661,6 @@ class StatusUpdation_model extends CI_Model
|
||||
$changeStatusCode['UpdatedBy'] = $arrayDetails['CreatedBy'];
|
||||
$changeStatusCode['UpdatedOn'] = $arrayDetails['CreatedOn'];
|
||||
$changeStatusCode['CreatedBranch']=$arrayDetails['CreatedBranch'];
|
||||
|
||||
$this->db->where('TrackingID',$leadDet->TrackingID);
|
||||
$this->db->update(LEAD_TRACKING, $changeStatusCode);
|
||||
// end update status
|
||||
@ -619,9 +670,7 @@ class StatusUpdation_model extends CI_Model
|
||||
$updateTrackDetails['CreatedBy'] = $arrayDetails['CreatedBy'];
|
||||
$updateTrackDetails['CreatedOn'] = $arrayDetails['CreatedOn'];
|
||||
$this->db->insert(LEAD_TRACKING_FOLLOWUP, $updateTrackDetails);
|
||||
|
||||
}
|
||||
|
||||
else{
|
||||
$this->db->select('LeadID');
|
||||
$this->db->where('MobileNumber',$arrayDetails['MobileNumber']);
|
||||
@ -646,9 +695,7 @@ class StatusUpdation_model extends CI_Model
|
||||
$followup_Details['CreatedOn'] = $arrayDetails['CreatedOn'];
|
||||
$this->db->insert(LEAD_TRACKING_FOLLOWUP, $followup_Details);
|
||||
// this if for insert follow up details
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
$newLeadDetails['MobileNumber'] = $arrayDetails['MobileNumber'];
|
||||
@ -678,21 +725,12 @@ class StatusUpdation_model extends CI_Model
|
||||
$insertfollowup_Details['CreatedOn'] = $arrayDetails['CreatedOn'];
|
||||
$this->db->insert(LEAD_TRACKING_FOLLOWUP, $insertfollowup_Details);
|
||||
// this if for insert follow up details
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}*/
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
else{
|
||||
@ -762,43 +800,7 @@ class StatusUpdation_model extends CI_Model
|
||||
$this->db->where('IsActive', '1');
|
||||
$activityDetails=$this->db->get(ACTIVITY)->last_row();
|
||||
if($activityDetails){
|
||||
|
||||
$newLeadDetails['MobileNumber'] = $arrayDetails['MobileNumber'];
|
||||
$newLeadDetails['LeadName'] = $arrayDetails['LeadName'];
|
||||
$newLeadDetails['CreatedBy'] = $arrayDetails['CreatedBy'];
|
||||
$newLeadDetails['CreatedOn'] = $arrayDetails['CreatedOn'];
|
||||
$this->db->insert(LEAD_DETAILS, $newLeadDetails);
|
||||
// this if for insert lead details
|
||||
if($this->db->affected_rows() == '1'){
|
||||
// get and store insert id from db
|
||||
$track_Details['LeadID']=$this->db->insert_id();
|
||||
$track_Details['ActivityStatus'] = $activityDetails->ActivityID;
|
||||
$track_Details['University'] = $arrayDetails['University'];
|
||||
$track_Details['Course'] = $arrayDetails['Course'];
|
||||
$track_Details['AssignedTo'] = $arrayDetails['CreatedBy'];
|
||||
$track_Details['StatusCode'] = $arrayDetails['StatusCode'];
|
||||
$track_Details['CreatedBy'] = $arrayDetails['CreatedBy'];
|
||||
$track_Details['CreatedOn'] = $arrayDetails['CreatedOn'];
|
||||
$track_Details['CreatedBranch']=$arrayDetails['CreatedBranch'];
|
||||
$this->db->insert(LEAD_TRACKING, $track_Details);
|
||||
// this if for insert tracking details
|
||||
if($this->db->affected_rows() == '1'){
|
||||
$insertfollowup_Details['TrackingID']=$this->db->insert_id();
|
||||
$insertfollowup_Details['FollowupOn']=$arrayDetails['FollowupOn'];
|
||||
$insertfollowup_Details['FollowupComments']=$arrayDetails['FollowupComments'];
|
||||
$insertfollowup_Details['CreatedBy'] = $arrayDetails['CreatedBy'];
|
||||
$insertfollowup_Details['CreatedOn'] = $arrayDetails['CreatedOn'];
|
||||
$this->db->insert(LEAD_TRACKING_FOLLOWUP, $insertfollowup_Details);
|
||||
// this if for insert follow up details
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// hide seperate track id
|
||||
|
||||
/* $this->db->select('LD.LeadID,LT.TrackingID');
|
||||
$this->db->select('LD.LeadID,LT.TrackingID');
|
||||
$this->db->from(LEAD_DETAILS.' as LD');
|
||||
$this->db->join(LEAD_TRACKING.' as LT', 'LT.LeadID = LD.LeadID');
|
||||
$this->db->where('LD.MobileNumber',$arrayDetails['MobileNumber']);
|
||||
@ -895,7 +897,7 @@ class StatusUpdation_model extends CI_Model
|
||||
}
|
||||
|
||||
|
||||
}*/
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -285,7 +285,7 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
|
||||
});
|
||||
|
||||
} else {
|
||||
swal("Failed!", "This student is not registerd", "warning");
|
||||
swal("Failed!", "This student is not registered", "warning");
|
||||
$scope.courseEditLoading = false;
|
||||
$scope.studentDetails = "";
|
||||
$scope.courseDetails = "";
|
||||
|
||||
@ -58,7 +58,7 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
|
||||
$scope.inActiveBranchStatus = false;
|
||||
$scope.addStudentView = function () {
|
||||
// check the local branch is active for add a new student for this branch
|
||||
var checkBranchActiveForStuAdd = {
|
||||
var checkBranchActiveForStuAdd = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'getBranchActiveStatusforStuAdd/',
|
||||
headers: {
|
||||
@ -71,11 +71,11 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
|
||||
$http(checkBranchActiveForStuAdd).then(function (response) {
|
||||
if (response.data) {
|
||||
var checkStatus = response.data.branch_active_status;
|
||||
if(checkStatus == "0"){
|
||||
$scope.inActiveBranchStatus = true;
|
||||
swal(" ", "Cannot create a new Student for In-Active Branch", "warning");
|
||||
}else {
|
||||
$scope.inActiveBranchStatus = false;
|
||||
if (checkStatus == "0") {
|
||||
$scope.inActiveBranchStatus = true;
|
||||
swal(" ", "Cannot create a new Student for In-Active Branch", "warning");
|
||||
} else {
|
||||
$scope.inActiveBranchStatus = false;
|
||||
}
|
||||
} else {
|
||||
}
|
||||
@ -128,7 +128,7 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
|
||||
}
|
||||
}
|
||||
|
||||
// get University List
|
||||
// get University List
|
||||
$scope.universitySearchData = '';
|
||||
$scope.getUniversitySearchList = function () {
|
||||
var empListreq = {
|
||||
@ -151,14 +151,14 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
|
||||
};
|
||||
|
||||
$scope.searchData = {
|
||||
"University": "",
|
||||
"University": "",
|
||||
"Course": "",
|
||||
"Status": ""
|
||||
}
|
||||
$scope.myUnivSearch = "";
|
||||
$scope.getUniveId = function (univ) {
|
||||
if( univ === ''){
|
||||
$scope.myUnivSearch = "";
|
||||
$scope.myUnivSearch = "";
|
||||
$scope.getUniveId = function (univ) {
|
||||
if (univ === '') {
|
||||
$scope.myUnivSearch = "";
|
||||
$scope.searchData.University = '';
|
||||
$scope.searchData.Course = '';
|
||||
$scope.searchData.Batch = '';
|
||||
@ -166,8 +166,8 @@ $scope.myUnivSearch = "";
|
||||
$scope.batchData = name.Batch;
|
||||
$scope.OpenWindowStatus = false;
|
||||
$scope.getStudentList();
|
||||
} else {
|
||||
let name = JSON.parse(univ);
|
||||
} else {
|
||||
let name = JSON.parse(univ);
|
||||
$scope.searchData.University = name.UniversityID;
|
||||
$scope.searchData.Course = '';
|
||||
$scope.searchData.Batch = '';
|
||||
@ -175,9 +175,9 @@ $scope.myUnivSearch = "";
|
||||
$scope.batchData = name.Batch;
|
||||
$scope.OpenWindowStatus = false;
|
||||
$scope.getStudentList();
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
$scope.getValueChange = function () {
|
||||
@ -186,9 +186,9 @@ $scope.myUnivSearch = "";
|
||||
// "Course": "",
|
||||
// "Status": ""
|
||||
// }
|
||||
$scope.getStudentList();
|
||||
$scope.getStudentList();
|
||||
}
|
||||
$scope.studentListLength = 0;
|
||||
$scope.studentListLength = 0;
|
||||
$scope.getStudentList = function () {
|
||||
$scope.loader = true;
|
||||
var empListreq = {
|
||||
@ -199,7 +199,7 @@ $scope.studentListLength = 0;
|
||||
},
|
||||
data: {
|
||||
data: localDetails,
|
||||
search: $scope.searchData
|
||||
search: $scope.searchData
|
||||
}
|
||||
};
|
||||
$http(empListreq).then(function (response) {
|
||||
@ -220,7 +220,7 @@ $scope.studentListLength = 0;
|
||||
$scope.setEditId = function (id) {
|
||||
$scope.editId = id;
|
||||
$scope.editCourseId = -1;
|
||||
$scope.studentViewPage=-1;
|
||||
$scope.studentViewPage = -1;
|
||||
}
|
||||
|
||||
$scope.setEditCourseId = function (id) {
|
||||
@ -300,7 +300,7 @@ $scope.studentListLength = 0;
|
||||
};
|
||||
$http(req).then(function (response) {
|
||||
if (response.data.addStuCourseStatus == true) {
|
||||
swal(" ","Student course added successfully.", "success");
|
||||
swal(" ", "Student course added successfully.", "success");
|
||||
$scope.getStudentCourseList($scope.currentStudentId);
|
||||
} else {
|
||||
swal(" ", response.data.message, "error");
|
||||
@ -518,27 +518,27 @@ $scope.studentListLength = 0;
|
||||
};
|
||||
$http(checkReq).then(function (response) {
|
||||
if (response.data.existMobile == true) {
|
||||
if(response.data.details.type === 'R001'){
|
||||
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;
|
||||
}
|
||||
});
|
||||
SweetAlert.swal({
|
||||
title: "Warning!",
|
||||
text: "Student exist with this same number." + "\n Do you want to enroll new course!",
|
||||
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'){
|
||||
} else if (response.data.details.type === 'R002' || response.data.details.type === 'R003') {
|
||||
swal("Warning!", response.data.message, "warning");
|
||||
$scope.myModel.primaryPhone = '';
|
||||
} else {
|
||||
@ -551,11 +551,11 @@ $scope.studentListLength = 0;
|
||||
}
|
||||
|
||||
$scope.stuExistingDetailsShowLoading = false;
|
||||
|
||||
$scope.getExistStudentDetails = function() {
|
||||
// alert($scope.existingStudentId);
|
||||
$scope.stuExistingDetailsShowLoading = true;
|
||||
var checkExisReq = {
|
||||
|
||||
$scope.getExistStudentDetails = function () {
|
||||
// alert($scope.existingStudentId);
|
||||
$scope.stuExistingDetailsShowLoading = true;
|
||||
var checkExisReq = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'getExistingStudentDetails/',
|
||||
headers: {
|
||||
@ -577,13 +577,13 @@ $scope.studentListLength = 0;
|
||||
});
|
||||
}
|
||||
|
||||
$scope.cancelExisStudentView = function() {
|
||||
$scope.existingStudentView = false;
|
||||
$scope.cancelExisStudentView = function () {
|
||||
$scope.existingStudentView = false;
|
||||
}
|
||||
|
||||
|
||||
// add student course for existing student
|
||||
$scope.addCourseExistingStudent= {
|
||||
$scope.addCourseExistingStudent = {
|
||||
|
||||
submit: function (form, myModelCourse, p) {
|
||||
var firstError = null;
|
||||
@ -621,25 +621,25 @@ $scope.studentListLength = 0;
|
||||
};
|
||||
$http(req).then(function (response) {
|
||||
if (response.data.addStuCourseStatus == true) {
|
||||
swal(" ","Student course added successfully. ", "success");
|
||||
swal(" ", "Student course added successfully. ", "success");
|
||||
$state.go($state.current, {}, { reload: true });
|
||||
// $scope.getStudentCourseList($scope.currentStudentId);
|
||||
} else {
|
||||
swal(" ", response.data.message, "error");
|
||||
// $scope.getStudentCourseList($scope.currentStudentId);
|
||||
$scope.myModelCourse.dateofjoining = '';
|
||||
$scope.myModelCourse.dateofjoining = '';
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
cancel: function() {
|
||||
$scope.myModelCourse = {
|
||||
'university': '',
|
||||
'course': '',
|
||||
'batch': '',
|
||||
'dateofjoining': '',
|
||||
'enrollmentid': ''
|
||||
};
|
||||
cancel: function () {
|
||||
$scope.myModelCourse = {
|
||||
'university': '',
|
||||
'course': '',
|
||||
'batch': '',
|
||||
'dateofjoining': '',
|
||||
'enrollmentid': ''
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
@ -717,7 +717,7 @@ $scope.studentListLength = 0;
|
||||
// add student
|
||||
$scope.studentFORM = {
|
||||
submit: function (form, myModel, myModelCourseAdd) {
|
||||
|
||||
|
||||
var firstError = null;
|
||||
if (form.$invalid) {
|
||||
var field = null, firstError = null;
|
||||
@ -794,36 +794,36 @@ $scope.studentListLength = 0;
|
||||
reset: function (form) {
|
||||
// $scope.myModel = angular.copy($scope.master);
|
||||
form.$setPristine(true);
|
||||
$scope.myModel = {
|
||||
'primaryPhone': '',
|
||||
'firstname': '',
|
||||
'lastname': '',
|
||||
'fathername': '',
|
||||
'mothername': '',
|
||||
'emailId': '',
|
||||
'secondaryPhone': '',
|
||||
'dateofbirth': '',
|
||||
'gender': '',
|
||||
'aadharNumber': '',
|
||||
'otherId': '',
|
||||
'otherIdDetails': '',
|
||||
'address1': '',
|
||||
'address2': '',
|
||||
'caste': '',
|
||||
'category': '',
|
||||
'religion': '',
|
||||
'nationality': '',
|
||||
'prequalification': '',
|
||||
'occupation': '',
|
||||
'designation': '',
|
||||
'companyname': '',
|
||||
'referredby': '',
|
||||
'referredmobilenumber': '',
|
||||
'switchsetting': true,
|
||||
'DeactiveComments': '',
|
||||
'Comments': ''
|
||||
};
|
||||
$scope.myModelCourseAdd = {
|
||||
$scope.myModel = {
|
||||
'primaryPhone': '',
|
||||
'firstname': '',
|
||||
'lastname': '',
|
||||
'fathername': '',
|
||||
'mothername': '',
|
||||
'emailId': '',
|
||||
'secondaryPhone': '',
|
||||
'dateofbirth': '',
|
||||
'gender': '',
|
||||
'aadharNumber': '',
|
||||
'otherId': '',
|
||||
'otherIdDetails': '',
|
||||
'address1': '',
|
||||
'address2': '',
|
||||
'caste': '',
|
||||
'category': '',
|
||||
'religion': '',
|
||||
'nationality': '',
|
||||
'prequalification': '',
|
||||
'occupation': '',
|
||||
'designation': '',
|
||||
'companyname': '',
|
||||
'referredby': '',
|
||||
'referredmobilenumber': '',
|
||||
'switchsetting': true,
|
||||
'DeactiveComments': '',
|
||||
'Comments': ''
|
||||
};
|
||||
$scope.myModelCourseAdd = {
|
||||
'university': '',
|
||||
'course': '',
|
||||
'batch': '',
|
||||
@ -890,6 +890,159 @@ $scope.studentListLength = 0;
|
||||
}
|
||||
|
||||
|
||||
// start : entrollment document upload =============================
|
||||
|
||||
$scope.studentDocumentsList = '';
|
||||
// get Student Document Details
|
||||
$scope.getStuEntrollDocDetails = function (stuId) {
|
||||
// $scope.studentDocumentsList = '';
|
||||
var getStudentDocDetails = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'getListofStuDocDetails/',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
data: {
|
||||
exceptId: stuId,
|
||||
localData: localDetail
|
||||
}
|
||||
};
|
||||
$http(getStudentDocDetails).then(function (response) {
|
||||
if (response.data.docListStatus == true) {
|
||||
$scope.docNotFound = false;
|
||||
$scope.studentDocumentsList = response.data.student_doc_details;
|
||||
} else {
|
||||
$scope.docNotFound = true;
|
||||
$scope.studentDocumentsList.call();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$scope.deleteDocDetails = function (id, stuID) {
|
||||
SweetAlert.swal({
|
||||
title: "Warning!",
|
||||
text: "Want to Delete this file ?",
|
||||
type: "warning",
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: "#007aff",
|
||||
confirmButtonText: "Yes!"
|
||||
}, function (res) {
|
||||
if (res === true) {
|
||||
// alert(id);
|
||||
// alert(stuId);
|
||||
$scope.documentAddDetailsLoading = true;
|
||||
var deleteDocEntry = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'deleteStuDocDetails/',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
data: {
|
||||
exceptId: stuID,
|
||||
docDetailsID: id,
|
||||
localData: localDetail
|
||||
}
|
||||
};
|
||||
$http(deleteDocEntry).then(function (response) {
|
||||
if (response.data.deleteStatus == true) {
|
||||
// swal("Success!", response.data.message, "success");
|
||||
$scope.documentAddDetailsLoading = false;
|
||||
$scope.studentDocumentsList = '';
|
||||
$scope.getStuEntrollDocDetails(stuID);
|
||||
} else {
|
||||
swal(" ", res.data.message, "error");
|
||||
$scope.documentAddDetailsLoading = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$scope.myModelAddDocuments = {
|
||||
"documentName": "",
|
||||
"documentComments": ""
|
||||
}
|
||||
|
||||
//an array of documents selected
|
||||
$scope.filesDocuments = [];
|
||||
//listen for the document selected event
|
||||
$scope.$on("fileSelectedDocument", function (event, args) {
|
||||
$scope.$apply(function () {
|
||||
//add the file object to the scope's files collection
|
||||
$scope.filesDocuments[0] = args.file;
|
||||
});
|
||||
});
|
||||
|
||||
$scope.documentAddDetailsLoading = false;
|
||||
$scope.studentEntrollDocFORM = {
|
||||
submit: function (form, myModelAddDocuments, stuID) {
|
||||
|
||||
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 {
|
||||
|
||||
if ($scope.filesDocuments[0] == undefined || $scope.filesDocuments[0] == null || $scope.filesDocuments.length === 0) {
|
||||
swal("Warning!", "Choose the File.", "warning");
|
||||
} else {
|
||||
$scope.documentAddDetailsLoading = true;
|
||||
var formData = new FormData();
|
||||
var stuDocProof = $scope.filesDocuments[0];
|
||||
var stuDocProofStatus = $scope.filesDocuments[0] !== undefined ? true : false;
|
||||
|
||||
formData.append("data", JSON.stringify(myModelAddDocuments));
|
||||
formData.append("studentID", stuID);
|
||||
formData.append("updatedBy", localDetails.localUserID);
|
||||
formData.append('stuDocProof', stuDocProof);
|
||||
formData.append('stuDocProof_Status', stuDocProofStatus);
|
||||
|
||||
$http.post(apiPoint.url + 'addStudentEntrollDocDetails/', formData, {
|
||||
transformRequest: angular.identity,
|
||||
headers: { 'Content-Type': undefined, 'Process-Data': false },
|
||||
}).success(function (res) {
|
||||
if (res.stuDocUpdateStatus == true) {
|
||||
$scope.getStuEntrollDocDetails(stuID);
|
||||
// swal(" ", "Updated successfully.", "success");
|
||||
$scope.documentAddDetailsLoading = false;
|
||||
$scope.filesDocuments[0] = undefined;
|
||||
form.$setPristine(true);
|
||||
angular.element("input[type='file']").val(null);
|
||||
$scope.myModelAddDocuments = {
|
||||
"documentName": "",
|
||||
"documentComments": ""
|
||||
}
|
||||
// $scope.getStudentList();
|
||||
// $scope.editId = -1;
|
||||
// $scope.editSaveButtonDisable = false;
|
||||
} else {
|
||||
swal(" ", res.data.message, "error");
|
||||
$scope.documentAddDetailsLoading = false;
|
||||
// $scope.editSaveButtonDisable = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
reset: function (form) {
|
||||
$scope.filesDocuments[0] = undefined;
|
||||
form.$setPristine(true);
|
||||
angular.element("input[type='file']").val(null);
|
||||
}
|
||||
}
|
||||
|
||||
// end : entrollment document upload ====================================
|
||||
|
||||
$scope.stepsModelEdit = [];
|
||||
$scope.imageUploadEdit = function (event) {
|
||||
@ -930,8 +1083,9 @@ $scope.studentListLength = 0;
|
||||
$scope.editSaveButtonDisable = false;
|
||||
// update student details
|
||||
$scope.updateStuDetails = function (form, p, hidedob) {
|
||||
$scope.editSaveButtonDisable = true;
|
||||
$scope.editSaveButtonDisable = true;
|
||||
var firstError = null;
|
||||
// alert(form.$invalid);
|
||||
if (form.$invalid) {
|
||||
var field = null, firstError = null;
|
||||
for (field in form) {
|
||||
@ -947,6 +1101,7 @@ $scope.studentListLength = 0;
|
||||
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(p.DOB);
|
||||
var idProof = $scope.filesEdit[0];
|
||||
|
||||
@ -992,17 +1147,17 @@ $scope.studentListLength = 0;
|
||||
$http.post(apiPoint.url + 'updateStudentImgDetails/', formData, {
|
||||
transformRequest: angular.identity,
|
||||
headers: { 'Content-Type': undefined, 'Process-Data': false },
|
||||
}).success(function(res) {
|
||||
}).success(function (res) {
|
||||
// alert(JSON.stringify(res));
|
||||
if (res.updateStuStatus == true) {
|
||||
swal(" ","Updated successfully." , "success");
|
||||
swal(" ", "Updated successfully.", "success");
|
||||
$scope.getStudentList();
|
||||
$scope.editId = -1;
|
||||
$scope.editSaveButtonDisable = false;
|
||||
$scope.editSaveButtonDisable = false;
|
||||
} else {
|
||||
// $scope.ldloading1[loading.replace('-', '_')] = false;
|
||||
swal(" ", response.data.message, "error");
|
||||
$scope.editSaveButtonDisable = false;
|
||||
$scope.editSaveButtonDisable = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -1056,7 +1211,7 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
|
||||
};
|
||||
$http(empListreq).then(function (response) {
|
||||
if (response.data.branDetailstatus) {
|
||||
$scope.loader = false;
|
||||
$scope.loader = false;
|
||||
$scope.branchList_data = response.data.branch_details;
|
||||
} else {
|
||||
}
|
||||
@ -1078,7 +1233,7 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
|
||||
$scope.currentDate = new Date(sixteenYearsBeforeNow);
|
||||
$scope.getStudentList();
|
||||
$scope.getUniversityList();
|
||||
$scope.getUniversitySearchList();
|
||||
$scope.getUniversitySearchList();
|
||||
$scope.myModel.dateofbirth = $filter('date')($scope.currentDate, 'dd-MM-yyyy');
|
||||
$scope.viewStudentDetailsPage = true;
|
||||
}
|
||||
@ -1146,10 +1301,10 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
|
||||
$http(checkBranchActiveForStuAdd).then(function (response) {
|
||||
if (response.data) {
|
||||
var checkStatus = response.data.branch_active_status;
|
||||
if(checkStatus == "0"){
|
||||
$scope.inActiveBranchStatus = true;
|
||||
swal(" ", "Cannot create a new Student for In-Active Branch", "warning");
|
||||
}else {
|
||||
if (checkStatus == "0") {
|
||||
$scope.inActiveBranchStatus = true;
|
||||
swal(" ", "Cannot create a new Student for In-Active Branch", "warning");
|
||||
} else {
|
||||
// $scope.inActiveBranchStatus = false;
|
||||
}
|
||||
} else {
|
||||
@ -1179,7 +1334,7 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
|
||||
|
||||
|
||||
|
||||
// get University List
|
||||
// get University List
|
||||
$scope.universitySearchData = '';
|
||||
$scope.getUniversitySearchList = function () {
|
||||
var empListreq = {
|
||||
@ -1206,17 +1361,17 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
|
||||
"Course": "",
|
||||
"Status": ""
|
||||
}
|
||||
$scope.myUnivSearch = "";
|
||||
$scope.getUniveId = function (univ) {
|
||||
let name = JSON.parse(univ);
|
||||
$scope.searchData.University = name.UniversityID;
|
||||
$scope.searchData.Course = '';
|
||||
$scope.searchData.Batch = '';
|
||||
$scope.courseData = name.Course;
|
||||
$scope.batchData = name.Batch;
|
||||
$scope.OpenWindowStatus = false;
|
||||
$scope.getStudentList();
|
||||
};
|
||||
$scope.myUnivSearch = "";
|
||||
$scope.getUniveId = function (univ) {
|
||||
let name = JSON.parse(univ);
|
||||
$scope.searchData.University = name.UniversityID;
|
||||
$scope.searchData.Course = '';
|
||||
$scope.searchData.Batch = '';
|
||||
$scope.courseData = name.Course;
|
||||
$scope.batchData = name.Batch;
|
||||
$scope.OpenWindowStatus = false;
|
||||
$scope.getStudentList();
|
||||
};
|
||||
|
||||
|
||||
$scope.getValueChange = function () {
|
||||
@ -1225,9 +1380,9 @@ $scope.myUnivSearch = "";
|
||||
// "Course": "",
|
||||
// "Status": ""
|
||||
// }
|
||||
$scope.getStudentList();
|
||||
$scope.getStudentList();
|
||||
}
|
||||
$scope.Searchloader = false;
|
||||
$scope.Searchloader = false;
|
||||
$scope.studentListLength = 0;
|
||||
$scope.getStudentList = function () {
|
||||
$scope.Searchloader = true;
|
||||
@ -1239,7 +1394,7 @@ $scope.myUnivSearch = "";
|
||||
},
|
||||
data: {
|
||||
data: localDetails,
|
||||
search: $scope.searchData
|
||||
search: $scope.searchData
|
||||
}
|
||||
};
|
||||
$http(empListreq).then(function (response) {
|
||||
@ -1247,7 +1402,7 @@ $scope.myUnivSearch = "";
|
||||
$scope.Searchloader = false;
|
||||
$scope.studentData = true;
|
||||
$scope.data = response.data.student_details;
|
||||
$scope.studentListLength = $scope.data.length;
|
||||
$scope.studentListLength = $scope.data.length;
|
||||
} else {
|
||||
$scope.Searchloader = false;
|
||||
$scope.studentData = false;
|
||||
@ -1340,7 +1495,7 @@ $scope.myUnivSearch = "";
|
||||
};
|
||||
$http(req).then(function (response) {
|
||||
if (response.data.addStuCourseStatus == true) {
|
||||
swal(" ","Student course added successfully. ", "success");
|
||||
swal(" ", "Student course added successfully. ", "success");
|
||||
$scope.getStudentCourseList($scope.currentStudentId);
|
||||
} else {
|
||||
swal(" ", response.data.message, "error");
|
||||
@ -1366,7 +1521,7 @@ $scope.myUnivSearch = "";
|
||||
data: {
|
||||
studentID: studentId,
|
||||
updatedBy: localDetails,
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
$http(req).then(function (response) {
|
||||
@ -1565,27 +1720,27 @@ $scope.myUnivSearch = "";
|
||||
// } else {
|
||||
// }
|
||||
if (response.data.existMobile == true) {
|
||||
if(response.data.details.type === 'R001'){
|
||||
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;
|
||||
}
|
||||
});
|
||||
SweetAlert.swal({
|
||||
title: "Warning!",
|
||||
text: "Student Exist with this same Number." + "\n Do you want to Enroll New Course!",
|
||||
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'){
|
||||
} else if (response.data.details.type === 'R002' || response.data.details.type === 'R003') {
|
||||
swal("Warning!", response.data.message, "warning");
|
||||
$scope.myModel.primaryPhone = '';
|
||||
} else {
|
||||
@ -1598,11 +1753,11 @@ $scope.myUnivSearch = "";
|
||||
}
|
||||
|
||||
$scope.stuExistingDetailsShowLoading = false;
|
||||
|
||||
$scope.getExistStudentDetails = function() {
|
||||
// alert($scope.existingStudentId);
|
||||
$scope.stuExistingDetailsShowLoading = true;
|
||||
var checkExisReq = {
|
||||
|
||||
$scope.getExistStudentDetails = function () {
|
||||
// alert($scope.existingStudentId);
|
||||
$scope.stuExistingDetailsShowLoading = true;
|
||||
var checkExisReq = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'getExistingStudentDetails/',
|
||||
headers: {
|
||||
@ -1624,12 +1779,12 @@ $scope.myUnivSearch = "";
|
||||
});
|
||||
}
|
||||
|
||||
$scope.cancelExisStudentView = function() {
|
||||
$scope.existingStudentView = false;
|
||||
$scope.cancelExisStudentView = function () {
|
||||
$scope.existingStudentView = false;
|
||||
}
|
||||
|
||||
// add student course for existing student
|
||||
$scope.addCourseExistingStudent= {
|
||||
// add student course for existing student
|
||||
$scope.addCourseExistingStudent = {
|
||||
|
||||
submit: function (form, myModelCourse, p) {
|
||||
var firstError = null;
|
||||
@ -1667,28 +1822,28 @@ $scope.myUnivSearch = "";
|
||||
};
|
||||
$http(req).then(function (response) {
|
||||
if (response.data.addStuCourseStatus == true) {
|
||||
swal(" ","Student course added successfully. ", "success");
|
||||
$scope.disableButton = false;
|
||||
$scope.viewStudentDetailsPage = false;
|
||||
$scope.myActivateDiv();
|
||||
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 = '';
|
||||
$scope.myModelCourse.dateofjoining = '';
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
cancel: function() {
|
||||
$scope.myModelCourse = {
|
||||
'university': '',
|
||||
'course': '',
|
||||
'batch': '',
|
||||
'dateofjoining': '',
|
||||
'enrollmentid': ''
|
||||
};
|
||||
cancel: function () {
|
||||
$scope.myModelCourse = {
|
||||
'university': '',
|
||||
'course': '',
|
||||
'batch': '',
|
||||
'dateofjoining': '',
|
||||
'enrollmentid': ''
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
@ -1773,47 +1928,47 @@ $scope.myUnivSearch = "";
|
||||
}
|
||||
}
|
||||
|
||||
$scope.myActivateDiv = function() {
|
||||
$scope.viewStudentDetailsPage = false;
|
||||
$scope.myModel = {
|
||||
'primaryPhone': '',
|
||||
'firstname': '',
|
||||
'lastname': '',
|
||||
'fathername': '',
|
||||
'mothername': '',
|
||||
'emailId': '',
|
||||
'secondaryPhone': '',
|
||||
'dateofbirth': '',
|
||||
'gender': '',
|
||||
'aadharNumber': '',
|
||||
'otherId': '',
|
||||
'otherIdDetails': '',
|
||||
'address1': '',
|
||||
'address2': '',
|
||||
'caste': '',
|
||||
'category': '',
|
||||
'religion': '',
|
||||
'nationality': '',
|
||||
'prequalification': '',
|
||||
'occupation': '',
|
||||
'designation': '',
|
||||
'companyname': '',
|
||||
'referredby': '',
|
||||
'referredmobilenumber': '',
|
||||
'switchsetting': true,
|
||||
'DeactiveComments': '',
|
||||
'Comments': ''
|
||||
};
|
||||
$scope.myModelCourseAdd = {
|
||||
'university': '',
|
||||
'course': '',
|
||||
'batch': '',
|
||||
'dateofjoining': '',
|
||||
'enrollmentid': ''
|
||||
};
|
||||
$timeout(function(){
|
||||
getDetails();
|
||||
},1000);
|
||||
$scope.myActivateDiv = function () {
|
||||
$scope.viewStudentDetailsPage = false;
|
||||
$scope.myModel = {
|
||||
'primaryPhone': '',
|
||||
'firstname': '',
|
||||
'lastname': '',
|
||||
'fathername': '',
|
||||
'mothername': '',
|
||||
'emailId': '',
|
||||
'secondaryPhone': '',
|
||||
'dateofbirth': '',
|
||||
'gender': '',
|
||||
'aadharNumber': '',
|
||||
'otherId': '',
|
||||
'otherIdDetails': '',
|
||||
'address1': '',
|
||||
'address2': '',
|
||||
'caste': '',
|
||||
'category': '',
|
||||
'religion': '',
|
||||
'nationality': '',
|
||||
'prequalification': '',
|
||||
'occupation': '',
|
||||
'designation': '',
|
||||
'companyname': '',
|
||||
'referredby': '',
|
||||
'referredmobilenumber': '',
|
||||
'switchsetting': true,
|
||||
'DeactiveComments': '',
|
||||
'Comments': ''
|
||||
};
|
||||
$scope.myModelCourseAdd = {
|
||||
'university': '',
|
||||
'course': '',
|
||||
'batch': '',
|
||||
'dateofjoining': '',
|
||||
'enrollmentid': ''
|
||||
};
|
||||
$timeout(function () {
|
||||
getDetails();
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
// add student
|
||||
@ -1863,7 +2018,7 @@ $scope.myUnivSearch = "";
|
||||
// $state.go($state.current, {}, { reload: true });
|
||||
$scope.myActivateDiv();
|
||||
// $scope.tabactive2 = false;
|
||||
// $scope.viewStudentDetailsPage = false;
|
||||
// $scope.viewStudentDetailsPage = false;
|
||||
// $scope.tabActive('tabactive1');
|
||||
} else {
|
||||
// $scope.ldloading1[loading.replace('-', '_')] = false;
|
||||
@ -1887,14 +2042,14 @@ $scope.myUnivSearch = "";
|
||||
};
|
||||
$http(req).then(function (response) {
|
||||
if (response.data.addStudentStatus == true) {
|
||||
swal( "", "Student added successfully.", "success");
|
||||
swal("", "Student added successfully.", "success");
|
||||
$scope.disableButton = false;
|
||||
$scope.viewStudentDetailsPage = false;
|
||||
// $state.go($state.current, {}, { reload: true });
|
||||
$scope.myActivateDiv();
|
||||
// $scope.tabactive1 = true;
|
||||
// $scope.tabactive2 = false;
|
||||
|
||||
|
||||
// $scope.tabActive('tabactive1');
|
||||
} else {
|
||||
$scope.disableButton = false;
|
||||
@ -1908,35 +2063,35 @@ $scope.myUnivSearch = "";
|
||||
// $scope.myModel = angular.copy($scope.master);
|
||||
form.$setPristine(true);
|
||||
$scope.myModel = {
|
||||
'primaryPhone': '',
|
||||
'firstname': '',
|
||||
'lastname': '',
|
||||
'fathername': '',
|
||||
'mothername': '',
|
||||
'emailId': '',
|
||||
'secondaryPhone': '',
|
||||
'dateofbirth': '',
|
||||
'gender': '',
|
||||
'aadharNumber': '',
|
||||
'otherId': '',
|
||||
'otherIdDetails': '',
|
||||
'address1': '',
|
||||
'address2': '',
|
||||
'caste': '',
|
||||
'category': '',
|
||||
'religion': '',
|
||||
'nationality': '',
|
||||
'prequalification': '',
|
||||
'occupation': '',
|
||||
'designation': '',
|
||||
'companyname': '',
|
||||
'referredby': '',
|
||||
'referredmobilenumber': '',
|
||||
'switchsetting': true,
|
||||
'DeactiveComments': '',
|
||||
'Comments': ''
|
||||
};
|
||||
$scope.myModelCourseAdd = {
|
||||
'primaryPhone': '',
|
||||
'firstname': '',
|
||||
'lastname': '',
|
||||
'fathername': '',
|
||||
'mothername': '',
|
||||
'emailId': '',
|
||||
'secondaryPhone': '',
|
||||
'dateofbirth': '',
|
||||
'gender': '',
|
||||
'aadharNumber': '',
|
||||
'otherId': '',
|
||||
'otherIdDetails': '',
|
||||
'address1': '',
|
||||
'address2': '',
|
||||
'caste': '',
|
||||
'category': '',
|
||||
'religion': '',
|
||||
'nationality': '',
|
||||
'prequalification': '',
|
||||
'occupation': '',
|
||||
'designation': '',
|
||||
'companyname': '',
|
||||
'referredby': '',
|
||||
'referredmobilenumber': '',
|
||||
'switchsetting': true,
|
||||
'DeactiveComments': '',
|
||||
'Comments': ''
|
||||
};
|
||||
$scope.myModelCourseAdd = {
|
||||
'university': '',
|
||||
'course': '',
|
||||
'batch': '',
|
||||
@ -2156,23 +2311,37 @@ app.directive('fileUploadEdit', function () {
|
||||
scope.$emit("fileSelectedEdit", { file: files[i] });
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
app.filter('unique', function() {
|
||||
return function(collection, primaryKey, secondaryKey) { //optional secondary key
|
||||
// file upload directive - file-upload-document
|
||||
app.directive('fileUploadDocument', function () {
|
||||
return {
|
||||
scope: true, //create a new scope
|
||||
link: function (scope, el, attrs) {
|
||||
el.bind('change', function (event) {
|
||||
var files = event.target.files;
|
||||
//iterate files since 'multiple' may be specified on the element
|
||||
for (var i = 0; i < files.length; i++) {
|
||||
//emit event upward
|
||||
scope.$emit("fileSelectedDocument", { file: files[i] });
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
app.filter('unique', function () {
|
||||
return function (collection, primaryKey, secondaryKey) { //optional secondary key
|
||||
var output = [],
|
||||
keys = [];
|
||||
|
||||
angular.forEach(collection, function(item) {
|
||||
angular.forEach(collection, function (item) {
|
||||
var key;
|
||||
secondaryKey === undefined ? key = item[primaryKey] : key = item[primaryKey][secondaryKey];
|
||||
|
||||
if(keys.indexOf(key) === -1) {
|
||||
if (keys.indexOf(key) === -1) {
|
||||
keys.push(key);
|
||||
output.push(item);
|
||||
}
|
||||
@ -2183,7 +2352,7 @@ app.filter('unique', function() {
|
||||
});
|
||||
/*modal controller
|
||||
* */
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $modal, $log,apiPoint,$http) {
|
||||
app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS", "$http", function ($scope, $modal, $log, apiPoint, $http) {
|
||||
//Tooltip for print button
|
||||
$scope.dynamicTooltip = 'Student View';
|
||||
|
||||
@ -2202,13 +2371,13 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
data: {
|
||||
requestedBy :studentDetails.StudentID,
|
||||
requestedBy: studentDetails.StudentID,
|
||||
requestedFrom: 1
|
||||
}
|
||||
};
|
||||
$http(getcourse).then(function (response) {
|
||||
|
||||
if (response.data.status == 200 && response.data.studentStatus== true) {
|
||||
if (response.data.status == 200 && response.data.studentStatus == true) {
|
||||
$scope.courseEditLoading = false;
|
||||
// $scope.studentDetails = response.data.studentDetails;
|
||||
$scope.studentDetails = response.data;
|
||||
@ -2219,7 +2388,7 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
|
||||
// size: size,
|
||||
resolve: {
|
||||
items: function () {
|
||||
return $scope.studentDetails;
|
||||
return $scope.studentDetails;
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -2249,7 +2418,7 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
|
||||
// size: size,
|
||||
resolve: {
|
||||
items1: function () {
|
||||
return values;
|
||||
return values;
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -2267,7 +2436,7 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
|
||||
// Please note that $modalInstance represents a modal window (instance) dependency.
|
||||
// It is not the same as the $modal service used above.
|
||||
|
||||
app.controller('ModalInstanceCtrl', ["$scope", "$modalInstance", "items","WordsService", function ($scope, $modalInstance, items,WordsService) {
|
||||
app.controller('ModalInstanceCtrl', ["$scope", "$modalInstance", "items", "WordsService", function ($scope, $modalInstance, items, WordsService) {
|
||||
|
||||
$scope.items = items;
|
||||
$scope.selected = {
|
||||
@ -2284,7 +2453,7 @@ app.controller('ModalInstanceCtrl', ["$scope", "$modalInstance", "items","WordsS
|
||||
|
||||
|
||||
}]);
|
||||
app.controller('ModalInstanceCtrl1', ["$scope", "$modalInstance", "items1","WordsService", function ($scope, $modalInstance, items1,WordsService) {
|
||||
app.controller('ModalInstanceCtrl1', ["$scope", "$modalInstance", "items1", "WordsService", function ($scope, $modalInstance, items1, WordsService) {
|
||||
|
||||
$scope.items1 = items1;
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
<select class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
|
||||
<option value="" selected>Select Course</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}<span ng-show="itemCourse.CourseCode != ''">(<strong>{{itemCourse.CourseCode}}</strong>)</span></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@ -154,12 +154,12 @@
|
||||
<td>{{p.Lastname}}</td>
|
||||
<td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.MobileNumber}}</a></td>
|
||||
<td>{{p.EmailID}}</td>
|
||||
<td>{{p.CourseName}}</td>
|
||||
<td>{{p.CourseName}} (<strong>{{p.CourseCode}}</strong>)</td>
|
||||
<td class="center">
|
||||
<span> <i tooltip="STATUS DETAILS" class="glyphicon glyphicon-list-alt" ng-click="setEditId(p.StudentID)"></i> </span>
|
||||
<span> <i tooltip="STATUS DETAILS" class="glyphicon glyphicon-list-alt" ng-click="setEditId(p.UNI_ID)"></i> </span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr ng-show="editId ===p.StudentID" ng-if="editId === p.StudentID">
|
||||
<tr ng-show="editId ===p.UNI_ID" ng-if="editId === p.UNI_ID">
|
||||
<!--<td><pre>{{p.StudentID}}</pre></td>-->
|
||||
<td colspan="7">
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
<select class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
|
||||
<option value="" selected>Select Course</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}<span ng-show="itemCourse.CourseCode != ''">(<strong>{{itemCourse.CourseCode}}</strong>)</span></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@ -155,12 +155,12 @@
|
||||
<td>{{p.Lastname}}</td>
|
||||
<td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.MobileNumber}}</a></td>
|
||||
<td>{{p.EmailID}}</td>
|
||||
<td>{{p.CourseName}}</td>
|
||||
<td>{{p.CourseName}}(<strong>{{p.CourseCode}}</strong>)</td>
|
||||
<td class="center">
|
||||
<span> <i tooltip="STATUS DETAILS" class="glyphicon glyphicon-list-alt" ng-click="setEditId(p.StudentID)"></i> </span>
|
||||
<span> <i tooltip="STATUS DETAILS" class="glyphicon glyphicon-list-alt" ng-click="setEditId(p.UNI_ID)"></i> </span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr ng-show="editId ===p.StudentID" ng-if="editId === p.StudentID">
|
||||
<tr ng-show="editId ===p.UNI_ID" ng-if="editId === p.UNI_ID">
|
||||
<!--<td><pre>{{p.StudentID}}</pre></td>-->
|
||||
<td colspan="7">
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
<select class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
|
||||
<option value="" selected>Select Course</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}<span ng-show="itemCourse.CourseCode != ''">(<strong>{{itemCourse.CourseCode}}</strong>)</span></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@ -153,12 +153,12 @@
|
||||
<td>{{p.Lastname}}</td>
|
||||
<td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.MobileNumber}}</a></td>
|
||||
<td>{{p.EmailID}}</td>
|
||||
<td>{{p.CourseName}}</td>
|
||||
<td>{{p.CourseName}}(<strong>{{p.CourseCode}}</strong>)</td>
|
||||
<td class="center">
|
||||
<span> <i tooltip="STATUS DETAILS" class="glyphicon glyphicon-list-alt" ng-click="setEditId(p.StudentID)"></i> </span>
|
||||
<span> <i tooltip="STATUS DETAILS" class="glyphicon glyphicon-list-alt" ng-click="setEditId(p.UNI_ID)"></i> </span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr ng-show="editId ===p.StudentID" ng-if="editId === p.StudentID">
|
||||
<tr ng-show="editId ===p.UNI_ID" ng-if="editId === p.UNI_ID">
|
||||
<!--<td><pre>{{p.StudentID}}</pre></td>-->
|
||||
<td colspan="7">
|
||||
|
||||
|
||||
@ -34,12 +34,12 @@
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="form-field-select-2">
|
||||
Course
|
||||
Course
|
||||
</label>
|
||||
|
||||
<select class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
|
||||
<option value="" selected>Select Course</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}} <span ng-show="itemCourse.CourseCode != ''">(<strong>{{itemCourse.CourseCode}}</strong>)</span></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@ -155,13 +155,13 @@
|
||||
<td>{{p.Lastname}}</td>
|
||||
<td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.MobileNumber}}</a></td>
|
||||
<td>{{p.EmailID}}</td>
|
||||
<td>{{p.CourseName}}</td>
|
||||
<td>{{p.CourseName}}(<strong>{{p.CourseCode}}</strong>)</td>
|
||||
<td class="center">
|
||||
<span> <i tooltip="STATUS DETAILS" class="glyphicon glyphicon-list-alt" ng-click="setEditId(p.StudentID)"></i> </span>
|
||||
<span> <i tooltip="STATUS DETAILS" class="glyphicon glyphicon-list-alt" ng-click="setEditId(p.UNI_ID)"></i> </span>
|
||||
</td>
|
||||
</tr>
|
||||
<!--<pre>{{ editId }}</pre>-->
|
||||
<tr ng-show="editId ===p.StudentID" ng-if="editId === p.StudentID">
|
||||
<tr ng-show="editId ===p.UNI_ID" ng-if="editId === p.UNI_ID">
|
||||
<!--<td><pre>{{p.StudentID}}</pre></td>-->
|
||||
<td colspan="7">
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
<tbody ng-repeat="s in studentCourseList">
|
||||
<tr>
|
||||
<td>{{s.UniversityName}}</td>
|
||||
<td>{{s.CourseName}}</td>
|
||||
<td>{{s.CourseName}}<span ng-show="s.CourseCode !=''">(<b>{{s.CourseCode}}</b>)</span></td>
|
||||
<td>{{s.Specilization1}}</td>
|
||||
<td>{{s.Specilization2}}</td>
|
||||
<td>{{s.BatchName}}</td>
|
||||
@ -88,7 +88,7 @@
|
||||
<select class="form-control" ng-model="stucour.CourseID" name="course" class="cs-select cs-skin-elastic" required>
|
||||
|
||||
<option value="" disabled selected>Select Course</option>
|
||||
<option ng-repeat="items in courseData" value="{{items.CourseID}}" ng-selected="stucour.CourseID == items.CourseID">{{items.CourseName}}</option>
|
||||
<option ng-repeat="items in courseData" value="{{items.CourseID}}" ng-selected="stucour.CourseID == items.CourseID">{{items.CourseName}}<span ng-show="items.CourseCode != ''">(<b>{{items.CourseCode}}</b>)</span></option>
|
||||
</select>
|
||||
</div>
|
||||
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span>
|
||||
@ -283,7 +283,7 @@
|
||||
<select class="form-control" tabindex="26" name="course" ng-model="myModelCourse.course" class="cs-select cs-skin-elastic"
|
||||
required>
|
||||
<option value="" disabled selected>Select Course</option>
|
||||
<option ng-repeat="item in courseData" value="{{item.CourseID}}">{{item.CourseName}}</option>
|
||||
<option ng-repeat="item in courseData" value="{{item.CourseID}}">{{item.CourseName}}<span ng-show="item.CourseCode != ''">(<b>{{item.CourseCode}}</b>)</span></option>
|
||||
</select>
|
||||
</div>
|
||||
<span class="error text-small block" ng-if="FormAdd.course.$dirty && FormAdd.course.$error.required">Course is required</span>
|
||||
|
||||
@ -1,481 +1,489 @@
|
||||
<form name="Form" id="form" novalidate>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12">
|
||||
<fieldset>
|
||||
<legend>
|
||||
Personal Details
|
||||
</legend>
|
||||
<div class="row">
|
||||
<div class="col-md-7">
|
||||
</div>
|
||||
<tabset class="tabbable" style="border: 1px solid #c5c5c5; border-radius: 3px; box-shadow: 3px 5px #c3c3c3;">
|
||||
<tab heading="Personal Details">
|
||||
<form name="Form" id="form" novalidate>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-5">
|
||||
<fieldset>
|
||||
<legend>
|
||||
Personal Details
|
||||
</legend>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<style>
|
||||
.thumb {
|
||||
width: 90px;
|
||||
height: 115px;
|
||||
margin: 18px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.prof {
|
||||
border: 2px solid #2C3543;
|
||||
}
|
||||
|
||||
.uploader {
|
||||
clear: both;
|
||||
}
|
||||
</style>
|
||||
<img class="thumb prof" ng-src="images/{{p.ProfilePicPath}}" />
|
||||
<div class="col-md-7">
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<form name="Form" id="form1" novalidate ng-submit="form.submit(Form,myModel)" method="post">
|
||||
<div class="file-upload">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label>Update Profile Picture</label>
|
||||
<div class=" margin-bottom-5">
|
||||
|
||||
</div>
|
||||
<input type="file" accept="image/*" ng-init="resetImageEdit()" file-upload-edit onchange="angular.element(this).scope().imageUploadEdit(event)"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<div class="user-image">
|
||||
<div class="col-md-5">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<style>
|
||||
.thumb {
|
||||
width: 90px;
|
||||
height: 115px;
|
||||
margin: 18px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.prof {
|
||||
border: 2px solid #2C3543;
|
||||
}
|
||||
|
||||
.uploader {
|
||||
clear: both;
|
||||
}
|
||||
</style>
|
||||
<img class="thumb prof" ng-src="images/{{p.ProfilePicPath}}" />
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<form name="Form" id="form1" novalidate ng-submit="form.submit(Form,myModel)" method="post">
|
||||
<div class="file-upload">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label>Update Profile Picture</label>
|
||||
<div class=" margin-bottom-5">
|
||||
|
||||
</div>
|
||||
<input type="file" accept="image/*" ng-init="resetImageEdit()" file-upload-edit onchange="angular.element(this).scope().imageUploadEdit(event)"
|
||||
/>
|
||||
</div>
|
||||
<!--<input type="file" file-model="idProof"
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<div class="user-image">
|
||||
</div>
|
||||
<!--<input type="file" file-model="idProof"
|
||||
accept="image/*" onchange="angular.element(this).scope().imageUpload(event)"/>-->
|
||||
|
||||
<div>
|
||||
<div ng-repeat="step in stepsModelEdit">
|
||||
<!--<a class="close-thin"></a>-->
|
||||
<img class="thumb" ng-src="{{step}}" />
|
||||
<div class="col-md-12">
|
||||
<div class="pull-right">
|
||||
<button class="btn btn-success btn-o btn-sm margin-right-15" type="button" ng-click="resetImageEdit()">Reset
|
||||
<div>
|
||||
<div ng-repeat="step in stepsModelEdit">
|
||||
<!--<a class="close-thin"></a>-->
|
||||
<img class="thumb" ng-src="{{step}}" />
|
||||
<div class="col-md-12">
|
||||
<div class="pull-right">
|
||||
<button class="btn btn-success btn-o btn-sm margin-right-15" type="button" ng-click="resetImageEdit()">Reset
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<style>
|
||||
.thumb {
|
||||
width: 90px;
|
||||
height: 115px;
|
||||
margin: 18px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.uploader {
|
||||
clear: both;
|
||||
}
|
||||
</style>
|
||||
</div>
|
||||
</div>
|
||||
<style>
|
||||
.thumb {
|
||||
width: 90px;
|
||||
height: 115px;
|
||||
margin: 18px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.uploader {
|
||||
clear: both;
|
||||
}
|
||||
</style>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.primaryPhone.$dirty && Form.primaryPhone.$invalid, 'has-success':Form.primaryPhone.$valid}">
|
||||
<label>
|
||||
<div class="row">
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.primaryPhone.$dirty && Form.primaryPhone.$invalid, 'has-success':Form.primaryPhone.$valid}">
|
||||
<label>
|
||||
Mobile Number <span
|
||||
class="symbol required"></span>
|
||||
</label>
|
||||
<input type="text" name="primaryPhone" tabindex="1" placeholder="Enter Mobile Number" class="form-control" ng-model="p.MobileNumber"
|
||||
ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/" ng-blur='updateCheckMobileExist(p)'
|
||||
required/>
|
||||
<span class="error text-small block" ng-if="Form.primaryPhone.$dirty && Form.primaryPhone.$invalid" ng-hide="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Mobile Number is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Enter a Valid Phone Number</span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.firstname.$dirty && Form.firstname.$invalid, 'has-success':Form.firstname.$valid}">
|
||||
<label>
|
||||
<input type="text" name="primaryPhone" tabindex="1" placeholder="Enter Mobile Number" class="form-control" ng-model="p.MobileNumber"
|
||||
ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/" ng-blur='updateCheckMobileExist(p)'
|
||||
required/>
|
||||
<span class="error text-small block" ng-if="Form.primaryPhone.$dirty && Form.primaryPhone.$invalid" ng-hide="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Mobile Number is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Enter a Valid Phone Number</span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.firstname.$dirty && Form.firstname.$invalid, 'has-success':Form.firstname.$valid}">
|
||||
<label>
|
||||
First Name <span class="symbol required"></span>
|
||||
</label>
|
||||
<input type="text" placeholder="Enter First Name" tabindex="2" class="form-control" name="firstname" ng-model="p.Firstname"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
|
||||
<span class="error text-small block" ng-if="Form.firstname.$dirty && Form.firstname.$error.required">First Name is required</span>
|
||||
<span class="error text-small block" ng-if="Form.firstname.$dirty && Form.firstname.$error.pattern">Invalid First Name </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.lastname.$dirty && Form.lastname.$invalid, 'has-success':Form.lastname.$valid}">
|
||||
<label>
|
||||
<input type="text" placeholder="Enter First Name" tabindex="2" class="form-control" name="firstname" ng-model="p.Firstname"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
|
||||
<span class="error text-small block" ng-if="Form.firstname.$dirty && Form.firstname.$error.required">First Name is required</span>
|
||||
<span class="error text-small block" ng-if="Form.firstname.$dirty && Form.firstname.$error.pattern">Invalid First Name </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.lastname.$dirty && Form.lastname.$invalid, 'has-success':Form.lastname.$valid}">
|
||||
<label>
|
||||
Last Name <span class="symbol required"></span>
|
||||
</label>
|
||||
<input type="text" placeholder="Enter Last Name" tabindex="3" class="form-control" name="lastname" ng-model="p.Lastname"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
|
||||
<span class="error text-small block" ng-if="Form.lastname.$dirty && Form.lastname.$error.required">Last Name is required</span>
|
||||
<span class="error text-small block" ng-if="Form.lastname.$dirty && Form.lastname.$error.pattern">Invalid Last Name </span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.fathername.$dirty && Form.fathername.$invalid, 'has-success':Form.fathername.$valid}">
|
||||
<label>
|
||||
<input type="text" placeholder="Enter Last Name" tabindex="3" class="form-control" name="lastname" ng-model="p.Lastname"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
|
||||
<span class="error text-small block" ng-if="Form.lastname.$dirty && Form.lastname.$error.required">Last Name is required</span>
|
||||
<span class="error text-small block" ng-if="Form.lastname.$dirty && Form.lastname.$error.pattern">Invalid Last Name </span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.fathername.$dirty && Form.fathername.$invalid, 'has-success':Form.fathername.$valid}">
|
||||
<label>
|
||||
Father Name <span class="symbol required"></span>
|
||||
</label>
|
||||
<input type="text" placeholder="Enter Father Name" tabindex="4" class="form-control" name="fathername" ng-model="p.Fathername"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
|
||||
<span class="error text-small block" ng-if="Form.fathername.$dirty && Form.fathername.$error.required">Father Name is required</span>
|
||||
<span class="error text-small block" ng-if="Form.fathername.$dirty && Form.fathername.$error.pattern">Invalid Father Name </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.mothername.$dirty && Form.mothername.$invalid, 'has-success':Form.mothername.$valid}">
|
||||
<label>
|
||||
<input type="text" placeholder="Enter Father Name" tabindex="4" class="form-control" name="fathername" ng-model="p.Fathername"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
|
||||
<span class="error text-small block" ng-if="Form.fathername.$dirty && Form.fathername.$error.required">Father Name is required</span>
|
||||
<span class="error text-small block" ng-if="Form.fathername.$dirty && Form.fathername.$error.pattern">Invalid Father Name </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.mothername.$dirty && Form.mothername.$invalid, 'has-success':Form.mothername.$valid}">
|
||||
<label>
|
||||
Mother Name <span class="symbol required"></span>
|
||||
</label>
|
||||
|
||||
<input type="text" placeholder="Enter Mother Name" tabindex="5" class="form-control" name="mothername" ng-model="p.MotherName"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
|
||||
<span class="error text-small block" ng-if="Form.mothername.$dirty && Form.mothername.$error.required">Mother Name is required</span>
|
||||
<span class="error text-small block" ng-if="Form.mothername.$dirty && Form.mothername.$error.pattern">Invalid Mother Name </span>
|
||||
</div>
|
||||
<div class=" col-md-4 form-group" ng-class="{'has-error':Form.emailId.$dirty && Form.emailId.$invalid, 'has-success':Form.emailId.$valid}">
|
||||
<label>
|
||||
<input type="text" placeholder="Enter Mother Name" tabindex="5" class="form-control" name="mothername" ng-model="p.MotherName"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" required/>
|
||||
<span class="error text-small block" ng-if="Form.mothername.$dirty && Form.mothername.$error.required">Mother Name is required</span>
|
||||
<span class="error text-small block" ng-if="Form.mothername.$dirty && Form.mothername.$error.pattern">Invalid Mother Name </span>
|
||||
</div>
|
||||
<div class=" col-md-4 form-group" ng-class="{'has-error':Form.emailId.$dirty && Form.emailId.$invalid, 'has-success':Form.emailId.$valid}">
|
||||
<label>
|
||||
Email ID <span class="symbol required"></span>
|
||||
</label>
|
||||
<input type="email" tabindex="6" placeholder="Enter Email ID" class="form-control" name="emailId" ng-pattern="/^[-a-z0-9~!$%^&*_=+}{\'?]+(\.[-a-z0-9~!$%^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?$/i"
|
||||
ng-model="p.EmailID" required>
|
||||
<span class="error text-small block" ng-if="Form.emailId.$dirty && Form.emailId.$invalid" ng-hide="Form.emailId.$error.email">Email is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.emailId.$error.email">Please, enter a valid email address.</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.secondaryPhone.$dirty && Form.secondaryPhone.$invalid, 'has-success':Form.secondaryPhone.$valid}">
|
||||
<label class="control-label">
|
||||
<input type="email" tabindex="6" placeholder="Enter Email ID" class="form-control" name="emailId" ng-pattern="/^[-a-z0-9~!$%^&*_=+}{\'?]+(\.[-a-z0-9~!$%^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?$/i"
|
||||
ng-model="p.EmailID" required>
|
||||
<span class="error text-small block" ng-if="Form.emailId.$dirty && Form.emailId.$invalid" ng-hide="Form.emailId.$error.email">Email is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.emailId.$error.email">Please, enter a valid email address.</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.secondaryPhone.$dirty && Form.secondaryPhone.$invalid, 'has-success':Form.secondaryPhone.$valid}">
|
||||
<label class="control-label">
|
||||
Alternate Mobile Number <span class="symbol required"></span>
|
||||
</label>
|
||||
<input type="text" name="secondaryPhone" tabindex="7" placeholder="Enter Alternate Mobile Number" class="form-control" ng-model="p.AlternateNumber"
|
||||
ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/" required/>
|
||||
<span class="error text-small block" ng-if="Form.secondaryPhone.$dirty && Form.secondaryPhone.$invalid" ng-hide="Form.secondaryPhone.$error.maxlength || Form.secondaryPhone.$error.minlength || Form.secondaryPhone.$error.pattern">Alternate Mobile Number is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.secondaryPhone.$error.maxlength || Form.secondaryPhone.$error.minlength || Form.secondaryPhone.$error.pattern">Enter a Valid Phone Number</span>
|
||||
</div>
|
||||
<input type="text" name="secondaryPhone" tabindex="7" placeholder="Enter Alternate Mobile Number" class="form-control" ng-model="p.AlternateNumber"
|
||||
ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/" required/>
|
||||
<span class="error text-small block" ng-if="Form.secondaryPhone.$dirty && Form.secondaryPhone.$invalid" ng-hide="Form.secondaryPhone.$error.maxlength || Form.secondaryPhone.$error.minlength || Form.secondaryPhone.$error.pattern">Alternate Mobile Number is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.secondaryPhone.$error.maxlength || Form.secondaryPhone.$error.minlength || Form.secondaryPhone.$error.pattern">Enter a Valid Phone Number</span>
|
||||
</div>
|
||||
|
||||
<div data-ng-controller="DatepickerDemoCtrl">
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.dateofbirth.$dirty && Form.dateofbirth.$invalid, 'has-success':Form.dateofbirth.$valid}">
|
||||
<label>
|
||||
<div data-ng-controller="DatepickerDemoCtrl">
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.dateofbirth.$dirty && Form.dateofbirth.$invalid, 'has-success':Form.dateofbirth.$valid}">
|
||||
<label>
|
||||
Date Of Birth <span
|
||||
class="symbol required"></span>
|
||||
</label>
|
||||
<input type="text" tabindex="8" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="p.DOB"
|
||||
is-open="startOpen" ng-init="startOpen = false" name="dateofbirth" datepicker-options="dateOptions"
|
||||
placeholder="Select Date of Birth" close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)"
|
||||
show-button-bar="false" max-date="currentDate" />
|
||||
<input type="text" tabindex="8" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="p.DOB"
|
||||
is-open="startOpen" ng-init="startOpen = false" name="dateofbirth" datepicker-options="dateOptions"
|
||||
placeholder="Select Date of Birth" close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)"
|
||||
show-button-bar="false" max-date="currentDate" />
|
||||
|
||||
|
||||
<span class="error text-small block" ng-if="Form.dateofbirth.$dirty && Form.dateofbirth.$invalid" ng-hide="Form.dateofbirth.$error.maxlength">Date of Birth is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.dateofbirth.$error.maxlength">Enter a Valid Date of Birth</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.gender.$dirty && Form.gender.$invalid , 'has-success':Form.gender.$valid}">
|
||||
<label class="block">
|
||||
<span class="error text-small block" ng-if="Form.dateofbirth.$dirty && Form.dateofbirth.$invalid" ng-hide="Form.dateofbirth.$error.maxlength">Date of Birth is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.dateofbirth.$error.maxlength">Enter a Valid Date of Birth</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.gender.$dirty && Form.gender.$invalid , 'has-success':Form.gender.$valid}">
|
||||
<label class="block">
|
||||
Gender <span class="symbol required"></span>
|
||||
</label>
|
||||
<div class="clip-radio radio-primary">
|
||||
<input type="radio" tabindex="9" id="female" name="gender" value="female" ng-model="p.Gender" required>
|
||||
<label for="female">
|
||||
<div class="clip-radio radio-primary">
|
||||
<input type="radio" tabindex="9" id="female" name="gender" value="female" ng-model="p.Gender" required>
|
||||
<label for="female">
|
||||
Female
|
||||
</label>
|
||||
<input type="radio" id="male" name="gender" value="male" ng-model="p.Gender" required>
|
||||
<label for="male">
|
||||
<input type="radio" id="male" name="gender" value="male" ng-model="p.Gender" required>
|
||||
<label for="male">
|
||||
Male
|
||||
</label>
|
||||
<span class="error text-small block" ng-if="Form.gender.$dirty && Form.gender.$invalid">Gender is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.gender.$dirty && Form.gender.$invalid">Gender is required.</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.address1.$dirty && Form.address1.$invalid}">
|
||||
<label>
|
||||
<div class="row">
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.address1.$dirty && Form.address1.$invalid}">
|
||||
<label>
|
||||
Permanent Address
|
||||
</label>
|
||||
<textarea placeholder="Enter Permanent Address" tabindex="10" class="form-control textdsc" name="address1" ng-model="p.PermanentAddress"></textarea>
|
||||
<span class="error text-small block" ng-if="Form.address1.$dirty && Form.address1.$invalid">Permanent Address is required</span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.address2.$dirty && Form.address2.$invalid}">
|
||||
<label>
|
||||
<textarea placeholder="Enter Permanent Address" tabindex="10" class="form-control textdsc" name="address1" ng-model="p.PermanentAddress"></textarea>
|
||||
<span class="error text-small block" ng-if="Form.address1.$dirty && Form.address1.$invalid">Permanent Address is required</span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.address2.$dirty && Form.address2.$invalid}">
|
||||
<label>
|
||||
Current Address
|
||||
</label>
|
||||
<textarea placeholder="Enter Current Address" tabindex="11" class="form-control textdsc" name="address2" ng-model="p.PresentAddress"></textarea>
|
||||
<span class="error text-small block" ng-if="Form.address2.$dirty && Form.address2.$invalid">Current Address is required</span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.aadharNumber.$dirty && Form.aadharNumber.$invalid, 'has-success':Form.aadharNumber.$valid}">
|
||||
<label>
|
||||
<textarea placeholder="Enter Current Address" tabindex="11" class="form-control textdsc" name="address2" ng-model="p.PresentAddress"></textarea>
|
||||
<span class="error text-small block" ng-if="Form.address2.$dirty && Form.address2.$invalid">Current Address is required</span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.aadharNumber.$dirty && Form.aadharNumber.$invalid, 'has-success':Form.aadharNumber.$valid}">
|
||||
<label>
|
||||
Aadhar Number <span class="symbol required"></span>
|
||||
</label>
|
||||
<input type="text" name="aadharNumber" tabindex="12" placeholder="____-____-____" ui-mask="9999-9999-9999" class="form-control"
|
||||
ng-model="p.AadharNumber" ng-minlength="10" ng-maxlength="15" ng-pattern="/^[0-9]*$/" required>
|
||||
<span class="error text-small block" ng-if="Form.aadharNumber.$dirty && Form.aadharNumber.$invalid" ng-hide="Form.aadharNumber.$error.maxlength || Form.aadharNumber.$error.minlength || Form.aadharNumber.$error.pattern">Aadhar Number is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.aadharNumber.$error.maxlength || Form.aadharNumber.$error.minlength || Form.aadharNumber.$error.pattern">Enter a Valid Aadhar Number</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-4 form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-6 form-group" ng-class="{'has-error':Form.otherId.$dirty && Form.otherId.$invalid}">
|
||||
<label>
|
||||
Other ID
|
||||
</label>
|
||||
<input type="text" name="otherId" tabindex="13" placeholder="Other Id" class="form-control" ng-model="p.OtherID" ng-minlength="1"
|
||||
ng-maxlength="20" ng-pattern="/^[a-zA-Z0-9 ._-]+$/">
|
||||
<span class="error text-small block" ng-if="Form.otherId.$dirty && Form.otherId.$invalid" ng-hide="Form.otherId.$error.maxlength || Form.otherId.$error.minlength || Form.otherId.$error.pattern">Aadhar Number is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.otherId.$error.maxlength || Form.otherId.$error.minlength || Form.otherId.$error.pattern">Enter a Valid Details</span>
|
||||
</div>
|
||||
<div class="col-md-6 form-group" ng-class="{'has-error':Form.otherIdDetails.$dirty && Form.otherIdDetails.$invalid}">
|
||||
<label>
|
||||
Other ID Details
|
||||
</label>
|
||||
<input type="text" name="otherIdDetails" tabindex="14" placeholder="Other Id Details" class="form-control" ng-model="p.OtherIDDetails"
|
||||
ng-minlength="1" ng-maxlength="20" ng-pattern="/^[a-zA-Z0-9 ._-]+$/">
|
||||
<span class="error text-small block" ng-if="Form.otherIdDetails.$dirty && Form.otherIdDetails.$invalid" ng-hide="Form.otherIdDetails.$error.maxlength || Form.otherIdDetails.$error.minlength || Form.otherIdDetails.$error.pattern">Aadhar Number is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.otherIdDetails.$error.maxlength || Form.otherIdDetails.$error.minlength || Form.otherIdDetails.$error.pattern">Enter a Valid Details</span>
|
||||
<input type="text" name="aadharNumber" tabindex="12" placeholder="____-____-____" ui-mask="9999-9999-9999" class="form-control"
|
||||
ng-model="p.AadharNumber" ng-minlength="10" ng-maxlength="15" ng-pattern="/^[0-9]*$/"
|
||||
required>
|
||||
<span class="error text-small block" ng-if="Form.aadharNumber.$dirty && Form.aadharNumber.$invalid" ng-hide="Form.aadharNumber.$error.maxlength || Form.aadharNumber.$error.minlength || Form.aadharNumber.$error.pattern">Aadhar Number is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.aadharNumber.$error.maxlength || Form.aadharNumber.$error.minlength || Form.aadharNumber.$error.pattern">Enter a Valid Aadhar Number</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.caste.$dirty && Form.caste.$invalid}">
|
||||
<label>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-4 form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-6 form-group" ng-class="{'has-error':Form.otherId.$dirty && Form.otherId.$invalid}">
|
||||
<label>
|
||||
Other ID
|
||||
</label>
|
||||
<input type="text" name="otherId" tabindex="13" placeholder="Other Id" class="form-control" ng-model="p.OtherID" ng-minlength="1"
|
||||
ng-maxlength="20" ng-pattern="/^[a-zA-Z0-9 ._-]+$/">
|
||||
<span class="error text-small block" ng-if="Form.otherId.$dirty && Form.otherId.$invalid" ng-hide="Form.otherId.$error.maxlength || Form.otherId.$error.minlength || Form.otherId.$error.pattern">Aadhar Number is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.otherId.$error.maxlength || Form.otherId.$error.minlength || Form.otherId.$error.pattern">Enter a Valid Details</span>
|
||||
</div>
|
||||
<div class="col-md-6 form-group" ng-class="{'has-error':Form.otherIdDetails.$dirty && Form.otherIdDetails.$invalid}">
|
||||
<label>
|
||||
Other ID Details
|
||||
</label>
|
||||
<input type="text" name="otherIdDetails" tabindex="14" placeholder="Other Id Details" class="form-control" ng-model="p.OtherIDDetails"
|
||||
ng-minlength="1" ng-maxlength="20" ng-pattern="/^[a-zA-Z0-9 ._-]+$/">
|
||||
<span class="error text-small block" ng-if="Form.otherIdDetails.$dirty && Form.otherIdDetails.$invalid" ng-hide="Form.otherIdDetails.$error.maxlength || Form.otherIdDetails.$error.minlength || Form.otherIdDetails.$error.pattern">Aadhar Number is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.otherIdDetails.$error.maxlength || Form.otherIdDetails.$error.minlength || Form.otherIdDetails.$error.pattern">Enter a Valid Details</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.caste.$dirty && Form.caste.$invalid}">
|
||||
<label>
|
||||
Caste
|
||||
</label>
|
||||
|
||||
<input type="text" placeholder="Enter Caste" tabindex="15" class="form-control" name="caste" ng-model="p.Caste" ng-pattern="/^[a-zA-Z.\s]*$/"
|
||||
/>
|
||||
<span class="error text-small block" ng-if="Form.caste.$dirty && Form.caste.$error.pattern">Invalid Caste Name </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.category.$dirty && Form.category.$invalid}">
|
||||
<label>
|
||||
<input type="text" placeholder="Enter Caste" tabindex="15" class="form-control" name="caste" ng-model="p.Caste" ng-pattern="/^[a-zA-Z.\s]*$/"
|
||||
/>
|
||||
<span class="error text-small block" ng-if="Form.caste.$dirty && Form.caste.$error.pattern">Invalid Caste Name </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.category.$dirty && Form.category.$invalid}">
|
||||
<label>
|
||||
Category
|
||||
</label>
|
||||
|
||||
<input type="text" placeholder="Enter Category" tabindex="16" class="form-control" name="category" ng-model="p.Category"
|
||||
/>
|
||||
<span class="error text-small block" ng-if="Form.category.$dirty && Form.category.$error.pattern">Invalid Category Name </span>
|
||||
</div>
|
||||
</div>
|
||||
<input type="text" placeholder="Enter Category" tabindex="16" class="form-control" name="category" ng-model="p.Category"
|
||||
/>
|
||||
<span class="error text-small block" ng-if="Form.category.$dirty && Form.category.$error.pattern">Invalid Category Name </span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.religion.$dirty && Form.religion.$invalid}">
|
||||
<label>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.religion.$dirty && Form.religion.$invalid}">
|
||||
<label>
|
||||
Religion
|
||||
</label>
|
||||
|
||||
<input type="text" placeholder="Enter Religion" tabindex="17" class="form-control" name="religion" ng-model="p.Religion"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" />
|
||||
<span class="error text-small block" ng-if="Form.religion.$dirty && Form.religion.$error.pattern">Invalid Religion Name </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.nationality.$dirty && Form.nationality.$invalid}">
|
||||
<label>
|
||||
<input type="text" placeholder="Enter Religion" tabindex="17" class="form-control" name="religion" ng-model="p.Religion"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" />
|
||||
<span class="error text-small block" ng-if="Form.religion.$dirty && Form.religion.$error.pattern">Invalid Religion Name </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.nationality.$dirty && Form.nationality.$invalid}">
|
||||
<label>
|
||||
Nationality
|
||||
</label>
|
||||
|
||||
<input type="text" placeholder="Enter Nationality" tabindex="18" class="form-control" name="nationality" ng-model="p.Nationality"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" />
|
||||
<span class="error text-small block" ng-if="Form.nationality.$dirty && Form.nationality.$error.pattern">Invalid Nationality Name </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.qualificaion.$dirty && Form.qualificaion.$invalid}">
|
||||
<label>
|
||||
<input type="text" placeholder="Enter Nationality" tabindex="18" class="form-control" name="nationality" ng-model="p.Nationality"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" />
|
||||
<span class="error text-small block" ng-if="Form.nationality.$dirty && Form.nationality.$error.pattern">Invalid Nationality Name </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.qualificaion.$dirty && Form.qualificaion.$invalid}">
|
||||
<label>
|
||||
Pre Qualification
|
||||
</label>
|
||||
|
||||
<input type="text" placeholder="Enter Qualification" tabindex="19" class="form-control" name="qualificaion" ng-model="p.PreQualification"
|
||||
/>
|
||||
<span class="error text-small block" ng-if="Form.qualificaion.$dirty && Form.qualificaion.$error.pattern">Enter a Valid Qualification</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<input type="text" placeholder="Enter Qualification" tabindex="19" class="form-control" name="qualificaion" ng-model="p.PreQualification"
|
||||
/>
|
||||
<span class="error text-small block" ng-if="Form.qualificaion.$dirty && Form.qualificaion.$error.pattern">Enter a Valid Qualification</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.occupation.$dirty && Form.occupation.$invalid}">
|
||||
<label>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.occupation.$dirty && Form.occupation.$invalid}">
|
||||
<label>
|
||||
Occupation
|
||||
</label>
|
||||
|
||||
<input type="text" placeholder="Enter Occupation" tabindex="20" class="form-control" name="occupation" ng-model="p.Occupation"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" />
|
||||
<span class="error text-small block" ng-if="Form.occupation.$dirty && Form.occupation.$error.pattern">Invalid Occupation </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.designation.$dirty && Form.designation.$invalid}">
|
||||
<label>
|
||||
<input type="text" placeholder="Enter Occupation" tabindex="20" class="form-control" name="occupation" ng-model="p.Occupation"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" />
|
||||
<span class="error text-small block" ng-if="Form.occupation.$dirty && Form.occupation.$error.pattern">Invalid Occupation </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.designation.$dirty && Form.designation.$invalid}">
|
||||
<label>
|
||||
Designation
|
||||
</label>
|
||||
|
||||
<input type="text" placeholder="Enter Designation" tabindex="21" class="form-control" name="designation" ng-model="p.Designation"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" />
|
||||
<span class="error text-small block" ng-if="Form.designation.$dirty && Form.designation.$error.pattern">Invalid Designation </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.companyname.$dirty && Form.companyname.$invalid}">
|
||||
<label>
|
||||
<input type="text" placeholder="Enter Designation" tabindex="21" class="form-control" name="designation" ng-model="p.Designation"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" />
|
||||
<span class="error text-small block" ng-if="Form.designation.$dirty && Form.designation.$error.pattern">Invalid Designation </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.companyname.$dirty && Form.companyname.$invalid}">
|
||||
<label>
|
||||
Company Name
|
||||
</label>
|
||||
<input type="text" placeholder="Enter Company Name" tabindex="22" class="form-control" name="companyname" ng-model="p.Companyname"
|
||||
/>
|
||||
<span class="error text-small block" ng-if="Form.companyname.$dirty && Form.companyname.$error.pattern">Invalid Company </span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.referredby.$dirty && Form.referredby.$invalid}">
|
||||
<label>
|
||||
<input type="text" placeholder="Enter Company Name" tabindex="22" class="form-control" name="companyname" ng-model="p.Companyname"
|
||||
/>
|
||||
<span class="error text-small block" ng-if="Form.companyname.$dirty && Form.companyname.$error.pattern">Invalid Company </span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.referredby.$dirty && Form.referredby.$invalid}">
|
||||
<label>
|
||||
Referred By
|
||||
</label>
|
||||
<input type="text" placeholder="Enter Refer's Name" tabindex="23" class="form-control" name="referredby" ng-model="p.ReferredBy"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" />
|
||||
<span class="error text-small block" ng-if="Form.referredby.$dirty && Form.referredby.$error.pattern">Invalid Referred By </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.referredmobilenumber.$dirty && Form.referredmobilenumber.$invalid}">
|
||||
<label>
|
||||
<input type="text" placeholder="Enter Refer's Name" tabindex="23" class="form-control" name="referredby" ng-model="p.ReferredBy"
|
||||
ng-pattern="/^[a-zA-Z.\s]*$/" />
|
||||
<span class="error text-small block" ng-if="Form.referredby.$dirty && Form.referredby.$error.pattern">Invalid Referred By </span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.referredmobilenumber.$dirty && Form.referredmobilenumber.$invalid}">
|
||||
<label>
|
||||
Refer's Mobile Number
|
||||
</label>
|
||||
<input type="text" name="referredmobilenumber" tabindex="24" placeholder="Enter Refer's Mobile Number" class="form-control"
|
||||
ng-model="p.ReferersMobileNumber" ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/"
|
||||
/>
|
||||
<span class="error text-small block" ng-if="Form.referredmobilenumber.$dirty && Form.referredmobilenumber.$invalid" ng-hide="Form.referredmobilenumber.$error.maxlength || Form.referredmobilenumber.$error.minlength || Form.referredmobilenumber.$error.pattern">Refer's Mobile Number is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.referredmobilenumber.$error.maxlength || Form.referredmobilenumber.$error.minlength || Form.referredmobilenumber.$error.pattern">Enter a Valid Phone Number</span>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>
|
||||
<input type="text" name="referredmobilenumber" tabindex="24" placeholder="Enter Refer's Mobile Number" class="form-control"
|
||||
ng-model="p.ReferersMobileNumber" ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/"
|
||||
/>
|
||||
<span class="error text-small block" ng-if="Form.referredmobilenumber.$dirty && Form.referredmobilenumber.$invalid" ng-hide="Form.referredmobilenumber.$error.maxlength || Form.referredmobilenumber.$error.minlength || Form.referredmobilenumber.$error.pattern">Refer's Mobile Number is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.referredmobilenumber.$error.maxlength || Form.referredmobilenumber.$error.minlength || Form.referredmobilenumber.$error.pattern">Enter a Valid Phone Number</span>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>
|
||||
Comments
|
||||
</label>
|
||||
<textarea maxlength="100" placeholder="Enter Comments" tabindex="26" class="form-control textdsc" name="Comments" ng-model="p.Comments"></textarea>
|
||||
<span class="text-small block">Max 100 Characters.</span>
|
||||
<!--<span class="error text-small block" ng-if="Form.DeactiveComments.$dirty && Form.DeactiveComments.$invalid">De-Active Comments is required</span>-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<label>
|
||||
<textarea maxlength="100" placeholder="Enter Comments" tabindex="26" class="form-control textdsc" name="Comments" ng-model="p.Comments"></textarea>
|
||||
<span class="text-small block">Max 100 Characters.</span>
|
||||
<!--<span class="error text-small block" ng-if="Form.DeactiveComments.$dirty && Form.DeactiveComments.$invalid">De-Active Comments is required</span>-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<label>
|
||||
Active/De-Active
|
||||
</label>
|
||||
<div ng-if="p.IsActive==true">
|
||||
<switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch>
|
||||
</div>
|
||||
<div ng-if="p.IsActive==false">
|
||||
<switch ng-model="p.IsActive" ng-init="p.IsActive = false" class="green"></switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" ng-if="p.IsActive == false" ng-class="{'has-error':Form.DeactiveComments.$dirty && Form.DeactiveComments.$invalid, 'has-success':Form.DeactiveComments.$valid}">
|
||||
<label>
|
||||
<div ng-if="p.IsActive==true">
|
||||
<switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch>
|
||||
</div>
|
||||
<div ng-if="p.IsActive==false">
|
||||
<switch ng-model="p.IsActive" ng-init="p.IsActive = false" class="green"></switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" ng-if="p.IsActive == false" ng-class="{'has-error':Form.DeactiveComments.$dirty && Form.DeactiveComments.$invalid, 'has-success':Form.DeactiveComments.$valid}">
|
||||
<label>
|
||||
Reason for Deactivating <span class="symbol required"></span>
|
||||
</label>
|
||||
<textarea maxlength="100" placeholder="Reason for Deactivating" tabindex="25" class="form-control textdsc" name="DeactiveComments"
|
||||
ng-model="p.DeactiveComments" required></textarea>
|
||||
<span class="text-small block">Max 100 Characters.</span>
|
||||
<span class="error text-small block" ng-if="Form.DeactiveComments.$dirty && Form.DeactiveComments.$invalid">De-Active Comments is required</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!--<pre>{{ p | json}}</pre>-->
|
||||
<input type="hidden" ng-init="hidden_DOB=p.DOB" ng-model="hidden_DOB">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="pull-right">
|
||||
<button type="button" ng-disabled="editSaveButtonDisable" ladda="ldloading1.zoom_in" tabindex="19" class="btn btn-wide btn-success" data-style="zoom-in" ng-click="updateStuDetails(Form, p, hidden_DOB)">
|
||||
<textarea maxlength="100" placeholder="Reason for Deactivating" tabindex="25" class="form-control textdsc" name="DeactiveComments"
|
||||
ng-model="p.DeactiveComments" required></textarea>
|
||||
<span class="text-small block">Max 100 Characters.</span>
|
||||
<span class="error text-small block" ng-if="Form.DeactiveComments.$dirty && Form.DeactiveComments.$invalid">De-Active Comments is required</span>
|
||||
</div>
|
||||
</div>
|
||||
<!--<pre>{{ p | json}}</pre>-->
|
||||
<input type="hidden" ng-init="hidden_DOB=p.DOB" ng-model="hidden_DOB">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="pull-right">
|
||||
<button type="button" ng-disabled="editSaveButtonDisable" ladda="ldloading1.zoom_in" tabindex="19" class="btn btn-wide btn-success"
|
||||
data-style="zoom-in" ng-click="updateStuDetails(Form, p, hidden_DOB)">
|
||||
<i class='fa fa-spinner fa-spin' ng-if="editSaveButtonDisable"> </i> Save
|
||||
</button>
|
||||
<button type="reset" class="btn btn-warning btn-wide" tabindex="20" ng-click="cancel()">
|
||||
<button type="reset" class="btn btn-warning btn-wide" tabindex="20" ng-click="cancel()">
|
||||
Cancel
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</tab>
|
||||
<tab heading="Document Details" id="documentDetails">
|
||||
<!--<h1>Document Details</h1>-->
|
||||
<div ng-init="getStuEntrollDocDetails(p.StudentID)">
|
||||
<fieldset style="background-color: #eaeaea;">
|
||||
<legend>
|
||||
Add Document Details
|
||||
</legend>
|
||||
<div class="container">
|
||||
<form name="FormDoc" id="formDoc" novalidate ng-submit="studentEntrollDocFORM.submit(FormDoc, myModelAddDocuments, p.StudentID)"
|
||||
method="post">
|
||||
<div class="row">
|
||||
<div class="col-md-6 form-group" ng-class="{'has-error':FormDoc.documentName.$dirty && FormDoc.documentName.$invalid, 'has-success':FormDoc.documentName.$valid}">
|
||||
<label>
|
||||
Document Name <span
|
||||
class="symbol required"></span>
|
||||
</label>
|
||||
<input type="text" name="documentName" tabindex="1" placeholder="Document Name" class="form-control" ng-model="myModelAddDocuments.documentName"
|
||||
required/>
|
||||
<span class="error text-small block" ng-if="FormDoc.documentName.$dirty && FormDoc.documentName.$invalid" ng-hide="FormDoc.documentName.$error.maxlength || FormDoc.documentName.$error.minlength || FormDoc.documentName.$error.pattern">Document Name is required.</span>
|
||||
</div>
|
||||
<div class="col-md-4 form-group">
|
||||
|
||||
<label>
|
||||
Attach File <span
|
||||
class="symbol required"></span>
|
||||
</label>
|
||||
<span>
|
||||
<input type="file" accept="/*" file-upload-document />
|
||||
</span>
|
||||
<!--<span class="d-inline-block">
|
||||
<button tooltip="Reset" class="btn btn-warning btn-xs pull-right" tabindex="6" ng-click="studentEntrollDocFORM.reset(FormDoc)">
|
||||
<i class="ti-reload"></i>
|
||||
</button>
|
||||
</span>-->
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label>
|
||||
</label>
|
||||
<div>
|
||||
<button tooltip="Upload" type="submit" ng-disabled="disableButton" tabindex="5" class="btn btn-xs btn-success">
|
||||
<i class="ti-upload"></i>
|
||||
</button>
|
||||
<button tooltip="Reset" class="btn btn-warning btn-xs" tabindex="6" ng-click="studentEntrollDocFORM.reset(FormDoc)">
|
||||
<i class="ti-reload"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="center">
|
||||
<h5 ng-show="documentAddDetailsLoading" style="color:#007AFF">Loading...</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</fieldset>
|
||||
<!--<fieldset>
|
||||
<legend>
|
||||
Branch Details
|
||||
</legend>
|
||||
<div class="row">
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.homeBranch.$dirty && Form.homeBranch.$invalid, 'has-success':Form.homeBranch.$valid}">
|
||||
<label for="form-field-select-2">
|
||||
Home Branch <span class="symbol required"></span>
|
||||
</label>
|
||||
|
||||
<select class="form-control" class="cs-select cs-skin-elastic" name="homeBranch" ng-model="p.BranchCode" required>
|
||||
<option value="" disabled selected>Select Home Branch</option>
|
||||
<option ng-repeat="item in branchDetails" value="{{item.BranchCode}}" ng-selected="p.BranchCode == item.BranchCode">{{item.BranchName}}</option>
|
||||
</select>
|
||||
<span class="error text-small block" ng-if="Form.homeBranch.$dirty && Form.homeBranch.$error.required">Home Branch is Required</span>
|
||||
</div>
|
||||
|
||||
<div data-ng-controller="DatepickerDemoCtrl">
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.dateofjoining.$dirty && Form.dateofjoining.$invalid, 'has-success':Form.dateofjoining.$valid}">
|
||||
<label>
|
||||
Date Of Joining <span class="symbol required"></span>
|
||||
</label>
|
||||
|
||||
<input type="text" tabindex="6" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="yyyy-MM-dd" ng-model="p.DOJ"
|
||||
is-open="startOpen" ng-init="startOpen = false" name="dateofbirth" datepicker-options="dateOptions"
|
||||
placeholder="Select Date of Joining" close-text="Close" required="required"
|
||||
/>
|
||||
<span class="error text-small block" ng-if="Form.dateofjoining.$dirty && Form.dateofjoining.$error.required">Date of Joining required</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 form-group" ng-class="{'has-error':Form.role.$dirty && Form.role.$invalid, 'has-success':Form.role.$valid}">
|
||||
<label>
|
||||
Role <span class="symbol required"></span>
|
||||
</label>
|
||||
<select class="form-control" name="role" ng-model="p.ListCode" class="cs-select cs-skin-elastic" required>
|
||||
|
||||
<option value="" disabled selected>Select Role</option>
|
||||
<option ng-repeat="item in roleDetails" value="{{item.ListCode}}" ng-selected="p.ListCode == item.ListCode">{{item.ListName}}</option>
|
||||
</select>
|
||||
<span class="error text-small block" ng-if="Form.role.$dirty && Form.role.$error.required">Role is required</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<label>
|
||||
Active/De-Active
|
||||
</label>
|
||||
|
||||
<div ng-switch="p.IsActive">
|
||||
<div ng-switch-when="true">
|
||||
<switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch>
|
||||
</div>
|
||||
<div ng-switch-when="false">
|
||||
<switch ng-model="p.IsActive" ng-init="p.IsActive = false" class="green"></switch>
|
||||
</div>
|
||||
<div ng-switch-default>
|
||||
<switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<pre>{{ p | json}}</pre>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="pull-right">
|
||||
<button type="button" ladda="ldloading1.zoom_in" class="btn btn-wide btn-success" data-style="zoom-in" ng-click="updateEmpDetails(Form, p)">
|
||||
Submit
|
||||
</button>
|
||||
<button type="reset" class="btn btn-warning btn-wide" tabindex="9" ng-click="branchForm.reset(Form)">
|
||||
Reset
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="col-md-12">
|
||||
<div class="pull-right">
|
||||
<input type="button" class="btn btn-warning btn-wide" tabindex="9" value="Cancel"
|
||||
ng-click="cancel();">
|
||||
</input>
|
||||
<div id="documentDetalils">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover" ng-controller="studentModalDemoCtrl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Document Name</th>
|
||||
<th>Details</th>
|
||||
<th class="center">Download/Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody ng-repeat="doc in studentDocumentsList">
|
||||
<tr>
|
||||
<td>{{doc.DocumentName}}</td>
|
||||
<td>{{doc.DocumentStorePath}}</td>
|
||||
<td class="center"><button tooltip="Download" class="btn btn-xs btn-primary"><i class="ti-download">
|
||||
<a ng-href="http://localhost/apollo_New_Update_20_02_2018/apollodec/Apollo/images/{{doc.DocumentStorePath}}" target="_blank"></a> </i></button>
|
||||
<button tooltip="Delete" class="btn btn-xs btn-danger" ng-click="deleteDocDetails(doc.ID, p.StudentID)"><i class="ti-trash">
|
||||
</i></button>
|
||||
<!--<a ng-src="images/{{doc.DocumentStorePath}}" target="_blank">here!</a>-->
|
||||
<!--http://localhost/apollo_New_Update_20_02_2018/apollodec/Apollo/-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div ng-if="docNotFound">
|
||||
<span style="color:tomato;"> No document details found **</span>
|
||||
</div>
|
||||
</div>-->
|
||||
<!--</fieldset>-->
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</tab>
|
||||
</tabset>
|
||||
<!-- class="editRowTd" -->
|
||||
@ -96,7 +96,7 @@
|
||||
|
||||
<select class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
|
||||
<option value="" selected>Select Course</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}<span ng-show="itemCourse.CourseCode != ''">(<strong>{{itemCourse.CourseCode}}</strong>)</span></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@ -650,7 +650,7 @@
|
||||
<select class="form-control" tabindex="26" name="course" ng-model="myModelCourseAdd.course" class="cs-select cs-skin-elastic"
|
||||
required>
|
||||
<option value="" disabled selected>Select Course</option>
|
||||
<option ng-repeat="item in courseDataAdd" value="{{item.CourseID}}">{{item.CourseName}}</option>
|
||||
<option ng-repeat="item in courseDataAdd" value="{{item.CourseID}}">{{item.CourseName}}<span ng-show="item.CourseCode != ''">(<b>{{item.CourseCode}}</b>)</span></option>
|
||||
</select>
|
||||
</div>
|
||||
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span>
|
||||
|
||||
@ -126,7 +126,7 @@
|
||||
|
||||
<select class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
|
||||
<option value="" selected>Select Course</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}<span ng-show="itemCourse.CourseCode != ''">(<strong>{{itemCourse.CourseCode}}</strong>)</span></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@ -674,7 +674,7 @@
|
||||
<select class="form-control" tabindex="28" name="course" ng-model="myModelCourseAdd.course" class="cs-select cs-skin-elastic"
|
||||
required>
|
||||
<option value="" disabled selected>Select Course</option>
|
||||
<option ng-repeat="item in courseDataAdd" value="{{item.CourseID}}">{{item.CourseName}}</option>
|
||||
<option ng-repeat="item in courseDataAdd" value="{{item.CourseID}}">{{item.CourseName}}<span ng-show="item.CourseCode != ''">(<b>{{item.CourseCode}}</b>)</span></option>
|
||||
</select>
|
||||
</div>
|
||||
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
Loading…
Reference in New Issue
Block a user