public function action_live($apiKey = null, $surveyID = null) { $apiCheck = \Crm\Portal\Portal_Check::api_key($apiKey); if ($apiCheck === false) { $this->template->content = \View::forge('invalidkey'); } else { if ((int) $surveyID == 0) { } else { $ScriptForm = new ScriptForms((int) $surveyID); $this->template->content = \View::forge('output', array('apiKey' => $apiKey, 'surveyID' => $surveyID, 'rebuttalURL' => $ScriptForm->getRebuttalURL(), 'surveyForm' => $ScriptForm->generate(), 'gets' => array('agent' => \Input::post('agent', null), 'AgentID' => \Input::post('AgentID', null), 'list' => \Input::post('list_id', null), 'lead_id' => \Input::post('lead_id', null), 'ListName' => \Input::post('ListName', null)))); } } }
public function action_preview_script_form() { $Script = new ScriptForms(2); $this->template->title = "Scripts | Preview Script Form"; $this->template->content = \View::forge('admin/script_form_preview', array('form' => $Script->generate())); }