Esempio n. 1
0
$Form->set_InputOrder($FormularName, $InputName_ResetValue, 301);
$Form->set_InputLabel($FormularName, $InputName_ResetValue, "");
//HOST
$Form->new_Input($FormularName, $InputName_Host, "select", "");
$Form->set_InputJS($FormularName, $InputName_Host, " onChange=\"flash('submit','#ff0000');\" ");
$Form->set_InputDefault($FormularName, $InputName_Host, ${$InputName_Host});
$Form->set_InputStyleClass($FormularName, $InputName_Host, "mFormSelect", "mFormSelectFocus");
$Form->set_InputSize($FormularName, $InputName_Host, 1, 1);
$Form->set_InputDesc($FormularName, $InputName_Host, ___("SMTP Server auswählen"));
$Form->set_InputReadonly($FormularName, $InputName_Host, false);
$Form->set_InputOrder($FormularName, $InputName_Host, 9);
$Form->set_InputLabel($FormularName, $InputName_Host, "");
$Form->set_InputMultiple($FormularName, $InputName_Host, false);
#Hostliste....
//smtp hosts
$HOSTS = new tm_Host();
$HOST_ = $HOSTS->getHost(0, array("aktiv" => 1, "type" => "smtp"));
//id,filter
$hcg = count($HOST_);
for ($hccg = 0; $hccg < $hcg; $hccg++) {
    $Form->add_InputOption($FormularName, $InputName_Host, $HOST_[$hccg]['id'], display($HOST_[$hccg]['name']));
}
//Femailname
$Form->new_Input($FormularName, $InputName_email, "text", display(${$InputName_email}));
$Form->set_InputJS($FormularName, $InputName_email, " onChange=\"flash('submit','#ff0000');\" ");
$Form->set_InputStyleClass($FormularName, $InputName_email, "mFormText", "mFormTextFocus");
$Form->set_InputSize($FormularName, $InputName_email, 32, 255);
$Form->set_InputDesc($FormularName, $InputName_email, "email");
$Form->set_InputReadonly($FormularName, $InputName_email, false);
$Form->set_InputOrder($FormularName, $InputName_email, 21);
$Form->set_InputLabel($FormularName, $InputName_email, "");
$Form->add_InputOption($FormularName, $InputName_UnsubAction, "delete", ___("Löschen"));
$Form->add_InputOption($FormularName, $InputName_UnsubAction, "blacklist_delete", ___("Blacklist/Robinsonliste & Löschen"));
//unsub hosts
$Form->new_Input($FormularName, $InputName_UnsubHost, "select", "");
$Form->set_InputJS($FormularName, $InputName_UnsubHost, " onChange=\"flash('submit','#ff0000');\" ");
$Form->set_InputDefault($FormularName, $InputName_UnsubHost, ${$InputName_UnsubHost});
$Form->set_InputStyleClass($FormularName, $InputName_UnsubHost, "mFormSelect", "mFormSelectFocus");
$Form->set_InputSize($FormularName, $InputName_UnsubHost, 1, 1);
$Form->set_InputDesc($FormularName, $InputName_UnsubHost, ___("SMTP Server auswählen"));
$Form->set_InputReadonly($FormularName, $InputName_UnsubHost, false);
$Form->set_InputOrder($FormularName, $InputName_UnsubHost, 13);
$Form->set_InputLabel($FormularName, $InputName_UnsubHost, "");
$Form->set_InputMultiple($FormularName, $InputName_UnsubHost, false);
#Hostliste....
//smtp hosts
$HOSTS = new tm_Host();
$HOST_ = $HOSTS->getHost(0, array("aktiv" => 1, "type" => "smtp"));
//id,filter
$hcg = count($HOST_);
for ($hccg = 0; $hccg < $hcg; $hccg++) {
    $Form->add_InputOption($FormularName, $InputName_UnsubHost, $HOST_[$hccg]['id'], display($HOST_[$hccg]['name']));
}
//CheckitLimit
$Form->new_Input($FormularName, $InputName_CheckitLimit, "select", "");
$Form->set_InputJS($FormularName, $InputName_CheckitLimit, " onChange=\"flash('submit','#ff0000');\" ");
$Form->set_InputDefault($FormularName, $InputName_CheckitLimit, ${$InputName_CheckitLimit});
$Form->set_InputStyleClass($FormularName, $InputName_CheckitLimit, "mFormSelect", "mFormSelectFocus");
$Form->set_InputDesc($FormularName, $InputName_CheckitLimit, ___("Limit"));
$Form->set_InputReadonly($FormularName, $InputName_CheckitLimit, false);
$Form->set_InputOrder($FormularName, $InputName_CheckitLimit, 13);
$Form->set_InputLabel($FormularName, $InputName_CheckitLimit, "");
Esempio n. 3
0
/* this file is part of: / diese Datei ist ein Teil von:                        */
/* tellmatic, the newslettermachine                                             */
/* tellmatic, die Newslettermaschine                                            */
/* 2006/7 by Volker Augustin, multi.art.studio Hanau                            */
/* Contact/Kontakt: info@tellmatic.org                                      */
/* Homepage: www.tellmatic.org                                                   */
/* leave this header in file!                                                   */
/* diesen Header nicht loeschen!                                                */
/* check Homepage for Updates and more Infos                                    */
/* Besuchen Sie die Homepage fuer Updates und weitere Infos                     */
/********************************************************************************/
$_MAIN_DESCR = ___("Formulare verwalten");
$_MAIN_MESSAGE .= "";
$FORMULAR = new tm_FRM();
$ADDRESS = new tm_ADR();
$HOSTS = new tm_Host();
$adr_grp_id = getVar("adr_grp_id");
$frm_id = getVar("frm_id");
$set = getVar("set");
$val = getVar("val");
$doit = getVar("doit");
//wird per js an url angefuegt!!! confirm()
if ($set == "aktiv") {
    $FORMULAR->setAktiv($frm_id, $val);
    if ($val == 1) {
        $_MAIN_MESSAGE .= "<br>" . ___("Eintrag wurde aktiviert.");
    } else {
        $_MAIN_MESSAGE .= "<br>" . ___("Eintrag wurde de-aktiviert.");
    }
}
if ($set == "standard") {