mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +01:00
emailbackup edit page form cleanup
This commit is contained in:
parent
4570cbc342
commit
24905d3674
@ -1,179 +1,346 @@
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<li><a href="#tabs-1"></a></li>
|
||||
</ul>
|
||||
<!-- Example for multiple tabs
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#tabs-1"></a>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- Example for multiple tabs
|
||||
<ul hidden">
|
||||
<li><a href="#tabs-1">First Tab</a></li>
|
||||
<li><a href="#tabs-2">Second Tab</a></li>
|
||||
</ul>
|
||||
-->
|
||||
<div id="tabs-1">
|
||||
[MESSAGE]
|
||||
<form action="" method="post">
|
||||
[FORMHANDLEREVENT]
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
<div class="col-xs-12 col-md-12 col-md-height">
|
||||
<div class="inside inside-full-height">
|
||||
<fieldset>
|
||||
<legend>{|Allgemein|}</legend>
|
||||
<table width="100%" border="0" class="mkTableFormular">
|
||||
<tr><td>{|E-Mail-Adresse|}:</td><td><input type="text" name="email" value="[EMAIL]" size="40"></td></tr>
|
||||
<tr><td>{|Angezeigter Name|}:</td><td><input type="text" name="angezeigtername" value="[ANGEZEIGTERNAME]" size="40"></td></tr>
|
||||
<tr><td>{|Interne Beschreibung|}:</td><td><input type="text" name="internebeschreibung" value="[INTERNEBESCHREIBUNG]" size="40"></td></tr>
|
||||
<tr><td>{|Benutzername|}:</td><td><input type="text" name="benutzername" value="[BENUTZERNAME]" size="40"></td></tr>
|
||||
<tr><td>{|Passwort|}:</td><td><input type="password" name="passwort" value="[PASSWORT]" size="40"></td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
<div class="col-xs-12 col-md-12 col-md-height">
|
||||
<div class="inside inside-full-height">
|
||||
<fieldset>
|
||||
<legend>{|SMTP|}</legend>
|
||||
<table width="100%" border="0" class="mkTableFormular">
|
||||
<tr><td>{|SMTP benutzen|}:</td><td><input type="text" name="smtp_extra" value="[SMTP_EXTRA]" size="40"><i>0 = nein, 1 = ja</i></td></tr>
|
||||
<tr><td>{|Server|}:</td><td><input type="text" name="smtp" value="[SMTP]" size="40"></td></tr>
|
||||
<tr><td>{|Verschlüsselung|}:</td><td><input type="text" name="smtp_ssl" value="[SMTP_SSL]" size="40"><i>0 = keine, 1 = TLS, 2 = SSL</i></td></tr>
|
||||
<tr><td>{|Port|}:</td><td><input type="text" name="smtp_port" value="[SMTP_PORT]" size="40"></td></tr>
|
||||
<tr><td>{|Authtype|}:</td><td><input type="text" name="smtp_authtype" value="[SMTP_AUTHTYPE]" size="40"><i>'', 'smtp', 'oauth_google'</i></td></tr>
|
||||
<tr><td>{|Authparam|}:</td><td><input type="text" name="smtp_authparam" value="[SMTP_AUTHPARAM]" size="40"></td></tr>
|
||||
<tr><td>{|Client_alias|}:</td><td><input type="text" name="client_alias" value="[CLIENT_ALIAS]" size="40"></td></tr>
|
||||
<tr><td>{|Loglevel|}:</td><td><input type="text" name="smtp_loglevel" value="[SMTP_LOGLEVEL]" size="40"></td></tr>
|
||||
|
||||
<tr><td width="50">Testmail:</td><td>
|
||||
<input type="submit" form="smtp_test" value="Testmail senden" id="testmail-senden-button"> <i>Bitte erst speichern und dann senden!</i>
|
||||
</td></tr>
|
||||
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
<div class="col-xs-12 col-md-12 col-md-height">
|
||||
<div class="inside inside-full-height">
|
||||
<fieldset>
|
||||
<legend>{|IMAP|}</legend>
|
||||
<table width="100%" border="0" class="mkTableFormular">
|
||||
<tr><td>{|IMAP server|}:</td><td><input type="text" name="server" value="[SERVER]" size="40"></td></tr>
|
||||
<tr><td>{|imap_sentfolder_aktiv|}:</td><td><input type="text" name="imap_sentfolder_aktiv" value="[IMAP_SENTFOLDER_AKTIV]" size="40"></td></tr>
|
||||
<tr><td>{|imap_sentfolder|}:</td><td><input type="text" name="imap_sentfolder" value="[IMAP_SENTFOLDER]" size="40"></td></tr>
|
||||
<tr><td>{|imap_port|}:</td><td><input type="text" name="imap_port" value="[IMAP_PORT]" size="40"></td></tr>
|
||||
<tr><td>{|imap_type|}:</td><td><input type="text" name="imap_type" value="[IMAP_TYPE]" size="40"><i>1 = standard, 3 = SSL, 5 = OAuth</i></td></tr>
|
||||
<tr><td width="50">Testmail:</td><td>
|
||||
<input type="submit" form="imap_test" value="IMAP testen" id="testimap-button"> <i>Bitte erst speichern und dann testen!</i>
|
||||
</td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
<div class="col-xs-12 col-md-12 col-md-height">
|
||||
<div class="inside inside-full-height">
|
||||
<fieldset>
|
||||
<legend>{|Archiv|}</legend>
|
||||
<table width="100%" border="0" class="mkTableFormular">
|
||||
<tr><td>{|E-Mailarchiv aktiv|}:</td><td><input type="text" name="emailbackup" value="[EMAILBACKUP]" size="40"></td></tr>
|
||||
<tr><td>{|Löschen nach wievielen Tagen?|}:</td><td><input type="text" name="loeschtage" value="[LOESCHTAGE]" size="40"></td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
<div class="col-xs-12 col-md-12 col-md-height">
|
||||
<div class="inside inside-full-height">
|
||||
<fieldset>
|
||||
<legend>{|Ticketsystem|}</legend>
|
||||
<table width="100%" border="0" class="mkTableFormular">
|
||||
<tr><td>{|ticket|}:</td><td><input type="text" name="ticket" value="[TICKET]" size="40"></td></tr>
|
||||
<tr><td>{|ticketprojekt|}:</td><td><input type="text" id="ticketprojekt" name="ticketprojekt" value="[TICKETPROJEKT]" size="40"></td></tr>
|
||||
<tr><td>{|ticketqueue|}:</td><td><input type="text" id="ticketqueue" name="ticketqueue" value="[TICKETQUEUE]" size="40"></td></tr>
|
||||
<tr><td>{|abdatum|}:</td><td><input type="text" name="abdatum" value="[ABDATUM]" size="40"></td></tr>
|
||||
<tr><td>{|ticketloeschen|}:</td><td><input type="text" name="ticketloeschen" value="[TICKETLOESCHEN]" size="40"></td></tr>
|
||||
<tr><td>{|ticketabgeschlossen|}:</td><td><input type="text" name="ticketabgeschlossen" value="[TICKETABGESCHLOSSEN]" size="40"></td></tr>
|
||||
<tr><td>{|ticketemaileingehend|}:</td><td><input type="text" name="ticketemaileingehend" value="[TICKETEMAILEINGEHEND]" size="40"></td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
<div class="col-xs-12 col-md-12 col-md-height">
|
||||
<div class="inside inside-full-height">
|
||||
<fieldset>
|
||||
<legend>{|Sonstiges|}</legend>
|
||||
<table width="100%" border="0" class="mkTableFormular">
|
||||
<tr><td>{|autosresponder_blacklist|}:</td><td><input type="text" name="autosresponder_blacklist" value="[AUTOSRESPONDER_BLACKLIST]" size="40"></td></tr>
|
||||
<tr><td>{|eigenesignatur|}:</td><td><input type="text" name="eigenesignatur" value="[EIGENESIGNATUR]" size="40"></td></tr>
|
||||
<tr><td>{|signatur|}:</td><td><textarea id="signatur" name="signatur" rows="6" style="width:100%;">[SIGNATUR]</textarea></td></tr>
|
||||
<tr><td>{|adresse|}:</td><td><input type="text" id="adresse" name="adresse" value="[ADRESSE]" size="40"></td></tr>
|
||||
<tr><td>{|firma|}:</td><td><input type="text" name="firma" value="[FIRMA]" size="40"></td></tr>
|
||||
<tr><td>{|geloescht|}:</td><td><input type="text" name="geloescht" value="[GELOESCHT]" size="40"></td></tr>
|
||||
<tr><td>{|mutex|}:</td><td><input type="text" name="mutex" value="[MUTEX]" size="40"></td></tr>
|
||||
<tr><td>{|autoresponder|}:</td><td><input type="text" name="autoresponder" value="[AUTORESPONDER]" size="40"></td></tr>
|
||||
<tr><td>{|geschaeftsbriefvorlage|}:</td><td><input type="text" name="geschaeftsbriefvorlage" value="[GESCHAEFTSBRIEFVORLAGE]" size="40"></td></tr>
|
||||
<tr><td>{|autoresponderbetreff|}:</td><td><textarea id="autoresponderbetreff" name="autoresponderbetreff" rows="6" style="width:100%;">[AUTORESPONDERBETREFF]</textarea></td></tr>
|
||||
<tr><td>{|autorespondertext|}:</td><td><textarea id="autorespondertext" name="autorespondertext" rows="6" style="width:100%;">[AUTORESPONDERTEXT]</textarea></td></tr>
|
||||
<tr><td>{|projekt|}:</td><td><input type="text" id="projekt" name="projekt" value="[PROJEKT]" size="40"></td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="submit" name="submit" value="Speichern" style="float:right"/>
|
||||
</form>
|
||||
</div>
|
||||
<!-- Example for 2nd tab
|
||||
<div id="tabs-2">
|
||||
[MESSAGE]
|
||||
<form action="" method="post">
|
||||
[FORMHANDLEREVENT]
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
<div class="col-xs-12 col-md-12 col-md-height">
|
||||
<div class="inside inside-full-height">
|
||||
<fieldset>
|
||||
<legend>{|...|}</legend>
|
||||
<table width="100%" border="0" class="mkTableFormular">
|
||||
...
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="submit" name="submit" value="Speichern" style="float:right"/>
|
||||
</form>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
|
||||
<form id="smtp_test" action = "index.php">
|
||||
<input type="text" name="module" value="emailbackup" style="display:none">
|
||||
<input type="text" name="action" value="test_smtp" style="display:none">
|
||||
<input type="text" name="id" value="[ID]" style="display:none">
|
||||
<div id="tabs-1"> [MESSAGE]
|
||||
<form action="" method="post"> [FORMHANDLEREVENT]
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
<div class="col-xs-12 col-md-12 col-md-height">
|
||||
<div class="inside inside-full-height">
|
||||
<fieldset>
|
||||
<legend>{|Allgemein|}</legend>
|
||||
<input type="submit" name="submit" value="Speichern" style="float:right" />
|
||||
<table width="100%" border="0" class="mkTableFormular">
|
||||
<tr>
|
||||
<td width="200">{|E-Mail-Adresse|}:</td>
|
||||
<td>
|
||||
<input type="text" name="email" value="[EMAIL]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Angezeigter Name|}:</td>
|
||||
<td>
|
||||
<input type="text" name="angezeigtername" value="[ANGEZEIGTERNAME]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Interne Beschreibung|}:</td>
|
||||
<td>
|
||||
<input type="text" name="internebeschreibung" value="[INTERNEBESCHREIBUNG]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Benutzername|}:</td>
|
||||
<td>
|
||||
<input type="text" name="benutzername" value="[BENUTZERNAME]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Passwort|}:</td>
|
||||
<td>
|
||||
<input type="password" name="passwort" value="[PASSWORT]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
<div class="col-xs-12 col-md-12 col-md-height">
|
||||
<div class="inside inside-full-height">
|
||||
<fieldset>
|
||||
<legend>{|SMTP|}</legend>
|
||||
<table width="100%" border="0" class="mkTableFormular">
|
||||
<tr>
|
||||
<td width="200">{|SMTP benutzen|}:</td>
|
||||
<td>
|
||||
<input type="checkbox" name="smtp_extra" value="1" [SMTP_EXTRA]>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Server|}:</td>
|
||||
<td>
|
||||
<input type="text" name="smtp" value="[SMTP]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Verschlüsselung|}:</td>
|
||||
<td>
|
||||
<select name="smtp_ssl">
|
||||
[SMTP_SSL_SELECT]
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Port|}:</td>
|
||||
<td>
|
||||
<input type="text" name="smtp_port" value="[SMTP_PORT]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Authtype|}:</td>
|
||||
<td>
|
||||
<select name="smtp_authtype">
|
||||
[SMTP_AUTHTYPE_SELECT]
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Authparam|}:</td>
|
||||
<td>
|
||||
<input type="text" name="smtp_authparam" value="[SMTP_AUTHPARAM]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Client alias|}:</td>
|
||||
<td>
|
||||
<input type="text" name="client_alias" value="[CLIENT_ALIAS]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|SMTP Debug|}:</td>
|
||||
<td>
|
||||
<input type="checkbox" name="smtp_loglevel" value="1" [SMTP_LOGLEVEL]>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50">Testmail:</td>
|
||||
<td>
|
||||
<input type="submit" form="smtp_test" value="Testmail senden" id="testmail-senden-button"> <i>Bitte erst speichern und dann senden!</i>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
<div class="col-xs-12 col-md-12 col-md-height">
|
||||
<div class="inside inside-full-height">
|
||||
<fieldset>
|
||||
<legend>{|IMAP|}</legend>
|
||||
<table width="100%" border="0" class="mkTableFormular">
|
||||
<tr>
|
||||
<td width="200">{|IMAP server|}:</td>
|
||||
<td>
|
||||
<input type="text" name="server" value="[SERVER]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Gesendete Mails in IMAP-Ordner legen|}:</td>
|
||||
<td>
|
||||
<input type="checkbox" name="imap_sentfolder_aktiv" value="1" [IMAP_SENTFOLDER_AKTIV]>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|IMAP-Ordner|}:</td>
|
||||
<td>
|
||||
<input type="text" name="imap_sentfolder" value="[IMAP_SENTFOLDER]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|IMAP-Port|}:</td>
|
||||
<td>
|
||||
<input type="text" name="imap_port" value="[IMAP_PORT]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|IMAP-Typ|}:</td>
|
||||
<td>
|
||||
<select name="imap_type">
|
||||
[IMAP_TYPE_SELECT]
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50">Testmail:</td>
|
||||
<td>
|
||||
<input type="submit" form="imap_test" value="IMAP testen" id="testimap-button"> <i>Bitte erst speichern und dann testen!</i>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
<div class="col-xs-12 col-md-12 col-md-height">
|
||||
<div class="inside inside-full-height">
|
||||
<fieldset>
|
||||
<legend>{|Archiv|}</legend>
|
||||
<table width="100%" border="0" class="mkTableFormular">
|
||||
<tr>
|
||||
<td width="200">{|E-Mailarchiv aktiv|}:</td>
|
||||
<td>
|
||||
<input type="checkbox" name="emailbackup" value="1" [EMAILBACKUP]>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Löschen nach wievielen Tagen?|}:</td>
|
||||
<td>
|
||||
<input type="text" name="loeschtage" value="[LOESCHTAGE]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
<div class="col-xs-12 col-md-12 col-md-height">
|
||||
<div class="inside inside-full-height">
|
||||
<fieldset>
|
||||
<legend>{|Ticketsystem|}</legend>
|
||||
<table width="100%" border="0" class="mkTableFormular">
|
||||
<tr>
|
||||
<td width="200">{|Mails als Ticket importieren|}:</td>
|
||||
<td>
|
||||
<input type="checkbox" name="ticket" value="1" [TICKET]>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Projekt für Ticket|}:</td>
|
||||
<td>
|
||||
<input type="text" id="ticketprojekt" name="ticketprojekt" value="[TICKETPROJEKT]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Warteschlange für Ticket|}:</td>
|
||||
<td>
|
||||
<input type="text" id="ticketqueue" name="ticketqueue" value="[TICKETQUEUE]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|E-Mails ab Datum importieren|}:</td>
|
||||
<td>
|
||||
<input type="text" name="abdatum" id="abdatum" value="[ABDATUM]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|E-Mail nach Import löschen|}:</td>
|
||||
<td>
|
||||
<input type="checkbox" name="ticketloeschen" value="1" [TICKETLOESCHEN]>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Ticket auf abgeschlossen setzen|}:</td>
|
||||
<td>
|
||||
<input type="checkbox" name="ticketabgeschlossen" value="1" [TICKETABGESCHLOSSEN]>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Ausgehende E-Mailadresse|}:</td>
|
||||
<td>
|
||||
<input type="checkbox" name="ticketemaileingehend" value="1" [TICKETEMAILEINGEHEND]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
<div class="col-xs-12 col-md-12 col-md-height">
|
||||
<div class="inside inside-full-height">
|
||||
<fieldset>
|
||||
<legend>{|Sonstiges|}</legend>
|
||||
<table width="100%" border="0" class="mkTableFormular">
|
||||
<tr>
|
||||
<td>{|Automatisch antworten|}:</td>
|
||||
<td>
|
||||
<input type="checkbox" name="autoresponder" value="1" [AUTORESPONDER]>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Nur eine Antwort pro Tag|}:</td>
|
||||
<td>
|
||||
<input type="checkbox" name="autosresponder_blacklist" value="1" [AUTOSRESPONDER_BLACKLIST]>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Automatische Antwort Betreff|}:</td>
|
||||
<td>
|
||||
<textarea id="autoresponderbetreff" name="autoresponderbetreff" rows="6" style="width:100%;">[AUTORESPONDERBETREFF]</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Automatische Antwort Text|}:</td>
|
||||
<td>
|
||||
<textarea id="autorespondertext" name="autorespondertext" rows="6" style="width:100%;">[AUTORESPONDERTEXT]</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Eigene Signatur verwenden|}:</td>
|
||||
<td>
|
||||
<input type="checkbox" name="eigenesignatur" value="1" [EIGENESIGNATUR]>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Signatur|}:</td>
|
||||
<td>
|
||||
<textarea id="signatur" name="signatur" rows="6" style="width:100%;">[SIGNATUR]</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Adresse|}:</td>
|
||||
<td>
|
||||
<input type="text" id="adresse" name="adresse" value="[ADRESSE]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Projekt|}:</td>
|
||||
<td>
|
||||
<input type="text" id="projekt" name="projekt" value="[PROJEKT]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Firma|}:</td>
|
||||
<td>
|
||||
<input type="text" name="firma" value="[FIRMA]" size="40">
|
||||
</td>
|
||||
<tr>
|
||||
<td>{|Geschäftsbriefvorlage|}:</td>
|
||||
<td>
|
||||
<input type="text" name="geschaeftsbriefvorlage" value="[GESCHAEFTSBRIEFVORLAGE]" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="submit" name="submit" value="Speichern" style="float:right" />
|
||||
</form>
|
||||
</div>
|
||||
<form id="smtp_test" action="index.php">
|
||||
<input type="text" name="module" value="emailbackup" style="display:none">
|
||||
<input type="text" name="action" value="test_smtp" style="display:none">
|
||||
<input type="text" name="id" value="[ID]" style="display:none">
|
||||
</form>
|
||||
|
||||
<form id="imap_test" action = "index.php">
|
||||
<input type="text" name="module" value="emailbackup" style="display:none">
|
||||
<input type="text" name="action" value="test_imap" style="display:none">
|
||||
<input type="text" name="id" value="[ID]" style="display:none">
|
||||
<form id="imap_test" action="index.php">
|
||||
<input type="text" name="module" value="emailbackup" style="display:none">
|
||||
<input type="text" name="action" value="test_imap" style="display:none">
|
||||
<input type="text" name="id" value="[ID]" style="display:none">
|
||||
</form>
|
||||
|
||||
|
@ -116,6 +116,7 @@ $width = array('10%'); // Fill out manually later
|
||||
$input['ticketprojekt'] = $this->app->erp->ReplaceProjekt(true,$input['ticketprojekt'],true); // Parameters: Target db?, value, from form?
|
||||
$input['adresse'] = $this->app->erp->ReplaceAdresse(true,$input['adresse'],true); // Parameters: Target db?, value, from form?
|
||||
$input['ticketqueue'] = explode(" ",$input['ticketqueue'])[0]; // Just the label
|
||||
$input['abdatum'] = $this->app->erp->ReplaceDatum(true,$input['abdatum'],true);
|
||||
|
||||
$columns = "id, ";
|
||||
$values = "$id, ";
|
||||
@ -146,7 +147,6 @@ $width = array('10%'); // Fill out manually later
|
||||
else {
|
||||
$sql = "INSERT INTO emailbackup (".$columns.") VALUES (".$values.") ON DUPLICATE KEY UPDATE ".$update;
|
||||
$this->app->DB->Update($sql);
|
||||
|
||||
if ($id == 'NULL') {
|
||||
$msg = $this->app->erp->base64_url_encode("<div class=\"success\">Das Element wurde erfolgreich angelegt.</div>");
|
||||
header("Location: index.php?module=emailbackup&action=list&msg=$msg");
|
||||
@ -159,31 +159,69 @@ $width = array('10%'); // Fill out manually later
|
||||
// Load values again from database
|
||||
$result = $this->app->DB->SelectArr("SELECT id, angezeigtername, internebeschreibung, benutzername, passwort, server, smtp, ticket, imap_sentfolder_aktiv, imap_sentfolder, imap_port, imap_type, autoresponder, geschaeftsbriefvorlage, autoresponderbetreff, autorespondertext, projekt, emailbackup, adresse, firma, loeschtage, geloescht, ticketloeschen, ticketabgeschlossen, ticketqueue, ticketprojekt, ticketemaileingehend, smtp_extra, smtp_ssl, smtp_port, smtp_frommail, smtp_fromname, client_alias, smtp_authtype, smtp_authparam, smtp_loglevel, autosresponder_blacklist, eigenesignatur, signatur, mutex, abdatum, email, id FROM emailbackup"." WHERE id=$id");
|
||||
|
||||
foreach ($result[0] as $key => $value) {
|
||||
if (!empty($result)) {
|
||||
$emailbackup = $result[0];
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
foreach ($emailbackup as $key => $value) {
|
||||
$this->app->Tpl->Set(strtoupper($key), $value);
|
||||
}
|
||||
|
||||
/*
|
||||
* Add displayed items later
|
||||
*
|
||||
|
||||
$this->app->Tpl->Add('KURZUEBERSCHRIFT2', $email);
|
||||
$this->app->Tpl->Add('EMAIL', $email);
|
||||
$this->app->Tpl->Add('ANGEZEIGTERNAME', $angezeigtername);
|
||||
*/
|
||||
// Checkboxes
|
||||
$this->app->Tpl->Set('SMTP_EXTRA', $emailbackup['smtp_extra']?'checked':'');
|
||||
$this->app->Tpl->Set('SMTP_LOGLEVEL', $emailbackup['smtp_loglevel']?'checked':'');
|
||||
$this->app->Tpl->Set('IMAP_SENTFOLDER_AKTIV', $emailbackup['imap_sentfolder_aktiv']?'checked':'');
|
||||
$this->app->Tpl->Set('EMAILBACKUP', $emailbackup['emailbackup']?'checked':'');
|
||||
$this->app->Tpl->Set('TICKET', $emailbackup['ticket']?'checked':'');
|
||||
$this->app->Tpl->Set('TICKETLOESCHEN', $emailbackup['ticketloeschen']?'checked':'');
|
||||
$this->app->Tpl->Set('TICKETABGESCHLOSSEN', $emailbackup['ticketabgeschlossen']?'checked':'');
|
||||
$this->app->Tpl->Set('TICKETEMAILEINGEHEND', $emailbackup['ticketemaileingehend']?'checked':'');
|
||||
$this->app->Tpl->Set('EIGENESIGNATUR', $emailbackup['eigenesignatur']?'checked':'');
|
||||
$this->app->Tpl->Set('AUTORESPONDER', $emailbackup['autoresponder']?'checked':'');
|
||||
$this->app->Tpl->Set('AUTOSRESPONDER_BLACKLIST', $emailbackup['autosresponder_blacklist']?'checked':'');
|
||||
|
||||
$this->app->YUI->CkEditor("signatur","internal", null, 'JQUERY');
|
||||
$this->app->YUI->CkEditor("autoresponderbetreff","internal", null, 'JQUERY');
|
||||
$this->app->YUI->CkEditor("autorespondertext","internal", null, 'JQUERY');
|
||||
$this->app->Tpl->Set('PROJEKT',$this->app->erp->ReplaceProjekt(false,$result[0]['projekt'],false)); // Parameters: Target db?, value, from form?
|
||||
$this->app->Tpl->Set('TICKETPROJEKT',$this->app->erp->ReplaceProjekt(false,$result[0]['ticketprojekt'],false)); // Parameters: Target db?, value, from form?
|
||||
$this->app->Tpl->Set('ADRESSE', $this->app->erp->ReplaceAdresse(false,$result[0]['adresse'],false)); // Convert ID to form display
|
||||
$this->app->Tpl->Set('PROJEKT',$this->app->erp->ReplaceProjekt(false,$emailbackup['projekt'],false)); // Parameters: Target db?, value, from form?
|
||||
$this->app->Tpl->Set('TICKETPROJEKT',$this->app->erp->ReplaceProjekt(false,$emailbackup['ticketprojekt'],false)); // Parameters: Target db?, value, from form?
|
||||
$this->app->Tpl->Set('ADRESSE', $this->app->erp->ReplaceAdresse(false,$emailbackup['adresse'],false)); // Convert ID to form display
|
||||
$this->app->YUI->AutoComplete("projekt","projektname",1);
|
||||
$this->app->YUI->AutoComplete("ticketprojekt","projektname",1);
|
||||
$this->app->YUI->AutoComplete("adresse","adresse");
|
||||
$this->app->YUI->AutoComplete("ticketqueue","warteschlangename");
|
||||
$this->app->YUI->AutoComplete("ticketprojekt","projektname",1);
|
||||
$this->app->Tpl->Parse('PAGE', "emailbackup_edit.tpl");
|
||||
|
||||
$this->app->YUI->DatePicker("abdatum");
|
||||
$this->app->Tpl->Set('ABDATUM',$this->app->erp->ReplaceDatum(false,$emailbackup['abdatum'],false));
|
||||
|
||||
$smtp_ssl_select = Array(
|
||||
'0' => 'Keine',
|
||||
'1' => 'TLS',
|
||||
'2' => 'SSL'
|
||||
);
|
||||
$smtp_ssl_select = $this->app->erp->GetSelectAsso($smtp_ssl_select,$emailbackup['smtp_ssl']);
|
||||
$this->app->Tpl->Set('SMTP_SSL_SELECT',$smtp_ssl_select);
|
||||
|
||||
$smtp_authtype_select = Array(
|
||||
'' => 'Kein',
|
||||
'smtp' => 'SMTP',
|
||||
'oauth_google' => 'Oauth Google'
|
||||
);
|
||||
$smtp_authtype_select = $this->app->erp->GetSelectAsso($smtp_authtype_select,$emailbackup['smtp_authtype']);
|
||||
$this->app->Tpl->Set('SMTP_AUTHTYPE_SELECT',$smtp_authtype_select);
|
||||
|
||||
$imap_type_select = Array(
|
||||
'1' => 'Standard',
|
||||
'3' => 'SSL',
|
||||
'5' => 'Oauth'
|
||||
);
|
||||
$imap_type_select = $this->app->erp->GetSelectAsso($imap_type_select,$emailbackup['imap_type']);
|
||||
$this->app->Tpl->Set('IMAP_TYPE_SELECT',$imap_type_select);
|
||||
|
||||
$this->app->Tpl->Parse('PAGE', "emailbackup_edit.tpl");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -194,47 +232,46 @@ $width = array('10%'); // Fill out manually later
|
||||
//$input['EMAIL'] = $this->app->Secure->GetPOST('email');
|
||||
|
||||
$input['angezeigtername'] = $this->app->Secure->GetPOST('angezeigtername');
|
||||
$input['internebeschreibung'] = $this->app->Secure->GetPOST('internebeschreibung');
|
||||
$input['benutzername'] = $this->app->Secure->GetPOST('benutzername');
|
||||
$input['passwort'] = $this->app->Secure->GetPOST('passwort');
|
||||
$input['server'] = $this->app->Secure->GetPOST('server');
|
||||
$input['smtp'] = $this->app->Secure->GetPOST('smtp');
|
||||
$input['ticket'] = $this->app->Secure->GetPOST('ticket');
|
||||
$input['imap_sentfolder_aktiv'] = $this->app->Secure->GetPOST('imap_sentfolder_aktiv');
|
||||
$input['imap_sentfolder'] = $this->app->Secure->GetPOST('imap_sentfolder');
|
||||
$input['imap_port'] = $this->app->Secure->GetPOST('imap_port');
|
||||
$input['imap_type'] = $this->app->Secure->GetPOST('imap_type');
|
||||
$input['autoresponder'] = $this->app->Secure->GetPOST('autoresponder');
|
||||
$input['geschaeftsbriefvorlage'] = $this->app->Secure->GetPOST('geschaeftsbriefvorlage');
|
||||
$input['autoresponderbetreff'] = $this->app->Secure->GetPOST('autoresponderbetreff');
|
||||
$input['autorespondertext'] = $this->app->Secure->GetPOST('autorespondertext');
|
||||
$input['projekt'] = $this->app->Secure->GetPOST('projekt');
|
||||
$input['emailbackup'] = $this->app->Secure->GetPOST('emailbackup');
|
||||
$input['adresse'] = $this->app->Secure->GetPOST('adresse');
|
||||
$input['firma'] = $this->app->Secure->GetPOST('firma');
|
||||
$input['loeschtage'] = $this->app->Secure->GetPOST('loeschtage');
|
||||
$input['geloescht'] = $this->app->Secure->GetPOST('geloescht');
|
||||
$input['ticketloeschen'] = $this->app->Secure->GetPOST('ticketloeschen');
|
||||
$input['ticketabgeschlossen'] = $this->app->Secure->GetPOST('ticketabgeschlossen');
|
||||
$input['ticketqueue'] = $this->app->Secure->GetPOST('ticketqueue');
|
||||
$input['ticketprojekt'] = $this->app->Secure->GetPOST('ticketprojekt');
|
||||
$input['ticketemaileingehend'] = $this->app->Secure->GetPOST('ticketemaileingehend');
|
||||
$input['smtp_extra'] = $this->app->Secure->GetPOST('smtp_extra');
|
||||
$input['smtp_ssl'] = $this->app->Secure->GetPOST('smtp_ssl');
|
||||
$input['smtp_port'] = $this->app->Secure->GetPOST('smtp_port');
|
||||
$input['smtp_frommail'] = $this->app->Secure->GetPOST('email'); // use only these
|
||||
$input['smtp_fromname'] = $this->app->Secure->GetPOST('angezeigtername'); // use only these
|
||||
$input['client_alias'] = $this->app->Secure->GetPOST('client_alias');
|
||||
$input['smtp_authtype'] = $this->app->Secure->GetPOST('smtp_authtype');
|
||||
$input['smtp_authparam'] = $this->app->Secure->GetPOST('smtp_authparam');
|
||||
$input['smtp_loglevel'] = $this->app->Secure->GetPOST('smtp_loglevel');
|
||||
$input['autosresponder_blacklist'] = $this->app->Secure->GetPOST('autosresponder_blacklist');
|
||||
$input['eigenesignatur'] = $this->app->Secure->GetPOST('eigenesignatur');
|
||||
$input['signatur'] = $this->app->Secure->GetPOST('signatur');
|
||||
$input['mutex'] = $this->app->Secure->GetPOST('mutex');
|
||||
$input['abdatum'] = $this->app->Secure->GetPOST('abdatum');
|
||||
$input['email'] = $this->app->Secure->GetPOST('email');
|
||||
|
||||
$input['internebeschreibung'] = $this->app->Secure->GetPOST('internebeschreibung');
|
||||
$input['benutzername'] = $this->app->Secure->GetPOST('benutzername');
|
||||
$input['passwort'] = $this->app->Secure->GetPOST('passwort');
|
||||
$input['server'] = $this->app->Secure->GetPOST('server');
|
||||
$input['smtp'] = $this->app->Secure->GetPOST('smtp');
|
||||
$input['ticket'] = $this->app->Secure->GetPOST('ticket');
|
||||
$input['imap_sentfolder_aktiv'] = $this->app->Secure->GetPOST('imap_sentfolder_aktiv');
|
||||
$input['imap_sentfolder'] = $this->app->Secure->GetPOST('imap_sentfolder');
|
||||
$input['imap_port'] = $this->app->Secure->GetPOST('imap_port');
|
||||
$input['imap_type'] = $this->app->Secure->GetPOST('imap_type');
|
||||
$input['autoresponder'] = $this->app->Secure->GetPOST('autoresponder');
|
||||
$input['geschaeftsbriefvorlage'] = $this->app->Secure->GetPOST('geschaeftsbriefvorlage');
|
||||
$input['autoresponderbetreff'] = $this->app->Secure->GetPOST('autoresponderbetreff');
|
||||
$input['autorespondertext'] = $this->app->Secure->GetPOST('autorespondertext');
|
||||
$input['projekt'] = $this->app->Secure->GetPOST('projekt');
|
||||
$input['emailbackup'] = $this->app->Secure->GetPOST('emailbackup');
|
||||
$input['adresse'] = $this->app->Secure->GetPOST('adresse');
|
||||
$input['firma'] = $this->app->Secure->GetPOST('firma');
|
||||
$input['loeschtage'] = $this->app->Secure->GetPOST('loeschtage');
|
||||
$input['geloescht'] = $this->app->Secure->GetPOST('geloescht');
|
||||
$input['ticketloeschen'] = $this->app->Secure->GetPOST('ticketloeschen');
|
||||
$input['ticketabgeschlossen'] = $this->app->Secure->GetPOST('ticketabgeschlossen');
|
||||
$input['ticketqueue'] = $this->app->Secure->GetPOST('ticketqueue');
|
||||
$input['ticketprojekt'] = $this->app->Secure->GetPOST('ticketprojekt');
|
||||
$input['ticketemaileingehend'] = $this->app->Secure->GetPOST('ticketemaileingehend');
|
||||
$input['smtp_extra'] = $this->app->Secure->GetPOST('smtp_extra');
|
||||
$input['smtp_ssl'] = $this->app->Secure->GetPOST('smtp_ssl');
|
||||
$input['smtp_port'] = $this->app->Secure->GetPOST('smtp_port');
|
||||
$input['smtp_frommail'] = $this->app->Secure->GetPOST('email'); // use only these
|
||||
$input['smtp_fromname'] = $this->app->Secure->GetPOST('angezeigtername'); // use only these
|
||||
$input['client_alias'] = $this->app->Secure->GetPOST('client_alias');
|
||||
$input['smtp_authtype'] = $this->app->Secure->GetPOST('smtp_authtype');
|
||||
$input['smtp_authparam'] = $this->app->Secure->GetPOST('smtp_authparam');
|
||||
$input['smtp_loglevel'] = $this->app->Secure->GetPOST('smtp_loglevel');
|
||||
$input['autosresponder_blacklist'] = $this->app->Secure->GetPOST('autosresponder_blacklist');
|
||||
$input['eigenesignatur'] = $this->app->Secure->GetPOST('eigenesignatur');
|
||||
$input['signatur'] = $this->app->Secure->GetPOST('signatur');
|
||||
$input['mutex'] = $this->app->Secure->GetPOST('mutex');
|
||||
$input['abdatum'] = $this->app->Secure->GetPOST('abdatum');
|
||||
$input['email'] = $this->app->Secure->GetPOST('email');
|
||||
|
||||
return $input;
|
||||
}
|
||||
@ -245,45 +282,7 @@ $width = array('10%'); // Fill out manually later
|
||||
function SetInput($input) {
|
||||
// $this->app->Tpl->Set('EMAIL', $input['email']);
|
||||
|
||||
$this->app->Tpl->Set('ANGEZEIGTERNAME', $input['angezeigtername']);
|
||||
$this->app->Tpl->Set('INTERNEBESCHREIBUNG', $input['internebeschreibung']);
|
||||
$this->app->Tpl->Set('BENUTZERNAME', $input['benutzername']);
|
||||
$this->app->Tpl->Set('PASSWORT', $input['passwort']);
|
||||
$this->app->Tpl->Set('SERVER', $input['server']);
|
||||
$this->app->Tpl->Set('SMTP', $input['smtp']);
|
||||
$this->app->Tpl->Set('TICKET', $input['ticket']);
|
||||
$this->app->Tpl->Set('IMAP_SENTFOLDER_AKTIV', $input['imap_sentfolder_aktiv']);
|
||||
$this->app->Tpl->Set('IMAP_SENTFOLDER', $input['imap_sentfolder']);
|
||||
$this->app->Tpl->Set('IMAP_PORT', $input['imap_port']);
|
||||
$this->app->Tpl->Set('IMAP_TYPE', $input['imap_type']);
|
||||
$this->app->Tpl->Set('AUTORESPONDER', $input['autoresponder']);
|
||||
$this->app->Tpl->Set('GESCHAEFTSBRIEFVORLAGE', $input['geschaeftsbriefvorlage']);
|
||||
$this->app->Tpl->Set('AUTORESPONDERBETREFF', $input['autoresponderbetreff']);
|
||||
$this->app->Tpl->Set('AUTORESPONDERTEXT', $input['autorespondertext']);
|
||||
$this->app->Tpl->Set('PROJEKT', $input['projekt']);
|
||||
$this->app->Tpl->Set('EMAILBACKUP', $input['emailbackup']);
|
||||
$this->app->Tpl->Set('ADRESSE', $input['adresse']);
|
||||
$this->app->Tpl->Set('FIRMA', $input['firma']);
|
||||
$this->app->Tpl->Set('LOESCHTAGE', $input['loeschtage']);
|
||||
$this->app->Tpl->Set('GELOESCHT', $input['geloescht']);
|
||||
$this->app->Tpl->Set('TICKETLOESCHEN', $input['ticketloeschen']);
|
||||
$this->app->Tpl->Set('TICKETABGESCHLOSSEN', $input['ticketabgeschlossen']);
|
||||
$this->app->Tpl->Set('TICKETQUEUE', $input['ticketqueue']);
|
||||
$this->app->Tpl->Set('TICKETPROJEKT', $input['ticketprojekt']);
|
||||
$this->app->Tpl->Set('TICKETEMAILEINGEHEND', $input['ticketemaileingehend']);
|
||||
$this->app->Tpl->Set('SMTP_EXTRA', $input['smtp_extra']);
|
||||
$this->app->Tpl->Set('SMTP_SSL', $input['smtp_ssl']);
|
||||
$this->app->Tpl->Set('SMTP_PORT', $input['smtp_port']);
|
||||
$this->app->Tpl->Set('CLIENT_ALIAS', $input['client_alias']);
|
||||
$this->app->Tpl->Set('SMTP_AUTHTYPE', $input['smtp_authtype']);
|
||||
$this->app->Tpl->Set('SMTP_AUTHPARAM', $input['smtp_authparam']);
|
||||
$this->app->Tpl->Set('SMTP_LOGLEVEL', $input['smtp_loglevel']);
|
||||
$this->app->Tpl->Set('AUTOSRESPONDER_BLACKLIST', $input['autosresponder_blacklist']);
|
||||
$this->app->Tpl->Set('EIGENESIGNATUR', $input['eigenesignatur']);
|
||||
$this->app->Tpl->Set('SIGNATUR', $input['signatur']);
|
||||
$this->app->Tpl->Set('MUTEX', $input['mutex']);
|
||||
$this->app->Tpl->Set('ABDATUM', $input['abdatum']);
|
||||
$this->app->Tpl->Set('EMAIL', $input['email']);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user