module smarty_templates

This commit is contained in:
OpenXE 2024-11-01 10:03:00 +01:00
parent 8a56ab2bbf
commit 5079b32ea9
6 changed files with 549 additions and 146 deletions

View File

@ -119101,14 +119101,6 @@
"id"
],
"Non_unique": ""
},
{
"Key_name": "name",
"Index_type": "BTREE",
"columns": [
"name"
],
"Non_unique": "UNIQUE"
}
]
}

View File

@ -1,157 +1,237 @@
<div class="inside">
<fieldset><legend>{|Allgemein|}</legend>
<table width="800" border="0" align="center">
<tr align="center">
<td width="25%"><a href="index.php?module=firmendaten&action=edit"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_1.gif" border="0" width="30%"></a></td>
<td width="25%"><a href="index.php?module=benutzer&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_2.gif" border="0" width="30%"></a></td>
<td width="25%"><a href="index.php?module=geschaeftsbrief_vorlagen&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_3.gif" border="0" width="30%"></a></td>
<td width="25%" style="position:relative"><a [EMAILBACKUPLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_4.gif" border="0" width="30%"></a>[GREYEMAILBACKUP]</td>
</tr>
<tr align="center">
<td><a href="index.php?module=firmendaten&action=edit">{|Grundeinstellungen|}</a></td>
<td><a href="index.php?module=benutzer&action=list">{|Benutzer|}</a></td>
<td><a href="index.php?module=geschaeftsbrief_vorlagen&action=list">{|Gesch&auml;ftsbrief Vorlagen|}</a></td>
<td><a [EMAILBACKUPLINK]>{|E-Mail Accounts|}</a></td>
</tr>
<tr><td colspan="4"><br></td></tr>
<fieldset>
<legend>{|Allgemein|}</legend>
<table width="800" border="0" align="center">
<tr align="center">
<td width="25%">
<a href="index.php?module=firmendaten&action=edit"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_1.gif" border="0" width="30%" /></a>
</td>
<td width="25%">
<a href="index.php?module=benutzer&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_2.gif" border="0" width="30%" /></a>
</td>
<td width="25%">
<a href="index.php?module=geschaeftsbrief_vorlagen&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_3.gif" border="0" width="30%" /></a>
</td>
<td width="25%" style="position: relative;">
<a [EMAILBACKUPLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_4.gif" border="0" width="30%" /></a>[GREYEMAILBACKUP]
</td>
</tr>
<tr align="center">
<td><a href="index.php?module=firmendaten&action=edit">{|Grundeinstellungen|}</a></td>
<td><a href="index.php?module=benutzer&action=list">{|Benutzer|}</a></td>
<td><a href="index.php?module=geschaeftsbrief_vorlagen&action=list">{|Gesch&auml;ftsbrief Vorlagen|}</a></td>
<td><a [EMAILBACKUPLINK]>{|E-Mail Accounts|}</a></td>
</tr>
<tr>
<td colspan="4"><br /></td>
</tr>
<tr align="center">
<td width="25%" style="position:relative"><a [TICKETVORLAGENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_5.gif" border="0" width="30%"></a>[GREYTICKETVORLAGEN]</td>
<td width="25%" style="position:relative"><a [WARTESCHLANGENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_6.gif" border="0" width="30%"></a>[GREYWARTESCHLANGEN]</td>
<!--<td width="25%"><a href="index.php?module=generic&action=edit"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_7.gif" border="0" width="30%"></a></td>-->
<td width="25%" style="position:relative"><a [ARTIKELKATEGORIENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_15.gif" border="0" width="30%"></a>[GREYARTIKELKATEGORIEN]</td>
<td width="25%" style="position:relative"><a href="index.php?module=artikeleinheit&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_14.gif" border="0" width="30%"></a></td>
</tr>
<tr align="center">
<td><a [TICKETVORLAGENLINK]>{|Ticket Vorlagen|}</a></td>
<td><a [WARTESCHLANGENLINK]>{|Ticket Warteschlangen|}</a></td>
<!--<td><a href="index.php?module=generic&action=edit">Startseite</a></td>-->
<td><a [ARTIKELKATEGORIENLINK]>{|Artikel Kategorien|}</a></td>
<td><a href="index.php?module=artikeleinheit&action=list">{|Artikel Einheiten|}</a></td>
</tr>
<tr align="center">
<td width="25%" style="position: relative;">
<a [TICKETVORLAGENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_5.gif" border="0" width="30%" /></a>[GREYTICKETVORLAGEN]
</td>
<td width="25%" style="position: relative;">
<a [WARTESCHLANGENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_6.gif" border="0" width="30%" /></a>[GREYWARTESCHLANGEN]
</td>
<!--<td width="25%"><a href="index.php?module=generic&action=edit"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_7.gif" border="0" width="30%"></a></td>-->
<td width="25%" style="position: relative;">
<a [ARTIKELKATEGORIENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_15.gif" border="0" width="30%" /></a>[GREYARTIKELKATEGORIEN]
</td>
<td width="25%" style="position: relative;">
<a href="index.php?module=artikeleinheit&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_14.gif" border="0" width="30%" /></a>
</td>
</tr>
<tr align="center">
<td><a [TICKETVORLAGENLINK]>{|Ticket Vorlagen|}</a></td>
<td><a [WARTESCHLANGENLINK]>{|Ticket Warteschlangen|}</a></td>
<!--<td><a href="index.php?module=generic&action=edit">Startseite</a></td>-->
<td><a [ARTIKELKATEGORIENLINK]>{|Artikel Kategorien|}</a></td>
<td><a href="index.php?module=artikeleinheit&action=list">{|Artikel Einheiten|}</a></td>
</tr>
<tr><td colspan="4"><br></td></tr>
<tr align="center">
<td width="25%" style="position:relative"><a [GRUPPENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_2.gif" border="0" width="30%"></a>[GREYGRUPPEN]</td>
<td width="25%" style="position:relative"><a [USERVORLAGELINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_2.gif" border="0" width="30%"></a>[GREYUSERVORLAGE]</td>
<td width="25%" style="position:relative"><a href="index.php?module=laender&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_14.gif" border="0" width="30%"></a></td>
<td width="25%" style="position:relative"><a href="index.php?module=kalender&action=gruppenlist"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_2.gif" border="0" width="30%"></a></td>
</tr>
<tr align="center">
<td><a [GRUPPENLINK]>{|Gruppen|}</a></td>
<td><a [USERVORLAGELINK]>{|Benutzer Vorlage|}</a></td>
<td><a href="index.php?module=laender&action=list">{|L&auml;nderliste|}</a></td>
<td><a href="index.php?module=kalender&action=gruppenlist">{|Kalender Gruppen|}</a></td>
</tr>
</table>
</fieldset>
<tr>
<td colspan="4"><br /></td>
</tr>
<tr align="center">
<td width="25%" style="position: relative;">
<a [GRUPPENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_2.gif" border="0" width="30%" /></a>[GREYGRUPPEN]
</td>
<td width="25%" style="position: relative;">
<a [USERVORLAGELINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_2.gif" border="0" width="30%" /></a>[GREYUSERVORLAGE]
</td>
<td width="25%" style="position: relative;">
<a href="index.php?module=laender&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_14.gif" border="0" width="30%" /></a>
</td>
<td width="25%" style="position: relative;">
<a href="index.php?module=kalender&action=gruppenlist"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_2.gif" border="0" width="30%" /></a>
</td>
</tr>
<tr align="center">
<td><a [GRUPPENLINK]>{|Gruppen|}</a></td>
<td><a [USERVORLAGELINK]>{|Benutzer Vorlage|}</a></td>
<td><a href="index.php?module=laender&action=list">{|L&auml;nderliste|}</a></td>
<td><a href="index.php?module=kalender&action=gruppenlist">{|Kalender Gruppen|}</a></td>
</tr>
</table>
</fieldset>
</div>
<div class="inside">
<fieldset><legend>{|Definitionen|}</legend>
<table width="800" border="0" align="center">
<fieldset>
<legend>{|Definitionen|}</legend>
<table width="800" border="0" align="center">
<tr align="center">
<td width="25%" style="position: relative;">
<a [KONTENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_16.gif" border="0" width="30%" /></a>[GREYKONTEN]
</td>
<td width="25%" style="position: relative;">
<a [KOSTENSTELLENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_17.gif" border="0" width="30%" /></a>[GREYKOSTENSTELLEN]
</td>
<td width="25%" style="position: relative;">
<a [KONTORAHMENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_18.gif" border="0" width="30%" /></a>[GREYKONTORAHMEN]
</td>
<td width="25%" style="position: relative;">
<a [ZOLLTARIFNUMMERLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_16.gif" border="0" width="30%" /></a>[GREYZOLLTARIFNUMMER]
</td>
</tr>
<tr align="center">
<td><a [KONTENLINK]>{|Gesch&auml;ftskonten|}</a></td>
<td><a [KOSTENSTELLENLINK]>{|Kostenstellen|}</a></td>
<td><a [KONTORAHMENLINK]>{|Kontenrahmen|}</a></td>
<td><a [ZOLLTARIFNUMMERLINK]>{|Zolltarifnummer|}</a></td>
</tr>
<tr align="center">
<td width="25%" style="position:relative"><a [KONTENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_16.gif" border="0" width="30%"></a>[GREYKONTEN]</td>
<td width="25%" style="position:relative"><a [KOSTENSTELLENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_17.gif" border="0" width="30%"></a>[GREYKOSTENSTELLEN]</td>
<td width="25%" style="position:relative"><a [KONTORAHMENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_18.gif" border="0" width="30%"></a>[GREYKONTORAHMEN]</td>
<td width="25%" style="position:relative"><a [ZOLLTARIFNUMMERLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_16.gif" border="0" width="30%"></a>[GREYZOLLTARIFNUMMER]</td>
</tr>
<tr align="center">
<td><a [KONTENLINK]>{|Gesch&auml;ftskonten|}</a></td>
<td><a [KOSTENSTELLENLINK]>{|Kostenstellen|}</a></td>
<td><a [KONTORAHMENLINK]>{|Kontenrahmen|}</a></td>
<td><a [ZOLLTARIFNUMMERLINK]>{|Zolltarifnummer|}</a></td>
</tr>
<tr align="center">
<td width="25%" style="position:relative"><a href="index.php?module=versandarten&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_16.gif" border="0" width="30%"></a></td>
<td width="25%" style="position:relative"><a href="index.php?module=zahlungsweisen&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_16.gif" border="0" width="30%"></a></td>
<td width="25%" style="position:relative"><a [LIEFERBEDINGUNGENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_16.gif" border="0" width="30%"></a>[GREYLIEFERBEDINGUNGEN]</td>
<td width="25%" style="position:relative"><a href="index.php?module=mahnwesen&action=einstellungen"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_11.gif" border="0" width="30%"></a></td>
</tr>
<tr align="center">
<td><a href="index.php?module=versandarten&action=list">{|Versandarten|}</a></td>
<td><a href="index.php?module=zahlungsweisen&action=list">{|Zahlungsweisen|}</a></td>
<td><a [LIEFERBEDINGUNGENLINK]>{|Lieferbedingungen|}</a></td>
<td><a href="index.php?module=mahnwesen&action=einstellungen">{|Mahnwesen|}</a></td>
</tr>
</table>
</fieldset>
<tr align="center">
<td width="25%" style="position: relative;">
<a href="index.php?module=versandarten&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_16.gif" border="0" width="30%" /></a>
</td>
<td width="25%" style="position: relative;">
<a href="index.php?module=zahlungsweisen&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_16.gif" border="0" width="30%" /></a>
</td>
<td width="25%" style="position: relative;">
<a [LIEFERBEDINGUNGENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_16.gif" border="0" width="30%" /></a>[GREYLIEFERBEDINGUNGEN]
</td>
<td width="25%" style="position: relative;">
<a href="index.php?module=mahnwesen&action=einstellungen"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_11.gif" border="0" width="30%" /></a>
</td>
</tr>
<tr align="center">
<td><a href="index.php?module=versandarten&action=list">{|Versandarten|}</a></td>
<td><a href="index.php?module=zahlungsweisen&action=list">{|Zahlungsweisen|}</a></td>
<td><a [LIEFERBEDINGUNGENLINK]>{|Lieferbedingungen|}</a></td>
<td><a href="index.php?module=mahnwesen&action=einstellungen">{|Mahnwesen|}</a></td>
</tr>
<tr align="center">
<td width="25%" style="position: relative;">
<a href="index.php?module=smarty_templates&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_26.gif" border="0" width="30%" /></a>
</td>
</tr>
<tr align="center">
<td><a href="index.php?module=versandarten&action=list">{|Smarty Templates|}</a></td>
</tr>
</table>
</fieldset>
</div>
<div class="inside">
<fieldset><legend>{|Online-Shop|}</legend>
<table width="800" border="0" align="center">
<tr align="center">
<td width="25%"><a href="index.php?module=onlineshops&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_20.gif" border="0" width="30%"></a></td>
<!--<td width="25%"><a href="index.php?module=inhalt&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_21.gif" border="0" width="30%"></a></td>-->
<!--<td width="25%"><a href="index.php?module=artikelgruppen&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_15.gif" border="0" width="30%"></a></td>-->
<td width="25%"></td>
<td width="25%"></td>
<td width="25%"></td>
</tr>
<tr align="center">
<td><a href="index.php?module=onlineshops&action=list">Online-Shops</a></td>
<!--<td><a href="index.php?module=inhalt&action=list">Online-Shop Content</a></td>-->
<!--<td><a href="index.php?module=artikelgruppen&action=list">Artikelgruppen (Shop)</a></td>-->
<td></td>
</table>
</fieldset>
<fieldset>
<legend>{|Online-Shop|}</legend>
<table width="800" border="0" align="center">
<tr align="center">
<td width="25%">
<a href="index.php?module=onlineshops&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_20.gif" border="0" width="30%" /></a>
</td>
<!--<td width="25%"><a href="index.php?module=inhalt&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_21.gif" border="0" width="30%"></a></td>-->
<!--<td width="25%"><a href="index.php?module=artikelgruppen&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_15.gif" border="0" width="30%"></a></td>-->
<td width="25%"></td>
<td width="25%"></td>
<td width="25%"></td>
</tr>
<tr align="center">
<td><a href="index.php?module=onlineshops&action=list">Online-Shops</a></td>
<!--<td><a href="index.php?module=inhalt&action=list">Online-Shop Content</a></td>-->
<!--<td><a href="index.php?module=artikelgruppen&action=list">Artikelgruppen (Shop)</a></td>-->
<td></td>
</tr>
</table>
</fieldset>
</div>
<div class="inside">
<fieldset><legend>{|System|}</legend>
<table width="800" border="0" align="center">
<tr align="center">
<td width="25%"><a href="index.php?module=prozessstarter&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_22.gif" border="0" width="30%"></a></td>
<td width="25%"><a href="index.php?module=protokoll&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_22.gif" border="0" width="30%"></a></td>
<td width="25%"><a href="index.php?module=logfile&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_22.gif" border="0" width="30%"></a></td>
<td width="25%"><a href="index.php?module=log&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_22.gif" border="0" width="30%"></a></td>
</tr>
<fieldset>
<legend>{|System|}</legend>
<table width="800" border="0" align="center">
<tr align="center">
<td width="25%">
<a href="index.php?module=prozessstarter&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_22.gif" border="0" width="30%" /></a>
</td>
<td width="25%">
<a href="index.php?module=protokoll&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_22.gif" border="0" width="30%" /></a>
</td>
<td width="25%">
<a href="index.php?module=logfile&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_22.gif" border="0" width="30%" /></a>
</td>
<td width="25%">
<a href="index.php?module=log&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_22.gif" border="0" width="30%" /></a>
</td>
</tr>
<tr align="center">
<td><a href="index.php?module=prozessstarter&action=list">{|Prozessstarter|}</a></td>
<td><a href="index.php?module=protokoll&action=list">{|Protokoll|}</a></td>
<td><a href="index.php?module=prozessstarter&action=list">{|Logfile|}</a></td>
<td><a href="index.php?module=prozessstarter&action=list">{|Log|}</a></td>
</tr>
</table>
<table width="800" border="0" align="center">
<tr align="center">
<td width="25%"><a href="index.php?module=etiketten&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_14.gif" border="0" width="30%"></a></td>
<td width="25%" style="position:relative"><a [UEBERSETZUNGENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_14.gif" border="0" width="30%"></a>[GREYUEBERSETZUNGEN]</td>
<td width="25%" style="position:relative"><a [ARBEITSFREIETAGELINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_14.gif" border="0" width="30%"></a>[GREYARBEITSFREIETAGE]</td>
<td width="25%"><a href="index.php?module=drucker&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_24.gif" border="0" width="30%"></a></td>
</tr>
<tr align="center">
<td><a href="index.php?module=prozessstarter&action=list">{|Prozessstarter|}</a></td>
<td><a href="index.php?module=protokoll&action=list">{|Protokoll|}</a></td>
<td><a href="index.php?module=prozessstarter&action=list">{|Logfile|}</a></td>
<td><a href="index.php?module=prozessstarter&action=list">{|Log|}</a></td>
</tr>
</table>
<table width="800" border="0" align="center">
<tr align="center">
<td width="25%">
<a href="index.php?module=etiketten&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_14.gif" border="0" width="30%" /></a>
</td>
<td width="25%" style="position: relative;">
<a [UEBERSETZUNGENLINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_14.gif" border="0" width="30%" /></a>[GREYUEBERSETZUNGEN]
</td>
<td width="25%" style="position: relative;">
<a [ARBEITSFREIETAGELINK]><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_14.gif" border="0" width="30%" /></a>[GREYARBEITSFREIETAGE]
</td>
<td width="25%">
<a href="index.php?module=drucker&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_24.gif" border="0" width="30%" /></a>
</td>
</tr>
<tr align="center">
<td><a href="index.php?module=etiketten&action=list">{|Etiketten|}</a></td>
<td><a [UEBERSETZUNGENLINK]>{|&Uuml;bersetzungen|}</a></td>
<td width="25%"><a [ARBEITSFREIETAGELINK]>{|Arbeitsfreie Tage|}</a></td>
<td><a href="index.php?module=drucker&action=list">{|Drucker|}</a></td>
</tr>
</table>
<tr align="center">
<td><a href="index.php?module=etiketten&action=list">{|Etiketten|}</a></td>
<td><a [UEBERSETZUNGENLINK]>{|&Uuml;bersetzungen|}</a></td>
<td width="25%"><a [ARBEITSFREIETAGELINK]>{|Arbeitsfreie Tage|}</a></td>
<td><a href="index.php?module=drucker&action=list">{|Drucker|}</a></td>
</tr>
</table>
<table width="800" border="0" align="center">
<tr align="center">
<td width="25%">
<a href="index.php?module=welcome&action=info"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_23.gif" border="0" width="30%" /></a>
</td>
<td width="25%">
<a href="index.php?module=support&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_23.gif" border="0" width="30%" /></a>
</td>
<td width="25%">
<a href="index.php?module=api_account&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_25.gif" border="0" width="30%" /></a>
</td>
<td width="25%">
<a href="index.php?module=adapterbox&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_25.gif" border="0" width="30%" /></a>
</td>
</tr>
<table width="800" border="0" align="center">
<tr align="center">
<td width="25%"><a href="index.php?module=welcome&action=info"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_23.gif" border="0" width="30%"></a></td>
<td width="25%"><a href="index.php?module=support&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_23.gif" border="0" width="30%"></a></td>
<td width="25%"><a href="index.php?module=api_account&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_25.gif" border="0" width="30%"></td>
<td width="25%"><a href="index.php?module=adapterbox&action=list"><img src="./themes/[THEME]/images/einstellungen/Icons_dunkel_25.gif" border="0" width="30%"></a></td>
</tr>
<tr align="center">
<td><a href="index.php?module=welcome&action=info">{|Lizenz|}</a></td>
<td><a href="index.php?module=support&action=list">{|Support|}</a></td>
<td><a href="index.php?module=api_account&action=list">{|API-Account|}</a></td>
<td><a href="index.php?module=adapterbox&action=list">{|Adapterbox|}</a></td>
</tr>
</table>
</fieldset>
<tr align="center">
<td><a href="index.php?module=welcome&action=info">{|Lizenz|}</a></td>
<td><a href="index.php?module=support&action=list">{|Support|}</a></td>
<td><a href="index.php?module=api_account&action=list">{|API-Account|}</a></td>
<td><a href="index.php?module=adapterbox&action=list">{|Adapterbox|}</a></td>
</tr>
</table>
</fieldset>
</div>
[SETTINGMODULES]
<br><br>
<br />
<br />

View File

@ -0,0 +1,103 @@
<div id="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>{|<!--Legend for this form area goes here>-->Smarty Templates|}</legend>
<table width="100%" border="0" class="mkTableFormular">
<tr>
<td>
{|Name|}:
</td>
<td>
<input type="text" name="name" id="name" value="[NAME]" size="20">
</td>
</tr>
<tr>
<td>
{|Template|}:
</td>
<td>
<textarea name="template" id="template" rows="80" cols="180">[TEMPLATE]</textarea>
</td>
</tr>
</table>
</fieldset>
</div>
</div>
</div>
</div>
<!-- Example for 2nd row
<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>{|Another legend|}</legend>
<table width="100%" border="0" class="mkTableFormular">
<tr>
<td>
{|Name|}:
</td>
<td>
<input type="text" name="name" id="name" value="[NAME]" size="20">
</td>
</tr>
<tr>
<td>
{|Template|}:
</td>
<td>
<input type="text" name="template" id="template" value="[TEMPLATE]" size="20">
</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>

View File

@ -0,0 +1,10 @@
<div id="tabs">
<ul>
<li><a href="#tabs-1">[TABTEXT1]</a></li>
</ul>
<div id="tabs-1">
[MESSAGE]
[TAB1]
[TAB1NEXT]
</div>
</div>

View File

@ -0,0 +1,218 @@
<?php
/*
* Copyright (c) 2022 OpenXE project
*/
use Xentral\Components\Database\Exception\QueryFailureException;
class Smarty_templates {
function __construct($app, $intern = false) {
$this->app = $app;
if ($intern)
return;
$this->app->ActionHandlerInit($this);
$this->app->ActionHandler("list", "smarty_templates_list");
$this->app->ActionHandler("create", "smarty_templates_edit"); // This automatically adds a "New" button
$this->app->ActionHandler("edit", "smarty_templates_edit");
$this->app->ActionHandler("delete", "smarty_templates_delete");
$this->app->DefaultActionHandler("list");
$this->app->ActionHandlerListen($app);
}
public function Install() {
/* Fill out manually later */
}
static function TableSearch(&$app, $name, $erlaubtevars) {
switch ($name) {
case "smarty_templates_list":
$allowed['smarty_templates_list'] = array('list');
$heading = array('','','Name', 'Men&uuml;');
$width = array('1%','1%','80%','1%'); // Fill out manually later
// columns that are aligned right (numbers etc)
// $alignright = array(4,5,6,7,8);
$findcols = array('s.id','s.id','s.name'); // use 'null' for non-searchable columns
$searchsql = array('s.name', 's.template');
$defaultorder = 1;
$defaultorderdesc = 0;
$aligncenter = array();
$alignright = array();
$numbercols = array();
$sumcol = array();
$dropnbox = "'<img src=./themes/new/images/details_open.png class=details>' AS `open`, CONCAT('<input type=\"checkbox\" name=\"auswahl[]\" value=\"',s.id,'\" />') AS `auswahl`";
// $moreinfo = true; // Allow drop down details
// $moreinfoaction = "lieferschein"; // specify suffix for minidetail-URL to allow different minidetails
// $menucol = 11; // Set id col for moredata/menu
$menu = "<table cellpadding=0 cellspacing=0><tr><td nowrap>" . "<a href=\"index.php?module=smarty_templates&action=edit&id=%value%\"><img src=\"./themes/{$app->Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\"></a>&nbsp;<a href=\"#\" onclick=DeleteDialog(\"index.php?module=smarty_templates&action=delete&id=%value%\");>" . "<img src=\"themes/{$app->Conf->WFconf['defaulttheme']}/images/delete.svg\" border=\"0\"></a>" . "</td></tr></table>";
$sql = "SELECT SQL_CALC_FOUND_ROWS s.id, $dropnbox, s.name, s.id FROM smarty_templates s";
$where = "1";
$count = "SELECT count(DISTINCT id) FROM smarty_templates WHERE $where";
// $groupby = "";
// echo($sql." WHERE ".$where." ".$groupby);
break;
}
$erg = false;
foreach ($erlaubtevars as $k => $v) {
if (isset($$v)) {
$erg[$v] = $$v;
}
}
return $erg;
}
function smarty_templates_list() {
$this->app->erp->MenuEintrag("index.php?module=smarty_templates&action=list", "&Uuml;bersicht");
$this->app->erp->MenuEintrag("index.php?module=smarty_templates&action=create", "Neu anlegen");
$this->app->erp->MenuEintrag("index.php?module=einstellungen&action=list", "Zur&uuml;ck zur &Uuml;bersicht");
$this->app->YUI->TableSearch('TAB1', 'smarty_templates_list', "show", "", "", basename(__FILE__), __CLASS__);
$this->app->Tpl->Parse('PAGE', "smarty_templates_list.tpl");
}
public function smarty_templates_delete() {
$id = (int) $this->app->Secure->GetGET('id');
$this->app->DB->Delete("DELETE FROM `smarty_templates` WHERE `id` = '{$id}'");
$this->app->Tpl->addMessage('error', 'Der Eintrag wurde gel&ouml;scht');
$this->smarty_templates_list();
}
/*
* Edit smarty_templates item
* If id is empty, create a new one
*/
function smarty_templates_edit() {
$id = $this->app->Secure->GetGET('id');
/* // Check if other users are editing this id
if($this->app->erp->DisableModul('smarty_templates',$id))
{
return;
} */
$this->app->Tpl->Set('ID', $id);
$this->app->erp->MenuEintrag("index.php?module=smarty_templates&action=edit&id=$id", "Details");
$this->app->erp->MenuEintrag("index.php?module=smarty_templates&action=list", "Zur&uuml;ck zur &Uuml;bersicht");
$id = $this->app->Secure->GetGET('id');
$input = $this->GetInput();
// Convert here
// $input['prio'] = !empty($this->app->Secure->GetPOST('prio'))?"1":"0";
$submit = $this->app->Secure->GetPOST('submit');
if (empty($id)) {
// New item
$id = 'NULL';
}
if ($submit != '')
{
// Write to database
// Add checks here
$input['template'] = html_entity_decode($input['template']);
// $input['projekt'] = $this->app->erp->ReplaceProjekt(true,$input['projekt'],true); // Parameters: Target db?, value, from form?
$columns = "id, ";
$values = "$id, ";
$update = "";
$fix = "";
foreach ($input as $key => $value) {
$columns = $columns.$fix.$key;
$values = $values.$fix."'".$value."'";
$update = $update.$fix.$key." = '$value'";
$fix = ", ";
}
// echo($columns."<br>");
// echo($values."<br>");
// echo($update."<br>");
$sql = "INSERT INTO smarty_templates (".$columns.") VALUES (".$values.") ON DUPLICATE KEY UPDATE ".$update;
// echo($sql);
$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=smarty_templates&action=list&msg=$msg");
} else {
$this->app->Tpl->addMessage('success', 'Die Einstellungen wurden erfolgreich &uuml;bernommen.');
}
}
// Load values again from database
if ($id != 'NULL') {
$dropnbox = "'<img src=./themes/new/images/details_open.png class=details>' AS `open`, CONCAT('<input type=\"checkbox\" name=\"auswahl[]\" value=\"',s.id,'\" />') AS `auswahl`";
$result = $this->app->DB->SelectArr("SELECT SQL_CALC_FOUND_ROWS s.id, $dropnbox, s.name, s.template, s.id FROM smarty_templates s"." WHERE id=$id");
$result[0]['template'] = htmlentities($result[0]['template']);
foreach ($result[0] as $key => $value) {
$this->app->Tpl->Set(strtoupper($key), $value);
}
if (!empty($result)) {
$smarty_templates_from_db = $result[0];
} else {
return;
}
}
/*
* Add displayed items later
*
$this->app->Tpl->Add('KURZUEBERSCHRIFT2', $email);
$this->app->Tpl->Add('EMAIL', $email);
$this->app->Tpl->Add('ANGEZEIGTERNAME', $angezeigtername);
$this->app->YUI->AutoComplete("artikel", "artikelnummer");
$this->app->Tpl->Set('PROJEKT',$this->app->erp->ReplaceProjekt(false,$smarty_templates_from_db['projekt'],false));
$this->app->Tpl->Set('PRIO', $smarty_templates_from_db['prio']==1?"checked":"");
*/
$this->app->Tpl->Parse('PAGE', "smarty_templates_edit.tpl");
}
/**
* Get all paramters from html form and save into $input
*/
public function GetInput(): array {
$input = array();
//$input['EMAIL'] = $this->app->Secure->GetPOST('email');
$input['name'] = $this->app->Secure->GetPOST('name');
$input['template'] = $this->app->Secure->GetPOST('template');
return $input;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB