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/npl/en/barcodes se... [dev_week]


From: Mason James
Subject: [Koha-cvs] koha/koha-tmpl/intranet-tmpl/npl/en/barcodes se... [dev_week]
Date: Wed, 04 Jul 2007 12:33:06 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         dev_week
Changes by:     Mason James <sushi>     07/07/04 12:33:06

Modified files:
        koha-tmpl/intranet-tmpl/npl/en/barcodes: search.tmpl 

Log message:
        added calendar thing , does quite work now, missing include??

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/npl/en/barcodes/search.tmpl?cvsroot=koha&only_with_tag=dev_week&r1=1.1.2.2&r2=1.1.2.2.2.1

Patches:
Index: search.tmpl
===================================================================
RCS file: 
/sources/koha/koha/koha-tmpl/intranet-tmpl/npl/en/barcodes/Attic/search.tmpl,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.2.2.1
diff -u -b -r1.1.2.2 -r1.1.2.2.2.1
--- search.tmpl 13 Apr 2006 21:41:30 -0000      1.1.2.2
+++ search.tmpl 4 Jul 2007 12:33:05 -0000       1.1.2.2.2.1
@@ -1,4 +1,6 @@
 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Barcodes and Labels: 
Search<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+<!-- TMPL_INCLUDE NAME="masthead.inc" --> 
+
 <div id="main-compact">
 
 <h1>Catalogue Item Search</h1>
@@ -7,6 +9,7 @@
        <input type="hidden" name="op" value="do_search" />
        <input type="hidden" name="type" value="intranet" />
        <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR 
NAME="nbstatements" -->" />
+       <input type="hidden" name="batch_id" value="<!-- TMPL_VAR 
NAME="batch_id" -->" />
 
        <table>
        <tr><th scope="row">
@@ -30,6 +33,53 @@
                <input type="text" name="value" id="issn" />
            </td></tr>
        <tr><th scope="row">
+
+
+       <tr><th scope="row">
+               <label for="issn">Last Date Accessed</label>
+           </th>
+           <td>
+               <input type="hidden" name="marclist" 
value="items.dateaccessioned" />
+               <input type="hidden" name="and_or" value="and" />
+               <input type="hidden" name="excluding" value="" />
+               <input type="hidden" name="operator" value="=" />
+               <input type="text" name="value" id="issn" />
+           </td>
+<td>
+  <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" 
border="0" id="openCalendarFrom" style="cursor: pointer;" valign="top">
+                                <script language="JavaScript" 
type="text/javascript">
+                                    function validate1(date) {
+                                        var day = date.getDate();
+                                        var month = date.getMonth() + 1;
+                                        var year = date.getFullYear();
+                                        var weekDay = date.getDay();
+                                        var dayMonth = month + '-' + day;
+                                        var dateString = year + '-' + month + 
'-' + day;
+                                        var dateTo = 
document.getElementById('to').value.split("-");
+                                        var limitDate = new Date(dateTo[0], 
(dateTo[1] - 1), dateTo[2]);
+                                        if (date > limitDate) {
+                                            return true;
+                                        } else {
+                                            return false;
+                                        }
+                                    }
+                    
+                                    Calendar.setup(
+                                        {
+                                            inputField : "from",
+                                            ifFormat : "%Y-%m-%d",
+                                            button : "openCalendarFrom",
+                                            disableFunc : validate1,
+                                            dateStatusFunc : validate1
+                                        }
+                                    );
+                                </script>
+
+</td>
+
+
+    </tr>
+
                <label for="resultsperpage">Results per page:</label>
            </th>
            <td>
@@ -50,5 +100,10 @@
        </table>
 <p>            <input type="submit" value="Start search" class="submit" /></p>
 </form>
+fdfds
+ <!-- TMPL_VAR NAME="batch_id" -->
+sdg
+df
+
 </div>
 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
\ No newline at end of file




reply via email to

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