mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-03-31 02:20:22 +02:00
bugfix mahnwesen neu
This commit is contained in:
parent
9fbd0eb85a
commit
5da0490260
@ -17,14 +17,14 @@
|
|||||||
<div class="col-xs-12 col-md-12 col-md-height">
|
<div class="col-xs-12 col-md-12 col-md-height">
|
||||||
<div class="inside inside-full-height">
|
<div class="inside inside-full-height">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{|<!--Legend for this form area goes here>-->Mahnwesen-Einstellungen|}</legend><i>Info like this.</i>
|
<legend>{|<!--Legend for this form area goes here>-->Mahnwesen-Einstellungen|}</legend>
|
||||||
<table width="100%" border="0" class="mkTableFormular">
|
<table width="100%" border="0" class="mkTableFormular">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{|Name|}:
|
{|Name|}:
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="name" id="name" value="[NAME]" size="20">
|
<input type="text" name="name" id="name" value="[NAME]" size="20"><i>Entspricht "Typ" in der Geschäftsbrief-Vorlage</i>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -139,7 +139,7 @@ class Mahnwesen {
|
|||||||
// $alignright = array(4,5,6,7,8);
|
// $alignright = array(4,5,6,7,8);
|
||||||
|
|
||||||
$findcols = array('m.id', 'm.tage','m.name', 'm.gebuehr', 'm.mail','m.druck');
|
$findcols = array('m.id', 'm.tage','m.name', 'm.gebuehr', 'm.mail','m.druck');
|
||||||
$searchsql = array('m.stufe','m.name','m.tage', 'm.gebuehr', 'm.versandmethode');
|
$searchsql = array('m.name','m.tage', 'm.gebuehr', 'm.versandmethode');
|
||||||
|
|
||||||
$defaultorder = 1;
|
$defaultorder = 1;
|
||||||
$defaultorderdesc = 1;
|
$defaultorderdesc = 1;
|
||||||
@ -447,7 +447,7 @@ class Mahnwesen {
|
|||||||
|
|
||||||
// Load values again from database
|
// 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=\"',m.id,'\" />') AS `auswahl`";
|
$dropnbox = "'<img src=./themes/new/images/details_open.png class=details>' AS `open`, CONCAT('<input type=\"checkbox\" name=\"auswahl[]\" value=\"',m.id,'\" />') AS `auswahl`";
|
||||||
$result = $this->app->DB->SelectArr("SELECT SQL_CALC_FOUND_ROWS m.id, $dropnbox, m.stufe, m.name, m.tage, m.gebuehr, m.mail, m.druck, m.id FROM mahnwesen m"." WHERE id=$id");
|
$result = $this->app->DB->SelectArr("SELECT SQL_CALC_FOUND_ROWS m.id, $dropnbox, m.name, m.tage, m.gebuehr, m.mail, m.druck, m.id FROM mahnwesen m"." WHERE id=$id");
|
||||||
|
|
||||||
foreach ($result[0] as $key => $value) {
|
foreach ($result[0] as $key => $value) {
|
||||||
$this->app->Tpl->Set(strtoupper($key), $value);
|
$this->app->Tpl->Set(strtoupper($key), $value);
|
||||||
@ -474,7 +474,6 @@ class Mahnwesen {
|
|||||||
public function GetInput(): array {
|
public function GetInput(): array {
|
||||||
$input = array();
|
$input = array();
|
||||||
$input['name'] = $this->app->Secure->GetPOST('name');
|
$input['name'] = $this->app->Secure->GetPOST('name');
|
||||||
$input['stufe'] = $this->app->Secure->GetPOST('stufe');
|
|
||||||
$input['tage'] = $this->app->Secure->GetPOST('tage');
|
$input['tage'] = $this->app->Secure->GetPOST('tage');
|
||||||
$input['gebuehr'] = $this->app->Secure->GetPOST('gebuehr');
|
$input['gebuehr'] = $this->app->Secure->GetPOST('gebuehr');
|
||||||
$input['mail'] = $this->app->Secure->GetPOST('mail')?'1':'0';
|
$input['mail'] = $this->app->Secure->GetPOST('mail')?'1':'0';
|
||||||
@ -487,7 +486,6 @@ class Mahnwesen {
|
|||||||
*/
|
*/
|
||||||
function SetInput($input) {
|
function SetInput($input) {
|
||||||
$this->app->Tpl->Set('NAME', $input['name']);
|
$this->app->Tpl->Set('NAME', $input['name']);
|
||||||
$this->app->Tpl->Set('STUFE', $input['stufe']);
|
|
||||||
$this->app->Tpl->Set('TAGE', $input['tage']);
|
$this->app->Tpl->Set('TAGE', $input['tage']);
|
||||||
$this->app->Tpl->Set('GEBUEHR', $input['gebuehr']);
|
$this->app->Tpl->Set('GEBUEHR', $input['gebuehr']);
|
||||||
$this->app->Tpl->Set('MAIL', $input['mail']);
|
$this->app->Tpl->Set('MAIL', $input['mail']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user