Conf->WFconf['defaulttheme']}/images/delete.svg\" border=\"0\">"; $where = " m.id > 0 "; $sql = "SELECT SQL_CALC_FOUND_ROWS m.id, 'Conf->WFconf['defaulttheme']}/images/details_open.png class=details>' as open, m.zeit, IF(m.art=0,m.to,IF(m.art = 1,CONCAT('',m.to,''),CONCAT('',m.to,''))), m.subject, m.from, m.status, m.id FROM mailausgang m"; $count = "SELECT count(m.id) FROM mailausgang m WHERE $where"; break; } $erg = []; foreach($erlaubtevars as $k => $v) { if(isset($$v))$erg[$v] = $$v; } return $erg; } function __construct($app, $intern = false) { $this->app=$app; if($intern)return; $this->app->ActionHandlerInit($this); // ab hier alle Action Handler definieren die das Modul hat $this->app->ActionHandler("list", "MailausgangList"); $this->app->ActionHandler("delete", "MailausgangDelete"); $this->app->ActionHandler("minidetail", "MailausgangMiniDetail"); $this->app->DefaultActionHandler("list"); $this->app->ActionHandlerListen($app); } function MailausgangMenu() { $this->app->erp->MenuEintrag("index.php?module=mailausgang&action=list","Zurück zur Übersicht"); } function MailausgangList() { $this->app->erp->MenuEintrag("index.php?module=mailausgang&action=list","Übersicht"); $this->app->YUI->TableSearch('TAB1','mailausgang_list', "show","","",basename(__FILE__), __CLASS__); $this->app->Tpl->Parse("PAGE","tabview.tpl"); } function MailausgangMiniDetail() { $id = $this->app->Secure->GetGET("id"); echo utf8_encode($this->app->DB->Select("SELECT body FROM mailausgang WHERE id = '$id' LIMIT 1")); exit; } function MailausgangDelete() { $id = $this->app->Secure->GetGET("id"); $this->app->DB->DELETE("DELETE FROM mailausgang WHERE id = '$id' LIMIT 1"); header("Location: index.php?module=mailausgang&action=list"); exit; } }