$form->{fokus} = "search.customer";
$form->header();
- print $form->parse_html_template("dunning/add");
+ print $form->parse_html_template2("dunning/add");
$lxdebug->leave_sub();
}
'no_opendocument' => 1,);
$form->header();
- print $form->parse_html_template("dunning/show_invoices");
+ print $form->parse_html_template2("dunning/show_invoices");
$lxdebug->leave_sub();
}
$form->{"title"} = $locale->text("Set eMail text");
$form->header();
- print($form->parse_html_template("dunning/set_email"));
+ print($form->parse_html_template2("dunning/set_email"));
$lxdebug->leave_sub();
}
. qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|
. qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
- print $form->parse_html_template("dunning/search");
+ print $form->parse_html_template2("dunning/search");
$lxdebug->leave_sub();
$report->add_data($current_dunning_rows) if (scalar @{ $current_dunning_rows });
- $report->set_options('raw_top_info_text' => $form->parse_html_template('dunning/show_dunning_top'),
- 'raw_bottom_info_text' => $form->parse_html_template('dunning/show_dunning_bottom'),
+ $report->set_options('raw_top_info_text' => $form->parse_html_template2('dunning/show_dunning_top'),
+ 'raw_bottom_info_text' => $form->parse_html_template2('dunning/show_dunning_bottom'),
'output_format' => 'HTML',
'attachment_basename' => $locale->text('dunning_list') . strftime('_%Y%m%d', localtime time),
);
-<script type="text/javascript" src="js/common.js"></script>
+[% USE HTML %]<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript">
<!--
function setup_controls() {
fokus();
- setupDateFormat('<TMPL_VAR myconfig_dateformat>', 'Falsches Datumsformat!');
- setupPoints('<TMPL_VAR myconfig_numberformat>', 'Falsches Format');
+ setupDateFormat('[% myconfig_dateformat %]', 'Falsches Datumsformat!');
+ setupPoints('[% myconfig_numberformat %]', 'Falsches Format');
}
-->
</script>
<body onLoad="setup_controls();">
- <div class="listtop"><TMPL_VAR title></div>
+ <div class="listtop">[% title %]</div>
<form method="post" name="search" action="dn.pl">
<tr>
<th align="right">Kunde</th>
<td colspan="3">
- <TMPL_IF SHOW_CUSTOMER_SELECTION>
+ [% IF SHOW_CUSTOMER_SELECTION %]
<select name="customer">
<option></option>
- <TMPL_LOOP all_customer><option><TMPL_VAR name ESCAPE=HTML>--<TMPL_VAR id ESCAPE=HTML></option></TMPL_LOOP>
+ [% FOREACH row = all_customer %]<option>[% HTML.escape(row.name) %]--[% HTML.escape(row.id) %]</option>[% END %]
</select>
- <TMPL_ELSE>
- <input name=customer size=35>
- </TMPL_IF>
+ [% ELSE %]
+ <input name="customer" size="35">
+ [% END %]
</td>
</tr>
- <TMPL_IF SHOW_DUNNING_LEVEL_SELECTION>
+ [% IF SHOW_DUNNING_LEVEL_SELECTION %]
<tr>
<th align="right">Nächste Mahnstufe</th>
<td colspan="3">
<select name="dunning_level">
<option></option>
- <TMPL_LOOP DUNNING><option value="<TMPL_VAR id ESCAPE=HTML>"><TMPL_VAR dunning_description ESCAPE=HTML></option></TMPL_LOOP>
+ [% FOREACH row = DUNNING %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.dunning_description) %]</option>[% END %]
</select>
</td>
</tr>
- </TMPL_IF>
+ [% END %]
- <TMPL_IF SHOW_DEPARTMENT_SELECTION>
+ [% IF SHOW_DEPARTMENT_SELECTION %]
<tr>
<th align="right">Abteilung</th>
<td colspan="3">
<select name="department">
<option></option>
- <TMPL_LOOP all_departments><option><TMPL_VAR description ESCAPE=HTML>--<TMPL_VAR id ESCAPE=HTML></option></TMPL_LOOP>
+ [% FOREACH row = all_departments %]<option>[% HTML.escape(row.description) %]--[% HTML.escape(row.id) %]</option>[% END %]
</select>
</td>
</tr>
- </TMPL_IF>
+ [% END %]
<tr>
<th align="right" nowrap>Rechnungsnummer</th>
<input type="hidden" name="nextsub" value="show_invoices">
- <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
- <input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
+ <input type="hidden" name="login" value="[% HTML.escape(login) %]">
+ <input type="hidden" name="password" value="[% HTML.escape(password) %]">
<br>
<input class="submit" type="submit" name="action" value="Weiter">
-<script type="text/javascript" src="js/common.js"></script>
+[% USE HTML %]<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript">
<!--
function setup_controls() {
fokus();
- setupDateFormat('<TMPL_VAR myconfig_dateformat>', '<translate>Wrong date format!</translate>');
- setupPoints('<TMPL_VAR myconfig_numberformat>', '<translate>wrongformat</translate>');
+ setupDateFormat('[% myconfig_dateformat %]', '<translate>Wrong date format!</translate>');
+ setupPoints('[% myconfig_numberformat %]', '<translate>wrongformat</translate>');
}
-->
</script>
<body onLoad="setup_controls();">
- <div class="listtop"><TMPL_VAR title></div>
+ <div class="listtop">[% title %]</div>
<form method="post" name="search" action="dn.pl">
<tr>
<th align="right"><translate>Customer</translate></th>
<td colspan="3">
- <TMPL_IF SHOW_CUSTOMER_SELECTION>
+ [% IF SHOW_CUSTOMER_SELECTION %]
<select name="customer">
<option></option>
- <TMPL_LOOP all_customer><option><TMPL_VAR name ESCAPE=HTML>--<TMPL_VAR id ESCAPE=HTML></option></TMPL_LOOP>
+ [% FOREACH row = all_customer %]<option>[% HTML.escape(row.name) %]--[% HTML.escape(row.id) %]</option>[% END %]
</select>
- <TMPL_ELSE>
- <input name=customer size=35>
- </TMPL_IF>
+ [% ELSE %]
+ <input name="customer" size="35">
+ [% END %]
</td>
</tr>
- <TMPL_IF SHOW_DUNNING_LEVEL_SELECTION>
+ [% IF SHOW_DUNNING_LEVEL_SELECTION %]
<tr>
<th align="right"><translate>Next Dunning Level</translate></th>
<td colspan="3">
<select name="dunning_level">
<option></option>
- <TMPL_LOOP DUNNING><option value="<TMPL_VAR id ESCAPE=HTML>"><TMPL_VAR dunning_description ESCAPE=HTML></option></TMPL_LOOP>
+ [% FOREACH row = DUNNING %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.dunning_description) %]</option>[% END %]
</select>
</td>
</tr>
- </TMPL_IF>
+ [% END %]
- <TMPL_IF SHOW_DEPARTMENT_SELECTION>
+ [% IF SHOW_DEPARTMENT_SELECTION %]
<tr>
<th align="right"><translate>Department</translate></th>
<td colspan="3">
<select name="department">
<option></option>
- <TMPL_LOOP all_departments><option><TMPL_VAR description ESCAPE=HTML>--<TMPL_VAR id ESCAPE=HTML></option></TMPL_LOOP>
+ [% FOREACH row = all_departments %]<option>[% HTML.escape(row.description) %]--[% HTML.escape(row.id) %]</option>[% END %]
</select>
</td>
</tr>
- </TMPL_IF>
+ [% END %]
<tr>
<th align="right" nowrap><translate>Invoice Number</translate></th>
<input type="hidden" name="nextsub" value="show_invoices">
- <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
- <input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
+ <input type="hidden" name="login" value="[% HTML.escape(login) %]">
+ <input type="hidden" name="password" value="[% HTML.escape(password) %]">
<br>
<input class="submit" type="submit" name="action" value="<translate>Continue</translate>">
-<body onLoad="<TMPL_VAR onload>">
+[% USE HTML %]<body onLoad="[% onload %]">
<script type="text/javascript" src="js/common.js"></script>
<form method="post" name="search" action="dn.pl">
- <div class="listtop"><TMPL_VAR title></div>
+ <div class="listtop">[% title %]</div>
<table width="100%">
<tr height="5"></tr>
<tr>
<th align="right">Kunde</th>
<td colspan="3">
- <TMPL_IF SHOW_CUSTOMER_DDBOX>
+ [% IF SHOW_CUSTOMER_DDBOX %]
<select name="customer_id">
<option value=""></option>
- <TMPL_LOOP ALL_CUSTOMERS><option value="<TMPL_VAR id ESCAPE=HTML>"><TMPL_VAR name ESCAPE=HTML></option>
- </TMPL_LOOP>
+ [% FOREACH row = ALL_CUSTOMERS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.name) %]</option>
+ [% END %]
</select>
- <TMPL_ELSE>
+ [% ELSE %]
<input name="customer" size="35">
- </TMPL_IF>
+ [% END %]
</td>
</tr>
- <TMPL_IF SHOW_DUNNING_LEVELS>
+ [% IF SHOW_DUNNING_LEVELS %]
<tr>
<th align="right" nowrap>Nächste Mahnstufe</th>
<td colspan="3">
<select name="dunning_level">
<option value=""></option>
- <TMPL_LOOP DUNNING><option value="<TMPL_VAR id ESCAPE=HTML>"><TMPL_VAR dunning_description ESCAPE=HTML></option>
- </TMPL_LOOP>
+ [% FOREACH row = DUNNING %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.dunning_description) %]</option>
+ [% END %]
</select>
</td>
</tr>
- </TMPL_IF>
+ [% END %]
- <TMPL_IF SHOW_DEPARTMENT_DDBOX>
+ [% IF SHOW_DEPARTMENT_DDBOX %]
<tr>
<th align="right" nowrap>Abteilung</th>
<td colspan="3">
<select name="department_id">
<option value=""></option>
- <TMPL_LOOP ALL_DEPARTMENTS><option value="<TMPL_VAR id ESCAPE=HTML>"><TMPL_VAR description ESCAPE=HTML></option>
- </TMPL_LOOP>
+ [% FOREACH row = ALL_DEPARTMENTS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.description) %]</option>
+ [% END %]
</select>
</td>
</tr>
- </TMPL_IF>
+ [% END %]
<tr>
<th align="right" nowrap>Rechnungsnummer</th>
<tr>
<th align="right" nowrap>Rechnungen von</th>
<td>
- <input name="transdatefrom" id="transdatefrom" size="11" title="<TMPL_VAR myconfig_dateformat" onBlur="check_right_date_format(this)">
+ <input name="transdatefrom" id="transdatefrom" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
<input type="button" name="transdatefrom" id="trigger1" value="?">
</td>
<th align="right" nowrap>An</th>
<td>
- <input name="transdateto" id="transdateto" size="11" title="<TMPL_VAR myconfig_dateformat" onBlur="check_right_date_format(this)">
+ <input name="transdateto" id="transdateto" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
<input type="button" name="transdateto" id="trigger2" value="?">
</td>
</tr>
<tr>
<th align="right" nowrap>Mahnungen von</th>
<td>
- <input name="dunningfrom" id="dunningfrom" size="11" title="<TMPL_VAR myconfig_dateformat" onBlur="check_right_date_format(this)">
+ <input name="dunningfrom" id="dunningfrom" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
<input type="button" name="dunningfrom" id="trigger3" value="?">
</td>
<th align="right" nowrap>An</th>
<td>
- <input name="dunningto" id="dunningto" size="11" title="<TMPL_VAR myconfig_dateformat" onBlur="check_right_date_format(this)">
+ <input name="dunningto" id="dunningto" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
<input type="button" name="dunningto" id="trigger4" value="?">
</td>
</tr>
<input type="hidden" name="nextsub" value="show_dunning">
- <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
- <input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
+ <input type="hidden" name="login" value="[% HTML.escape(login) %]">
+ <input type="hidden" name="password" value="[% HTML.escape(password) %]">
<br>
<script type="text/javascript">
<!--
- Calendar.setup({ inputField : "transdatefrom", ifFormat :"<TMPL_VAR myconfig_jsc_dateformat>", align : "BR", button : "trigger1" });
- Calendar.setup({ inputField : "transdateto", ifFormat :"<TMPL_VAR myconfig_jsc_dateformat>", align : "BR", button : "trigger2" });
- Calendar.setup({ inputField : "dunningfrom", ifFormat :"<TMPL_VAR myconfig_jsc_dateformat>", align : "BR", button : "trigger3" });
- Calendar.setup({ inputField : "dunningto", ifFormat :"<TMPL_VAR myconfig_jsc_dateformat>", align : "BR", button : "trigger4" });
+ Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" });
+ Calendar.setup({ inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger2" });
+ Calendar.setup({ inputField : "dunningfrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger3" });
+ Calendar.setup({ inputField : "dunningto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger4" });
-->
</script>
-<body onLoad="<TMPL_VAR onload>">
+[% USE HTML %]<body onLoad="[% onload %]">
<script type="text/javascript" src="js/common.js"></script>
<form method="post" name="search" action="dn.pl">
- <div class="listtop"><TMPL_VAR title></div>
+ <div class="listtop">[% title %]</div>
<table width="100%">
<tr height="5"></tr>
<tr>
<th align="right"><translate>Customer</translate></th>
<td colspan="3">
- <TMPL_IF SHOW_CUSTOMER_DDBOX>
+ [% IF SHOW_CUSTOMER_DDBOX %]
<select name="customer_id">
<option value=""></option>
- <TMPL_LOOP ALL_CUSTOMERS><option value="<TMPL_VAR id ESCAPE=HTML>"><TMPL_VAR name ESCAPE=HTML></option>
- </TMPL_LOOP>
+ [% FOREACH row = ALL_CUSTOMERS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.name) %]</option>
+ [% END %]
</select>
- <TMPL_ELSE>
+ [% ELSE %]
<input name="customer" size="35">
- </TMPL_IF>
+ [% END %]
</td>
</tr>
- <TMPL_IF SHOW_DUNNING_LEVELS>
+ [% IF SHOW_DUNNING_LEVELS %]
<tr>
<th align="right" nowrap><translate>Next Dunning Level</translate></th>
<td colspan="3">
<select name="dunning_level">
<option value=""></option>
- <TMPL_LOOP DUNNING><option value="<TMPL_VAR id ESCAPE=HTML>"><TMPL_VAR dunning_description ESCAPE=HTML></option>
- </TMPL_LOOP>
+ [% FOREACH row = DUNNING %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.dunning_description) %]</option>
+ [% END %]
</select>
</td>
</tr>
- </TMPL_IF>
+ [% END %]
- <TMPL_IF SHOW_DEPARTMENT_DDBOX>
+ [% IF SHOW_DEPARTMENT_DDBOX %]
<tr>
<th align="right" nowrap><translate>Department</translate></th>
<td colspan="3">
<select name="department_id">
<option value=""></option>
- <TMPL_LOOP ALL_DEPARTMENTS><option value="<TMPL_VAR id ESCAPE=HTML>"><TMPL_VAR description ESCAPE=HTML></option>
- </TMPL_LOOP>
+ [% FOREACH row = ALL_DEPARTMENTS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.description) %]</option>
+ [% END %]
</select>
</td>
</tr>
- </TMPL_IF>
+ [% END %]
<tr>
<th align="right" nowrap><translate>Invoice Number</translate></th>
<tr>
<th align="right" nowrap><translate>Invdate from</translate></th>
<td>
- <input name="transdatefrom" id="transdatefrom" size="11" title="<TMPL_VAR myconfig_dateformat" onBlur="check_right_date_format(this)">
+ <input name="transdatefrom" id="transdatefrom" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
<input type="button" name="transdatefrom" id="trigger1" value="?">
</td>
<th align="right" nowrap><translate>To</translate></th>
<td>
- <input name="transdateto" id="transdateto" size="11" title="<TMPL_VAR myconfig_dateformat" onBlur="check_right_date_format(this)">
+ <input name="transdateto" id="transdateto" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
<input type="button" name="transdateto" id="trigger2" value="?">
</td>
</tr>
<tr>
<th align="right" nowrap><translate>Dunning Date from</translate></th>
<td>
- <input name="dunningfrom" id="dunningfrom" size="11" title="<TMPL_VAR myconfig_dateformat" onBlur="check_right_date_format(this)">
+ <input name="dunningfrom" id="dunningfrom" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
<input type="button" name="dunningfrom" id="trigger3" value="?">
</td>
<th align="right" nowrap><translate>To</translate></th>
<td>
- <input name="dunningto" id="dunningto" size="11" title="<TMPL_VAR myconfig_dateformat" onBlur="check_right_date_format(this)">
+ <input name="dunningto" id="dunningto" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
<input type="button" name="dunningto" id="trigger4" value="?">
</td>
</tr>
<input type="hidden" name="nextsub" value="show_dunning">
- <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
- <input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
+ <input type="hidden" name="login" value="[% HTML.escape(login) %]">
+ <input type="hidden" name="password" value="[% HTML.escape(password) %]">
<br>
<script type="text/javascript">
<!--
- Calendar.setup({ inputField : "transdatefrom", ifFormat :"<TMPL_VAR myconfig_jsc_dateformat>", align : "BR", button : "trigger1" });
- Calendar.setup({ inputField : "transdateto", ifFormat :"<TMPL_VAR myconfig_jsc_dateformat>", align : "BR", button : "trigger2" });
- Calendar.setup({ inputField : "dunningfrom", ifFormat :"<TMPL_VAR myconfig_jsc_dateformat>", align : "BR", button : "trigger3" });
- Calendar.setup({ inputField : "dunningto", ifFormat :"<TMPL_VAR myconfig_jsc_dateformat>", align : "BR", button : "trigger4" });
+ Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" });
+ Calendar.setup({ inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger2" });
+ Calendar.setup({ inputField : "dunningfrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger3" });
+ Calendar.setup({ inputField : "dunningto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger4" });
-->
</script>
-<body <TMPL_IF NAME=onload>onload="<TMPL_VAR NAME=onload>"</TMPL_IF>>
+[% USE HTML %]<body onload="[% onload %]">
<script type="text/javascript">
<!--
<form name="Form">
- <input type="hidden" name="input_subject" value="<TMPL_VAR input_subject ESCAPE=HTML>">
- <input type="hidden" name="input_body" value="<TMPL_VAR input_body ESCAPE=HTML>">
- <input type="hidden" name="input_attachment" value="<TMPL_VAR input_attachment ESCAPE=HTML>">
+ <input type="hidden" name="input_subject" value="[% HTML.escape(input_subject) %]">
+ <input type="hidden" name="input_body" value="[% HTML.escape(input_body) %]">
+ <input type="hidden" name="input_attachment" value="[% HTML.escape(input_attachment) %]">
- <div class="listtop" width="100%"><TMPL_VAR title></div>
+ <div class="listtop" width="100%">[% title %]</div>
<table width="100%">
<tr>
<td valign="top">Betreff:</td>
- <td valign="top"><input id="email_subject" name="email_subject" size="40" value="<TMPL_VAR email_subject ESCAPE=HTML>"></td>
+ <td valign="top"><input id="email_subject" name="email_subject" size="40" value="[% HTML.escape(email_subject) %]"></td>
</tr>
<tr>
<td valign="top">Text:</td>
- <td valign="top"><textarea id="email_body" name="email_body" rows="20" cols="70" wrap="soft"><TMPL_VAR email_body ESCAPE=HTML></textarea></td>
+ <td valign="top"><textarea id="email_body" name="email_body" rows="20" cols="70" wrap="soft">[% HTML.escape(email_body) %]</textarea></td>
</tr>
<tr>
<td valign="top">PDF anhängen</td>
- <td valign="top"><input id="email_attachment" type="checkbox" name="email_attachment" value="1" <TMPL_IF email_attachment>checked</TMPL_IF>></td>
+ <td valign="top"><input id="email_attachment" type="checkbox" name="email_attachment" value="1" [% IF email_attachment %]checked[% END %]></td>
</tr>
</table>
-<body <TMPL_IF NAME=onload>onload="<TMPL_VAR NAME=onload>"</TMPL_IF>>
+[% USE HTML %]<body onload="[% onload %]">
<script type="text/javascript">
<!--
<form name="Form">
- <input type="hidden" name="input_subject" value="<TMPL_VAR input_subject ESCAPE=HTML>">
- <input type="hidden" name="input_body" value="<TMPL_VAR input_body ESCAPE=HTML>">
- <input type="hidden" name="input_attachment" value="<TMPL_VAR input_attachment ESCAPE=HTML>">
+ <input type="hidden" name="input_subject" value="[% HTML.escape(input_subject) %]">
+ <input type="hidden" name="input_body" value="[% HTML.escape(input_body) %]">
+ <input type="hidden" name="input_attachment" value="[% HTML.escape(input_attachment) %]">
- <div class="listtop" width="100%"><TMPL_VAR title></div>
+ <div class="listtop" width="100%">[% title %]</div>
<table width="100%">
<tr>
<td valign="top"><translate>Subject:</translate></td>
- <td valign="top"><input id="email_subject" name="email_subject" size="40" value="<TMPL_VAR email_subject ESCAPE=HTML>"></td>
+ <td valign="top"><input id="email_subject" name="email_subject" size="40" value="[% HTML.escape(email_subject) %]"></td>
</tr>
<tr>
<td valign="top"><translate>Body:</translate></td>
- <td valign="top"><textarea id="email_body" name="email_body" rows="20" cols="70" wrap="soft"><TMPL_VAR email_body ESCAPE=HTML></textarea></td>
+ <td valign="top"><textarea id="email_body" name="email_body" rows="20" cols="70" wrap="soft">[% HTML.escape(email_body) %]</textarea></td>
</tr>
<tr>
<td valign="top"><translate>Attach PDF:</translate></td>
- <td valign="top"><input id="email_attachment" type="checkbox" name="email_attachment" value="1" <TMPL_IF email_attachment>checked</TMPL_IF>></td>
+ <td valign="top"><input id="email_attachment" type="checkbox" name="email_attachment" value="1" [% IF email_attachment %]checked[% END %]></td>
</tr>
</table>
- <input type="hidden" name="rowcount" value="<TMPL_VAR rowcount>">
+[% USE HTML %] <input type="hidden" name="rowcount" value="[% rowcount %]">
- <p><TMPL_VAR PRINT_OPTIONS></p>
+ <p>[% PRINT_OPTIONS %]</p>
<p>
Mahnungen<br>
- <input type="hidden" name="rowcount" value="<TMPL_VAR rowcount>">
+[% USE HTML %] <input type="hidden" name="rowcount" value="[% rowcount %]">
- <p><TMPL_VAR PRINT_OPTIONS></p>
+ <p>[% PRINT_OPTIONS %]</p>
<p>
<translate>Dunnings</translate><br>
- <script type="text/javascript" src="js/common.js"></script>
+[% USE HTML %] <script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/dunning.js"></script>
<form method="post" action="dn.pl">
- <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
- <input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
+ <input type="hidden" name="login" value="[% HTML.escape(login) %]">
+ <input type="hidden" name="password" value="[% HTML.escape(password) %]">
- <script type="text/javascript" src="js/common.js"></script>
+[% USE HTML %] <script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/dunning.js"></script>
<form method="post" action="dn.pl">
- <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
- <input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
+ <input type="hidden" name="login" value="[% HTML.escape(login) %]">
+ <input type="hidden" name="password" value="[% HTML.escape(password) %]">
-<body>
+[% USE HTML %]<body>
<script type="text/javascript" src="js/checkbox_utils.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/dunning.js"></script>
- <div class="listtop" width="100%"><TMPL_VAR title></div>
+ <div class="listtop" width="100%">[% title %]</div>
<p>Die Spalten "Zahlbar bis", "Kumulierte Gebühren" und "Zinsen" zeigen Daten der letzten für diese Rechnung erzeugten Mahnung.</p>
<th class="listheading" colspan="2">Aktuelles / Nächstes Mahnlevel</th>
<th class="listheading">
- <input type="checkbox" name="selectall_active" id="selectall_active" onclick="checkbox_check_all('selectall_active', 'active_', 1, <TMPL_VAR rowcount>);">
+ <input type="checkbox" name="selectall_active" id="selectall_active" onclick="checkbox_check_all('selectall_active', 'active_', 1, [% rowcount %]);">
<label for="selectall_active">Aktiviert?</label>
</th>
<th class="listheading">
- <input type="checkbox" name="selectall_email" id="selectall_email" onclick="checkbox_check_all('selectall_email', 'email_', 1, <TMPL_VAR rowcount>);">
+ <input type="checkbox" name="selectall_email" id="selectall_email" onclick="checkbox_check_all('selectall_email', 'email_', 1, [% rowcount %]);">
<label for="selectall_email">eMail?</label>
</th>
<!-- Ausgabe der einzelnen Zeilen -->
- <TMPL_LOOP DUNNINGS>
- <tr class="listrow<TMPL_IF __odd__>1<TMPL_ELSE>0</TMPL_IF>">
+ [% FOREACH row = DUNNINGS %]
+ <tr class="listrow[% loop.count % 2 %]">
<td>
- <input type="hidden" name="inv_id_<TMPL_VAR __counter__>" size="2" value="<TMPL_VAR id ESCAPE=HTML>">
- <input type="hidden" name="customer_id_<TMPL_VAR __counter__>" size="2" value="<TMPL_VAR customer_id ESCAPE=HTML>">
- <TMPL_IF dunning_level><TMPL_VAR dunning_level ESCAPE=HTML><TMPL_ELSE> </TMPL_IF>
+ <input type="hidden" name="inv_id_[% loop.count %]" size="2" value="[% HTML.escape(row.id) %]">
+ <input type="hidden" name="customer_id_[% loop.count %]" size="2" value="[% HTML.escape(row.customer_id) %]">
+ [% IF row.dunning_level %][% HTML.escape(row.dunning_level) %][% ELSE %] [% END %]
</td>
<td>
- <select name="next_dunning_config_id_<TMPL_VAR __counter__>">
- <TMPL_LOOP DUNNING_CONFIG><option value="<TMPL_VAR id ESCAPE=HTML>" <TMPL_IF SELECTED>selected</TMPL_IF>><TMPL_VAR dunning_description ESCAPE=HTML></option></TMPL_LOOP>
+ <select name="next_dunning_config_id_[% loop.count %]">
+ [% FOREACH cfg_row = DUNNING_CONFIG %]<option value="[% HTML.escape(cfg_row.id) %]" [% IF cfg_row.SELECTED %]selected[% END %]>[% HTML.escape(cfg_row.dunning_description) %]</option>[% END %]
</select>
</td>
- <td><input type="checkbox" name="active_<TMPL_VAR __counter__>" value="1" <TMPL_IF active>checked</TMPL_IF>></td>
- <td><input type="checkbox" name="email_<TMPL_VAR __counter__>" value="1" <TMPL_IF email>checked</TMPL_IF>></td>
- <td><input type="hidden" name="customername_<TMPL_VAR __counter__>" size="6" value="<TMPL_VAR customername ESCAPE=HTML>"><TMPL_VAR customername ESCAPE=HTML></td>
- <td><input type="hidden" name="invnumber_<TMPL_VAR __counter__>" size="6" value="<TMPL_VAR invnumber ESCAPE=HTML>"><TMPL_VAR invnumber ESCAPE=HTML></td>
- <td><input type="hidden" name="invdate_<TMPL_VAR __counter__>" size="6" value="<TMPL_VAR transdate ESCAPE=HTML>"><TMPL_VAR transdate ESCAPE=HTML></td>
- <td><input type="hidden" name="inv_duedate_<TMPL_VAR __counter__>" size="6" value="<TMPL_VAR duedate ESCAPE=HTML>"><TMPL_VAR duedate ESCAPE=HTML></td>
- <td align="right"><input type="hidden" name="amount_<TMPL_VAR __counter__>" size="6" value="<TMPL_VAR amount ESCAPE=HTML>"><TMPL_VAR amount ESCAPE=HTML></td>
- <td><TMPL_VAR next_duedate ESCAPE=HTML></td>
- <td align="right"><input type="hidden" name="fee_<TMPL_VAR __counter__>" size="6" value="<TMPL_VAR fee ESCAPE=HTML>"><TMPL_VAR fee ESCAPE=HTML></td>
- <td align="right"><input type="hidden" name="interest_<TMPL_VAR __counter__>" size="6" value="<TMPL_VAR interest ESCAPE=HTML>"><TMPL_VAR interest ESCAPE=HTML></td>
+ <td><input type="checkbox" name="active_[% loop.count %]" value="1" [% IF row.active %]checked[% END %]></td>
+ <td><input type="checkbox" name="email_[% loop.count %]" value="1" [% IF row.email %]checked[% END %]></td>
+ <td><input type="hidden" name="customername_[% loop.count %]" size="6" value="[% HTML.escape(row.customername) %]">[% HTML.escape(row.customername) %]</td>
+ <td><input type="hidden" name="invnumber_[% loop.count %]" size="6" value="[% HTML.escape(row.invnumber) %]">[% HTML.escape(row.invnumber) %]</td>
+ <td><input type="hidden" name="invdate_[% loop.count %]" size="6" value="[% HTML.escape(row.transdate) %]">[% HTML.escape(row.transdate) %]</td>
+ <td><input type="hidden" name="inv_duedate_[% loop.count %]" size="6" value="[% HTML.escape(row.duedate) %]">[% HTML.escape(row.duedate) %]</td>
+ <td align="right"><input type="hidden" name="amount_[% loop.count %]" size="6" value="[% HTML.escape(row.amount) %]">[% HTML.escape(row.amount) %]</td>
+ <td>[% HTML.escape(row.next_duedate) %]</td>
+ <td align="right"><input type="hidden" name="fee_[% loop.count %]" size="6" value="[% HTML.escape(row.fee) %]">[% HTML.escape(row.fee) %]</td>
+ <td align="right"><input type="hidden" name="interest_[% loop.count %]" size="6" value="[% HTML.escape(row.interest) %]">[% HTML.escape(row.interest) %]</td>
</tr>
- </TMPL_LOOP>
+ [% END %]
</table>
<hr size=3 noshade>
- <TMPL_VAR PRINT_OPTIONS>
+ [% PRINT_OPTIONS %]
<br>
- <input name="rowcount" type="hidden" value="<TMPL_VAR rowcount ESCAPE=HTML>">
- <input name="groupinvoices" type="hidden" value="<TMPL_VAR groupinvoices ESCAPE=HTML>">
+ <input name="rowcount" type="hidden" value="[% HTML.escape(rowcount) %]">
+ <input name="groupinvoices" type="hidden" value="[% HTML.escape(groupinvoices) %]">
- <input name="callback" type="hidden" value="<TMPL_VAR callback ESCAPE=HTML>">
+ <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
<input name="nextsub" type="hidden" value="save_dunning">
- <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
- <input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
+ <input type="hidden" name="login" value="[% HTML.escape(login) %]">
+ <input type="hidden" name="password" value="[% HTML.escape(password) %]">
<input type="hidden" name="action" value="Weiter">
<input type="submit" name="dummy" value="Weiter"
- <TMPL_UNLESS DEBUG_DUNNING>onclick="this.disabled=true; this.value='Der Mahnprozess ist gestartet.'; document.Form.submit()"</TMPL_UNLESS>>
+ [% UNLESS DEBUG_DUNNING %]onclick="this.disabled=true; this.value='Der Mahnprozess ist gestartet.'; document.Form.submit()"[% END %]>
</form>
</body>
-<body>
+[% USE HTML %]<body>
<script type="text/javascript" src="js/checkbox_utils.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/dunning.js"></script>
- <div class="listtop" width="100%"><TMPL_VAR title></div>
+ <div class="listtop" width="100%">[% title %]</div>
<p><translate>The columns "Dunning Duedate", "Total
Fees" and "Interest" show data for the previous
<th class="listheading" colspan="2"><translate>Current / Next Level</translate></th>
<th class="listheading">
- <input type="checkbox" name="selectall_active" id="selectall_active" onclick="checkbox_check_all('selectall_active', 'active_', 1, <TMPL_VAR rowcount>);">
+ <input type="checkbox" name="selectall_active" id="selectall_active" onclick="checkbox_check_all('selectall_active', 'active_', 1, [% rowcount %]);">
<label for="selectall_active"><translate>Active?</translate></label>
</th>
<th class="listheading">
- <input type="checkbox" name="selectall_email" id="selectall_email" onclick="checkbox_check_all('selectall_email', 'email_', 1, <TMPL_VAR rowcount>);">
+ <input type="checkbox" name="selectall_email" id="selectall_email" onclick="checkbox_check_all('selectall_email', 'email_', 1, [% rowcount %]);">
<label for="selectall_email"><translate>eMail?</translate></label>
</th>
<!-- Ausgabe der einzelnen Zeilen -->
- <TMPL_LOOP DUNNINGS>
- <tr class="listrow<TMPL_IF __odd__>1<TMPL_ELSE>0</TMPL_IF>">
+ [% FOREACH row = DUNNINGS %]
+ <tr class="listrow[% loop.count % 2 %]">
<td>
- <input type="hidden" name="inv_id_<TMPL_VAR __counter__>" size="2" value="<TMPL_VAR id ESCAPE=HTML>">
- <input type="hidden" name="customer_id_<TMPL_VAR __counter__>" size="2" value="<TMPL_VAR customer_id ESCAPE=HTML>">
- <TMPL_IF dunning_level><TMPL_VAR dunning_level ESCAPE=HTML><TMPL_ELSE> </TMPL_IF>
+ <input type="hidden" name="inv_id_[% loop.count %]" size="2" value="[% HTML.escape(row.id) %]">
+ <input type="hidden" name="customer_id_[% loop.count %]" size="2" value="[% HTML.escape(row.customer_id) %]">
+ [% IF row.dunning_level %][% HTML.escape(row.dunning_level) %][% ELSE %] [% END %]
</td>
<td>
- <select name="next_dunning_config_id_<TMPL_VAR __counter__>">
- <TMPL_LOOP DUNNING_CONFIG><option value="<TMPL_VAR id ESCAPE=HTML>" <TMPL_IF SELECTED>selected</TMPL_IF>><TMPL_VAR dunning_description ESCAPE=HTML></option></TMPL_LOOP>
+ <select name="next_dunning_config_id_[% loop.count %]">
+ [% FOREACH cfg_row = DUNNING_CONFIG %]<option value="[% HTML.escape(cfg_row.id) %]" [% IF cfg_row.SELECTED %]selected[% END %]>[% HTML.escape(cfg_row.dunning_description) %]</option>[% END %]
</select>
</td>
- <td><input type="checkbox" name="active_<TMPL_VAR __counter__>" value="1" <TMPL_IF active>checked</TMPL_IF>></td>
- <td><input type="checkbox" name="email_<TMPL_VAR __counter__>" value="1" <TMPL_IF email>checked</TMPL_IF>></td>
- <td><input type="hidden" name="customername_<TMPL_VAR __counter__>" size="6" value="<TMPL_VAR customername ESCAPE=HTML>"><TMPL_VAR customername ESCAPE=HTML></td>
- <td><input type="hidden" name="invnumber_<TMPL_VAR __counter__>" size="6" value="<TMPL_VAR invnumber ESCAPE=HTML>"><TMPL_VAR invnumber ESCAPE=HTML></td>
- <td><input type="hidden" name="invdate_<TMPL_VAR __counter__>" size="6" value="<TMPL_VAR transdate ESCAPE=HTML>"><TMPL_VAR transdate ESCAPE=HTML></td>
- <td><input type="hidden" name="inv_duedate_<TMPL_VAR __counter__>" size="6" value="<TMPL_VAR duedate ESCAPE=HTML>"><TMPL_VAR duedate ESCAPE=HTML></td>
- <td align="right"><input type="hidden" name="amount_<TMPL_VAR __counter__>" size="6" value="<TMPL_VAR amount ESCAPE=HTML>"><TMPL_VAR amount ESCAPE=HTML></td>
- <td><TMPL_VAR next_duedate ESCAPE=HTML></td>
- <td align="right"><input type="hidden" name="fee_<TMPL_VAR __counter__>" size="6" value="<TMPL_VAR fee ESCAPE=HTML>"><TMPL_VAR fee ESCAPE=HTML></td>
- <td align="right"><input type="hidden" name="interest_<TMPL_VAR __counter__>" size="6" value="<TMPL_VAR interest ESCAPE=HTML>"><TMPL_VAR interest ESCAPE=HTML></td>
+ <td><input type="checkbox" name="active_[% loop.count %]" value="1" [% IF row.active %]checked[% END %]></td>
+ <td><input type="checkbox" name="email_[% loop.count %]" value="1" [% IF row.email %]checked[% END %]></td>
+ <td><input type="hidden" name="customername_[% loop.count %]" size="6" value="[% HTML.escape(row.customername) %]">[% HTML.escape(row.customername) %]</td>
+ <td><input type="hidden" name="invnumber_[% loop.count %]" size="6" value="[% HTML.escape(row.invnumber) %]">[% HTML.escape(row.invnumber) %]</td>
+ <td><input type="hidden" name="invdate_[% loop.count %]" size="6" value="[% HTML.escape(row.transdate) %]">[% HTML.escape(row.transdate) %]</td>
+ <td><input type="hidden" name="inv_duedate_[% loop.count %]" size="6" value="[% HTML.escape(row.duedate) %]">[% HTML.escape(row.duedate) %]</td>
+ <td align="right"><input type="hidden" name="amount_[% loop.count %]" size="6" value="[% HTML.escape(row.amount) %]">[% HTML.escape(row.amount) %]</td>
+ <td>[% HTML.escape(row.next_duedate) %]</td>
+ <td align="right"><input type="hidden" name="fee_[% loop.count %]" size="6" value="[% HTML.escape(row.fee) %]">[% HTML.escape(row.fee) %]</td>
+ <td align="right"><input type="hidden" name="interest_[% loop.count %]" size="6" value="[% HTML.escape(row.interest) %]">[% HTML.escape(row.interest) %]</td>
</tr>
- </TMPL_LOOP>
+ [% END %]
</table>
<hr size=3 noshade>
- <TMPL_VAR PRINT_OPTIONS>
+ [% PRINT_OPTIONS %]
<br>
- <input name="rowcount" type="hidden" value="<TMPL_VAR rowcount ESCAPE=HTML>">
- <input name="groupinvoices" type="hidden" value="<TMPL_VAR groupinvoices ESCAPE=HTML>">
+ <input name="rowcount" type="hidden" value="[% HTML.escape(rowcount) %]">
+ <input name="groupinvoices" type="hidden" value="[% HTML.escape(groupinvoices) %]">
- <input name="callback" type="hidden" value="<TMPL_VAR callback ESCAPE=HTML>">
+ <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
<input name="nextsub" type="hidden" value="save_dunning">
- <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
- <input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
+ <input type="hidden" name="login" value="[% HTML.escape(login) %]">
+ <input type="hidden" name="password" value="[% HTML.escape(password) %]">
<input type="hidden" name="action" value="<translate>Continue</translate>">
<input type="submit" name="dummy" value="<translate>Continue</translate>"
- <TMPL_UNLESS DEBUG_DUNNING>onclick="this.disabled=true; this.value='<translate>The dunning process started</translate>'; document.Form.submit()"</TMPL_UNLESS>>
+ [% UNLESS DEBUG_DUNNING %]onclick="this.disabled=true; this.value='<translate>The dunning process started</translate>'; document.Form.submit()"[% END %]>
</form>
</body>