View | Details | Raw Unified | Return to bug 5051
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table-footer.inc (+25 lines)
Line 0 Link Here
1
<tfoot>
2
	<tr>
3
		<td colspan="5" style="text-align: right; font-weight:bold;">Totals:</td>
4
		<td><!-- TMPL_VAR NAME="totaldue" --></td>
5
		<td><!-- TMPL_VAR NAME="totalprice" --></td>
6
		<td colspan="2">
7
			<p>Renewal due date: <input type="text" size="8" id="newduedate" name="newduedate" value="<!-- TMPL_VAR Name="newduedate" -->" />
8
			<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="newduedate_button" alt="Show Calendar" />
9
			<script type="text/javascript"> //<![CDATA[
10
			//#TODO - ADD syspref (AllowPostDatedCheckouts).
11
			 Calendar.setup(
12
			      {
13
			         inputField : "newduedate",
14
			         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
15
			         button : "newduedate_button",
16
			         disableFunc : validate1,
17
			         dateStatusFunc : validate1,
18
			       }
19
			    );
20
			//]]>
21
			</script></p>
22
			<p><label>Forgive fines on return: <input type="checkbox" name="exemptfine" value="1" /></label></p>
23
		</td>
24
	</tr>
25
</tfoot>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl (-32 / +4 lines)
Lines 176-182 function refocus(calendar) { Link Here
176
    </li>
176
    </li>
177
    <!-- TMPL_IF NAME="canned_bor_notes_loop" -->
177
    <!-- TMPL_IF NAME="canned_bor_notes_loop" -->
178
        <li>
178
        <li>
179
                <label for="canned_notes">Predefined notes: </label>
179
                <label for="type">Predefined notes: </label>
180
                <select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;">
180
                <select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;">
181
                    <option value="">Select Note</option>
181
                    <option value="">Select Note</option>
182
                    <!-- TMPL_LOOP NAME="canned_bor_notes_loop" -->
182
                    <!-- TMPL_LOOP NAME="canned_bor_notes_loop" -->
Lines 193-199 function refocus(calendar) { Link Here
193
        <input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a>
193
        <input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a>
194
    </fieldset>
194
    </fieldset>
195
195
196
        <input type="hidden" name="borrowernumber" id="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
196
        <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
197
        <input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branch" -->" />
197
        <input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branch" -->" />
198
</fieldset>
198
</fieldset>
199
</form>
199
</form>
Lines 642-677 No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span> Link Here
642
        <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th>
642
        <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th>
643
    </tr>
643
    </tr>
644
<!-- TMPL_IF NAME="todayissues" --></thead>
644
<!-- TMPL_IF NAME="todayissues" --></thead>
645
<tfoot>
645
<!-- TMPL_INCLUDE NAME="checkouts-table-footer.inc" -->
646
		<tr>
647
            <td colspan="5" style="text-align: right; font-weight:bold;">Totals:</td>
648
			<td><!-- TMPL_VAR NAME="totaldue" --></td>
649
            <td><!-- TMPL_VAR NAME="totalprice" --></td>
650
            <td colspan="2">      
651
                <p>
652
                    Renewal due date: <input type="text" size="8" id="newduedate" name="newduedate" value="<!-- TMPL_VAR Name="newduedate" -->" />
653
                    <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="newduedate_button" alt="Show Calendar" />
654
 <script type="text/javascript"> //<![CDATA[
655
				//#TODO - ADD syspref (AllowPostDatedCheckouts).
656
                     Calendar.setup(
657
                          {
658
                             inputField : "newduedate",
659
                             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
660
                             button : "newduedate_button",
661
                             disableFunc : validate1,
662
                             dateStatusFunc : validate1,
663
                             onClose : refocus
664
                           }
665
                        );
666
				//]]>
667
				 </script>
668
                </p>
669
                <p>
670
                    <label>Forgive fines on return: <input type="checkbox" name="exemptfine" value="1" /></label>
671
                </p>
672
            </td>
673
        </tr>
674
		</tfoot>
675
	<tbody>
646
	<tbody>
676
647
677
    <!-- TMPL_LOOP NAME="todayissues" -->
648
    <!-- TMPL_LOOP NAME="todayissues" -->
Lines 734-739 No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span> Link Here
734
<!-- TMPL_IF NAME="previssues" -->
705
<!-- TMPL_IF NAME="previssues" -->
735
<!-- TMPL_IF NAME="todayissues" --><tr><th colspan="10"><a name="previous" id="previous"></a>Previous checkouts</th></tr><!-- TMPL_ELSE -->
706
<!-- TMPL_IF NAME="todayissues" --><tr><th colspan="10"><a name="previous" id="previous"></a>Previous checkouts</th></tr><!-- TMPL_ELSE -->
736
<tr><th class="{sorter: false}" colspan="10"><a name="previous" id="previous"></a>Previous checkouts</th></tr></thead>
707
<tr><th class="{sorter: false}" colspan="10"><a name="previous" id="previous"></a>Previous checkouts</th></tr></thead>
708
<!-- TMPL_INCLUDE NAME="checkouts-table-footer.inc" -->
737
	<tbody>
709
	<tbody>
738
<!-- /TMPL_IF -->
710
<!-- /TMPL_IF -->
739
    <!-- TMPL_LOOP NAME="previssues" -->
711
    <!-- TMPL_LOOP NAME="previssues" -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl (-28 / +9 lines)
Lines 89-95 if (nodename =="barcodes[]"){ Link Here
89
   }   
89
   }   
90
}
90
}
91
}
91
}
92
92
function validate1(date) {
93
    var today = new Date();
94
    if ( date < today ) {
95
        return true;
96
     } else {
97
        return false;
98
     }
99
};
93
//]]>
100
//]]>
94
</script>
101
</script>
95
102
Lines 404-435 if (nodename =="barcodes[]"){ Link Here
404
            <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th>
411
            <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th>
405
            <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th>
412
            <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th>
406
        </tr></thead>
413
        </tr></thead>
407
    	<tfoot>
414
        <!-- TMPL_INCLUDE NAME="checkouts-table-footer.inc" -->
408
		<tr>
409
            <td colspan="5" style="text-align: right; font-weight:bold;">Totals:</td>
410
			<td><!-- TMPL_VAR NAME="totaldue" --></td>
411
            <td><!-- TMPL_VAR NAME="totalprice" --></td>
412
            <td colspan="2">      
413
                <p>
414
                    Renewal due date: <input type="text" size="8" id="newduedate" name="newduedate" value="<!-- TMPL_VAR Name="newduedate" -->" />
415
                    <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="newduedate_button" alt="Show Calendar" />
416
                    <script type="text/javascript">
417
                        //<![CDATA[
418
                        Calendar.setup({
419
                            inputField : "newduedate",
420
                            ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
421
                            button : "newduedate_button"
422
                        });
423
                        //]]>
424
                    </script>
425
				<span style="display:block;color:#666;font-weight:normal;font-size:90%;"><!-- TMPL_INCLUDE NAME="date-format.inc" --></span>
426
                </p>
427
                <p>
428
                    <label>Forgive fines on return: <input type="checkbox" name="exemptfine" value="1" /></label>
429
                </p>
430
            </td>
431
        </tr>
432
		</tfoot>
433
       <tbody>
415
       <tbody>
434
       <!-- TMPL_LOOP name="issueloop" -->
416
       <!-- TMPL_LOOP name="issueloop" -->
435
417
436
- 

Return to bug 5051