Merge remote-tracking branch 'origin/master'

This commit is contained in:
gandhimathi 2018-02-22 17:44:39 +05:30
commit da6cc0d4ba
15 changed files with 2262 additions and 1633 deletions

View File

@ -129,6 +129,9 @@ $route['updateStudentImgDetails'] = 'Student_Controller/updateStudentImgDetails'
$route['getBranchListDetails'] = 'Student_Controller/getBranchListDetails'; $route['getBranchListDetails'] = 'Student_Controller/getBranchListDetails';
$route['getBranchActiveStatusforStuAdd'] = 'Student_Controller/getBranchActiveStatusforStuAdd'; $route['getBranchActiveStatusforStuAdd'] = 'Student_Controller/getBranchActiveStatusforStuAdd';
$route['getExistingStudentDetails'] = 'Student_Controller/getExistingStudentDetails'; $route['getExistingStudentDetails'] = 'Student_Controller/getExistingStudentDetails';
$route['addStudentEntrollDocDetails'] = 'Student_Controller/addStudentEntrollDocDetails';
$route['getListofStuDocDetails'] = 'Student_Controller/getListofStuDocDetails';
$route['deleteStuDocDetails'] = 'Student_Controller/deleteStuDocDetails';
//batch //batch
$route['addBatchDetails'] = 'Batch_Controller/addBatchDetails'; $route['addBatchDetails'] = 'Batch_Controller/addBatchDetails';

View File

