}
}
$restriction .=
- $form->{transdate} ne "" && $form->{reqdate} ne "" ? qq| AND st.itime::date >= '| . $form->{transdate} . qq|' AND st.itime::date <= '| . $form->{reqdate} . qq|'|
- : $form->{transdate} ne "" && $form->{reqdate} eq "" ? qq| AND st.itime::date >= '| . $form->{transdate} . qq|'|
- : $form->{transdate} eq "" && $form->{reqdate} ne "" ? qq| AND st.itime::date <= '| . $form->{reqdate} . qq|'|
+ $form->{fromdate} ne "" && $form->{todate} ne "" ? qq| AND st.itime::date >= '| . $form->{fromdate} . qq|' AND st.itime::date <= '| . $form->{todate} . qq|'|
+ : $form->{fromdate} ne "" && $form->{todate} eq "" ? qq| AND st.itime::date >= '| . $form->{fromdate} . qq|'|
+ : $form->{fromdate} eq "" && $form->{todate} ne "" ? qq| AND st.itime::date <= '| . $form->{todate} . qq|'|
: ""
;
$restriction .=
var jscalender = "<table valign=\"top\">"
+ "<tr><td colspan=\"2\"><b>Zeitraum: </b></td></tr>"
+ "<tr><td>von: "
- + "<input name=\"transdate\" id=\"transdate\" size=\"11\" title=\"[% HTML.escape(myconfig_dateformat) %]\" value=\"[% HTML.escape(transdate) %]\" onChange=\"document.getElementById(\'transdate_hidden\').value=this.value;\">"
- + "<input type=\"button\" name=\"transdate\" id=\"trigger1\" value=\"?\">"
+ + "<input name=\"fromdate\" id=\"fromdate\" size=\"11\" title=\"[% HTML.escape(myconfig_dateformat) %]\" value=\"[% HTML.escape(fromdate) %]\" onChange=\"document.getElementById(\'fromdate_hidden\').value=this.value;\">"
+ + "<input type=\"button\" name=\"fromdate\" id=\"trigger1\" value=\"?\">"
+ " </td><td>bis: "
- + "<input name=\"reqdate\" id=\"reqdate\" size=\"11\" title=\"[% HTML.escape(myconfig_dateformat) %]\" value=\"[% HTML.escape(reqdate) %]\" onChange=\"document.getElementById(\'reqdate_hidden\').value=this.value;\">"
- + "<input type=\"button\" name=\"reqdate\" id=\"trigger2\" value=\"?\"></td></tr></table>";
+ + "<input name=\"todate\" id=\"todate\" size=\"11\" title=\"[% HTML.escape(myconfig_dateformat) %]\" value=\"[% HTML.escape(todate) %]\" onChange=\"document.getElementById(\'todate_hidden\').value=this.value;\">"
+ + "<input type=\"button\" name=\"todate\" id=\"trigger2\" value=\"?\"></td></tr></table>";
var mitarbeiter = "<table valign=\"top\">"
+ "<tr><td><b>Mitarbeiter:</b> </td>"
+ "<td><input type='text' name='mitarbeiter' id='mitarbeiter' onChange=\"document.getElementById(\'mitarbeiter_hidden\').value=this.value;\"></td>"
Calendar.setup(
{
- inputField : "transdate",
+ inputField : "fromdate",
ifFormat :"%d.%m.%Y",
align : "BL",
button : "trigger1"
Calendar.setup(
{
- inputField : "reqdate",
+ inputField : "todate",
ifFormat :"%d.%m.%Y",
align : "BL",
button : "trigger2"
</tr>
<tr>
<td colspan="6">
- <input type="hidden" value="" id="transdate_hidden">
- <input type="hidden" value="" id="reqdate_hidden">
+ <input type="hidden" value="" id="fromdate_hidden">
+ <input type="hidden" value="" id="todate_hidden">
<input type="hidden" value="" id="mitarbeiter_hidden">
<input type="button" value="abschicken" onClick="javascript:set_history_uri();">
<input type="reset" value="zurücksetzen" onClick="javascript:resetAll();">
var jscalender = "<table valign=\"top\">"
+ "<tr><td colspan=\"2\"><b><translate>Period</translate>: </b></td></tr>"
+ "<tr><td><translate>from (time)</translate>: "
- + "<input name=\"transdate\" id=\"transdate\" size=\"11\" title=\"[% HTML.escape(myconfig_dateformat) %]\" value=\"[% HTML.escape(transdate) %]\" onChange=\"document.getElementById(\'transdate_hidden\').value=this.value;\">"
- + "<input type=\"button\" name=\"transdate\" id=\"trigger1\" value=\"?\">"
+ + "<input name=\"fromdate\" id=\"fromdate\" size=\"11\" title=\"[% HTML.escape(myconfig_dateformat) %]\" value=\"[% HTML.escape(fromdate) %]\" onChange=\"document.getElementById(\'fromdate_hidden\').value=this.value;\">"
+ + "<input type=\"button\" name=\"fromdate\" id=\"trigger1\" value=\"?\">"
+ " </td><td><translate>to (time)</translate>: "
- + "<input name=\"reqdate\" id=\"reqdate\" size=\"11\" title=\"[% HTML.escape(myconfig_dateformat) %]\" value=\"[% HTML.escape(reqdate) %]\" onChange=\"document.getElementById(\'reqdate_hidden\').value=this.value;\">"
- + "<input type=\"button\" name=\"reqdate\" id=\"trigger2\" value=\"?\"></td></tr></table>";
+ + "<input name=\"todate\" id=\"todate\" size=\"11\" title=\"[% HTML.escape(myconfig_dateformat) %]\" value=\"[% HTML.escape(todate) %]\" onChange=\"document.getElementById(\'todate_hidden\').value=this.value;\">"
+ + "<input type=\"button\" name=\"todate\" id=\"trigger2\" value=\"?\"></td></tr></table>";
var mitarbeiter = "<table valign=\"top\">"
+ "<tr><td><b>Mitarbeiter:</b> </td>"
+ "<td><input type='text' name='mitarbeiter' id='mitarbeiter' onChange=\"document.getElementById(\'mitarbeiter_hidden\').value=this.value;\"></td>"
Calendar.setup(
{
- inputField : "transdate",
+ inputField : "fromdate",
ifFormat :"%d.%m.%Y",
align : "BL",
button : "trigger1"
Calendar.setup(
{
- inputField : "reqdate",
+ inputField : "todate",
ifFormat :"%d.%m.%Y",
align : "BL",
button : "trigger2"
</tr>
<tr>
<td colspan="6">
- <input type="hidden" value="" id="transdate_hidden">
- <input type="hidden" value="" id="reqdate_hidden">
+ <input type="hidden" value="" id="fromdate_hidden">
+ <input type="hidden" value="" id="todate_hidden">
<input type="hidden" value="" id="mitarbeiter_hidden">
<input type="button" value="<translate>submit</translate>" onClick="javascript:set_history_uri();">
<input type="reset" value="<translate>reset</translate>" onClick="javascript:resetAll();">