function onShow() { global $app; // Translate the items, very bad trick... :( because the language file is not loaded yet when the form file gets parsed foreach ($app->tform->formDef["tabs"]['remote_user']['fields']['remote_functions']['value'] as $key => $val) { $app->tform->formDef["tabs"]['remote_user']['fields']['remote_functions']['value'][$key] = $app->tform->lng($val) . '<br>'; } parent::onShow(); }
function onShow() { global $app; //* Reset the page number of the list form for the dns //* records to 0 if we are on the first tab of the soa form. if ($app->tform->getNextTab() == 'dns_soa') { $_SESSION['search']['dns_a']['page'] = 0; } parent::onShow(); }
function onShow() { global $app, $conf; //* We do not want that messages get edited, so we switch to a //* read only template if a existing message is loaded if ($this->id > 0) { $app->tform->formDef['tabs']['message']['template'] = 'templates/support_message_view.htm'; } //* call the onShow function of the parent class parent::onShow(); }
function onShow() { global $app, $conf; //* We do not want that messages get edited, so we switch to a //* read only template if a existing message is loaded if ($this->id > 0) { $app->tform->formDef['tabs']['message']['template'] = 'templates/support_message_view.htm'; $record = $app->db->queryOneRecord("SELECT * FROM support_message WHERE support_message_id = " . $this->id); if ($record['tstamp'] > 0) { // is value int? if (preg_match("/^[0-9]+[\\.]?[0-9]*\$/", $record['tstamp'], $p)) { $record['tstamp'] = date($app->lng('conf_format_datetime'), $record['tstamp']); } else { $record['tstamp'] = date($app->lng('conf_format_datetime'), strtotime($record['tstamp'])); } } $app->tpl->setVar("date", $record['tstamp']); //die(print_r($this->dataRecord)); } //* call the onShow function of the parent class parent::onShow(); }
function onShow() { global $app; $this->id = $app->functions->intval($_SESSION['s']['user']['mailuser_id']); parent::onShow(); }
function onShow() { $this->id = $_SESSION['s']['user']['mailuser_id']; parent::onShow(); }
function onAfterUpdate() { if ($this->_theme_changed == true) { // not the best way, but it works header('Content-Type: text/html'); print '<script type="text/javascript">document.location.reload();</script>'; exit; } else { parent::onShow(); } }