@ -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() { public function updateStudentImgDetails_post() {
$imagename = $_FILES['idStuUpProof']['name']; $imagename = $_FILES['idStuUpProof']['name'];

View File

@ -53,20 +53,17 @@ class StatusUpdation_model extends CI_Model
return $results; return $results;
} }
public function get_couser_name($cours) { public function get_couser_name($cours) {
$this->db->select('t2.CourseName'); $this->db->select('t2.CourseName');
// $this->db->from('' . COURSE_FEES . ' as t1'); // $this->db->from('' . COURSE_FEES . ' as t1');
$this->db->from('' . COURSE . ' as t2'); $this->db->from('' . COURSE . ' as t2');
$this->db->where('t2.CourseID', $cours); $this->db->where('t2.CourseID', $cours);
$roleDetails = $this->db->get()->first_row(); $roleDetails = $this->db->get()->first_row();
return "$roleDetails->CourseName"; return "$roleDetails->CourseName";
} }
// update Application status // update Application status
public function update_applicationStatus($arr,$reqDetails) { public function update_applicationStatus($arr,$reqDetails) {
$this->db->insert_batch(APPLICATION_STATUS, $arr); $this->db->insert_batch(APPLICATION_STATUS, $arr);
if ($this->db->affected_rows() >= 1) { if ($this->db->affected_rows() >= 1) {
if($this->get_ListCode_status($arr[0]['ListCode'])){ if($this->get_ListCode_status($arr[0]['ListCode'])){
@ -102,9 +99,9 @@ class StatusUpdation_model extends CI_Model
$dateToMsg = $arr[0]['CDate']; $dateToMsg = $arr[0]['CDate'];
$statuToMsg = $this->get_status_name_ListCode($arr[0]['ListCode']); $statuToMsg = $this->get_status_name_ListCode($arr[0]['ListCode']);
// $cerNamtToMsg = $this->get_certificate_name($arr[0]['CertificationType']); // $cerNamtToMsg = $this->get_certificate_name($arr[0]['CertificationType']);
$cerNamtToMsg = 'MARK CARD'; $cerNamtToMsg = 'MARK CARD';
$getSemYearMsg = $this->get_couser_sem_yr_msg($arr[0]['CourseID']); $getSemYearMsg = $this->get_couser_sem_yr_msg($arr[0]['CourseID']);
$mesg = "Status Update : $cerNamtToMsg $getSemYearMsg - $statuToMsg $dateToMsg."; $mesg = "Status Update : $cerNamtToMsg $getSemYearMsg - $statuToMsg $dateToMsg.";
// $mesg = "Status Update : $cerNamtToMsg - $statuToMsg $dateToMsg."; // $mesg = "Status Update : $cerNamtToMsg - $statuToMsg $dateToMsg.";
$this->smssend($arr, $mesg); $this->smssend($arr, $mesg);
@ -165,93 +162,92 @@ class StatusUpdation_model extends CI_Model
public function get_prev_status_list($reqDetailsFor, $reqDetails){ public function get_prev_status_list($reqDetailsFor, $reqDetails){
if( $reqDetailsFor == 'STUDY_MATERIAL') { if( $reqDetailsFor == 'STUDY_MATERIAL') {
$searchFor = 'M001'; $searchFor = 'M001';
$searchTableFor = STUDY_MATERIAL_STATUS; $searchTableFor = STUDY_MATERIAL_STATUS;
$this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year'); $this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year');
$this->db->from(''. $searchTableFor . ' as t1'); $this->db->from(''. $searchTableFor . ' as t1');
$this->db->where('t1.StudentID', $reqDetails['student']); $this->db->where('t1.StudentID', $reqDetails['student']);
$this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT'); $this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT');
$this->db->where('t2.CourseID', $reqDetails['CourseID']); $this->db->where('t2.CourseID', $reqDetails['CourseID']);
$this->db->join('' . LOGIN . ' as t3', 't3.ID = t1.CreatedBy', 'LEFT'); $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('' . STAFF . ' as t4', 't4.StaffID = t3.StaffID', 'LEFT');
$this->db->join('' . PICK_LIST_DETAILS . ' as t5', 't5.ListCode = t1.ListCode', 'LEFT'); $this->db->join('' . PICK_LIST_DETAILS . ' as t5', 't5.ListCode = t1.ListCode', 'LEFT');
$this->db->order_by('t1.CreatedOn', 'DESC'); $this->db->order_by('t1.CreatedOn', 'DESC');
$statusDetails = $this->db->get(); $statusDetails = $this->db->get();
$prevStatusDetails = $statusDetails->result(); $prevStatusDetails = $statusDetails->result();
if (count($prevStatusDetails) > 0) { if (count($prevStatusDetails) > 0) {
$results['preStatusDetails'] = true; $results['preStatusDetails'] = true;
$results['preStatus_details_list'] = $prevStatusDetails; $results['preStatus_details_list'] = $prevStatusDetails;
} else { } else {
$results['preStatusDetails'] = false; $results['preStatusDetails'] = false;
$results['message'] = 'No record found'; $results['message'] = 'No record found';
} }
} else if ( $reqDetailsFor == 'APPICATION_STATUS' ) { } else if ( $reqDetailsFor == 'APPICATION_STATUS' ) {
$searchFor = 'A001'; $searchFor = 'A001';
$searchTableFor = APPLICATION_STATUS; $searchTableFor = APPLICATION_STATUS;
$this->db->select('t1.*, t4.Firstname, t5.ListName, t6.CertificateName'); $this->db->select('t1.*, t4.Firstname, t5.ListName, t6.CertificateName');
$this->db->from(''. $searchTableFor . ' as t1'); $this->db->from(''. $searchTableFor . ' as t1');
$this->db->where('t1.StudentID', $reqDetails['student']); $this->db->where('t1.StudentID', $reqDetails['student']);
// $this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT'); // $this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT');
// $this->db->where('t2.CourseID', $reqDetails['CourseID']); // $this->db->where('t2.CourseID', $reqDetails['CourseID']);
$this->db->join('' . LOGIN . ' as t3', 't3.ID = t1.CreatedBy', 'LEFT'); $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('' . STAFF . ' as t4', 't4.StaffID = t3.StaffID', 'LEFT');
$this->db->join('' . PICK_LIST_DETAILS . ' as t5', 't5.ListCode = t1.ListCode', '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->join('' . CERTIFICATION . ' as t6', 't6.CertificationID = t1.CertificationType', 'LEFT');
$this->db->order_by('t1.CreatedOn', 'DESC'); $this->db->order_by('t1.CreatedOn', 'DESC');
$statusDetails = $this->db->get(); $statusDetails = $this->db->get();
$prevStatusDetails = $statusDetails->result(); $prevStatusDetails = $statusDetails->result();
if (count($prevStatusDetails) > 0) { if (count($prevStatusDetails) > 0) {
$results['preStatusDetails'] = true; $results['preStatusDetails'] = true;
$results['preStatus_details_list'] = $prevStatusDetails; $results['preStatus_details_list'] = $prevStatusDetails;
} else { } else {
$results['preStatusDetails'] = false; $results['preStatusDetails'] = false;
$results['message'] = 'No record found'; $results['message'] = 'No record found';
} }
} else if ( $reqDetailsFor == 'CERTIFICATION_STATUS' ) { } else if ( $reqDetailsFor == 'CERTIFICATION_STATUS' ) {
$searchFor = 'C001'; $searchFor = 'C001';
$searchTableFor = CERTIFICATION_STATUS; $searchTableFor = CERTIFICATION_STATUS;
$this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year'); $this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year');
$this->db->from(''. $searchTableFor . ' as t1'); $this->db->from(''. $searchTableFor . ' as t1');
$this->db->where('t1.StudentID', $reqDetails['student']); $this->db->where('t1.StudentID', $reqDetails['student']);
$this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT'); $this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT');
$this->db->where('t2.CourseID', $reqDetails['CourseID']); $this->db->where('t2.CourseID', $reqDetails['CourseID']);
$this->db->join('' . LOGIN . ' as t3', 't3.ID = t1.CreatedBy', 'LEFT'); $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('' . STAFF . ' as t4', 't4.StaffID = t3.StaffID', 'LEFT');
$this->db->join('' . PICK_LIST_DETAILS . ' as t5', 't5.ListCode = t1.ListCode', '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->join('' . CERTIFICATION . ' as t6', 't6.CertificationID = t1.CertificationType', 'LEFT');
$this->db->order_by('t1.CreatedOn', 'DESC'); $this->db->order_by('t1.CreatedOn', 'DESC');
$statusDetails = $this->db->get(); $statusDetails = $this->db->get();
$prevStatusDetails = $statusDetails->result(); $prevStatusDetails = $statusDetails->result();
if (count($prevStatusDetails) > 0) { if (count($prevStatusDetails) > 0) {
$results['preStatusDetails'] = true; $results['preStatusDetails'] = true;
$results['preStatus_details_list'] = $prevStatusDetails; $results['preStatus_details_list'] = $prevStatusDetails;
} else { } else {
$results['preStatusDetails'] = false; $results['preStatusDetails'] = false;
$results['message'] = 'No record found'; $results['message'] = 'No record found';
} }
} else if ( $reqDetailsFor == 'ANSWERBOOKLET_STATUS' ) { } else if ( $reqDetailsFor == 'ANSWERBOOKLET_STATUS' ) {
$searchFor = 'B001'; $searchFor = 'B001';
$searchTableFor = ANSWER_BOOKLET; $searchTableFor = ANSWER_BOOKLET;
$this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year'); $this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year');
$this->db->from(''. $searchTableFor . ' as t1'); $this->db->from(''. $searchTableFor . ' as t1');
$this->db->where('t1.StudentID', $reqDetails['student']); $this->db->where('t1.StudentID', $reqDetails['student']);
$this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT'); $this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT');
$this->db->where('t2.CourseID', $reqDetails['CourseID']); $this->db->where('t2.CourseID', $reqDetails['CourseID']);
$this->db->join('' . LOGIN . ' as t3', 't3.ID = t1.CreatedBy', 'LEFT'); $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('' . STAFF . ' as t4', 't4.StaffID = t3.StaffID', 'LEFT');
$this->db->join('' . PICK_LIST_DETAILS . ' as t5', 't5.ListCode = t1.ListCode', 'LEFT'); $this->db->join('' . PICK_LIST_DETAILS . ' as t5', 't5.ListCode = t1.ListCode', 'LEFT');
$this->db->order_by('t1.CreatedOn', 'DESC'); $this->db->order_by('t1.CreatedOn', 'DESC');
$statusDetails = $this->db->get(); $statusDetails = $this->db->get();
$prevStatusDetails = $statusDetails->result(); $prevStatusDetails = $statusDetails->result();
if (count($prevStatusDetails) > 0) { if (count($prevStatusDetails) > 0) {
$results['preStatusDetails'] = true; $results['preStatusDetails'] = true;
$results['preStatus_details_list'] = $prevStatusDetails; $results['preStatus_details_list'] = $prevStatusDetails;
} else { } else {
$results['preStatusDetails'] = false; $results['preStatusDetails'] = false;
$results['message'] = 'No record found'; $results['message'] = 'No record found';
} }
} }
return $results; return $results;
} }
@ -274,8 +270,6 @@ class StatusUpdation_model extends CI_Model
// update answer booklet status // update answer booklet status
public function update_answerbooklet($arr,$reqDetails) { public function update_answerbooklet($arr,$reqDetails) {
// print_r($arr);exit(); // print_r($arr);exit();
$this->db->insert_batch(ANSWER_BOOKLET, $arr); $this->db->insert_batch(ANSWER_BOOKLET, $arr);
if ($this->db->affected_rows() >= 1) { if ($this->db->affected_rows() >= 1) {
@ -291,7 +285,6 @@ class StatusUpdation_model extends CI_Model
} }
public function get_couser_sem_yr_msg($cours) { public function get_couser_sem_yr_msg($cours) {
$this->db->select('t1.Sem_Year, t2.CourseName'); $this->db->select('t1.Sem_Year, t2.CourseName');
$this->db->from('' . COURSE_FEES . ' as t1'); $this->db->from('' . COURSE_FEES . ' as t1');
$this->db->join('' . COURSE . ' as t2', 't2.CourseID = t1.CourseID', 'LEFT'); $this->db->join('' . COURSE . ' as t2', 't2.CourseID = t1.CourseID', 'LEFT');
@ -335,52 +328,102 @@ class StatusUpdation_model extends CI_Model
SFS.CourseID = '$reqData' SFS.CourseID = '$reqData'
AND SFS.StudentID = '$stuFor'"; AND SFS.StudentID = '$stuFor'";
// AND CF.ProgramType ='Y001'"; // AND CF.ProgramType ='Y001'";
$queryDetails = $this->db->query($subQuery); $queryDetails = $this->db->query($subQuery);
$results['semYearResult'] = true; $results['semYearResult'] = true;
$results['semYear_result_details'] = $queryDetails->result(); $results['semYear_result_details'] = $queryDetails->result();
return $results; return $results;
} }
// get serach result // get serach result
public function get_search_result($reqData, $req) { public function get_search_result($reqData, $req) {
// print_r($reqData['University']); // print_r($reqData['University']);
// print_r($req); // print_r($req);
// exit(); // exit();
$University = $reqData['University']; $University = $reqData['University'];
$Course = $reqData['Course']; $Course = $reqData['Course'];
$Batch = $reqData['Batch']; $Batch = $reqData['Batch'];
$branch = $req['localBranchID']; $branch = $req['localBranchID'];
if( $branch == 'All' ) { 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 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 LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON
SC.CourseID = C.CourseID SC.CourseID = C.CourseID
WHERE WHERE
(SC.UniversityID = '$University' SC.UniversityID = '$University'
OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University')
OR (SC.BatchCode = '$Batch' AND SC.CourseID = '$Course' AND SC.UniversityID = '$University'))
AND S.IsActive = '1' AND S.IsActive = '1'
AND SC.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); $queryDetails = $this->db->query($subQuery);
$results['searchResult'] = true; $results['searchResult'] = true;
$results['search_result_details'] = $queryDetails->result(); $results['search_result_details'] = $queryDetails->result();
} else { } else if ($University != '' && $Course != '' && $Batch == '' ) {
// echo $University; $subQuery = "SELECT S.* , SC.ID as UNI_ID, SC.CourseID , C.CourseName , C.CourseCode, U.UniversityName
// echo $branch;
$subQuery = "SELECT S.* , SC.CourseID , C.CourseName , U.UniversityName
FROM ".STUDENTS." as S LEFT JOIN ".STUDENTCOURSE." as SC ON SC.StudentID = S.StudentID 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 LEFT JOIN ".UNIVERSITY." as U ON SC.UniversityID = U.UniversityID LEFT JOIN ".COURSE." as C ON
SC.CourseID = C.CourseID SC.CourseID = C.CourseID
WHERE WHERE
(SC.UniversityID = '$University' SC.CourseID = '$Course' AND SC.UniversityID = '$University'
OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University') AND S.IsActive = '1'
OR (SC.BatchCode = '$Batch' AND SC.CourseID = '$Course' AND SC.UniversityID = '$University')) 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 S.IsActive = '1'
AND SC.BranchID = '$branch' AND SC.BranchID = '$branch'
AND SC.IsActive = '1'"; AND SC.IsActive = '1'";
@ -388,10 +431,61 @@ class StatusUpdation_model extends CI_Model
// SC.UniversityID LIKE '%$University%' // SC.UniversityID LIKE '%$University%'
// AND SC.CourseID LIKE '%$Course%' // AND SC.CourseID LIKE '%$Course%'
// AND SC.BatchCode LIKE '%$Batch%' // AND SC.BatchCode LIKE '%$Batch%'
$queryDetails = $this->db->query($subQuery); $queryDetails = $this->db->query($subQuery);
$results['searchResult'] = true; $results['searchResult'] = true;
$results['search_result_details'] = $queryDetails->result(); $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; return $results;
} }
@ -410,16 +504,14 @@ class StatusUpdation_model extends CI_Model
// University Details // University Details
$resultArr['UniversityID'] = $clip->UniversityID; $resultArr['UniversityID'] = $clip->UniversityID;
$resultArr['UniversityName'] = $clip->UniversityName; $resultArr['UniversityName'] = $clip->UniversityName;
// Course Details // 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->from(''.COURSE. ' as t2');
$this->db->where('t2.UniversityID', $clip->UniversityID); $this->db->where('t2.UniversityID', $clip->UniversityID);
$this->db->where('t2.IsActive', 1); $this->db->where('t2.IsActive', 1);
$courDetails = $this->db->get(); $courDetails = $this->db->get();
$courseDetails = $courDetails->result(); $courseDetails = $courDetails->result();
$resultArr['Course'] =$courseDetails; $resultArr['Course'] =$courseDetails;
// Batch Details // Batch Details
$this->db->select('t3.BatchName, t3.BatchCode'); $this->db->select('t3.BatchName, t3.BatchCode');
$this->db->from(''.BATCH. ' as t3'); $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 // http://www.24x7sms.com/downloads/24X7SMS_http_API2.0.pdf
// API Key : xegCdYUIMf3 // API Key : xegCdYUIMf3
// Your new password for logging into Apollo student portal is (Password). Please change the password as soon as you login. // 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. // This is the template to be used.
public function smssend($arr, $msg) public function smssend($arr, $msg)
{ {
$number =array(); $number =array();
@ -514,8 +604,6 @@ class StatusUpdation_model extends CI_Model
$this->db->where('PLD.IsActive','1'); $this->db->where('PLD.IsActive','1');
$checkStatus=$this->db->get()->last_row(); $checkStatus=$this->db->get()->last_row();
if($checkStatus){ if($checkStatus){
$studentDetails = $this->studentInfo($fromDetails); $studentDetails = $this->studentInfo($fromDetails);
if($studentDetails){ if($studentDetails){
$arrayDetails['MobileNumber']=$studentDetails->MobileNumber; $arrayDetails['MobileNumber']=$studentDetails->MobileNumber;
@ -554,43 +642,7 @@ class StatusUpdation_model extends CI_Model
$this->db->where('IsActive', '1'); $this->db->where('IsActive', '1');
$activityDetails=$this->db->get(ACTIVITY)->last_row(); $activityDetails=$this->db->get(ACTIVITY)->last_row();
if($activityDetails){ if($activityDetails){
$this->db->select('LD.LeadID,LT.TrackingID');
$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->from(LEAD_DETAILS.' as LD'); $this->db->from(LEAD_DETAILS.' as LD');
$this->db->join(LEAD_TRACKING.' as LT', 'LT.LeadID = LD.LeadID'); $this->db->join(LEAD_TRACKING.' as LT', 'LT.LeadID = LD.LeadID');
$this->db->where('LD.MobileNumber',$arrayDetails['MobileNumber']); $this->db->where('LD.MobileNumber',$arrayDetails['MobileNumber']);
@ -609,7 +661,6 @@ class StatusUpdation_model extends CI_Model
$changeStatusCode['UpdatedBy'] = $arrayDetails['CreatedBy']; $changeStatusCode['UpdatedBy'] = $arrayDetails['CreatedBy'];
$changeStatusCode['UpdatedOn'] = $arrayDetails['CreatedOn']; $changeStatusCode['UpdatedOn'] = $arrayDetails['CreatedOn'];
$changeStatusCode['CreatedBranch']=$arrayDetails['CreatedBranch']; $changeStatusCode['CreatedBranch']=$arrayDetails['CreatedBranch'];
$this->db->where('TrackingID',$leadDet->TrackingID); $this->db->where('TrackingID',$leadDet->TrackingID);
$this->db->update(LEAD_TRACKING, $changeStatusCode); $this->db->update(LEAD_TRACKING, $changeStatusCode);
// end update status // end update status
@ -619,9 +670,7 @@ class StatusUpdation_model extends CI_Model
$updateTrackDetails['CreatedBy'] = $arrayDetails['CreatedBy']; $updateTrackDetails['CreatedBy'] = $arrayDetails['CreatedBy'];
$updateTrackDetails['CreatedOn'] = $arrayDetails['CreatedOn']; $updateTrackDetails['CreatedOn'] = $arrayDetails['CreatedOn'];
$this->db->insert(LEAD_TRACKING_FOLLOWUP, $updateTrackDetails); $this->db->insert(LEAD_TRACKING_FOLLOWUP, $updateTrackDetails);
} }
else{ else{
$this->db->select('LeadID'); $this->db->select('LeadID');
$this->db->where('MobileNumber',$arrayDetails['MobileNumber']); $this->db->where('MobileNumber',$arrayDetails['MobileNumber']);
@ -646,9 +695,7 @@ class StatusUpdation_model extends CI_Model
$followup_Details['CreatedOn'] = $arrayDetails['CreatedOn']; $followup_Details['CreatedOn'] = $arrayDetails['CreatedOn'];
$this->db->insert(LEAD_TRACKING_FOLLOWUP, $followup_Details); $this->db->insert(LEAD_TRACKING_FOLLOWUP, $followup_Details);
// this if for insert follow up details // this if for insert follow up details
} }
} }
else{ else{
$newLeadDetails['MobileNumber'] = $arrayDetails['MobileNumber']; $newLeadDetails['MobileNumber'] = $arrayDetails['MobileNumber'];
@ -678,21 +725,12 @@ class StatusUpdation_model extends CI_Model
$insertfollowup_Details['CreatedOn'] = $arrayDetails['CreatedOn']; $insertfollowup_Details['CreatedOn'] = $arrayDetails['CreatedOn'];
$this->db->insert(LEAD_TRACKING_FOLLOWUP, $insertfollowup_Details); $this->db->insert(LEAD_TRACKING_FOLLOWUP, $insertfollowup_Details);
// this if for insert follow up details // this if for insert follow up details
} }
} }
} }
}
}*/
} }
} }
return true; return true;
} }
else{ else{
@ -762,43 +800,7 @@ class StatusUpdation_model extends CI_Model
$this->db->where('IsActive', '1'); $this->db->where('IsActive', '1');
$activityDetails=$this->db->get(ACTIVITY)->last_row(); $activityDetails=$this->db->get(ACTIVITY)->last_row();
if($activityDetails){ if($activityDetails){
$this->db->select('LD.LeadID,LT.TrackingID');
$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->from(LEAD_DETAILS.' as LD'); $this->db->from(LEAD_DETAILS.' as LD');
$this->db->join(LEAD_TRACKING.' as LT', 'LT.LeadID = LD.LeadID'); $this->db->join(LEAD_TRACKING.' as LT', 'LT.LeadID = LD.LeadID');
$this->db->where('LD.MobileNumber',$arrayDetails['MobileNumber']); $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

View File

@ -285,7 +285,7 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
}); });
} else { } else {
swal("Failed!", "This student is not registerd", "warning"); swal("Failed!", "This student is not registered", "warning");
$scope.courseEditLoading = false; $scope.courseEditLoading = false;
$scope.studentDetails = ""; $scope.studentDetails = "";
$scope.courseDetails = ""; $scope.courseDetails = "";

View File

@ -58,7 +58,7 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
$scope.inActiveBranchStatus = false; $scope.inActiveBranchStatus = false;
$scope.addStudentView = function () { $scope.addStudentView = function () {
// check the local branch is active for add a new student for this branch // check the local branch is active for add a new student for this branch
var checkBranchActiveForStuAdd = { var checkBranchActiveForStuAdd = {
method: 'POST', method: 'POST',
url: apiPoint.url + 'getBranchActiveStatusforStuAdd/', url: apiPoint.url + 'getBranchActiveStatusforStuAdd/',
headers: { headers: {
@ -71,11 +71,11 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
$http(checkBranchActiveForStuAdd).then(function (response) { $http(checkBranchActiveForStuAdd).then(function (response) {
if (response.data) { if (response.data) {
var checkStatus = response.data.branch_active_status; var checkStatus = response.data.branch_active_status;
if(checkStatus == "0"){ if (checkStatus == "0") {
$scope.inActiveBranchStatus = true; $scope.inActiveBranchStatus = true;
swal(" ", "Cannot create a new Student for In-Active Branch", "warning"); swal(" ", "Cannot create a new Student for In-Active Branch", "warning");
}else { } else {
$scope.inActiveBranchStatus = false; $scope.inActiveBranchStatus = false;
} }
} else { } else {
} }
@ -128,7 +128,7 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
} }
} }
// get University List // get University List
$scope.universitySearchData = ''; $scope.universitySearchData = '';
$scope.getUniversitySearchList = function () { $scope.getUniversitySearchList = function () {
var empListreq = { var empListreq = {
@ -151,14 +151,14 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
}; };
$scope.searchData = { $scope.searchData = {
"University": "", "University": "",
"Course": "", "Course": "",
"Status": "" "Status": ""
} }
$scope.myUnivSearch = ""; $scope.myUnivSearch = "";
$scope.getUniveId = function (univ) { $scope.getUniveId = function (univ) {
if( univ === ''){ if (univ === '') {
$scope.myUnivSearch = ""; $scope.myUnivSearch = "";
$scope.searchData.University = ''; $scope.searchData.University = '';
$scope.searchData.Course = ''; $scope.searchData.Course = '';
$scope.searchData.Batch = ''; $scope.searchData.Batch = '';
@ -166,8 +166,8 @@ $scope.myUnivSearch = "";
$scope.batchData = name.Batch; $scope.batchData = name.Batch;
$scope.OpenWindowStatus = false; $scope.OpenWindowStatus = false;
$scope.getStudentList(); $scope.getStudentList();
} else { } else {
let name = JSON.parse(univ); let name = JSON.parse(univ);
$scope.searchData.University = name.UniversityID; $scope.searchData.University = name.UniversityID;
$scope.searchData.Course = ''; $scope.searchData.Course = '';
$scope.searchData.Batch = ''; $scope.searchData.Batch = '';
@ -175,9 +175,9 @@ $scope.myUnivSearch = "";
$scope.batchData = name.Batch; $scope.batchData = name.Batch;
$scope.OpenWindowStatus = false; $scope.OpenWindowStatus = false;
$scope.getStudentList(); $scope.getStudentList();
} }
}; };
$scope.getValueChange = function () { $scope.getValueChange = function () {
@ -186,9 +186,9 @@ $scope.myUnivSearch = "";
// "Course": "", // "Course": "",
// "Status": "" // "Status": ""
// } // }
$scope.getStudentList(); $scope.getStudentList();
} }
$scope.studentListLength = 0; $scope.studentListLength = 0;
$scope.getStudentList = function () { $scope.getStudentList = function () {
$scope.loader = true; $scope.loader = true;
var empListreq = { var empListreq = {
@ -199,7 +199,7 @@ $scope.studentListLength = 0;
}, },
data: { data: {
data: localDetails, data: localDetails,
search: $scope.searchData search: $scope.searchData
} }
}; };
$http(empListreq).then(function (response) { $http(empListreq).then(function (response) {
@ -220,7 +220,7 @@ $scope.studentListLength = 0;
$scope.setEditId = function (id) { $scope.setEditId = function (id) {
$scope.editId = id; $scope.editId = id;
$scope.editCourseId = -1; $scope.editCourseId = -1;
$scope.studentViewPage=-1; $scope.studentViewPage = -1;
} }
$scope.setEditCourseId = function (id) { $scope.setEditCourseId = function (id) {
@ -300,7 +300,7 @@ $scope.studentListLength = 0;
}; };
$http(req).then(function (response) { $http(req).then(function (response) {
if (response.data.addStuCourseStatus == true) { if (response.data.addStuCourseStatus == true) {
swal(" ","Student course added successfully.", "success"); swal(" ", "Student course added successfully.", "success");
$scope.getStudentCourseList($scope.currentStudentId); $scope.getStudentCourseList($scope.currentStudentId);
} else { } else {
swal(" ", response.data.message, "error"); swal(" ", response.data.message, "error");
@ -518,27 +518,27 @@ $scope.studentListLength = 0;
}; };
$http(checkReq).then(function (response) { $http(checkReq).then(function (response) {
if (response.data.existMobile == true) { if (response.data.existMobile == true) {
if(response.data.details.type === 'R001'){ if (response.data.details.type === 'R001') {
// swal("Warning!", response.data.message, "warning"); // swal("Warning!", response.data.message, "warning");
$scope.myModel.primaryPhone = ''; $scope.myModel.primaryPhone = '';
// student registration find student previously exist // student registration find student previously exist
// $scope.existingStudentView = true; // $scope.existingStudentView = true;
// $scope.existingStudentId = response.data.details.studentId; // $scope.existingStudentId = response.data.details.studentId;
SweetAlert.swal({ SweetAlert.swal({
title: "Warning!", title: "Warning!",
text: "Student Exsit with this same Number." + "\n Do you want to Enroll New Cource!", text: "Student exist with this same number." + "\n Do you want to enroll new course!",
type: "warning", type: "warning",
showCancelButton: true, showCancelButton: true,
confirmButtonColor: "#007aff", confirmButtonColor: "#007aff",
confirmButtonText: "Yes!" confirmButtonText: "Yes!"
}, function (res) { }, function (res) {
if(res === true){ if (res === true) {
$scope.existingStudentView = true; $scope.existingStudentView = true;
$scope.existingStudentId = response.data.details.studentId; $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"); swal("Warning!", response.data.message, "warning");
$scope.myModel.primaryPhone = ''; $scope.myModel.primaryPhone = '';
} else { } else {
@ -551,11 +551,11 @@ $scope.studentListLength = 0;
} }
$scope.stuExistingDetailsShowLoading = false; $scope.stuExistingDetailsShowLoading = false;
$scope.getExistStudentDetails = function() { $scope.getExistStudentDetails = function () {
// alert($scope.existingStudentId); // alert($scope.existingStudentId);
$scope.stuExistingDetailsShowLoading = true; $scope.stuExistingDetailsShowLoading = true;
var checkExisReq = { var checkExisReq = {
method: 'POST', method: 'POST',
url: apiPoint.url + 'getExistingStudentDetails/', url: apiPoint.url + 'getExistingStudentDetails/',
headers: { headers: {
@ -577,13 +577,13 @@ $scope.studentListLength = 0;
}); });
} }
$scope.cancelExisStudentView = function() { $scope.cancelExisStudentView = function () {
$scope.existingStudentView = false; $scope.existingStudentView = false;
} }
// add student course for existing student // add student course for existing student
$scope.addCourseExistingStudent= { $scope.addCourseExistingStudent = {
submit: function (form, myModelCourse, p) { submit: function (form, myModelCourse, p) {
var firstError = null; var firstError = null;
@ -621,25 +621,25 @@ $scope.studentListLength = 0;
}; };
$http(req).then(function (response) { $http(req).then(function (response) {
if (response.data.addStuCourseStatus == true) { if (response.data.addStuCourseStatus == true) {
swal(" ","Student course added successfully. ", "success"); swal(" ", "Student course added successfully. ", "success");
$state.go($state.current, {}, { reload: true }); $state.go($state.current, {}, { reload: true });
// $scope.getStudentCourseList($scope.currentStudentId); // $scope.getStudentCourseList($scope.currentStudentId);
} else { } else {
swal(" ", response.data.message, "error"); swal(" ", response.data.message, "error");
// $scope.getStudentCourseList($scope.currentStudentId); // $scope.getStudentCourseList($scope.currentStudentId);
$scope.myModelCourse.dateofjoining = ''; $scope.myModelCourse.dateofjoining = '';
} }
}); });
} }
}, },
cancel: function() { cancel: function () {
$scope.myModelCourse = { $scope.myModelCourse = {
'university': '', 'university': '',
'course': '', 'course': '',
'batch': '', 'batch': '',
'dateofjoining': '', 'dateofjoining': '',
'enrollmentid': '' 'enrollmentid': ''
}; };
} }
} }
@ -717,7 +717,7 @@ $scope.studentListLength = 0;
// add student // add student
$scope.studentFORM = { $scope.studentFORM = {
submit: function (form, myModel, myModelCourseAdd) { submit: function (form, myModel, myModelCourseAdd) {
var firstError = null; var firstError = null;
if (form.$invalid) { if (form.$invalid) {
var field = null, firstError = null; var field = null, firstError = null;
@ -794,36 +794,36 @@ $scope.studentListLength = 0;
reset: function (form) { reset: function (form) {
// $scope.myModel = angular.copy($scope.master); // $scope.myModel = angular.copy($scope.master);
form.$setPristine(true); form.$setPristine(true);
$scope.myModel = { $scope.myModel = {
'primaryPhone': '', 'primaryPhone': '',
'firstname': '', 'firstname': '',
'lastname': '', 'lastname': '',
'fathername': '', 'fathername': '',
'mothername': '', 'mothername': '',
'emailId': '', 'emailId': '',
'secondaryPhone': '', 'secondaryPhone': '',
'dateofbirth': '', 'dateofbirth': '',
'gender': '', 'gender': '',
'aadharNumber': '', 'aadharNumber': '',
'otherId': '', 'otherId': '',
'otherIdDetails': '', 'otherIdDetails': '',
'address1': '', 'address1': '',
'address2': '', 'address2': '',
'caste': '', 'caste': '',
'category': '', 'category': '',
'religion': '', 'religion': '',
'nationality': '', 'nationality': '',
'prequalification': '', 'prequalification': '',
'occupation': '', 'occupation': '',
'designation': '', 'designation': '',
'companyname': '', 'companyname': '',
'referredby': '', 'referredby': '',
'referredmobilenumber': '', 'referredmobilenumber': '',
'switchsetting': true, 'switchsetting': true,
'DeactiveComments': '', 'DeactiveComments': '',
'Comments': '' 'Comments': ''
}; };
$scope.myModelCourseAdd = { $scope.myModelCourseAdd = {
'university': '', 'university': '',
'course': '', 'course': '',
'batch': '', '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.stepsModelEdit = [];
$scope.imageUploadEdit = function (event) { $scope.imageUploadEdit = function (event) {
@ -930,8 +1083,9 @@ $scope.studentListLength = 0;
$scope.editSaveButtonDisable = false; $scope.editSaveButtonDisable = false;
// update student details // update student details
$scope.updateStuDetails = function (form, p, hidedob) { $scope.updateStuDetails = function (form, p, hidedob) {
$scope.editSaveButtonDisable = true; $scope.editSaveButtonDisable = true;
var firstError = null; var firstError = null;
// alert(form.$invalid);
if (form.$invalid) { if (form.$invalid) {
var field = null, firstError = null; var field = null, firstError = null;
for (field in form) { for (field in form) {
@ -947,6 +1101,7 @@ $scope.studentListLength = 0;
angular.element('.ng-invalid[name=' + firstError + ']').focus(); 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"); // swal("The form cannot be submitted because it contains validation errors!", "Errors are marked with a red, dashed border!", "error");
} else { } else {
// alert(p.DOB); // alert(p.DOB);
var idProof = $scope.filesEdit[0]; var idProof = $scope.filesEdit[0];
@ -992,17 +1147,17 @@ $scope.studentListLength = 0;
$http.post(apiPoint.url + 'updateStudentImgDetails/', formData, { $http.post(apiPoint.url + 'updateStudentImgDetails/', formData, {
transformRequest: angular.identity, transformRequest: angular.identity,
headers: { 'Content-Type': undefined, 'Process-Data': false }, headers: { 'Content-Type': undefined, 'Process-Data': false },
}).success(function(res) { }).success(function (res) {
// alert(JSON.stringify(res)); // alert(JSON.stringify(res));
if (res.updateStuStatus == true) { if (res.updateStuStatus == true) {
swal(" ","Updated successfully." , "success"); swal(" ", "Updated successfully.", "success");
$scope.getStudentList(); $scope.getStudentList();
$scope.editId = -1; $scope.editId = -1;
$scope.editSaveButtonDisable = false; $scope.editSaveButtonDisable = false;
} else { } else {
// $scope.ldloading1[loading.replace('-', '_')] = false; // $scope.ldloading1[loading.replace('-', '_')] = false;
swal(" ", response.data.message, "error"); 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) { $http(empListreq).then(function (response) {
if (response.data.branDetailstatus) { if (response.data.branDetailstatus) {
$scope.loader = false; $scope.loader = false;
$scope.branchList_data = response.data.branch_details; $scope.branchList_data = response.data.branch_details;
} else { } else {
} }
@ -1078,7 +1233,7 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
$scope.currentDate = new Date(sixteenYearsBeforeNow); $scope.currentDate = new Date(sixteenYearsBeforeNow);
$scope.getStudentList(); $scope.getStudentList();
$scope.getUniversityList(); $scope.getUniversityList();
$scope.getUniversitySearchList(); $scope.getUniversitySearchList();
$scope.myModel.dateofbirth = $filter('date')($scope.currentDate, 'dd-MM-yyyy'); $scope.myModel.dateofbirth = $filter('date')($scope.currentDate, 'dd-MM-yyyy');
$scope.viewStudentDetailsPage = true; $scope.viewStudentDetailsPage = true;
} }
@ -1146,10 +1301,10 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
$http(checkBranchActiveForStuAdd).then(function (response) { $http(checkBranchActiveForStuAdd).then(function (response) {
if (response.data) { if (response.data) {
var checkStatus = response.data.branch_active_status; var checkStatus = response.data.branch_active_status;
if(checkStatus == "0"){ if (checkStatus == "0") {
$scope.inActiveBranchStatus = true; $scope.inActiveBranchStatus = true;
swal(" ", "Cannot create a new Student for In-Active Branch", "warning"); swal(" ", "Cannot create a new Student for In-Active Branch", "warning");
}else { } else {
// $scope.inActiveBranchStatus = false; // $scope.inActiveBranchStatus = false;
} }
} else { } else {
@ -1179,7 +1334,7 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
// get University List // get University List
$scope.universitySearchData = ''; $scope.universitySearchData = '';
$scope.getUniversitySearchList = function () { $scope.getUniversitySearchList = function () {
var empListreq = { var empListreq = {
@ -1206,17 +1361,17 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
"Course": "", "Course": "",
"Status": "" "Status": ""
} }
$scope.myUnivSearch = ""; $scope.myUnivSearch = "";
$scope.getUniveId = function (univ) { $scope.getUniveId = function (univ) {
let name = JSON.parse(univ); let name = JSON.parse(univ);
$scope.searchData.University = name.UniversityID; $scope.searchData.University = name.UniversityID;
$scope.searchData.Course = ''; $scope.searchData.Course = '';
$scope.searchData.Batch = ''; $scope.searchData.Batch = '';
$scope.courseData = name.Course; $scope.courseData = name.Course;
$scope.batchData = name.Batch; $scope.batchData = name.Batch;
$scope.OpenWindowStatus = false; $scope.OpenWindowStatus = false;
$scope.getStudentList(); $scope.getStudentList();
}; };
$scope.getValueChange = function () { $scope.getValueChange = function () {
@ -1225,9 +1380,9 @@ $scope.myUnivSearch = "";
// "Course": "", // "Course": "",
// "Status": "" // "Status": ""
// } // }
$scope.getStudentList(); $scope.getStudentList();
} }
$scope.Searchloader = false; $scope.Searchloader = false;
$scope.studentListLength = 0; $scope.studentListLength = 0;
$scope.getStudentList = function () { $scope.getStudentList = function () {
$scope.Searchloader = true; $scope.Searchloader = true;
@ -1239,7 +1394,7 @@ $scope.myUnivSearch = "";
}, },
data: { data: {
data: localDetails, data: localDetails,
search: $scope.searchData search: $scope.searchData
} }
}; };
$http(empListreq).then(function (response) { $http(empListreq).then(function (response) {
@ -1247,7 +1402,7 @@ $scope.myUnivSearch = "";
$scope.Searchloader = false; $scope.Searchloader = false;
$scope.studentData = true; $scope.studentData = true;
$scope.data = response.data.student_details; $scope.data = response.data.student_details;
$scope.studentListLength = $scope.data.length; $scope.studentListLength = $scope.data.length;
} else { } else {
$scope.Searchloader = false; $scope.Searchloader = false;
$scope.studentData = false; $scope.studentData = false;
@ -1340,7 +1495,7 @@ $scope.myUnivSearch = "";
}; };
$http(req).then(function (response) { $http(req).then(function (response) {
if (response.data.addStuCourseStatus == true) { if (response.data.addStuCourseStatus == true) {
swal(" ","Student course added successfully. ", "success"); swal(" ", "Student course added successfully. ", "success");
$scope.getStudentCourseList($scope.currentStudentId); $scope.getStudentCourseList($scope.currentStudentId);
} else { } else {
swal(" ", response.data.message, "error"); swal(" ", response.data.message, "error");
@ -1366,7 +1521,7 @@ $scope.myUnivSearch = "";
data: { data: {
studentID: studentId, studentID: studentId,
updatedBy: localDetails, updatedBy: localDetails,
} }
}; };
$http(req).then(function (response) { $http(req).then(function (response) {
@ -1565,27 +1720,27 @@ $scope.myUnivSearch = "";
// } else { // } else {
// } // }
if (response.data.existMobile == true) { if (response.data.existMobile == true) {
if(response.data.details.type === 'R001'){ if (response.data.details.type === 'R001') {
// swal("Warning!", response.data.message, "warning"); // swal("Warning!", response.data.message, "warning");
$scope.myModel.primaryPhone = ''; $scope.myModel.primaryPhone = '';
// student registration find student previously exist // student registration find student previously exist
// $scope.existingStudentView = true; // $scope.existingStudentView = true;
// $scope.existingStudentId = response.data.details.studentId; // $scope.existingStudentId = response.data.details.studentId;
SweetAlert.swal({ SweetAlert.swal({
title: "Warning!", title: "Warning!",
text: "Student Exsit with this same Number." + "\n Do you want to Enroll New Cource!", text: "Student Exist with this same Number." + "\n Do you want to Enroll New Course!",
type: "warning", type: "warning",
showCancelButton: true, showCancelButton: true,
confirmButtonColor: "#007aff", confirmButtonColor: "#007aff",
confirmButtonText: "Yes!" confirmButtonText: "Yes!"
}, function (res) { }, function (res) {
if(res === true){ if (res === true) {
$scope.existingStudentView = true; $scope.existingStudentView = true;
$scope.existingStudentId = response.data.details.studentId; $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"); swal("Warning!", response.data.message, "warning");
$scope.myModel.primaryPhone = ''; $scope.myModel.primaryPhone = '';
} else { } else {
@ -1598,11 +1753,11 @@ $scope.myUnivSearch = "";
} }
$scope.stuExistingDetailsShowLoading = false; $scope.stuExistingDetailsShowLoading = false;
$scope.getExistStudentDetails = function() { $scope.getExistStudentDetails = function () {
// alert($scope.existingStudentId); // alert($scope.existingStudentId);
$scope.stuExistingDetailsShowLoading = true; $scope.stuExistingDetailsShowLoading = true;
var checkExisReq = { var checkExisReq = {
method: 'POST', method: 'POST',
url: apiPoint.url + 'getExistingStudentDetails/', url: apiPoint.url + 'getExistingStudentDetails/',
headers: { headers: {
@ -1624,12 +1779,12 @@ $scope.myUnivSearch = "";
}); });
} }
$scope.cancelExisStudentView = function() { $scope.cancelExisStudentView = function () {
$scope.existingStudentView = false; $scope.existingStudentView = false;
} }
// add student course for existing student // add student course for existing student
$scope.addCourseExistingStudent= { $scope.addCourseExistingStudent = {
submit: function (form, myModelCourse, p) { submit: function (form, myModelCourse, p) {
var firstError = null; var firstError = null;
@ -1667,28 +1822,28 @@ $scope.myUnivSearch = "";
}; };
$http(req).then(function (response) { $http(req).then(function (response) {
if (response.data.addStuCourseStatus == true) { if (response.data.addStuCourseStatus == true) {
swal(" ","Student course added successfully. ", "success"); swal(" ", "Student course added successfully. ", "success");
$scope.disableButton = false; $scope.disableButton = false;
$scope.viewStudentDetailsPage = false; $scope.viewStudentDetailsPage = false;
$scope.myActivateDiv(); $scope.myActivateDiv();
// $state.go($state.current, {}, { reload: true }); // $state.go($state.current, {}, { reload: true });
// $scope.getStudentCourseList($scope.currentStudentId); // $scope.getStudentCourseList($scope.currentStudentId);
} else { } else {
swal(" ", response.data.message, "error"); swal(" ", response.data.message, "error");
// $scope.getStudentCourseList($scope.currentStudentId); // $scope.getStudentCourseList($scope.currentStudentId);
$scope.myModelCourse.dateofjoining = ''; $scope.myModelCourse.dateofjoining = '';
} }
}); });
} }
}, },
cancel: function() { cancel: function () {
$scope.myModelCourse = { $scope.myModelCourse = {
'university': '', 'university': '',
'course': '', 'course': '',
'batch': '', 'batch': '',
'dateofjoining': '', 'dateofjoining': '',
'enrollmentid': '' 'enrollmentid': ''
}; };
} }
} }
@ -1773,47 +1928,47 @@ $scope.myUnivSearch = "";
} }
} }
$scope.myActivateDiv = function() { $scope.myActivateDiv = function () {
$scope.viewStudentDetailsPage = false; $scope.viewStudentDetailsPage = false;
$scope.myModel = { $scope.myModel = {
'primaryPhone': '', 'primaryPhone': '',
'firstname': '', 'firstname': '',
'lastname': '', 'lastname': '',
'fathername': '', 'fathername': '',
'mothername': '', 'mothername': '',
'emailId': '', 'emailId': '',
'secondaryPhone': '', 'secondaryPhone': '',
'dateofbirth': '', 'dateofbirth': '',
'gender': '', 'gender': '',
'aadharNumber': '', 'aadharNumber': '',
'otherId': '', 'otherId': '',
'otherIdDetails': '', 'otherIdDetails': '',
'address1': '', 'address1': '',
'address2': '', 'address2': '',
'caste': '', 'caste': '',
'category': '', 'category': '',
'religion': '', 'religion': '',
'nationality': '', 'nationality': '',
'prequalification': '', 'prequalification': '',
'occupation': '', 'occupation': '',
'designation': '', 'designation': '',
'companyname': '', 'companyname': '',
'referredby': '', 'referredby': '',
'referredmobilenumber': '', 'referredmobilenumber': '',
'switchsetting': true, 'switchsetting': true,
'DeactiveComments': '', 'DeactiveComments': '',
'Comments': '' 'Comments': ''
}; };
$scope.myModelCourseAdd = { $scope.myModelCourseAdd = {
'university': '', 'university': '',
'course': '', 'course': '',
'batch': '', 'batch': '',
'dateofjoining': '', 'dateofjoining': '',
'enrollmentid': '' 'enrollmentid': ''
}; };
$timeout(function(){ $timeout(function () {
getDetails(); getDetails();
},1000); }, 1000);
} }
// add student // add student
@ -1863,7 +2018,7 @@ $scope.myUnivSearch = "";
// $state.go($state.current, {}, { reload: true }); // $state.go($state.current, {}, { reload: true });
$scope.myActivateDiv(); $scope.myActivateDiv();
// $scope.tabactive2 = false; // $scope.tabactive2 = false;
// $scope.viewStudentDetailsPage = false; // $scope.viewStudentDetailsPage = false;
// $scope.tabActive('tabactive1'); // $scope.tabActive('tabactive1');
} else { } else {
// $scope.ldloading1[loading.replace('-', '_')] = false; // $scope.ldloading1[loading.replace('-', '_')] = false;
@ -1887,14 +2042,14 @@ $scope.myUnivSearch = "";
}; };
$http(req).then(function (response) { $http(req).then(function (response) {
if (response.data.addStudentStatus == true) { if (response.data.addStudentStatus == true) {
swal( "", "Student added successfully.", "success"); swal("", "Student added successfully.", "success");
$scope.disableButton = false; $scope.disableButton = false;
$scope.viewStudentDetailsPage = false; $scope.viewStudentDetailsPage = false;
// $state.go($state.current, {}, { reload: true }); // $state.go($state.current, {}, { reload: true });
$scope.myActivateDiv(); $scope.myActivateDiv();
// $scope.tabactive1 = true; // $scope.tabactive1 = true;
// $scope.tabactive2 = false; // $scope.tabactive2 = false;
// $scope.tabActive('tabactive1'); // $scope.tabActive('tabactive1');
} else { } else {
$scope.disableButton = false; $scope.disableButton = false;
@ -1908,35 +2063,35 @@ $scope.myUnivSearch = "";
// $scope.myModel = angular.copy($scope.master); // $scope.myModel = angular.copy($scope.master);
form.$setPristine(true); form.$setPristine(true);
$scope.myModel = { $scope.myModel = {
'primaryPhone': '', 'primaryPhone': '',
'firstname': '', 'firstname': '',
'lastname': '', 'lastname': '',
'fathername': '', 'fathername': '',
'mothername': '', 'mothername': '',
'emailId': '', 'emailId': '',
'secondaryPhone': '', 'secondaryPhone': '',
'dateofbirth': '', 'dateofbirth': '',
'gender': '', 'gender': '',
'aadharNumber': '', 'aadharNumber': '',
'otherId': '', 'otherId': '',
'otherIdDetails': '', 'otherIdDetails': '',
'address1': '', 'address1': '',
'address2': '', 'address2': '',
'caste': '', 'caste': '',
'category': '', 'category': '',
'religion': '', 'religion': '',
'nationality': '', 'nationality': '',
'prequalification': '', 'prequalification': '',
'occupation': '', 'occupation': '',
'designation': '', 'designation': '',
'companyname': '', 'companyname': '',
'referredby': '', 'referredby': '',
'referredmobilenumber': '', 'referredmobilenumber': '',
'switchsetting': true, 'switchsetting': true,
'DeactiveComments': '', 'DeactiveComments': '',
'Comments': '' 'Comments': ''
}; };
$scope.myModelCourseAdd = { $scope.myModelCourseAdd = {
'university': '', 'university': '',
'course': '', 'course': '',
'batch': '', 'batch': '',
@ -2156,23 +2311,37 @@ app.directive('fileUploadEdit', function () {
scope.$emit("fileSelectedEdit", { file: files[i] }); scope.$emit("fileSelectedEdit", { file: files[i] });
} }
}); });
}
};
}
};
}); });
app.filter('unique', function() { // file upload directive - file-upload-document
return function(collection, primaryKey, secondaryKey) { //optional secondary key 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 = [], var output = [],
keys = []; keys = [];
angular.forEach(collection, function(item) { angular.forEach(collection, function (item) {
var key; var key;
secondaryKey === undefined ? key = item[primaryKey] : key = item[primaryKey][secondaryKey]; secondaryKey === undefined ? key = item[primaryKey] : key = item[primaryKey][secondaryKey];
if(keys.indexOf(key) === -1) { if (keys.indexOf(key) === -1) {
keys.push(key); keys.push(key);
output.push(item); output.push(item);
} }
@ -2183,7 +2352,7 @@ app.filter('unique', function() {
}); });
/*modal controller /*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 //Tooltip for print button
$scope.dynamicTooltip = 'Student View'; $scope.dynamicTooltip = 'Student View';
@ -2202,13 +2371,13 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}, },
data: { data: {
requestedBy :studentDetails.StudentID, requestedBy: studentDetails.StudentID,
requestedFrom: 1 requestedFrom: 1
} }
}; };
$http(getcourse).then(function (response) { $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.courseEditLoading = false;
// $scope.studentDetails = response.data.studentDetails; // $scope.studentDetails = response.data.studentDetails;
$scope.studentDetails = response.data; $scope.studentDetails = response.data;
@ -2219,7 +2388,7 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
// size: size, // size: size,
resolve: { resolve: {
items: function () { items: function () {
return $scope.studentDetails; return $scope.studentDetails;
} }
} }
}); });
@ -2249,7 +2418,7 @@ app.controller('studentModalDemoCtrl', ["$scope", "$modal", "$log", "API_POINTS"
// size: size, // size: size,
resolve: { resolve: {
items1: function () { 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. // Please note that $modalInstance represents a modal window (instance) dependency.
// It is not the same as the $modal service used above. // 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.items = items;
$scope.selected = { $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; $scope.items1 = items1;

View File

@ -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()"> <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 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> </select>
</div> </div>
@ -154,12 +154,12 @@
<td>{{p.Lastname}}</td> <td>{{p.Lastname}}</td>
<td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.MobileNumber}}</a></td> <td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.MobileNumber}}</a></td>
<td>{{p.EmailID}}</td> <td>{{p.EmailID}}</td>
<td>{{p.CourseName}}</td> <td>{{p.CourseName}} (<strong>{{p.CourseCode}}</strong>)</td>
<td class="center"> <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> </td>
</tr> </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><pre>{{p.StudentID}}</pre></td>-->
<td colspan="7"> <td colspan="7">

View File

@ -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()"> <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 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> </select>
</div> </div>
@ -155,12 +155,12 @@
<td>{{p.Lastname}}</td> <td>{{p.Lastname}}</td>
<td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.MobileNumber}}</a></td> <td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.MobileNumber}}</a></td>
<td>{{p.EmailID}}</td> <td>{{p.EmailID}}</td>
<td>{{p.CourseName}}</td> <td>{{p.CourseName}}(<strong>{{p.CourseCode}}</strong>)</td>
<td class="center"> <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> </td>
</tr> </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><pre>{{p.StudentID}}</pre></td>-->
<td colspan="7"> <td colspan="7">

View File

@ -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()"> <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 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> </select>
</div> </div>
@ -153,12 +153,12 @@
<td>{{p.Lastname}}</td> <td>{{p.Lastname}}</td>
<td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.MobileNumber}}</a></td> <td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.MobileNumber}}</a></td>
<td>{{p.EmailID}}</td> <td>{{p.EmailID}}</td>
<td>{{p.CourseName}}</td> <td>{{p.CourseName}}(<strong>{{p.CourseCode}}</strong>)</td>
<td class="center"> <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> </td>
</tr> </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><pre>{{p.StudentID}}</pre></td>-->
<td colspan="7"> <td colspan="7">

View File

@ -34,12 +34,12 @@
<div class="col-md-3"> <div class="col-md-3">
<label for="form-field-select-2"> <label for="form-field-select-2">
Course Course
</label> </label>
<select class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()"> <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 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> </select>
</div> </div>
@ -155,13 +155,13 @@
<td>{{p.Lastname}}</td> <td>{{p.Lastname}}</td>
<td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.MobileNumber}}</a></td> <td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.MobileNumber}}</a></td>
<td>{{p.EmailID}}</td> <td>{{p.EmailID}}</td>
<td>{{p.CourseName}}</td> <td>{{p.CourseName}}(<strong>{{p.CourseCode}}</strong>)</td>
<td class="center"> <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> </td>
</tr> </tr>
<!--<pre>{{ editId }}</pre>--> <!--<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><pre>{{p.StudentID}}</pre></td>-->
<td colspan="7"> <td colspan="7">

View File

@ -34,7 +34,7 @@
<tbody ng-repeat="s in studentCourseList"> <tbody ng-repeat="s in studentCourseList">
<tr> <tr>
<td>{{s.UniversityName}}</td> <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.Specilization1}}</td>
<td>{{s.Specilization2}}</td> <td>{{s.Specilization2}}</td>
<td>{{s.BatchName}}</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> <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 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> </select>
</div> </div>
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span> <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" <select class="form-control" tabindex="26" name="course" ng-model="myModelCourse.course" class="cs-select cs-skin-elastic"
required> required>
<option value="" disabled selected>Select Course</option> <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> </select>
</div> </div>
<span class="error text-small block" ng-if="FormAdd.course.$dirty && FormAdd.course.$error.required">Course is required</span> <span class="error text-small block" ng-if="FormAdd.course.$dirty && FormAdd.course.$error.required">Course is required</span>

View File

@ -1,481 +1,489 @@
<form name="Form" id="form" novalidate> <tabset class="tabbable" style="border: 1px solid #c5c5c5; border-radius: 3px; box-shadow: 3px 5px #c3c3c3;">
<div class="row"> <tab heading="Personal Details">
<div class="col-md-12"> <form name="Form" id="form" novalidate>
<div class="col-md-12"> <div class="row">
<fieldset> <div class="col-md-12">
<legend> <div class="col-md-12">
Personal Details
</legend>
<div class="row">
<div class="col-md-7">
</div>
<div class="col-md-5"> <fieldset>
<legend>
Personal Details
</legend>
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-7">
<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>
<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> <div class="col-md-5">
<input type="file" accept="image/*" ng-init="resetImageEdit()" file-upload-edit onchange="angular.element(this).scope().imageUploadEdit(event)" <div class="row">
/> <div class="col-md-4">
</div> <style>
</div> .thumb {
<div class="row"> width: 90px;
<div class="col-md-6"> height: 115px;
<div class="form-group"> margin: 18px;
<div class="user-image"> 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> </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)"/>--> accept="image/*" onchange="angular.element(this).scope().imageUpload(event)"/>-->
<div> <div>
<div ng-repeat="step in stepsModelEdit"> <div ng-repeat="step in stepsModelEdit">
<!--<a class="close-thin"></a>--> <!--<a class="close-thin"></a>-->
<img class="thumb" ng-src="{{step}}" /> <img class="thumb" ng-src="{{step}}" />
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-right"> <div class="pull-right">
<button class="btn btn-success btn-o btn-sm margin-right-15" type="button" ng-click="resetImageEdit()">Reset <button class="btn btn-success btn-o btn-sm margin-right-15" type="button" ng-click="resetImageEdit()">Reset
</button> </button>
</div>
</div>
</div> </div>
</div> </div>
<style>
.thumb {
width: 90px;
height: 115px;
margin: 18px;
float: left;
}
.uploader {
clear: both;
}
</style>
</div> </div>
</div> </div>
<style>
.thumb {
width: 90px;
height: 115px;
margin: 18px;
float: left;
}
.uploader {
clear: both;
}
</style>
</div> </div>
</div> </div>
</div> </form>
</div> </div>
</form> </div>
</div> </div>
</div> </div>
<div class="row">
</div> <div class="col-md-4 form-group" ng-class="{'has-error':Form.primaryPhone.$dirty && Form.primaryPhone.$invalid, 'has-success':Form.primaryPhone.$valid}">
<label>
</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>
Mobile Number <span Mobile Number <span
class="symbol required"></span> class="symbol required"></span>
</label> </label>
<input type="text" name="primaryPhone" tabindex="1" placeholder="Enter Mobile Number" class="form-control" ng-model="p.MobileNumber" <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)' ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/" ng-blur='updateCheckMobileExist(p)'
required/> 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.$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> <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>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.firstname.$dirty && Form.firstname.$invalid, 'has-success':Form.firstname.$valid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.firstname.$dirty && Form.firstname.$invalid, 'has-success':Form.firstname.$valid}">
<label> <label>
First Name <span class="symbol required"></span> First Name <span class="symbol required"></span>
</label> </label>
<input type="text" placeholder="Enter First Name" tabindex="2" class="form-control" name="firstname" ng-model="p.Firstname" <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/> 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.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> <span class="error text-small block" ng-if="Form.firstname.$dirty && Form.firstname.$error.pattern">Invalid First Name </span>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.lastname.$dirty && Form.lastname.$invalid, 'has-success':Form.lastname.$valid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.lastname.$dirty && Form.lastname.$invalid, 'has-success':Form.lastname.$valid}">
<label> <label>
Last Name <span class="symbol required"></span> Last Name <span class="symbol required"></span>
</label> </label>
<input type="text" placeholder="Enter Last Name" tabindex="3" class="form-control" name="lastname" ng-model="p.Lastname" <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/> 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.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> <span class="error text-small block" ng-if="Form.lastname.$dirty && Form.lastname.$error.pattern">Invalid Last Name </span>
</div> </div>
</div> </div>
<div class="row"> <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}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.fathername.$dirty && Form.fathername.$invalid, 'has-success':Form.fathername.$valid}">
<label> <label>
Father Name <span class="symbol required"></span> Father Name <span class="symbol required"></span>
</label> </label>
<input type="text" placeholder="Enter Father Name" tabindex="4" class="form-control" name="fathername" ng-model="p.Fathername" <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/> 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.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> <span class="error text-small block" ng-if="Form.fathername.$dirty && Form.fathername.$error.pattern">Invalid Father Name </span>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.mothername.$dirty && Form.mothername.$invalid, 'has-success':Form.mothername.$valid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.mothername.$dirty && Form.mothername.$invalid, 'has-success':Form.mothername.$valid}">
<label> <label>
Mother Name <span class="symbol required"></span> Mother Name <span class="symbol required"></span>
</label> </label>
<input type="text" placeholder="Enter Mother Name" tabindex="5" class="form-control" name="mothername" ng-model="p.MotherName" <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/> 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.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> <span class="error text-small block" ng-if="Form.mothername.$dirty && Form.mothername.$error.pattern">Invalid Mother Name </span>
</div> </div>
<div class=" col-md-4 form-group" ng-class="{'has-error':Form.emailId.$dirty && Form.emailId.$invalid, 'has-success':Form.emailId.$valid}"> <div class=" col-md-4 form-group" ng-class="{'has-error':Form.emailId.$dirty && Form.emailId.$invalid, 'has-success':Form.emailId.$valid}">
<label> <label>
Email ID <span class="symbol required"></span> Email ID <span class="symbol required"></span>
</label> </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" <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> 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.$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> <span class="error text-small block" ng-if="Form.emailId.$error.email">Please, enter a valid email address.</span>
</div> </div>
</div> </div>
<div class="row"> <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}"> <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"> <label class="control-label">
Alternate Mobile Number <span class="symbol required"></span> Alternate Mobile Number <span class="symbol required"></span>
</label> </label>
<input type="text" name="secondaryPhone" tabindex="7" placeholder="Enter Alternate Mobile Number" class="form-control" ng-model="p.AlternateNumber" <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/> 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.$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> <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>
<div data-ng-controller="DatepickerDemoCtrl"> <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}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.dateofbirth.$dirty && Form.dateofbirth.$invalid, 'has-success':Form.dateofbirth.$valid}">
<label> <label>
Date Of Birth <span Date Of Birth <span
class="symbol required"></span> class="symbol required"></span>
</label> </label>
<input type="text" tabindex="8" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="p.DOB" <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" 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)" placeholder="Select Date of Birth" close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)"
show-button-bar="false" max-date="currentDate" /> 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.$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> <span class="error text-small block" ng-if="Form.dateofbirth.$error.maxlength">Enter a Valid Date of Birth</span>
</div> </div>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.gender.$dirty && Form.gender.$invalid , 'has-success':Form.gender.$valid}"> <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"> <label class="block">
Gender <span class="symbol required"></span> Gender <span class="symbol required"></span>
</label> </label>
<div class="clip-radio radio-primary"> <div class="clip-radio radio-primary">
<input type="radio" tabindex="9" id="female" name="gender" value="female" ng-model="p.Gender" required> <input type="radio" tabindex="9" id="female" name="gender" value="female" ng-model="p.Gender" required>
<label for="female"> <label for="female">
Female Female
</label> </label>
<input type="radio" id="male" name="gender" value="male" ng-model="p.Gender" required> <input type="radio" id="male" name="gender" value="male" ng-model="p.Gender" required>
<label for="male"> <label for="male">
Male Male
</label> </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> <div class="col-md-4 form-group" ng-class="{'has-error':Form.address1.$dirty && Form.address1.$invalid}">
<div class="row"> <label>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.address1.$dirty && Form.address1.$invalid}">
<label>
Permanent Address Permanent Address
</label> </label>
<textarea placeholder="Enter Permanent Address" tabindex="10" class="form-control textdsc" name="address1" ng-model="p.PermanentAddress"></textarea> <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> <span class="error text-small block" ng-if="Form.address1.$dirty && Form.address1.$invalid">Permanent Address is required</span>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.address2.$dirty && Form.address2.$invalid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.address2.$dirty && Form.address2.$invalid}">
<label> <label>
Current Address Current Address
</label> </label>
<textarea placeholder="Enter Current Address" tabindex="11" class="form-control textdsc" name="address2" ng-model="p.PresentAddress"></textarea> <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> <span class="error text-small block" ng-if="Form.address2.$dirty && Form.address2.$invalid">Current Address is required</span>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.aadharNumber.$dirty && Form.aadharNumber.$invalid, 'has-success':Form.aadharNumber.$valid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.aadharNumber.$dirty && Form.aadharNumber.$invalid, 'has-success':Form.aadharNumber.$valid}">
<label> <label>
Aadhar Number <span class="symbol required"></span> Aadhar Number <span class="symbol required"></span>
</label> </label>
<input type="text" name="aadharNumber" tabindex="12" placeholder="____-____-____" ui-mask="9999-9999-9999" class="form-control" <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> ng-model="p.AadharNumber" ng-minlength="10" ng-maxlength="15" ng-pattern="/^[0-9]*$/"
<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> required>
<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> <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>
</div> <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 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>
</div> <div class="row">
<div class="col-md-4 form-group" ng-class="{'has-error':Form.caste.$dirty && Form.caste.$invalid}">
<label> <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 Caste
</label> </label>
<input type="text" placeholder="Enter Caste" tabindex="15" class="form-control" name="caste" ng-model="p.Caste" ng-pattern="/^[a-zA-Z.\s]*$/" <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> <span class="error text-small block" ng-if="Form.caste.$dirty && Form.caste.$error.pattern">Invalid Caste Name </span>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.category.$dirty && Form.category.$invalid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.category.$dirty && Form.category.$invalid}">
<label> <label>
Category Category
</label> </label>
<input type="text" placeholder="Enter Category" tabindex="16" class="form-control" name="category" ng-model="p.Category" <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> <span class="error text-small block" ng-if="Form.category.$dirty && Form.category.$error.pattern">Invalid Category Name </span>
</div> </div>
</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}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.religion.$dirty && Form.religion.$invalid}">
<label> <label>
Religion Religion
</label> </label>
<input type="text" placeholder="Enter Religion" tabindex="17" class="form-control" name="religion" ng-model="p.Religion" <input type="text" placeholder="Enter Religion" tabindex="17" class="form-control" name="religion" ng-model="p.Religion"
ng-pattern="/^[a-zA-Z.\s]*$/" /> 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> <span class="error text-small block" ng-if="Form.religion.$dirty && Form.religion.$error.pattern">Invalid Religion Name </span>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.nationality.$dirty && Form.nationality.$invalid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.nationality.$dirty && Form.nationality.$invalid}">
<label> <label>
Nationality Nationality
</label> </label>
<input type="text" placeholder="Enter Nationality" tabindex="18" class="form-control" name="nationality" ng-model="p.Nationality" <input type="text" placeholder="Enter Nationality" tabindex="18" class="form-control" name="nationality" ng-model="p.Nationality"
ng-pattern="/^[a-zA-Z.\s]*$/" /> 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> <span class="error text-small block" ng-if="Form.nationality.$dirty && Form.nationality.$error.pattern">Invalid Nationality Name </span>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.qualificaion.$dirty && Form.qualificaion.$invalid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.qualificaion.$dirty && Form.qualificaion.$invalid}">
<label> <label>
Pre Qualification Pre Qualification
</label> </label>
<input type="text" placeholder="Enter Qualification" tabindex="19" class="form-control" name="qualificaion" ng-model="p.PreQualification" <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> <span class="error text-small block" ng-if="Form.qualificaion.$dirty && Form.qualificaion.$error.pattern">Enter a Valid Qualification</span>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-4 form-group" ng-class="{'has-error':Form.occupation.$dirty && Form.occupation.$invalid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.occupation.$dirty && Form.occupation.$invalid}">
<label> <label>
Occupation Occupation
</label> </label>
<input type="text" placeholder="Enter Occupation" tabindex="20" class="form-control" name="occupation" ng-model="p.Occupation" <input type="text" placeholder="Enter Occupation" tabindex="20" class="form-control" name="occupation" ng-model="p.Occupation"
ng-pattern="/^[a-zA-Z.\s]*$/" /> ng-pattern="/^[a-zA-Z.\s]*$/" />
<span class="error text-small block" ng-if="Form.occupation.$dirty && Form.occupation.$error.pattern">Invalid Occupation </span> <span class="error text-small block" ng-if="Form.occupation.$dirty && Form.occupation.$error.pattern">Invalid Occupation </span>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.designation.$dirty && Form.designation.$invalid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.designation.$dirty && Form.designation.$invalid}">
<label> <label>
Designation Designation
</label> </label>
<input type="text" placeholder="Enter Designation" tabindex="21" class="form-control" name="designation" ng-model="p.Designation" <input type="text" placeholder="Enter Designation" tabindex="21" class="form-control" name="designation" ng-model="p.Designation"
ng-pattern="/^[a-zA-Z.\s]*$/" /> ng-pattern="/^[a-zA-Z.\s]*$/" />
<span class="error text-small block" ng-if="Form.designation.$dirty && Form.designation.$error.pattern">Invalid Designation </span> <span class="error text-small block" ng-if="Form.designation.$dirty && Form.designation.$error.pattern">Invalid Designation </span>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.companyname.$dirty && Form.companyname.$invalid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.companyname.$dirty && Form.companyname.$invalid}">
<label> <label>
Company Name Company Name
</label> </label>
<input type="text" placeholder="Enter Company Name" tabindex="22" class="form-control" name="companyname" ng-model="p.Companyname" <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> <span class="error text-small block" ng-if="Form.companyname.$dirty && Form.companyname.$error.pattern">Invalid Company </span>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-4 form-group" ng-class="{'has-error':Form.referredby.$dirty && Form.referredby.$invalid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.referredby.$dirty && Form.referredby.$invalid}">
<label> <label>
Referred By Referred By
</label> </label>
<input type="text" placeholder="Enter Refer's Name" tabindex="23" class="form-control" name="referredby" ng-model="p.ReferredBy" <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]*$/" /> 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> <span class="error text-small block" ng-if="Form.referredby.$dirty && Form.referredby.$error.pattern">Invalid Referred By </span>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.referredmobilenumber.$dirty && Form.referredmobilenumber.$invalid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.referredmobilenumber.$dirty && Form.referredmobilenumber.$invalid}">
<label> <label>
Refer's Mobile Number Refer's Mobile Number
</label> </label>
<input type="text" name="referredmobilenumber" tabindex="24" placeholder="Enter Refer's Mobile Number" class="form-control" <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]*$/" 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.$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> <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>
<div class="col-md-4"> <div class="col-md-4">
<label> <label>
Comments Comments
</label> </label>
<textarea maxlength="100" placeholder="Enter Comments" tabindex="26" class="form-control textdsc" name="Comments" ng-model="p.Comments"></textarea> <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="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>--> <!--<span class="error text-small block" ng-if="Form.DeactiveComments.$dirty && Form.DeactiveComments.$invalid">De-Active Comments is required</span>-->
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
<label> <label>
Active/De-Active Active/De-Active
</label> </label>
<div ng-if="p.IsActive==true"> <div ng-if="p.IsActive==true">
<switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch> <switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch>
</div> </div>
<div ng-if="p.IsActive==false"> <div ng-if="p.IsActive==false">
<switch ng-model="p.IsActive" ng-init="p.IsActive = false" class="green"></switch> <switch ng-model="p.IsActive" ng-init="p.IsActive = false" class="green"></switch>
</div> </div>
</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}"> <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> <label>
Reason for Deactivating <span class="symbol required"></span> Reason for Deactivating <span class="symbol required"></span>
</label> </label>
<textarea maxlength="100" placeholder="Reason for Deactivating" tabindex="25" class="form-control textdsc" name="DeactiveComments" <textarea maxlength="100" placeholder="Reason for Deactivating" tabindex="25" class="form-control textdsc" name="DeactiveComments"
ng-model="p.DeactiveComments" required></textarea> ng-model="p.DeactiveComments" required></textarea>
<span class="text-small block">Max 100 Characters.</span> <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> <span class="error text-small block" ng-if="Form.DeactiveComments.$dirty && Form.DeactiveComments.$invalid">De-Active Comments is required</span>
</div> </div>
</div>
</div> <!--<pre>{{ p | json}}</pre>-->
</div> <input type="hidden" ng-init="hidden_DOB=p.DOB" ng-model="hidden_DOB">
<!--<pre>{{ p | json}}</pre>--> <div class="row">
<input type="hidden" ng-init="hidden_DOB=p.DOB" ng-model="hidden_DOB"> <div class="col-md-12">
<div class="row"> <div class="pull-right">
<div class="col-md-12"> <button type="button" ng-disabled="editSaveButtonDisable" ladda="ldloading1.zoom_in" tabindex="19" class="btn btn-wide btn-success"
<div class="pull-right"> data-style="zoom-in" ng-click="updateStuDetails(Form, p, hidden_DOB)">
<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 <i class='fa fa-spinner fa-spin' ng-if="editSaveButtonDisable"> </i> Save
</button> </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 Cancel
</button> </button>
</div>
</div>
</div>
</fieldset>
</div> </div>
</div> </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>
<!--<fieldset> <div id="documentDetalils">
<legend> <div class="table-responsive">
Branch Details <table class="table table-hover" ng-controller="studentModalDemoCtrl">
</legend> <thead>
<div class="row"> <tr>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.homeBranch.$dirty && Form.homeBranch.$invalid, 'has-success':Form.homeBranch.$valid}"> <th>Document Name</th>
<label for="form-field-select-2"> <th>Details</th>
Home Branch <span class="symbol required"></span> <th class="center">Download/Delete</th>
</label> </tr>
</thead>
<select class="form-control" class="cs-select cs-skin-elastic" name="homeBranch" ng-model="p.BranchCode" required> <tbody ng-repeat="doc in studentDocumentsList">
<option value="" disabled selected>Select Home Branch</option> <tr>
<option ng-repeat="item in branchDetails" value="{{item.BranchCode}}" ng-selected="p.BranchCode == item.BranchCode">{{item.BranchName}}</option> <td>{{doc.DocumentName}}</td>
</select> <td>{{doc.DocumentStorePath}}</td>
<span class="error text-small block" ng-if="Form.homeBranch.$dirty && Form.homeBranch.$error.required">Home Branch is Required</span> <td class="center"><button tooltip="Download" class="btn btn-xs btn-primary"><i class="ti-download">
</div> <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">
<div data-ng-controller="DatepickerDemoCtrl"> </i></button>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.dateofjoining.$dirty && Form.dateofjoining.$invalid, 'has-success':Form.dateofjoining.$valid}"> <!--<a ng-src="images/{{doc.DocumentStorePath}}" target="_blank">here!</a>-->
<label> <!--http://localhost/apollo_New_Update_20_02_2018/apollodec/Apollo/-->
Date Of Joining <span class="symbol required"></span> </td>
</label> </tr>
</tbody>
<input type="text" tabindex="6" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="yyyy-MM-dd" ng-model="p.DOJ" </table>
is-open="startOpen" ng-init="startOpen = false" name="dateofbirth" datepicker-options="dateOptions" <div ng-if="docNotFound">
placeholder="Select Date of Joining" close-text="Close" required="required" <span style="color:tomato;"> No document details found **</span>
/>
<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> </div>
</div>--> </div>
<!--</fieldset>--> </div>
</div> </div>
</div> </tab>
</form> </tabset>
<!-- class="editRowTd" --> <!-- class="editRowTd" -->

View File

@ -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()"> <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 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> </select>
</div> </div>
@ -650,7 +650,7 @@
<select class="form-control" tabindex="26" name="course" ng-model="myModelCourseAdd.course" class="cs-select cs-skin-elastic" <select class="form-control" tabindex="26" name="course" ng-model="myModelCourseAdd.course" class="cs-select cs-skin-elastic"
required> required>
<option value="" disabled selected>Select Course</option> <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> </select>
</div> </div>
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span> <span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span>

View File

@ -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()"> <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 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> </select>
</div> </div>
@ -674,7 +674,7 @@
<select class="form-control" tabindex="28" name="course" ng-model="myModelCourseAdd.course" class="cs-select cs-skin-elastic" <select class="form-control" tabindex="28" name="course" ng-model="myModelCourseAdd.course" class="cs-select cs-skin-elastic"
required> required>
<option value="" disabled selected>Select Course</option> <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> </select>
</div> </div>
<span class="error text-small block" ng-if="Form.course.$dirty && Form.course.$error.required">Course is required</span> <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