7 $dummy =
new Dataface_Record(
'dataface__version', array());
8 if ( $dummy->checkPermission(
'email') ){
19 return Dataface_PermissionsTool::NO_ACCESS();
26 echo
"<h1>Manage Email Templates</h1>";
27 echo
"<div class=\"portalHelp\">This section allows you to manage your email templates. An email template can be used when sending email to found sets to import a pre-formatted email message, subject, and from heading.</div>";
28 echo
'<div>[<a href="'.DATAFACE_SITE_HREF.
'?-action=email_manage">Back to Email Management</a>]</div>';
32 Dataface_JavascriptTool::getInstance()->import(
'xataface/modules/ckeditor/plugins/SchemaBrowser.js');
33 Dataface_ModuleTool::getInstance()->loadModule(
'modules_Email')->addPaths();
34 Dataface_JavascriptTool::getInstance()->import(
'xataface/modules/Email/email_template_form.js');
41 if ( !isset($this->tablenames) ){
42 $this->tablenames = array();
43 $app = Dataface_Application::getInstance();
46 if ( isset($app->_conf[
'_email_tables']) ){
47 foreach ($app->_conf[
'_email_tables'] as $k=>$v){
48 $this->tablenames[$k] = $v;
51 foreach ($app->_conf[
'_tables'] as $k=>$v){
52 $this->tablenames[$k] = $v;
56 return $this->tablenames;
62 return $record->val(
'template_name');
66 return 'template_name';