koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/koha-tmpl/intranet-tmpl/default/en/circ ci... [rel_2_2]


From: Antoine Farnault
Subject: [Koha-cvs] koha/koha-tmpl/intranet-tmpl/default/en/circ ci... [rel_2_2]
Date: Mon, 07 May 2007 10:13:46 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     Antoine Farnault <toins>        07/05/07 10:13:46

Modified files:
        koha-tmpl/intranet-tmpl/default/en/circ: circulation.tmpl 

Log message:
        default & npl synch : adding calendar for duedate. Need test.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/en/circ/circulation.tmpl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.35.2.13&r2=1.35.2.14

Patches:
Index: circulation.tmpl
===================================================================
RCS file: 
/sources/koha/koha/koha-tmpl/intranet-tmpl/default/en/circ/Attic/circulation.tmpl,v
retrieving revision 1.35.2.13
retrieving revision 1.35.2.14
diff -u -b -r1.35.2.13 -r1.35.2.14
--- circulation.tmpl    31 Jul 2006 13:29:36 -0000      1.35.2.13
+++ circulation.tmpl    7 May 2007 10:13:46 -0000       1.35.2.14
@@ -1,4 +1,14 @@
 <!-- TMPL_INCLUDE NAME="circulation-top.inc" -->
+
+
+<!-- Additions to enable Calendar system -->
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME='themelang' 
-->/includes/calendar/calendar-system.css">
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" 
-->/includes/calendar/calendar.js"></script>
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" 
-->/includes/calendar/calendar-en.js"></script>
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" 
-->/includes/calendar/calendar-setup.js"></script>
+<!-- End of additions -->
+
+
  <div id="mainbloc">
        <h1 class="circulation">Circulation: Issues</h1>
 
@@ -81,79 +91,51 @@
 
 <!-- TMPL_IF NAME="borrowernumber" -->
        <div id="bloc25">
