| Line 538... |
Line 538... |
| 538 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$this->config->item('denominations'));
|
538 |
$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$this->config->item('denominations'));
|
| 539 |
if(isset($data['response']['response']['mobile_denominations']) && !empty($data['response']['response']['mobile_denominations'])){
|
539 |
if(isset($data['response']['response']['mobile_denominations']) && !empty($data['response']['response']['mobile_denominations'])){
|
| 540 |
$mobileDenominations = $data['response']['response']['mobile_denominations'][0];
|
540 |
$mobileDenominations = $data['response']['response']['mobile_denominations'][0];
|
| 541 |
$offers = '';
|
541 |
$offers = '';
|
| 542 |
foreach ($mobileDenominations as $offer) {
|
542 |
foreach ($mobileDenominations as $offer) {
|
| - |
|
543 |
$validity = strpos($offer->validity,"0")!==false?'-':$offer->validity;
|
| 543 |
$offers .= '<div onclick="fillAmount(event)">'.$offer->amount.'</div><div>'.$offer->validity.'</div><div>'.$offer->description.'</div>';
|
544 |
$offers .= '<div onclick="fillAmount(event)">'.$offer->amount.'</div><div>'.$validity.'</div><div>'.$offer->description.'</div>';
|
| 544 |
}
|
545 |
}
|
| 545 |
echo $offers;
|
546 |
echo $offers;
|
| 546 |
}
|
547 |
}
|
| 547 |
}
|
548 |
}
|
| 548 |
public function rechargeAmount($rechargeAmount,$couponCode)
|
549 |
public function rechargeAmount($rechargeAmount,$couponCode)
|
| Line 620... |
Line 621... |
| 620 |
|
621 |
|
| 621 |
|
622 |
|
| 622 |
}
|
623 |
}
|
| 623 |
|
624 |
|
| 624 |
/* End of file welcome.php */
|
625 |
/* End of file welcome.php */
|
| 625 |
/* Location: ./application/controllers/welcome.php */
|
- |
|
| 626 |
|
626 |
/* Location: ./application/controllers/welcome.php */
|
| - |
|
627 |
|