course details changes done
This commit is contained in:
parent
9e8d4e0d1d
commit
d27550f1bf
@ -36,6 +36,9 @@ class Course_Controller extends REST_Controller {
|
|||||||
$details['CourseID'] = $this->post('courseID');
|
$details['CourseID'] = $this->post('courseID');
|
||||||
$details['CourseName'] = $this->post('courseName');
|
$details['CourseName'] = $this->post('courseName');
|
||||||
$details['UniversityID'] = $this->post('universityName');
|
$details['UniversityID'] = $this->post('universityName');
|
||||||
|
$details['Specilization1'] = $this->post('specilization1');
|
||||||
|
$details['Specilization2'] = $this->post('specilization2');
|
||||||
|
|
||||||
//$details['FeesType'] = $this->post('feesType');
|
//$details['FeesType'] = $this->post('feesType');
|
||||||
$details['PC'] = $this->post('provFess');
|
$details['PC'] = $this->post('provFess');
|
||||||
$details['DC'] = $this->post('degreeAmount');
|
$details['DC'] = $this->post('degreeAmount');
|
||||||
@ -130,6 +133,8 @@ class Course_Controller extends REST_Controller {
|
|||||||
$now->setTimezone(new DateTimezone('Asia/Kolkata'));
|
$now->setTimezone(new DateTimezone('Asia/Kolkata'));
|
||||||
$details['CourseID'] = $this->post('courseCode');
|
$details['CourseID'] = $this->post('courseCode');
|
||||||
$details['CourseName'] = $this->post('courseName');
|
$details['CourseName'] = $this->post('courseName');
|
||||||
|
$details['Specilization1'] = $this->post('specilization1');
|
||||||
|
$details['Specilization2'] = $this->post('specilization2');
|
||||||
$details['IsActive'] = $this->post('status');
|
$details['IsActive'] = $this->post('status');
|
||||||
$details['PC'] = $this->post('provFess');
|
$details['PC'] = $this->post('provFess');
|
||||||
$details['DC'] = $this->post('degreeAmount');
|
$details['DC'] = $this->post('degreeAmount');
|
||||||
@ -138,6 +143,7 @@ class Course_Controller extends REST_Controller {
|
|||||||
$details['OtherFees'] = $this->post('otherAmount');
|
$details['OtherFees'] = $this->post('otherAmount');
|
||||||
$details['UpdatedBy'] = $this->post('updatedBy');
|
$details['UpdatedBy'] = $this->post('updatedBy');
|
||||||
$details['UpdatedOn'] = $now->format('Y-m-d H:i:s');
|
$details['UpdatedOn'] = $now->format('Y-m-d H:i:s');
|
||||||
|
$existCourseID = $this->post('existCourseID');
|
||||||
$jsonRegularFeesData=$this->post('regularFeesAmounts');
|
$jsonRegularFeesData=$this->post('regularFeesAmounts');
|
||||||
$jsonLateralFeesData=$this->post('lateralFeesAmounts');
|
$jsonLateralFeesData=$this->post('lateralFeesAmounts');
|
||||||
$jsonSemFeesData=$this->post('semFeesAmounts');
|
$jsonSemFeesData=$this->post('semFeesAmounts');
|
||||||
@ -151,7 +157,7 @@ class Course_Controller extends REST_Controller {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$updateDetails = $this->course_model->updateCourse($details,$jsonSemFeesData);// Check if the users data store contains users (in case the database result returns NULL)
|
$updateDetails = $this->course_model->updateCourse($details,$jsonSemFeesData,$existCourseID);// Check if the users data store contains users (in case the database result returns NULL)
|
||||||
if ($updateDetails)
|
if ($updateDetails)
|
||||||
{
|
{
|
||||||
$updateDetails['status'] = REST_Controller::HTTP_OK;
|
$updateDetails['status'] = REST_Controller::HTTP_OK;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user