mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +01:00
gruppen module reimplemented
This commit is contained in:
parent
575c15c333
commit
3c170318df
784
www/pages/content/gruppen_edit.tpl
Normal file
784
www/pages/content/gruppen_edit.tpl
Normal file
@ -0,0 +1,784 @@
|
||||
<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>{|Gruppe|}</legend><i>Gruppe für die Zuordnung zu Preislisten, Onlineshop-Preislisten oder Adressgruppen</i>
|
||||
<table width="100%" border="0" class="mkTableFormular">
|
||||
<tr>
|
||||
<td>
|
||||
{|Aktiv|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="aktiv" id="aktiv" value="1" [AKTIV] size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Name|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="name" id="name" value="[NAME]" required size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Kennziffer|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="kennziffer" id="kennziffer" value="[KENNZIFFER]" required size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Internebemerkung|}:
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="internebemerkung" id="internebemerkung" rows="6" style="width:100%;"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Art|}:
|
||||
</td>
|
||||
<td>
|
||||
<select name="art" id="art">
|
||||
[ARTSELECT]
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Projekt|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="projekt" id="projekt" value="[PROJEKT]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr [PREISGRUPPEHIDDEN]>
|
||||
<td>
|
||||
{|Grundrabatt|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="grundrabatt" id="grundrabatt" value="[GRUNDRABATT]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr [PREISGRUPPEHIDDEN]>
|
||||
<td>
|
||||
{|Zahlungszieltage|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="zahlungszieltage" id="zahlungszieltage" value="[ZAHLUNGSZIELTAGE]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr [PREISGRUPPEHIDDEN]>
|
||||
<td>
|
||||
{|Zahlungszielskonto|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="zahlungszielskonto" id="zahlungszielskonto" value="[ZAHLUNGSZIELSKONTO]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr [PREISGRUPPEHIDDEN]>
|
||||
<td>
|
||||
{|Zahlungszieltageskonto|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="zahlungszieltageskonto" id="zahlungszieltageskonto" value="[ZAHLUNGSZIELTAGESKONTO]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr [PREISGRUPPEHIDDEN]>
|
||||
<td>
|
||||
{|Portofrei_aktiv|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="portofrei_aktiv" id="portofrei_aktiv" value="[PORTOFREI_AKTIV]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr [PREISGRUPPEHIDDEN]>
|
||||
<td>
|
||||
{|Portofreiab|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="portofreiab" id="portofreiab" value="[PORTOFREIAB]" size="20">
|
||||
</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>
|
||||
{|Art|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="art" id="art" value="[ART]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Kennziffer|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="kennziffer" id="kennziffer" value="[KENNZIFFER]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Internebemerkung|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="internebemerkung" id="internebemerkung" value="[INTERNEBEMERKUNG]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Grundrabatt|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="grundrabatt" id="grundrabatt" value="[GRUNDRABATT]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Rabatt1|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="rabatt1" id="rabatt1" value="[RABATT1]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Rabatt2|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="rabatt2" id="rabatt2" value="[RABATT2]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Rabatt3|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="rabatt3" id="rabatt3" value="[RABATT3]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Rabatt4|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="rabatt4" id="rabatt4" value="[RABATT4]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Rabatt5|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="rabatt5" id="rabatt5" value="[RABATT5]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Sonderrabatt_skonto|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="sonderrabatt_skonto" id="sonderrabatt_skonto" value="[SONDERRABATT_SKONTO]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Provision|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="provision" id="provision" value="[PROVISION]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Kundennummer|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="kundennummer" id="kundennummer" value="[KUNDENNUMMER]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Partnerid|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="partnerid" id="partnerid" value="[PARTNERID]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Dta_aktiv|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="dta_aktiv" id="dta_aktiv" value="[DTA_AKTIV]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Dta_periode|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="dta_periode" id="dta_periode" value="[DTA_PERIODE]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Dta_dateiname|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="dta_dateiname" id="dta_dateiname" value="[DTA_DATEINAME]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Dta_mail|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="dta_mail" id="dta_mail" value="[DTA_MAIL]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Dta_mail_betreff|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="dta_mail_betreff" id="dta_mail_betreff" value="[DTA_MAIL_BETREFF]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Dta_mail_text|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="dta_mail_text" id="dta_mail_text" value="[DTA_MAIL_TEXT]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Dtavariablen|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="dtavariablen" id="dtavariablen" value="[DTAVARIABLEN]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Dta_variante|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="dta_variante" id="dta_variante" value="[DTA_VARIANTE]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus1|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus1" id="bonus1" value="[BONUS1]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus1_ab|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus1_ab" id="bonus1_ab" value="[BONUS1_AB]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus2|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus2" id="bonus2" value="[BONUS2]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus2_ab|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus2_ab" id="bonus2_ab" value="[BONUS2_AB]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus3|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus3" id="bonus3" value="[BONUS3]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus3_ab|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus3_ab" id="bonus3_ab" value="[BONUS3_AB]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus4|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus4" id="bonus4" value="[BONUS4]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus4_ab|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus4_ab" id="bonus4_ab" value="[BONUS4_AB]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus5|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus5" id="bonus5" value="[BONUS5]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus5_ab|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus5_ab" id="bonus5_ab" value="[BONUS5_AB]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus6|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus6" id="bonus6" value="[BONUS6]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus6_ab|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus6_ab" id="bonus6_ab" value="[BONUS6_AB]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus7|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus7" id="bonus7" value="[BONUS7]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus7_ab|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus7_ab" id="bonus7_ab" value="[BONUS7_AB]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus8|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus8" id="bonus8" value="[BONUS8]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus8_ab|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus8_ab" id="bonus8_ab" value="[BONUS8_AB]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus9|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus9" id="bonus9" value="[BONUS9]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus9_ab|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus9_ab" id="bonus9_ab" value="[BONUS9_AB]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus10|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus10" id="bonus10" value="[BONUS10]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Bonus10_ab|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bonus10_ab" id="bonus10_ab" value="[BONUS10_AB]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Zahlungszieltage|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="zahlungszieltage" id="zahlungszieltage" value="[ZAHLUNGSZIELTAGE]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Zahlungszielskonto|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="zahlungszielskonto" id="zahlungszielskonto" value="[ZAHLUNGSZIELSKONTO]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Zahlungszieltageskonto|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="zahlungszieltageskonto" id="zahlungszieltageskonto" value="[ZAHLUNGSZIELTAGESKONTO]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Portoartikel|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="portoartikel" id="portoartikel" value="[PORTOARTIKEL]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Portofreiab|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="portofreiab" id="portofreiab" value="[PORTOFREIAB]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Erweiterteoptionen|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="erweiterteoptionen" id="erweiterteoptionen" value="[ERWEITERTEOPTIONEN]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Zentralerechnung|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="zentralerechnung" id="zentralerechnung" value="[ZENTRALERECHNUNG]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Zentralregulierung|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="zentralregulierung" id="zentralregulierung" value="[ZENTRALREGULIERUNG]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Gruppe|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="gruppe" id="gruppe" value="[GRUPPE]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Preisgruppe|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="preisgruppe" id="preisgruppe" value="[PREISGRUPPE]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Verbandsgruppe|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="verbandsgruppe" id="verbandsgruppe" value="[VERBANDSGRUPPE]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Rechnung_name|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="rechnung_name" id="rechnung_name" value="[RECHNUNG_NAME]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Rechnung_strasse|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="rechnung_strasse" id="rechnung_strasse" value="[RECHNUNG_STRASSE]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Rechnung_ort|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="rechnung_ort" id="rechnung_ort" value="[RECHNUNG_ORT]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Rechnung_plz|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="rechnung_plz" id="rechnung_plz" value="[RECHNUNG_PLZ]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Rechnung_abteilung|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="rechnung_abteilung" id="rechnung_abteilung" value="[RECHNUNG_ABTEILUNG]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Rechnung_land|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="rechnung_land" id="rechnung_land" value="[RECHNUNG_LAND]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Rechnung_email|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="rechnung_email" id="rechnung_email" value="[RECHNUNG_EMAIL]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Rechnung_periode|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="rechnung_periode" id="rechnung_periode" value="[RECHNUNG_PERIODE]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Rechnung_anzahlpapier|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="rechnung_anzahlpapier" id="rechnung_anzahlpapier" value="[RECHNUNG_ANZAHLPAPIER]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Rechnung_permail|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="rechnung_permail" id="rechnung_permail" value="[RECHNUNG_PERMAIL]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Webid|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="webid" id="webid" value="[WEBID]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Portofrei_aktiv|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="portofrei_aktiv" id="portofrei_aktiv" value="[PORTOFREI_AKTIV]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Projekt|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="projekt" id="projekt" value="[PROJEKT]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Objektname|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="objektname" id="objektname" value="[OBJEKTNAME]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Objekttyp|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="objekttyp" id="objekttyp" value="[OBJEKTTYP]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Parameter|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="parameter" id="parameter" value="[PARAMETER]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Objektname2|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="objektname2" id="objektname2" value="[OBJEKTNAME2]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Objekttyp2|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="objekttyp2" id="objekttyp2" value="[OBJEKTTYP2]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Parameter2|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="parameter2" id="parameter2" value="[PARAMETER2]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Objektname3|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="objektname3" id="objektname3" value="[OBJEKTNAME3]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Objekttyp3|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="objekttyp3" id="objekttyp3" value="[OBJEKTTYP3]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Parameter3|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="parameter3" id="parameter3" value="[PARAMETER3]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Kategorie|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="kategorie" id="kategorie" value="[KATEGORIE]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Aktiv|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="aktiv" id="aktiv" value="[AKTIV]" 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>
|
||||
|
@ -1,661 +1,10 @@
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<li><a href="#tabs-1"></a></li>
|
||||
<li><a href="#tabs-2"></a></li>
|
||||
</ul>
|
||||
<div id="tabs-1">
|
||||
|
||||
[MESSAGE]
|
||||
|
||||
<div class="filter-box filter-usersave">
|
||||
<div class="filter-block filter-inline">
|
||||
<div class="filter-title">{|Filter|}</div>
|
||||
<ul class="filter-list">
|
||||
<li class="filter-item">
|
||||
<label for="inaktiv" class="switch">
|
||||
<input type="checkbox" id="inaktiv" title="inaktive">
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
<label for="inaktiv">{|nur inaktive|}</label>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[TAB1]
|
||||
<ul>
|
||||
<li><a href="#tabs-1">[TABTEXT1]</a></li>
|
||||
</ul>
|
||||
<div id="tabs-1">
|
||||
[MESSAGE]
|
||||
[TAB1]
|
||||
[TAB1NEXT]
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="tabs-3">
|
||||
[TAB3]
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
[EXTRA]
|
||||
|
||||
<!--<div id="editGruppen" style="display:none;" title="Bearbeiten">
|
||||
<form method="post">
|
||||
<input type="hidden" id="e_id">
|
||||
|
||||
<table class="tableborder" border="0" cellpadding="3" cellspacing="0" width="100%">
|
||||
<tbody>
|
||||
<tr valign="top" colspan="3">
|
||||
<td>
|
||||
<fieldset>
|
||||
<legend>{|Einstellung|}</legend>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="200">{|Aktiv|}:</td><td><input type="checkbox" name="aktiv" id="aktiv" value="1"> <i>{|Bitte aktivieren|}! ({|Ist die Gruppe nicht aktiv wird diese für die Neuanlage von Verknüpfungen ausgeblendet. Die Gruppe besteht in den aktuellen Verknüpfungen weiterhin|}.)</i></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Bezeichnung|}:</td><td><input type="text" name="name" id="name" size="80" rule="notempty" msg="Pflichfeld!" tabindex="2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Kennziffer|}:</td><td><input type="text" name="kennziffer" id="kennziffer" size="80" tabindex="2" rule="notempty" msg="Pflichfeld!"> <i>{|z.B.|} 01, 02, ...</i></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Interne Bemerkung|}:</td><td><textarea rows="10" cols="130" name="internebemerkung" id="internebemerkung"></textarea></td><td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Art|}:</td><td><select name="art" id="art">[ART]<!--<option value="gruppe">Gruppe</option><option value="preisgruppe">Preisgruppe</option>
|
||||
<!--<option value="verband">Verband</option>--></select></td>
|
||||
<!--</tr>
|
||||
<tr>
|
||||
<td width="200">{|Projekt|}:</td><td><input type="text" name="projekt" id="projekt" size="80" tabindex="2"> <i>{|optionale Angabe|}</i></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Kategorie|}:</td><td><input type="text" name="kategorie" id="kategorie" size="80" tabindex="2"> <i>{|optionale Angabe|}</i></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
|
||||
<div id="rabatte">
|
||||
<fieldset>
|
||||
<legend>{|Rabatte / Zahlungen|}</legend>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="200">{|Grundrabatt|}:</td><td><input type="text" name="grundrabatt" id="grundrabatt" size="20" tabindex="2"> % <i>{|z.B.|} 20 {|für|} 20% ({|der Rabatt gilt nur für Standardpreise, nicht für Gruppen- oder Kundenspezifische Preise|}.)</i></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Zahlungszieltage|}:</td><td><input type="text" name="zahlungszieltage" id="zahlungszieltage" size="20" tabindex="2"> {|Tage|} <i>{|z.B.|} 30</i></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Skonto|}:</td><td><input type="text" name="zahlungszielskonto" id="zahlungszielskonto" size="20" tabindex="2"> % <i>{|z.B.|} 2</i></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Skonto Tage|}:</td><td><input type="text" name="zahlungszieltageskonto" id="zahlungszieltageskonto" size="20" tabindex="2"> {|Tage|} <i>{|z.B.|} 10</i></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Porto frei aktiv|}:</td><td><input type="checkbox" name="portofrei_aktiv" id="portofrei_aktiv" value="1"> {|ab|} <input type="text" name="portofreiab" id="portofreiab" size="12"> € <i>{|Porto frei ab bestimmtem Umsatz (netto)|}</i></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="rabatte2">
|
||||
<fieldset>
|
||||
<legend>{|Verbandsoptionen|}</legend>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="200">{|Rabatte|}*:</td><td>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>{|Rabatt 1|}:</td><td><input type="text" name="rabatt1" id="rabatt1" size="5"> %</td><td width="100"> </td>
|
||||
<td>{|Bonus 1|}:</td><td><input type="text" name="bonus1" id="bonus1" size="5"> % {|ab|} <input type="text" name="bonus1_ab" id="bonus1_ab" size="10"> €</td><td width="50"> </td>
|
||||
<td>{|Bonus 6|}:</td><td><input type="text" name="bonus6" id="bonus6" size="5"> % {|ab|} <input type="text" name="bonus6_ab" id="bonus6_ab" size="10"> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Rabatt 2|}:</td><td><input type="text" name="rabatt2" id="rabatt2" size="5"> %</td><td width="100"> </td>
|
||||
<td>{|Bonus 2|}:</td><td><input type="text" name="bonus2" id="bonus2" size="5"> % {|ab|} <input type="text" name="bonus2_ab" id="bonus2_ab" size="10"> €</td><td width="50"> </td>
|
||||
<td>{|Bonus 7|}:</td><td><input type="text" name="bonus7" id="bonus7" size="5"> % {|ab|} <input type="text" name="bonus7_ab" id="bonus7_ab" size="10"> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Rabatt 3|}:</td><td><input type="text" name="rabatt3" id="rabatt3" size="5"> %</td><td width="100"> </td>
|
||||
<td>{|Bonus 3|}:</td><td><input type="text" name="bonus3" id="bonus3" size="5"> % {|ab|} <input type="text" name="bonus3_ab" id="bonus3_ab" size="10"> €</td><td width="50"> </td>
|
||||
<td>{|Bonus 8|}:</td><td><input type="text" name="bonus8" id="bonus8" size="5"> % {|ab|} <input type="text" name="bonus8_ab" id="bonus8_ab" size="10"> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Rabatt 4|}:</td><td><input type="text" name="rabatt4" id="rabatt4" size="5"> %</td><td width="100"> </td>
|
||||
<td>{|Bonus 4|}:</td><td><input type="text" name="bonus4" id="bonus4" size="5"> % {|ab|} <input type="text" name="bonus4_ab" id="bonus4_ab" size="10"> €</td><td width="50"> </td>
|
||||
<td>{|Bonus 9|}:</td><td><input type="text" name="bonus9" id="bonus9" size="5"> % {|ab|} <input type="text" name="bonus9_ab" id="bonus9_ab" size="10"> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Rabatt 5|}:</td><td><input type="text" name="rabatt5" id="rabatt5" size="5"> %</td><td width="100"> </td>
|
||||
<td>{|Bonus 5|}:</td><td><input type="text" name="bonus5" id="bonus5" size="5"> % {|ab|} <input type="text" name="bonus5_ab" id="bonus5_ab" size="10"> €</td><td width="50"> </td>
|
||||
<td>{|Bonus 10|}:</td><td><input type="text" name="bonus10" id="bonus10" size="5"> % {|ab|} <input type="text" name="bonus10_ab" id="bonus10_ab" size="10"> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Provision|}:</td><td><input type="text" name="provision" id="provision" size="5"> %</td><td width="100"> </td>
|
||||
<td></td><td></td><td width="50"> </td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Sonderrabatt|}:</td><td colspan="2"><input type="text" name="sonderrabatt_skonto" id="sonderrabatt_skonto" size="5"> % ({|bei Skonto|})</td>
|
||||
<td></td><td></td><td width="50"> </td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="8">* {|der Rabatt gilt nur für Standardpreise, nicht für Gruppen- oder Kundenspezifische Preise|}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td><td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>{|Buchhaltung Einstellungen|}</legend>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="200">{|Zentralregulierung|}:</td><td><input type="checkbox" name="zentralregulierung" id="zentralregulierung" value="1"></td>
|
||||
</tr>
|
||||
<!--<tr><td width="200">{|Zentrale Rechnungsadresse|}:</td><td><input type="checkbox" name="zentralerechnung" value="1"></td></tr>-->
|
||||
<!--<tr>
|
||||
<td>{|Periode der Rechnung|}:</td><td><select name="rechnung_periode" id="rechnung_periode"><option value="1">täglich</option><option value="2">wöchentlich</option><option value="4">14tägig</option><option value="5">monatlich</option><option value="6">einzel</option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Anzahl Papierrechnungen|}:</td><td><input type="text" name="rechnung_anzahlpapier" id="rechnung_anzahlpapier" size="5" tabindex="2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Rechnung per Mail|}:</td><td><input type="checkbox" name="rechnung_permail" id="rechnung_permail" value="1" tabindex="2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Name / Firma|}:</td><td><input type="text" name="rechnung_name" id="rechnung_name" size="50" tabindex="2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Abteilung|}:</td><td><input type="text" name="rechnung_abteilung" id="rechnung_abteilung" size="50" tabindex="2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">Strasse + Hausnummer:</td><td><input type="text" name="rechnung_strasse" id="rechnung_strasse" size="50" tabindex="2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|PLZ / Ort|}:</td><td><input type="text" name="rechnung_plz" id="rechnung_plz" size="10"> <input type="text" name="rechnung_ort" id="rechnung_ort" size="40"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Land|}:</td><td><input type="text" name="rechnung_land" id="rechnung_land"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|E-Mail|}:</td><td><input type="text" name="rechnung_email" id="rechnung_email"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Kundennummer im Verband|}:</td><td><input type="text" name="kundennummer" id="kundennummer"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
|
||||
<fieldset>
|
||||
<legend>{|DTA - Datenträger Austausch Einstellungen|}</legend>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="200">{|Aktiv|}:</td><td><input type="checkbox" name="dta_aktiv" id="dta_aktiv" value="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Variante|}:</td><td><select name="dta_variante" id="dta_variante">
|
||||
<option value="1">Variante 1</option>
|
||||
<option value="2">Variante 2</option>
|
||||
<option value="3">Variante 3</option>
|
||||
<option value="4">Variante 4</option>
|
||||
<option value="5">Variante 5</option>
|
||||
<option value="6">Variante 6</option>
|
||||
<option value="7">Variante 7</option>
|
||||
<option value="8">Variante 8</option>
|
||||
<option value="9">Variante 9</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|DTA Variablen|}:</td><td><textarea name="dtavariablen" id="dtavariablen" rows="10" cols="50"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{|Periode|}:</td><td><select name="dta_periode" id="dta_periode"><option value="1">15,30</option>
|
||||
<option value="2">7,15,22,30</option>
|
||||
<option value="3">Dienstag</option>
|
||||
<option value="4">Montag</option>
|
||||
<option value="5">2,11,27</option>
|
||||
<option value="6">2</option>
|
||||
<option value="7">Freitags</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Partner ID für DTA|}:</td><td><input type="text" name="partnerid" id="partnerid" size="50"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|Dateiname|}:</td><td><input type="text" name="dta_dateiname" id="dta_dateiname" size="50" tabindex="2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|E-Mail Empfänger|}:</td><td><input type="text" name="dta_mail" id="dta_mail" size="50" tabindex="2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|E-Mail Betreff|}:</td><td><input type="text" name="dta_mail_betreff" id="dta_mail_betreff" size="50" tabindex="2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200">{|E-Mail Textvorlage|}:</td><td><textarea name="dta_mail_text" id="dta_mail_text" rows="10" cols="50"></textarea></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!--<tr valign="" height="" bgcolor="" align="" bordercolor="" class="klein" classname="klein">
|
||||
<td width="" valign="" height="" bgcolor="" align="right" colspan="3" bordercolor="" classname="orange2" class="orange2">
|
||||
<input type="submit" value="Speichern" />
|
||||
</tr>-->
|
||||
|
||||
<!--</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
</form>-->
|
||||
|
||||
|
||||
<!--<script type="text/javascript">
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
art = document.getElementById('art');
|
||||
rabatt = document.getElementById('rabatte');
|
||||
rabatt2 = document.getElementById('rabatte2');
|
||||
if(art){
|
||||
// Hide the target field if priority isn't critical
|
||||
if(art.options[art.selectedIndex].value =='gruppe'){
|
||||
rabatt.style.display='none';
|
||||
rabatt2.style.display='none';
|
||||
}else if(art.options[art.selectedIndex].value =='preisgruppe'){
|
||||
rabatt.style.display='';
|
||||
rabatt2.style.display='none';
|
||||
}else if(art.options[art.selectedIndex].value =='verband'){
|
||||
rabatt.style.display='';
|
||||
rabatt2.style.display='';
|
||||
}else{
|
||||
rabatt.style.display='none';
|
||||
rabatt2.style.display='none';
|
||||
}
|
||||
|
||||
art.onchange=function(){
|
||||
if(art.options[art.selectedIndex].value == 'gruppe'){
|
||||
rabatt.style.display='none';
|
||||
rabatt2.style.display='none';
|
||||
}else if(art.options[art.selectedIndex].value == 'preisgruppe'){
|
||||
rabatt.style.display='';
|
||||
rabatt2.style.display='none';
|
||||
}else if(art.options[art.selectedIndex].value == 'verband'){
|
||||
rabatt.style.display='';
|
||||
rabatt2.style.display='';
|
||||
}else{
|
||||
rabatt.style.display='none';
|
||||
rabatt2.style.display='none';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$('#aktiv').focus();
|
||||
|
||||
$("#editGruppen").dialog({
|
||||
modal: true,
|
||||
bgiframe: true,
|
||||
closeOnEscape:false,
|
||||
minWidth:1200,
|
||||
maxHeight:900,
|
||||
autoOpen: false,
|
||||
buttons: {
|
||||
ABBRECHEN: function() {
|
||||
GruppenReset();
|
||||
$(this).dialog('close');
|
||||
},
|
||||
SPEICHERN: function() {
|
||||
GruppenEditSave();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$("#editGruppen").dialog({
|
||||
|
||||
close: function( event, ui ) { GruppenReset();}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
function GruppenReset()
|
||||
{
|
||||
$('#editGruppen').find('#e_id').val('');
|
||||
$('#editGruppen').find('#aktiv').prop("checked",false);
|
||||
$('#editGruppen').find('#name').val('');
|
||||
$('#editGruppen').find('#kennziffer').val('');
|
||||
$('#editGruppen').find('#internebemerkung').val('');
|
||||
$('#editGruppen').find('#art').val('gruppe');
|
||||
$('#editGruppen').find('#projekt').val('');
|
||||
$('#editGruppen').find('#kategorie').val('');
|
||||
$('#editGruppen').find('#grundrabatt').val('');
|
||||
$('#editGruppen').find('#zahlungszieltage').val('');
|
||||
$('#editGruppen').find('#zahlungszielskonto').val('');
|
||||
$('#editGruppen').find('#zahlungszieltageskonto').val('');
|
||||
$('#editGruppen').find('#portofrei_aktiv').prop("checked",false);
|
||||
$('#editGruppen').find('#portofreiab').val('');
|
||||
$('#editGruppen').find('#rabatt1').val('');
|
||||
$('#editGruppen').find('#bonus1').val('');
|
||||
$('#editGruppen').find('#bonus1_ab').val('');
|
||||
$('#editGruppen').find('#bonus6').val('');
|
||||
$('#editGruppen').find('#bonus6_ab').val('');
|
||||
$('#editGruppen').find('#rabatt2').val('');
|
||||
$('#editGruppen').find('#bonus2').val('');
|
||||
$('#editGruppen').find('#bonus2_ab').val('');
|
||||
$('#editGruppen').find('#bonus7').val('');
|
||||
$('#editGruppen').find('#bonus7_ab').val('');
|
||||
$('#editGruppen').find('#rabatt3').val('');
|
||||
$('#editGruppen').find('#bonus3').val('');
|
||||
$('#editGruppen').find('#bonus3_ab').val('');
|
||||
$('#editGruppen').find('#bonus8').val('');
|
||||
$('#editGruppen').find('#bonus8_ab').val('');
|
||||
$('#editGruppen').find('#rabatt4').val('');
|
||||
$('#editGruppen').find('#bonus4').val('');
|
||||
$('#editGruppen').find('#bonus4_ab').val('');
|
||||
$('#editGruppen').find('#bonus9').val('');
|
||||
$('#editGruppen').find('#bonus9_ab').val('');
|
||||
$('#editGruppen').find('#rabatt5').val('');
|
||||
$('#editGruppen').find('#bonus5').val('');
|
||||
$('#editGruppen').find('#bonus5_ab').val('');
|
||||
$('#editGruppen').find('#bonus10').val('');
|
||||
$('#editGruppen').find('#bonus10_ab').val('');
|
||||
$('#editGruppen').find('#provision').val('');
|
||||
$('#editGruppen').find('#sonderrabatt_skonto').val('');
|
||||
$('#editGruppen').find('#zentralregulierung').prop("checked",false);
|
||||
$('#editGruppen').find('#rechnung_periode').val('1');
|
||||
$('#editGruppen').find('#rechnung_anzahlpapier').val('');
|
||||
$('#editGruppen').find('#rechnung_permail').prop("checked",false);
|
||||
$('#editGruppen').find('#rechnung_name').val('');
|
||||
$('#editGruppen').find('#rechnung_abteilung').val('');
|
||||
$('#editGruppen').find('#rechnung_strasse').val('');
|
||||
$('#editGruppen').find('#rechnung_plz').val('');
|
||||
$('#editGruppen').find('#rechnung_ort').val('');
|
||||
$('#editGruppen').find('#rechnung_land').val('');
|
||||
$('#editGruppen').find('#rechnung_email').val('');
|
||||
$('#editGruppen').find('#kundennummer').val('');
|
||||
$('#editGruppen').find('#dta_aktiv').prop("checked",false);
|
||||
$('#editGruppen').find('#dta_variante').val('1');
|
||||
$('#editGruppen').find('#dtavariablen').val('');
|
||||
$('#editGruppen').find('#dta_periode').val('1');
|
||||
$('#editGruppen').find('#partnerid').val('');
|
||||
$('#editGruppen').find('#dta_dateiname').val('');
|
||||
$('#editGruppen').find('#dta_mail').val('');
|
||||
$('#editGruppen').find('#dta_mail_betreff').val('');
|
||||
$('#editGruppen').find('#dta_mail_text').val('');
|
||||
|
||||
|
||||
|
||||
art = document.getElementById('art');
|
||||
rabatt = document.getElementById('rabatte');
|
||||
rabatt2 = document.getElementById('rabatte2');
|
||||
if(art){
|
||||
// Hide the target field if priority isn't critical
|
||||
if(art.options[art.selectedIndex].value =='gruppe'){
|
||||
rabatt.style.display='none';
|
||||
rabatt2.style.display='none';
|
||||
}else if(art.options[art.selectedIndex].value =='preisgruppe'){
|
||||
rabatt.style.display='';
|
||||
rabatt2.style.display='none';
|
||||
}else if(art.options[art.selectedIndex].value =='verband'){
|
||||
rabatt.style.display='';
|
||||
rabatt2.style.display='';
|
||||
}else{
|
||||
rabatt.style.display='none';
|
||||
rabatt2.style.display='none';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function GruppenEditSave() {
|
||||
$.ajax({
|
||||
url: 'index.php?module=gruppen&action=edit&cmd=save',
|
||||
data: {
|
||||
//Alle Felder die fürs editieren vorhanden sind
|
||||
id: $('#e_id').val(),
|
||||
eaktiv: $('#aktiv').prop("checked")?1:0,
|
||||
ename: $('#name').val(),
|
||||
ekennziffer: $('#kennziffer').val(),
|
||||
einternebemerkung: $('#internebemerkung').val(),
|
||||
eart: $('#art').val(),
|
||||
eprojekt: $('#projekt').val(),
|
||||
ekategorie: $('#kategorie').val(),
|
||||
egrundrabatt: $('#grundrabatt').val(),
|
||||
ezahlungszieltage: $('#zahlungszieltage').val(),
|
||||
ezahlungszielskonto: $('#zahlungszielskonto').val(),
|
||||
ezahlungszieltageskonto: $('#zahlungszieltageskonto').val(),
|
||||
eportofrei_aktiv: $('#portofrei_aktiv').prop("checked")?1:0,
|
||||
eportofreiab: $('#portofreiab').val(),
|
||||
erabatt1: $('#rabatt1').val(),
|
||||
ebonus1: $('#bonus1').val(),
|
||||
ebonus1_ab: $('#bonus1_ab').val(),
|
||||
ebonus6: $('#bonus6').val(),
|
||||
ebonus6_ab: $('#bonus6_ab').val(),
|
||||
erabatt2: $('#rabatt2').val(),
|
||||
ebonus2: $('#bonus2').val(),
|
||||
ebonus2_ab: $('#bonus2_ab').val(),
|
||||
ebonus7: $('#bonus7').val(),
|
||||
ebonus7_ab: $('#bonus7_ab').val(),
|
||||
erabatt3: $('#rabatt3').val(),
|
||||
ebonus3: $('#bonus3').val(),
|
||||
ebonus3_ab: $('#bonus3_ab').val(),
|
||||
ebonus8: $('#bonus8').val(),
|
||||
ebonus8_ab: $('#bonus8_ab').val(),
|
||||
erabatt4: $('#rabatt4').val(),
|
||||
ebonus4: $('#bonus4').val(),
|
||||
ebonus4_ab: $('#bonus4_ab').val(),
|
||||
ebonus9: $('#bonus9').val(),
|
||||
ebonus9_ab: $('#bonus9_ab').val(),
|
||||
erabatt5: $('#rabatt5').val(),
|
||||
ebonus5: $('#bonus5').val(),
|
||||
ebonus5_ab: $('#bonus5_ab').val(),
|
||||
ebonus10: $('#bonus10').val(),
|
||||
ebonus10_ab: $('#bonus10_ab').val(),
|
||||
eprovision: $('#provision').val(),
|
||||
esonderrabatt_skonto: $('#sonderrabatt_skonto').val(),
|
||||
ezentralregulierung: $('#zentralregulierung').prop("checked")?1:0,
|
||||
erechnung_periode: $('#rechnung_periode').val(),
|
||||
erechnung_anzahlpapier: $('#rechnung_anzahlpapier').val(),
|
||||
erechnung_permail: $('#rechnung_permail').prop("checked")?1:0,
|
||||
erechnung_name: $('#rechnung_name').val(),
|
||||
erechnung_abteilung: $('#rechnung_abteilung').val(),
|
||||
erechnung_strasse: $('#rechnung_strasse').val(),
|
||||
erechnung_plz: $('#rechnung_plz').val(),
|
||||
erechnung_ort: $('#rechnung_ort').val(),
|
||||
erechnung_land: $('#rechnung_land').val(),
|
||||
erechnung_email: $('#rechnung_email').val(),
|
||||
ekundennummer: $('#kundennummer').val(),
|
||||
edta_aktiv: $('#dta_aktiv').prop("checked")?1:0,
|
||||
edta_variante: $('#dta_variante').val(),
|
||||
edtavariablen: $('#dtavariablen').val(),
|
||||
edta_periode: $('#dta_periode').val(),
|
||||
epartnerid: $('#partnerid').val(),
|
||||
edta_dateiname: $('#dta_dateiname').val(),
|
||||
edta_mail: $('#dta_mail').val(),
|
||||
edta_mail_betreff: $('#dta_mail_betreff').val(),
|
||||
edta_mail_text: $('#dta_mail_text').val()
|
||||
|
||||
|
||||
},
|
||||
method: 'post',
|
||||
dataType: 'json',
|
||||
beforeSend: function() {
|
||||
App.loading.open();
|
||||
},
|
||||
success: function(data) {
|
||||
App.loading.close();
|
||||
if (data.status == 1) {
|
||||
GruppenReset();
|
||||
updateLiveTable();
|
||||
$("#editGruppen").dialog('close');
|
||||
} else {
|
||||
alert(data.statusText);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
function GruppenEdit(id) {
|
||||
if(id > 0)
|
||||
{
|
||||
$.ajax({
|
||||
url: 'index.php?module=gruppen&action=edit&cmd=get',
|
||||
data: {
|
||||
id: id
|
||||
},
|
||||
method: 'post',
|
||||
dataType: 'json',
|
||||
beforeSend: function() {
|
||||
App.loading.open();
|
||||
},
|
||||
success: function(data) {
|
||||
if(data.id > 0)
|
||||
{
|
||||
$('#editGruppen').find('#e_id').val(data.id);
|
||||
$('#editGruppen').find('#aktiv').prop("checked", data.aktiv==1?true:false);
|
||||
$('#editGruppen').find('#name').val(data.name);
|
||||
$('#editGruppen').find('#kennziffer').val(data.kennziffer);
|
||||
$('#editGruppen').find('#internebemerkung').val(data.internebemerkung);
|
||||
$('#editGruppen').find('#art').val(data.art);
|
||||
$('#editGruppen').find('#projekt').val(data.projekt);
|
||||
$('#editGruppen').find('#kategorie').val(data.kategorie);
|
||||
$('#editGruppen').find('#grundrabatt').val(data.grundrabatt);
|
||||
$('#editGruppen').find('#zahlungszieltage').val(data.zahlungszieltage);
|
||||
$('#editGruppen').find('#zahlungszielskonto').val(data.zahlungszielskonto);
|
||||
$('#editGruppen').find('#zahlungszieltageskonto').val(data.zahlungszieltageskonto);
|
||||
$('#editGruppen').find('#portofrei_aktiv').prop("checked", data.portofrei_aktiv==1?true:false);
|
||||
$('#editGruppen').find('#portofreiab').val(data.portofreiab);
|
||||
$('#editGruppen').find('#rabatt1').val(data.rabatt1);
|
||||
$('#editGruppen').find('#bonus1').val(data.bonus1);
|
||||
$('#editGruppen').find('#bonus1_ab').val(data.bonus1_ab);
|
||||
$('#editGruppen').find('#bonus6').val(data.bonus6);
|
||||
$('#editGruppen').find('#bonus6_ab').val(data.bonus6_ab);
|
||||
$('#editGruppen').find('#rabatt2').val(data.rabatt2);
|
||||
$('#editGruppen').find('#bonus2').val(data.bonus2);
|
||||
$('#editGruppen').find('#bonus2_ab').val(data.bonus2_ab);
|
||||
$('#editGruppen').find('#bonus7').val(data.bonus7);
|
||||
$('#editGruppen').find('#bonus7_ab').val(data.bonus7_ab);
|
||||
$('#editGruppen').find('#rabatt3').val(data.rabatt3);
|
||||
$('#editGruppen').find('#bonus3').val(data.bonus3);
|
||||
$('#editGruppen').find('#bonus3_ab').val(data.bonus3_ab);
|
||||
$('#editGruppen').find('#bonus8').val(data.bonus8);
|
||||
$('#editGruppen').find('#bonus8_ab').val(data.bonus8_ab);
|
||||
$('#editGruppen').find('#rabatt4').val(data.rabatt4);
|
||||
$('#editGruppen').find('#bonus4').val(data.bonus4);
|
||||
$('#editGruppen').find('#bonus4_ab').val(data.bonus4_ab);
|
||||
$('#editGruppen').find('#bonus9').val(data.bonus9);
|
||||
$('#editGruppen').find('#bonus9_ab').val(data.bonus9_ab);
|
||||
$('#editGruppen').find('#rabatt5').val(data.rabatt5);
|
||||
$('#editGruppen').find('#bonus5').val(data.bonus5);
|
||||
$('#editGruppen').find('#bonus5_ab').val(data.bonus5_ab);
|
||||
$('#editGruppen').find('#bonus10').val(data.bonus10);
|
||||
$('#editGruppen').find('#bonus10_ab').val(data.bonus10_ab);
|
||||
$('#editGruppen').find('#provision').val(data.provision);
|
||||
$('#editGruppen').find('#sonderrabatt_skonto').val(data.sonderrabatt_skonto);
|
||||
$('#editGruppen').find('#zentralregulierung').prop("checked", data.zentralregulierung==1?true:false);
|
||||
$('#editGruppen').find('#rechnung_periode').val(data.rechnung_periode);
|
||||
$('#editGruppen').find('#rechnung_anzahlpapier').val(data.rechnung_anzahlpapier);
|
||||
$('#editGruppen').find('#rechnung_permail').prop("checked", data.rechnung_permail==1?true:false);
|
||||
$('#editGruppen').find('#rechnung_name').val(data.rechnung_name);
|
||||
$('#editGruppen').find('#rechnung_abteilung').val(data.rechnung_abteilung);
|
||||
$('#editGruppen').find('#rechnung_strasse').val(data.rechnung_strasse);
|
||||
$('#editGruppen').find('#rechnung_plz').val(data.rechnung_plz);
|
||||
$('#editGruppen').find('#rechnung_ort').val(data.rechnung_ort);
|
||||
$('#editGruppen').find('#rechnung_land').val(data.rechnung_land);
|
||||
$('#editGruppen').find('#rechnung_email').val(data.rechnung_email);
|
||||
$('#editGruppen').find('#kundennummer').val(data.kundennummer);
|
||||
$('#editGruppen').find('#dta_aktiv').prop("checked", data.dta_aktiv==1?true:false);
|
||||
$('#editGruppen').find('#dta_variante').val(data.dta_variante);
|
||||
$('#editGruppen').find('#dtavariablen').val(data.dtavariablen);
|
||||
$('#editGruppen').find('#dta_periode').val(data.dta_periode);
|
||||
$('#editGruppen').find('#partnerid').val(data.partnerid);
|
||||
$('#editGruppen').find('#dta_dateiname').val(data.dta_dateiname);
|
||||
$('#editGruppen').find('#dta_mail').val(data.dta_mail);
|
||||
$('#editGruppen').find('#dta_mail_betreff').val(data.dta_mail_betreff);
|
||||
$('#editGruppen').find('#dta_mail_text').val(data.dta_mail_text);
|
||||
|
||||
|
||||
art = document.getElementById('art');
|
||||
rabatt = document.getElementById('rabatte');
|
||||
rabatt2 = document.getElementById('rabatte2');
|
||||
if(art){
|
||||
// Hide the target field if priority isn't critical
|
||||
if(art.options[art.selectedIndex].value =='gruppe'){
|
||||
rabatt.style.display='none';
|
||||
rabatt2.style.display='none';
|
||||
}else if(art.options[art.selectedIndex].value =='preisgruppe'){
|
||||
rabatt.style.display='';
|
||||
rabatt2.style.display='none';
|
||||
}else if(art.options[art.selectedIndex].value =='verband'){
|
||||
rabatt.style.display='';
|
||||
rabatt2.style.display='';
|
||||
}else{
|
||||
rabatt.style.display='none';
|
||||
rabatt2.style.display='none';
|
||||
}
|
||||
}
|
||||
}else{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
App.loading.close();
|
||||
$("#editGruppen").dialog('open');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
GruppenReset();
|
||||
$("#editGruppen").dialog('open');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function updateLiveTable(i) {
|
||||
var oTableL = $('#gruppenlist').dataTable();
|
||||
var tmp = $('.dataTables_filter input[type=search]').val();
|
||||
oTableL.fnFilter('%');
|
||||
//oTableL.fnFilter('');
|
||||
oTableL.fnFilter(tmp);
|
||||
}
|
||||
|
||||
/*function GruppenDelete(id) {
|
||||
var conf = confirm('Wirklich löschen?');
|
||||
if (conf) {
|
||||
$.ajax({
|
||||
url: 'index.php?module=gruppen&action=delete',
|
||||
data: {
|
||||
id: id
|
||||
},
|
||||
method: 'post',
|
||||
dataType: 'json',
|
||||
beforeSend: function() {
|
||||
App.loading.open();
|
||||
},
|
||||
success: function(data) {
|
||||
if (data.status == 1) {
|
||||
updateLiveTable();
|
||||
} else {
|
||||
alert(data.statusText);
|
||||
}
|
||||
App.loading.close();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
}*/
|
||||
|
||||
</script>-->
|
||||
|
@ -1,43 +1,322 @@
|
||||
<?php
|
||||
/*
|
||||
**** COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*
|
||||
* Xentral (c) Xentral ERP Sorftware GmbH, Fuggerstrasse 11, D-86150 Augsburg, * Germany 2019
|
||||
*
|
||||
* This file is licensed under the Embedded Projects General Public License *Version 3.1.
|
||||
*
|
||||
* You should have received a copy of this license from your vendor and/or *along with this file; If not, please visit www.wawision.de/Lizenzhinweis
|
||||
* to obtain the text of the corresponding license version.
|
||||
*
|
||||
**** END OF COPYRIGHT & LICENSE NOTICE *** DO NOT REMOVE ****
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
if(!class_exists('Gruppen'))
|
||||
{
|
||||
class Gruppen
|
||||
{
|
||||
function __construct($app, $intern = false)
|
||||
{
|
||||
$this->app=$app;
|
||||
if($intern) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->app->ActionHandlerInit($this);
|
||||
/*
|
||||
* Copyright (c) 2022 OpenXE project
|
||||
*/
|
||||
|
||||
$this->app->ActionHandler("list","GruppenList");
|
||||
$this->app->DefaultActionHandler("list");
|
||||
use Xentral\Components\Database\Exception\QueryFailureException;
|
||||
|
||||
class Gruppen {
|
||||
|
||||
$this->app->ActionHandlerListen($app);
|
||||
}
|
||||
function GruppenList()
|
||||
{
|
||||
$this->app->Tpl->Set('VERS','Professional');
|
||||
$this->app->Tpl->Set('MODUL','Professional');
|
||||
$this->app->Tpl->Parse('PAGE', "only_version.tpl");
|
||||
function __construct($app, $intern = false) {
|
||||
$this->app = $app;
|
||||
if ($intern)
|
||||
return;
|
||||
|
||||
$this->app->ActionHandlerInit($this);
|
||||
$this->app->ActionHandler("list", "gruppen_list");
|
||||
$this->app->ActionHandler("create", "gruppen_edit"); // This automatically adds a "New" button
|
||||
$this->app->ActionHandler("edit", "gruppen_edit");
|
||||
$this->app->ActionHandler("delete", "gruppen_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 "gruppen_list":
|
||||
$allowed['gruppen_list'] = array('list');
|
||||
$heading = array(
|
||||
'',
|
||||
'',
|
||||
'Kennziffer',
|
||||
'Name',
|
||||
'Art',
|
||||
'Internebemerkung',
|
||||
'Projekt',
|
||||
'Aktiv',
|
||||
'Menü');
|
||||
$width = array('1%','1%','10%'); // Fill out manually later
|
||||
|
||||
// columns that are aligned right (numbers etc)
|
||||
// $alignright = array(4,5,6,7,8);
|
||||
|
||||
$findcols = array(
|
||||
'g.id',
|
||||
'g.id',
|
||||
'g.kennziffer',
|
||||
'g.name',
|
||||
'g.art',
|
||||
'g.internebemerkung',
|
||||
'p.abkuerzung',
|
||||
'g.aktiv',
|
||||
'g.id'
|
||||
);
|
||||
$searchsql = array('g.name', 'g.art', 'g.kennziffer', 'g.internebemerkung');
|
||||
|
||||
$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=\"',g.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=gruppen&action=edit&id=%value%\"><img src=\"./themes/{$app->Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\"></a> <a href=\"#\" onclick=DeleteDialog(\"index.php?module=gruppen&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 g.id, $dropnbox, g.kennziffer, g.name, g.art, g.internebemerkung, p.abkuerzung, g.aktiv, g.id FROM gruppen g LEFT JOIN projekt p ON g.projekt = p.id";
|
||||
|
||||
$where = "1";
|
||||
$count = "SELECT count(DISTINCT id) FROM gruppen WHERE $where";
|
||||
// $groupby = "";
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
$erg = false;
|
||||
|
||||
foreach ($erlaubtevars as $k => $v) {
|
||||
if (isset($$v)) {
|
||||
$erg[$v] = $$v;
|
||||
}
|
||||
}
|
||||
return $erg;
|
||||
}
|
||||
|
||||
function gruppen_list() {
|
||||
$this->app->erp->MenuEintrag("index.php?module=gruppen&action=list", "Übersicht");
|
||||
$this->app->erp->MenuEintrag("index.php?module=gruppen&action=create", "Neu anlegen");
|
||||
|
||||
$this->app->erp->MenuEintrag("index.php", "Zurück");
|
||||
|
||||
$this->app->YUI->TableSearch('TAB1', 'gruppen_list', "show", "", "", basename(__FILE__), __CLASS__);
|
||||
$this->app->Tpl->Parse('PAGE', "gruppen_list.tpl");
|
||||
}
|
||||
|
||||
public function gruppen_delete() {
|
||||
$id = (int) $this->app->Secure->GetGET('id');
|
||||
|
||||
$this->app->DB->Delete("DELETE FROM `gruppen` WHERE `id` = '{$id}'");
|
||||
$this->app->Tpl->Set('MESSAGE', "<div class=\"error\">Der Eintrag wurde gelöscht.</div>");
|
||||
|
||||
$this->gruppen_list();
|
||||
}
|
||||
|
||||
/*
|
||||
* Edit gruppen item
|
||||
* If id is empty, create a new one
|
||||
*/
|
||||
|
||||
function gruppen_edit() {
|
||||
$id = $this->app->Secure->GetGET('id');
|
||||
|
||||
// Check if other users are editing this id
|
||||
/* if($this->app->erp->DisableModul('gruppen',$id))
|
||||
{
|
||||
return;
|
||||
} */
|
||||
|
||||
$this->app->Tpl->Set('ID', $id);
|
||||
|
||||
$this->app->erp->MenuEintrag("index.php?module=gruppen&action=edit&id=$id", "Details");
|
||||
$this->app->erp->MenuEintrag("index.php?module=gruppen&action=list", "Zurück zur Übersicht");
|
||||
$id = $this->app->Secure->GetGET('id');
|
||||
$input = $this->GetInput();
|
||||
|
||||
// Convert here
|
||||
$input['aktiv'] = !empty($this->app->Secure->GetPOST('aktiv'))?"1":"0";
|
||||
|
||||
$submit = $this->app->Secure->GetPOST('submit');
|
||||
|
||||
if (empty($id)) {
|
||||
// New item
|
||||
$id = 'NULL';
|
||||
}
|
||||
|
||||
if ($submit != '')
|
||||
{
|
||||
|
||||
// Write to database
|
||||
|
||||
// Add checks here
|
||||
|
||||
$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 gruppen (".$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=gruppen&action=list&msg=$msg");
|
||||
} else {
|
||||
$this->app->Tpl->Set('MESSAGE', "<div class=\"success\">Die Einstellungen wurden erfolgreich übernommen.</div>");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Load values again from database
|
||||
$dropnbox = "'<img src=./themes/new/images/details_open.png class=details>' AS `open`, CONCAT('<input type=\"checkbox\" name=\"auswahl[]\" value=\"',g.id,'\" />') AS `auswahl`";
|
||||
$result = $this->app->DB->SelectArr("SELECT SQL_CALC_FOUND_ROWS g.id, $dropnbox, g.name, g.art, g.kennziffer, g.internebemerkung, g.grundrabatt, g.rabatt1, g.rabatt2, g.rabatt3, g.rabatt4, g.rabatt5, g.sonderrabatt_skonto, g.provision, g.kundennummer, g.partnerid, g.dta_aktiv, g.dta_periode, g.dta_dateiname, g.dta_mail, g.dta_mail_betreff, g.dta_mail_text, g.dtavariablen, g.dta_variante, g.bonus1, g.bonus1_ab, g.bonus2, g.bonus2_ab, g.bonus3, g.bonus3_ab, g.bonus4, g.bonus4_ab, g.bonus5, g.bonus5_ab, g.bonus6, g.bonus6_ab, g.bonus7, g.bonus7_ab, g.bonus8, g.bonus8_ab, g.bonus9, g.bonus9_ab, g.bonus10, g.bonus10_ab, g.zahlungszieltage, g.zahlungszielskonto, g.zahlungszieltageskonto, g.portoartikel, g.portofreiab, g.erweiterteoptionen, g.zentralerechnung, g.zentralregulierung, g.gruppe, g.preisgruppe, g.verbandsgruppe, g.rechnung_name, g.rechnung_strasse, g.rechnung_ort, g.rechnung_plz, g.rechnung_abteilung, g.rechnung_land, g.rechnung_email, g.rechnung_periode, g.rechnung_anzahlpapier, g.rechnung_permail, g.webid, g.portofrei_aktiv, g.projekt, g.objektname, g.objekttyp, g.parameter, g.objektname2, g.objekttyp2, g.parameter2, g.objektname3, g.objekttyp3, g.parameter3, g.kategorie, g.aktiv, g.id FROM gruppen g"." WHERE id=$id");
|
||||
|
||||
foreach ($result[0] as $key => $value) {
|
||||
$this->app->Tpl->Set(strtoupper($key), $value);
|
||||
}
|
||||
|
||||
if (!empty($result)) {
|
||||
$gruppen_from_db = $result[0];
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* 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->YUI->AutoComplete("kennziffer", "gruppekennziffer");
|
||||
|
||||
if ($gruppen_from_db['art'] != 'preisgruppe') {
|
||||
$this->app->Tpl->Set('PREISGRUPPEHIDDEN','hidden');
|
||||
}
|
||||
|
||||
$art_select = Array(
|
||||
'gruppe' => 'Gruppe',
|
||||
'preisgruppe' => 'Preisgruppe'
|
||||
);
|
||||
$art_select = $this->app->erp->GetSelectAsso($art_select,$gruppen_from_db['art']);
|
||||
$this->app->Tpl->Set('ARTSELECT',$art_select);
|
||||
|
||||
$this->app->YUI->AutoComplete("projekt","projektname",1);
|
||||
$this->app->Tpl->Set('PROJEKT',$this->app->erp->ReplaceProjekt(false,$gruppen_from_db['projekt'],false));
|
||||
|
||||
$this->app->Tpl->Set('AKTIV', $gruppen_from_db['aktiv']==1?"checked":"");
|
||||
|
||||
$this->app->Tpl->Parse('PAGE', "gruppen_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['art'] = $this->app->Secure->GetPOST('art');
|
||||
$input['kennziffer'] = $this->app->Secure->GetPOST('kennziffer');
|
||||
$input['internebemerkung'] = $this->app->Secure->GetPOST('internebemerkung');
|
||||
$input['grundrabatt'] = $this->app->Secure->GetPOST('grundrabatt');
|
||||
$input['rabatt1'] = $this->app->Secure->GetPOST('rabatt1');
|
||||
$input['rabatt2'] = $this->app->Secure->GetPOST('rabatt2');
|
||||
$input['rabatt3'] = $this->app->Secure->GetPOST('rabatt3');
|
||||
$input['rabatt4'] = $this->app->Secure->GetPOST('rabatt4');
|
||||
$input['rabatt5'] = $this->app->Secure->GetPOST('rabatt5');
|
||||
$input['sonderrabatt_skonto'] = $this->app->Secure->GetPOST('sonderrabatt_skonto');
|
||||
$input['provision'] = $this->app->Secure->GetPOST('provision');
|
||||
$input['kundennummer'] = $this->app->Secure->GetPOST('kundennummer');
|
||||
$input['partnerid'] = $this->app->Secure->GetPOST('partnerid');
|
||||
$input['dta_aktiv'] = $this->app->Secure->GetPOST('dta_aktiv');
|
||||
$input['dta_periode'] = $this->app->Secure->GetPOST('dta_periode');
|
||||
$input['dta_dateiname'] = $this->app->Secure->GetPOST('dta_dateiname');
|
||||
$input['dta_mail'] = $this->app->Secure->GetPOST('dta_mail');
|
||||
$input['dta_mail_betreff'] = $this->app->Secure->GetPOST('dta_mail_betreff');
|
||||
$input['dta_mail_text'] = $this->app->Secure->GetPOST('dta_mail_text');
|
||||
$input['dtavariablen'] = $this->app->Secure->GetPOST('dtavariablen');
|
||||
$input['dta_variante'] = $this->app->Secure->GetPOST('dta_variante');
|
||||
$input['bonus1'] = $this->app->Secure->GetPOST('bonus1');
|
||||
$input['bonus1_ab'] = $this->app->Secure->GetPOST('bonus1_ab');
|
||||
$input['bonus2'] = $this->app->Secure->GetPOST('bonus2');
|
||||
$input['bonus2_ab'] = $this->app->Secure->GetPOST('bonus2_ab');
|
||||
$input['bonus3'] = $this->app->Secure->GetPOST('bonus3');
|
||||
$input['bonus3_ab'] = $this->app->Secure->GetPOST('bonus3_ab');
|
||||
$input['bonus4'] = $this->app->Secure->GetPOST('bonus4');
|
||||
$input['bonus4_ab'] = $this->app->Secure->GetPOST('bonus4_ab');
|
||||
$input['bonus5'] = $this->app->Secure->GetPOST('bonus5');
|
||||
$input['bonus5_ab'] = $this->app->Secure->GetPOST('bonus5_ab');
|
||||
$input['bonus6'] = $this->app->Secure->GetPOST('bonus6');
|
||||
$input['bonus6_ab'] = $this->app->Secure->GetPOST('bonus6_ab');
|
||||
$input['bonus7'] = $this->app->Secure->GetPOST('bonus7');
|
||||
$input['bonus7_ab'] = $this->app->Secure->GetPOST('bonus7_ab');
|
||||
$input['bonus8'] = $this->app->Secure->GetPOST('bonus8');
|
||||
$input['bonus8_ab'] = $this->app->Secure->GetPOST('bonus8_ab');
|
||||
$input['bonus9'] = $this->app->Secure->GetPOST('bonus9');
|
||||
$input['bonus9_ab'] = $this->app->Secure->GetPOST('bonus9_ab');
|
||||
$input['bonus10'] = $this->app->Secure->GetPOST('bonus10');
|
||||
$input['bonus10_ab'] = $this->app->Secure->GetPOST('bonus10_ab');
|
||||
$input['zahlungszieltage'] = $this->app->Secure->GetPOST('zahlungszieltage');
|
||||
$input['zahlungszielskonto'] = $this->app->Secure->GetPOST('zahlungszielskonto');
|
||||
$input['zahlungszieltageskonto'] = $this->app->Secure->GetPOST('zahlungszieltageskonto');
|
||||
$input['portoartikel'] = $this->app->Secure->GetPOST('portoartikel');
|
||||
$input['portofreiab'] = $this->app->Secure->GetPOST('portofreiab');
|
||||
$input['erweiterteoptionen'] = $this->app->Secure->GetPOST('erweiterteoptionen');
|
||||
$input['zentralerechnung'] = $this->app->Secure->GetPOST('zentralerechnung');
|
||||
$input['zentralregulierung'] = $this->app->Secure->GetPOST('zentralregulierung');
|
||||
$input['gruppe'] = $this->app->Secure->GetPOST('gruppe');
|
||||
$input['preisgruppe'] = $this->app->Secure->GetPOST('preisgruppe');
|
||||
$input['verbandsgruppe'] = $this->app->Secure->GetPOST('verbandsgruppe');
|
||||
$input['rechnung_name'] = $this->app->Secure->GetPOST('rechnung_name');
|
||||
$input['rechnung_strasse'] = $this->app->Secure->GetPOST('rechnung_strasse');
|
||||
$input['rechnung_ort'] = $this->app->Secure->GetPOST('rechnung_ort');
|
||||
$input['rechnung_plz'] = $this->app->Secure->GetPOST('rechnung_plz');
|
||||
$input['rechnung_abteilung'] = $this->app->Secure->GetPOST('rechnung_abteilung');
|
||||
$input['rechnung_land'] = $this->app->Secure->GetPOST('rechnung_land');
|
||||
$input['rechnung_email'] = $this->app->Secure->GetPOST('rechnung_email');
|
||||
$input['rechnung_periode'] = $this->app->Secure->GetPOST('rechnung_periode');
|
||||
$input['rechnung_anzahlpapier'] = $this->app->Secure->GetPOST('rechnung_anzahlpapier');
|
||||
$input['rechnung_permail'] = $this->app->Secure->GetPOST('rechnung_permail');
|
||||
$input['webid'] = $this->app->Secure->GetPOST('webid');
|
||||
$input['portofrei_aktiv'] = $this->app->Secure->GetPOST('portofrei_aktiv');
|
||||
$input['projekt'] = $this->app->Secure->GetPOST('projekt');
|
||||
$input['objektname'] = $this->app->Secure->GetPOST('objektname');
|
||||
$input['objekttyp'] = $this->app->Secure->GetPOST('objekttyp');
|
||||
$input['parameter'] = $this->app->Secure->GetPOST('parameter');
|
||||
$input['objektname2'] = $this->app->Secure->GetPOST('objektname2');
|
||||
$input['objekttyp2'] = $this->app->Secure->GetPOST('objekttyp2');
|
||||
$input['parameter2'] = $this->app->Secure->GetPOST('parameter2');
|
||||
$input['objektname3'] = $this->app->Secure->GetPOST('objektname3');
|
||||
$input['objekttyp3'] = $this->app->Secure->GetPOST('objekttyp3');
|
||||
$input['parameter3'] = $this->app->Secure->GetPOST('parameter3');
|
||||
$input['kategorie'] = $this->app->Secure->GetPOST('kategorie');
|
||||
$input['aktiv'] = $this->app->Secure->GetPOST('aktiv');
|
||||
|
||||
|
||||
return $input;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user