-       <form method="post" name="f" action="/cgi-bin/koha/circ/circulation.pl">
-               <h2 class="circulation">Enter Book Barcode</h2>
-               <p>Item Barcode:<input name="barcode" size="10"> <input 
type="submit" value="Issue" class="button circulation"></p>
-               <p>
-                       <select name="day">
-                               <option value="0">Day</option>
-                               <option value="01"<!-- TMPL_IF NAME="day1" --> 
selected="selected"<!-- /TMPL_IF -->>1</option>
-                               <option value="02"<!-- TMPL_IF NAME="day2" --> 
selected="selected"<!-- /TMPL_IF -->>2</option>
-                               <option value="03"<!-- TMPL_IF NAME="day3" --> 
selected="selected"<!-- /TMPL_IF -->>3</option>
-                               <option value="04"<!-- TMPL_IF NAME="day4" --> 
selected="selected"<!-- /TMPL_IF -->>4</option>
-                               <option value="05"<!-- TMPL_IF NAME="day5" --> 
selected="selected"<!-- /TMPL_IF -->>5</option>
-                               <option value="06"<!-- TMPL_IF NAME="day6" --> 
selected="selected"<!-- /TMPL_IF -->>6</option>
-                               <option value="07"<!-- TMPL_IF NAME="day7" --> 
selected="selected"<!-- /TMPL_IF -->>7</option>
-                               <option value="08"<!-- TMPL_IF NAME="day8" --> 
selected="selected"<!-- /TMPL_IF -->>8</option>
-                               <option value="09"<!-- TMPL_IF NAME="day9" --> 
selected="selected"<!-- /TMPL_IF -->>9</option>
-                               <option value="10"<!-- TMPL_IF NAME="day10" --> 
selected="selected"<!-- /TMPL_IF -->>10</option>
-                               <option value="11"<!-- TMPL_IF NAME="day11" --> 
selected="selected"<!-- /TMPL_IF -->>11</option>
-                               <option value="12"<!-- TMPL_IF NAME="day12" --> 
selected="selected"<!-- /TMPL_IF -->>12</option>
-                               <option value="13"<!-- TMPL_IF NAME="day13" --> 
selected="selected"<!-- /TMPL_IF -->>13</option>
-                               <option value="14"<!-- TMPL_IF NAME="day14" --> 
selected="selected"<!-- /TMPL_IF -->>14</option>
-                               <option value="15"<!-- TMPL_IF NAME="day15" --> 
selected="selected"<!-- /TMPL_IF -->>15</option>
-                               <option value="16"<!-- TMPL_IF NAME="day16" --> 
selected="selected"<!-- /TMPL_IF -->>16</option>
-                               <option value="17"<!-- TMPL_IF NAME="day17" --> 
selected="selected"<!-- /TMPL_IF -->>17</option>
-                               <option value="18"<!-- TMPL_IF NAME="day18" --> 
selected="selected"<!-- /TMPL_IF -->>18</option>
-                               <option value="19"<!-- TMPL_IF NAME="day19" --> 
selected="selected"<!-- /TMPL_IF -->>19</option>
-                               <option value="20"<!-- TMPL_IF NAME="day20" --> 
selected="selected"<!-- /TMPL_IF -->>20</option>
-                               <option value="21"<!-- TMPL_IF NAME="day21" --> 
selected="selected"<!-- /TMPL_IF -->>21</option>
-                               <option value="22"<!-- TMPL_IF NAME="day22" --> 
selected="selected"<!-- /TMPL_IF -->>22</option>
-                               <option value="23"<!-- TMPL_IF NAME="day23" --> 
selected="selected"<!-- /TMPL_IF -->>23</option>
-                               <option value="24"<!-- TMPL_IF NAME="day24" --> 
selected="selected"<!-- /TMPL_IF -->>24</option>
-                               <option value="25"<!-- TMPL_IF NAME="day25" --> 
selected="selected"<!-- /TMPL_IF -->>25</option>
-                               <option value="26"<!-- TMPL_IF NAME="day26" --> 
selected="selected"<!-- /TMPL_IF -->>26</option>
-                               <option value="27"<!-- TMPL_IF NAME="day27" --> 
selected="selected"<!-- /TMPL_IF -->>27</option>
-                               <option value="28"<!-- TMPL_IF NAME="day28" --> 
selected="selected"<!-- /TMPL_IF -->>28</option>
-                               <option value="29"<!-- TMPL_IF NAME="day29" --> 
selected="selected"<!-- /TMPL_IF -->>29</option>
-                               <option value="30"<!-- TMPL_IF NAME="day30" --> 
selected="selected"<!-- /TMPL_IF -->>30</option>
-                               <option value="31"<!-- TMPL_IF NAME="day31" --> 
selected="selected"<!-- /TMPL_IF -->>31</option>
-                       </select>
-                       <select name="month">
-                               <option value="0">Month</option>
-                               <option value="01"<!-- TMPL_IF NAME="month1" 
--> selected="selected"<!-- /TMPL_IF -->>Jan</option>
-                               <option value="02"<!-- TMPL_IF NAME="month2" 
--> selected="selected"<!-- /TMPL_IF -->>Feb</option>
-                               <option value="03"<!-- TMPL_IF NAME="month3" 
--> selected="selected"<!-- /TMPL_IF -->>Mar</option>
-                               <option value="04"<!-- TMPL_IF NAME="month4" 
--> selected="selected"<!-- /TMPL_IF -->>Apr</option>
-                               <option value="05"<!-- TMPL_IF NAME="month5" 
--> selected="selected"<!-- /TMPL_IF -->>May</option>
-                               <option value="06"<!-- TMPL_IF NAME="month6" 
--> selected="selected"<!-- /TMPL_IF -->>Jun</option>
-                               <option value="07"<!-- TMPL_IF NAME="month7" 
--> selected="selected"<!-- /TMPL_IF -->>Jul</option>
-                               <option value="08"<!-- TMPL_IF NAME="month8" 
--> selected="selected"<!-- /TMPL_IF -->>Aug</option>
-                               <option value="09"<!-- TMPL_IF NAME="month9" 
--> selected="selected"<!-- /TMPL_IF -->>Sep</option>
-                               <option value="10"<!-- TMPL_IF NAME="month10" 
--> selected="selected"<!-- /TMPL_IF -->>Oct</option>
-                               <option value="11"<!-- TMPL_IF NAME="month11" 
--> selected="selected"<!-- /TMPL_IF -->>Nov</option>
-                               <option value="12"<!-- TMPL_IF NAME="month12" 
--> selected="selected"<!-- /TMPL_IF -->>Dec</option>
-                       </select>
-                       <select name="year">
-                               <option value="0">Year</option>
-                               <option value="2004"<!-- TMPL_IF 
NAME="year2004" --> selected="selected"<!-- /TMPL_IF -->>2004</option>
-                               <option value="2005"<!-- TMPL_IF 
NAME="year2005" --> selected="selected"<!-- /TMPL_IF -->>2005</option>
-                               <option value="2006"<!-- TMPL_IF 
NAME="year2006" --> selected="selected"<!-- /TMPL_IF -->>2006</option>
-                               <option value="2007"<!-- TMPL_IF 
NAME="year2007" --> selected="selected"<!-- /TMPL_IF -->>2007</option>
-                               <option value="2008"<!-- TMPL_IF 
NAME="year2008" --> selected="selected"<!-- /TMPL_IF -->>2008</option>
-                       </select>
-               </p>
-               <p>
-               <input type="checkbox" name="stickyduedate" <!-- TMPL_VAR 
NAME="selected" -->> Sticky Due Date
-               <input type="hidden" name="borrnumber" value="<!-- TMPL_VAR 
NAME="borrowernumber" -->">
-               <input type="hidden" name="branch" value="<!-- TMPL_VAR 
NAME="branch" -->">
-               <input type="hidden" name="printer" value="<!-- TMPL_VAR 
NAME="printer" -->">
-               <input type="hidden" name="print" value="maybe">
+    <h2 class="circulation">Enter item barcode</h2>   
+       <form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="f">
+<label for="barcode">Barcode: </label><input name="barcode" size="14" 
maxlength="14" id="barcode" class="unfocus" onfocus="this.className='focus'" 
onblur="this.className='unfocus'" /> <input type="submit" value="Issue" 
class="button circulation" />
+<br />
+<br />
+       <div class="date-select">
+                       <label for "duedatespec">Specify Due Date:</label> 
<input type="text" size="10" id="duedatespec" name="duedatespec" value="<!-- 
TMPL_VAR NAME="duedatespec" -->" />                                             
           <img src="<!-- TMPL_VAR Name="themelang" 
