status update search mobile:kdk
This commit is contained in:
parent
a31e094f3f
commit
d64cd55507
@ -64,7 +64,7 @@ class StatusUpdation_model extends CI_Model
|
||||
$result['message'] = "Something went wrong.please try again";
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
// update certificate stauts
|
||||
public function update_certificateStatus($arr) {
|
||||
@ -75,7 +75,7 @@ class StatusUpdation_model extends CI_Model
|
||||
$this->db->insert_batch(CERTIFICATION_STATUS, $arr);
|
||||
if ($this->db->affected_rows() >= 1) {
|
||||
// if( ($this->get_status_name_ListCode($arr[0]['ListCode']) == 'Received' || 'received' || 'RECEIVED') || ($this->get_status_name_ListCode($arr[0]['ListCode']) == 'Issued' || 'issued' || 'ISSUED')) {
|
||||
if($this->get_status_name_ListCode($arr[0]['ListCode'])){
|
||||
if($this->get_ListCode_status($arr[0]['ListCode'])){
|
||||
$dateToMsg = $arr[0]['CDate'];
|
||||
$statuToMsg = $this->get_status_name_ListCode($arr[0]['ListCode']);
|
||||
$cerNamtToMsg = $this->get_certificate_name($arr[0]['CertificationType']);
|
||||
@ -120,13 +120,15 @@ class StatusUpdation_model extends CI_Model
|
||||
}
|
||||
|
||||
// self function for getting the status for the LISTCODE
|
||||
public function get_status_name_ListCode($listCode) {
|
||||
public function get_ListCode_status($listCode) {
|
||||
// print_r ($listCode);exit();
|
||||
$this->db->select('ListName');
|
||||
$this->db->from(PICK_LIST_DETAILS);
|
||||
$this->db->where('ListCode', $listCode);
|
||||
$this->db->like('ListName', 'received');
|
||||
$this->db->like('ListName', 'issued');
|
||||
$this->db->or_like('ListName', 'RECEIVED');
|
||||
$this->db->or_like('ListName', 'ISSUED');
|
||||
$statusDetails = $this->db->get()->first_row();
|
||||
// echo count($statusDetails);exit();
|
||||
if ( count($statusDetails) == 1) {
|
||||
return true;
|
||||
} else {
|
||||
@ -134,7 +136,15 @@ class StatusUpdation_model extends CI_Model
|
||||
}
|
||||
}
|
||||
|
||||
// self function for getting certificate name for the CERTIFICATECODE
|
||||
public function get_status_name_ListCode($listCode) {
|
||||
$this->db->select('ListName');
|
||||
$this->db->from(PICK_LIST_DETAILS);
|
||||
$this->db->where('ListCode', $listCode);
|
||||
$statusDetails = $this->db->get()->first_row();
|
||||
return $statusDetails->ListName;
|
||||
}
|
||||
|
||||
// self function for getting certificate name for the CERTIFICATECODE
|
||||
public function get_certificate_name($listCode) {
|
||||
$this->db->select('CertificateName');
|
||||
$this->db->from(CERTIFICATION);
|
||||
@ -146,7 +156,7 @@ class StatusUpdation_model extends CI_Model
|
||||
// update answer booklet status
|
||||
public function update_answerbooklet($arr) {
|
||||
// print_r($arr);exit();
|
||||
$this->db->insert_batch('ANSWER_BOOKLET', $arr);
|
||||
$this->db->insert_batch(ANSWER_BOOKLET, $arr);
|
||||
if ($this->db->affected_rows() >= 1) {
|
||||
// $this->smssend($arr);
|
||||
$result['addStatus'] = true;
|
||||
@ -160,11 +170,11 @@ class StatusUpdation_model extends CI_Model
|
||||
|
||||
// update study material status
|
||||
public function update_semyear($arr) {
|
||||
$this->get_status_name_ListCode($arr[0]['ListCode']);
|
||||
// $this->get_status_name_ListCode($arr[0]['ListCode']);
|
||||
$this->db->insert_batch(STUDY_MATERIAL_STATUS, $arr);
|
||||
if ($this->db->affected_rows() >= 1) {
|
||||
// if(($this->get_status_name_ListCode($arr[0]['ListCode']) == 'Received' || 'received' || 'Active') || ($this->get_status_name_ListCode($arr[0]['ListCode']) == 'Issued' || 'issued')) {
|
||||
if($this->get_status_name_ListCode($arr[0]['ListCode'])) {
|
||||
if($this->get_ListCode_status($arr[0]['ListCode']) == true) {
|
||||
$dateToMsg = $arr[0]['SDate'];
|
||||
$statuToMsg = $this->get_status_name_ListCode($arr[0]['ListCode']);
|
||||
$cerNamtToMsg = 'Study Material';
|
||||
@ -179,7 +189,7 @@ class StatusUpdation_model extends CI_Model
|
||||
$result['message'] = "Something went wrong.please try again";
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
// get sem/Year for the course
|
||||
public function get_semyear_result($reqData) {
|
||||
@ -282,6 +292,7 @@ class StatusUpdation_model extends CI_Model
|
||||
// $mobile = "91$mobile";
|
||||
|
||||
$message = urlencode($msg);
|
||||
// echo $mobile , $message;
|
||||
$ch=curl_init();
|
||||
curl_setopt($ch,CURLOPT_URL,"https://smsapi.24x7sms.com/api_2.0/SendSMS.aspx?APIKEY=xegCdYUIMf3&MobileNo=".$mobile."&SenderID=APOLLO&Message=".$message."&ServiceName=TEMPLATE_BASED");
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
</label>
|
||||
|
||||
<select class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
|
||||
<option value="" disabled selected>Select Course</option>
|
||||
<option value="" selected>Select Course</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
@ -49,7 +49,7 @@
|
||||
</label>
|
||||
|
||||
<select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="batch" ng-model="searchData.Batch" ng-change="getValueChange()">
|
||||
<option value="" disabled selected>Select Batch</option>
|
||||
<option value="" selected>Select Batch</option>
|
||||
<option ng-repeat="itemBatch in batchData" value="{{itemBatch.BatchCode}}">{{itemBatch.BatchName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
@ -94,11 +94,24 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="form-field-select-2">
|
||||
Mobile Number
|
||||
</label>
|
||||
<script>
|
||||
$(function () {
|
||||
$("#search").focus();
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.sort-icon {
|
||||
font-size: 9px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
th {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
<input class="form-control" type="text" ng-change="mySearchChangeFunc(search.MobileNumber)" ng-model="search.MobileNumber"
|
||||
id="search" autofocus tabindex="1" placeholder="Search Mobile" /><br><br>
|
||||
</div>
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
</label>
|
||||
|
||||
<select class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
|
||||
<option value="" disabled selected>Select Course</option>
|
||||
<option value="" selected>Select Course</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
@ -49,7 +49,7 @@
|
||||
</label>
|
||||
|
||||
<select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="batch" ng-model="searchData.Batch" ng-change="getValueChange()">
|
||||
<option value="" disabled selected>Select Batch</option>
|
||||
<option value="" selected>Select Batch</option>
|
||||
<option ng-repeat="itemBatch in batchData" value="{{itemBatch.BatchCode}}">{{itemBatch.BatchName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
@ -94,11 +94,25 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<script>
|
||||
|
||||
<label for="form-field-select-2">
|
||||
Mobile Number
|
||||
</label>
|
||||
<script>
|
||||
$(function () {
|
||||
$("#search").focus();
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.sort-icon {
|
||||
font-size: 9px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
th {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
<input class="form-control" type="text" ng-change="mySearchChangeFunc(search.MobileNumber)" ng-model="search.MobileNumber"
|
||||
id="search" autofocus tabindex="1" placeholder="Search Mobile" /><br><br>
|
||||
</div>
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
</label>
|
||||
|
||||
<select class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
|
||||
<option value="" disabled selected>Select Course</option>
|
||||
<option value="" selected>Select Course</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
@ -49,7 +49,7 @@
|
||||
</label>
|
||||
|
||||
<select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="batch" ng-model="searchData.Batch" ng-change="getValueChange()">
|
||||
<option value="" disabled selected>Select Batch</option>
|
||||
<option value="" selected>Select Batch</option>
|
||||
<option ng-repeat="itemBatch in batchData" value="{{itemBatch.BatchCode}}">{{itemBatch.BatchName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
@ -94,11 +94,24 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="form-field-select-2">
|
||||
Mobile Number
|
||||
</label>
|
||||
<script>
|
||||
$(function () {
|
||||
$("#search").focus();
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.sort-icon {
|
||||
font-size: 9px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
th {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
<input class="form-control" type="text" ng-change="mySearchChangeFunc(search.MobileNumber)" ng-model="search.MobileNumber"
|
||||
id="search" autofocus tabindex="1" placeholder="Search Mobile" /><br><br>
|
||||
</div>
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
</label>
|
||||
|
||||
<select class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
|
||||
<option value="" disabled selected>Select Course</option>
|
||||
<option value="" selected>Select Course</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
@ -49,7 +49,7 @@
|
||||
</label>
|
||||
|
||||
<select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="batch" ng-model="searchData.Batch" ng-change="getValueChange()">
|
||||
<option value="" disabled selected>Select Batch</option>
|
||||
<option value="" selected>Select Batch</option>
|
||||
<option ng-repeat="itemBatch in batchData" value="{{itemBatch.BatchCode}}">{{itemBatch.BatchName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
@ -94,11 +94,24 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="form-field-select-2">
|
||||
Mobile Number
|
||||
</label>
|
||||
<script>
|
||||
$(function () {
|
||||
$("#search").focus();
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.sort-icon {
|
||||
font-size: 9px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
th {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
<input class="form-control" type="text" ng-change="mySearchChangeFunc(search.MobileNumber)" ng-model="search.MobileNumber"
|
||||
id="search" autofocus tabindex="1" placeholder="Search Mobile" /><br><br>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user