| Line 214... |
Line 214... |
| 214 |
//
|
214 |
//
|
| 215 |
public function admin_show($id = null,$type=null,$status=null) {
|
215 |
public function admin_show($id = null,$type=null,$status=null) {
|
| 216 |
// $sqlQuery = "SELECT * FROM pushnotifications where notification_campaign_id=$id and type='$type' and status=$status" ;
|
216 |
// $sqlQuery = "SELECT * FROM pushnotifications where notification_campaign_id=$id and type='$type' and status=$status" ;
|
| 217 |
|
217 |
|
| 218 |
// $resul=$this->NotificationCampaign->query($sqlQuery1ry);
|
218 |
// $resul=$this->NotificationCampaign->query($sqlQuery1ry);
|
| - |
|
219 |
// if($type == 0 || $type == 1)
|
| - |
|
220 |
// {
|
| - |
|
221 |
// $type = "sent";
|
| - |
|
222 |
// }
|
| - |
|
223 |
// echo "type", $type;
|
| 219 |
$url = Configure::read('nodeurl')."/getPushNotificationDetailsByType/?type=".$type."¬ification_campaign_id=".$id."&status=".$status;//remove hardcoded value
|
224 |
$url = Configure::read('nodeurl')."/getPushNotificationDetailsByType/?type=".$type."¬ification_campaign_id=".$id."&status=".$status;//remove hardcoded value
|
| 220 |
// echo $url;
|
225 |
// echo $url;
|
| 221 |
$result = $this->make_request($url,null);
|
226 |
$result = $this->make_request($url,null);
|
| 222 |
|
227 |
// debug($result);
|
| 223 |
$sqlQuery1 = "SELECT * FROM notification_campaigns where id=$id" ;
|
228 |
$sqlQuery1 = "SELECT * FROM notification_campaigns where id=$id" ;
|
| 224 |
$resultData=$this->NotificationCampaign->query($sqlQuery1);
|
229 |
$resultData=$this->NotificationCampaign->query($sqlQuery1);
|
| 225 |
|
230 |
|
| 226 |
$this->set(compact('result'));
|
231 |
$this->set(compact('result'));
|
| 227 |
// $this->set('data', $result);
|
232 |
// $this->set('data', $result);
|