-->/includes/calendar/cal.gif" border="0" id="CalendarDueDate" style="cursor: 
pointer;" valign="top" />
+                                                                <script 
language="JavaScript" type="text/javascript">
+                                                                        
function validate1(date) {
+                                                                               
                                                                                
var today = new Date();
+                                                                               
                                                                                
if ( date < today ) {
+                                                                               
         return true;
+                                                                               
 } else {
+                                                                               
         return false;
+                                                                               
 }
+                                                                        };
+                                                                       
function refocus(calendar) {
+                                                                               
document.getElementById('barcode').focus();
+                                                                               
calendar.hide();
+                                                                       };
+                                        
+                                                                        
Calendar.setup(
+                                                                               
 {
+                                                                               
         inputField : "duedatespec",
+                                                                               
         ifFormat : "%Y-%m-%d",
+                                                                               
         button : "CalendarDueDate",
+                                                                               
         disableFunc : validate1,
+                                                                               
         dateStatusFunc : validate1,
+                                                                               
        onClose : refocus
+                                                                               
 }
+                                                                        );
+                                                                </script>
+       
+               <label for="stickyduedate">Remember for Session:</label>
+               <input type="checkbox" id="stickyduedate" 
onclick="this.form.barcode.focus();" name="stickyduedate" <!-- TMPL_IF 
NAME="stickyduedate" --> checked="1" <!-- /TMPL_IF -->  /> 
+               <input type="button" class="button circulation" id="cleardate" 
value="Clear" name="cleardate" onclick="this.checked = false; 
this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; 
this.form.barcode.focus(); return false;" /> 
+               <input type="hidden" name="borrnumber" value="<!-- TMPL_VAR 
NAME="borrowernumber" -->" />
+               <input type="hidden" name="branch" value="<!-- TMPL_VAR 
NAME="branch" -->" />
+               <input type="hidden" name="printer" value="<!-- TMPL_VAR 
NAME="printer" -->" />
+               <input type="hidden" name="print" value="maybe" />
                <!-- TMPL_IF NAME="CHARGES" -->
                        <input type="hidden" name="charges" value="yes">
                        <input type="hidden" name="oldamount" value="<!-- 
TMPL_VAR NAME="amountold" -->">
                <!-- /TMPL_IF -->
-               </p>
+               </div>
        </form>
        </div>
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]