function generate_inner_html() { $email_list = EmailMessages::get_email_list(); $inner_template = NULL; $inner_template = dirname(__FILE__) . '/center_inner_html.tpl'; $obj_inner_template =& new Template($inner_template); $obj_inner_template->set('email_list', $email_list); $obj_inner_template->set('subject', $this->subject); $obj_inner_template->set('message', $this->message); $obj_inner_template->set('configurable_variables', $this->configurable_variables); $obj_inner_template->set('preview', $this->preview_msg); $inner_html = $obj_inner_template->fetch(); return $inner_html; }
/** !! * Gather the list of all email templates to be displayed on the drop down * menu by calling { @link getEmailContainers() } and placing it in * { @link $template_list }. Once a template has been selected create objects * to store all information for the email such as author and subject and place * them into ( @link $obj_inner_template }. * @return string $inner_html all the html to be displayed in the email, * gathered by setting this equal to { @link $obj_inner_template } */ function generate_inner_html() { if (!empty($_GET['template'])) { $this->template = $_GET['template']; } $tiny = new TinyMCE('medium'); $email_list = EmailMessages::get_email_list(); $template_list = $this->getEmailContainers(PA::$config_path . "/email_containers"); $inner_template = NULL; $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_html.tpl'; $obj_inner_template = new Template($inner_template); $obj_inner_template->set('email_list', $email_list); $obj_inner_template->set('template_list', $template_list); $obj_inner_template->set('subject', $this->subject); $obj_inner_template->set('message', $this->message); $obj_inner_template->set('category', $this->category); $obj_inner_template->set('template', $this->template); $obj_inner_template->set('description', $this->description); $obj_inner_template->set('configurable_variables', $this->configurable_variables); $obj_inner_template->set('preview', $this->preview_msg); $obj_inner_template->set_object('tiny_mce', $tiny); $inner_html = $obj_inner_template->fetch(); return $inner_html; }