Exemplo n.º 1
0
 function ajaxphoneconversationAction()
 {
     $this->_helper->layout->disableLayout();
     if ($this->_request->getParam('uid')) {
         $idValue = explode('&', $this->_request->getParam('uid'));
         $uid = $idValue[0];
         $phoneconversationModel = new PhoneConversation();
         $phoneconversation = $phoneconversationModel->fetchAll('consumer_id="' . $uid . '"');
         if ($phoneconversation) {
             $this->view->phoneconversation = $phoneconversation;
         }
         $telephonelogModel = new TelephoneLog();
         $telephonelog = $telephonelogModel->fetchAll('consumer_id="' . $uid . '"');
         if ($telephonelog) {
             $this->view->telephonelog = $telephonelog;
         }
     }
 }
 function admintelephoneAction()
 {
     $this->_helper->layout->setLayout("layout_admin");
     if ($this->_request->getParam('plan')) {
         $this->view->log = array();
         $this->_helper->layout->disableLayout();
         $idValue = explode('&', $this->_request->getParam('plan'));
         $id = $idValue[0];
         $telephoneLogModel = new TelephoneLog();
         $rows = $telephoneLogModel->fetchAll('plan_id=' . $id)->toArray();
         $this->view->log = $rows;
     } else {
         $this->view->plan = array();
         $telephonePlanModel = new TelephonePlan();
         $rows = $telephonePlanModel->fetchAll()->toArray();
         $this->view->plan = $rows;
         //var_dump($rows);die;
     }
 }