| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mailuser'); |
| | |
| | | $app->load('tform_actions'); |
| | | |
| | | class page_action extends tform_actions { |
| | | |
| | | |
| | | function onShow() { |
| | | |
| | | |
| | | $this->id = $_SESSION['s']['user']['mailuser_id']; |
| | | |
| | | |
| | | parent::onShow(); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | function onSubmit() { |
| | | |
| | | |
| | | $this->id = $_SESSION['s']['user']['mailuser_id']; |
| | | |
| | | |
| | | //* if autoresponder checkbox not selected, do not save dates |
| | | if (!isset($_POST['autoresponder']) && array_key_exists('autoresponder_start_date', $_POST)) { |
| | | $this->dataRecord['autoresponder_start_date'] = array_map(create_function('$item','return 0;'), $this->dataRecord['autoresponder_start_date']); |
| | | $this->dataRecord['autoresponder_end_date'] = array_map(create_function('$item','return 0;'), $this->dataRecord['autoresponder_end_date']); |
| | | $this->dataRecord['autoresponder_start_date'] = array_map(create_function('$item', 'return 0;'), $this->dataRecord['autoresponder_start_date']); |
| | | $this->dataRecord['autoresponder_end_date'] = array_map(create_function('$item', 'return 0;'), $this->dataRecord['autoresponder_end_date']); |
| | | } |
| | | |
| | | |
| | | parent::onSubmit(); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | function onShowEnd() { |
| | | global $app; |
| | | // Is autoresponder set? |
| | |
| | | } else { |
| | | $app->tpl->setVar("ar_active", ''); |
| | | } |
| | | |
| | | |
| | | if($this->dataRecord['autoresponder_subject'] == '') { |
| | | $app->tpl->setVar('autoresponder_subject', $app->tform->lng('autoresponder_subject')); |
| | | } else { |
| | | $app->tpl->setVar('autoresponder_subject', $this->dataRecord['autoresponder_subject']); |
| | | } |
| | | |
| | | |
| | | parent::onShowEnd(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | $app->tform_actions = new page_action; |