|
Lines 12-25
Link Here
|
| 12 |
if((form.checkbox[0].checked)){ |
12 |
if((form.checkbox[0].checked)){ |
| 13 |
if ( (!form.date1.value) && (!form.borrower_dateexpiry.value) && (!form.borrower_categorycode.value) ){ |
13 |
if ( (!form.date1.value) && (!form.borrower_dateexpiry.value) && (!form.borrower_categorycode.value) ){ |
| 14 |
alert(_("Please enter at least one criterion for deletion!")); |
14 |
alert(_("Please enter at least one criterion for deletion!")); |
| 15 |
document.form.date1.focus(); |
|
|
| 16 |
return false; |
15 |
return false; |
| 17 |
} |
16 |
} |
| 18 |
} |
17 |
} |
| 19 |
if((form.checkbox[1].checked)){ |
18 |
if((form.checkbox[1].checked)){ |
| 20 |
if(!(form.date2.value)){ |
19 |
if(!(form.date2.value)){ |
| 21 |
alert(_("please enter a date !")); |
20 |
alert(_("please enter a date !")); |
| 22 |
document.form.date2.focus(); |
|
|
| 23 |
return false; |
21 |
return false; |
| 24 |
} |
22 |
} |
| 25 |
} |
23 |
} |
|
Lines 57-65
Link Here
|
| 57 |
<form name="f1" onsubmit="return checkForm(this);" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post"> |
55 |
<form name="f1" onsubmit="return checkForm(this);" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post"> |
| 58 |
<fieldset> |
56 |
<fieldset> |
| 59 |
<legend>What do you want to do ?</legend> |
57 |
<legend>What do you want to do ?</legend> |
| 60 |
<h3><input id="checkborrower" type="checkbox" name="checkbox" value="borrower" /> Delete borrowers</h3> |
58 |
<h3><input id="checkborrower" type="checkbox" name="checkbox" value="borrower" /><label for="checkborrower"> Delete borrowers</label></h3> |
| 61 |
|
59 |
|
| 62 |
<label for="checkborrower">Who have not borrowed since:</label> |
60 |
<label for="date1">Who have not borrowed since:</label> |
| 63 |
<input size="10" id="date1" name="filterdate1" type="text" class="datepicker" /> |
61 |
<input size="10" id="date1" name="filterdate1" type="text" class="datepicker" /> |
| 64 |
<span class="hint">[% INCLUDE 'date-format.inc' %]</span></p> |
62 |
<span class="hint">[% INCLUDE 'date-format.inc' %]</span></p> |
| 65 |
|
63 |
|
|
Lines 77-84
Link Here
|
| 77 |
[% END %] |
75 |
[% END %] |
| 78 |
</select> |
76 |
</select> |
| 79 |
|
77 |
|
| 80 |
<h3><input id="checkissue" type="checkbox" name="checkbox" value="issue" /> Anonymize history</h3> |
78 |
<h3><input id="checkissue" type="checkbox" name="checkbox" value="issue" /><label for="checkissue"> Anonymize history</label></h3> |
| 81 |
<label for="checkissue">Anonymize check-out history older than</label> |
79 |
<label for="date2">Anonymize check-out history older than</label> |
| 82 |
<input size="10" id="date2" name="filterdate2" type="text" class="datepicker" /> |
80 |
<input size="10" id="date2" name="filterdate2" type="text" class="datepicker" /> |
| 83 |
<span class="hint">[% INCLUDE 'date-format.inc' %]</span></p> |
81 |
<span class="hint">[% INCLUDE 'date-format.inc' %]</span></p> |
| 84 |
|
82 |
|
| 85 |
- |
|
|