Moving inline script blocks to <head> where possible
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / koha-news.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; News Management</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- Additions to enable Calendar system -->
5 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
6 <!-- End of additions --><!-- Additions to enable Calendar system -->
7 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
8 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
9 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
10 <!-- End of additions -->
11 </head>
12 <body>
13 <!-- TMPL_INCLUDE NAME="header.inc" -->
14 <!-- TMPL_INCLUDE NAME="menu-tools.inc" -->
15
16
17 <div id="doc3" class="yui-t2">
18    
19    <div id="bd">
20         <div id="yui-main">
21         <div class="yui-b"><div class="yui-g">
22
23
24 <div id="koha-news_main" class="searchresults">
25     <h1> OPAC &amp; KOHA News</h1>
26     <!-- TMPL_IF name="add_form" -->
27         <form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" >
28             <input type="hidden" name="op" value="<!-- TMPL_VAR NAME="op" -->" />
29             <input type="hidden" name="id" value="<!-- TMPL_VAR NAME="id" -->" />
30             <p>
31             <label for="lang">Language</label>
32             <select id="lang" name="lang">
33                 <option value="koha">Librarian interface</option>
34                 <!-- TMPL_LOOP name="lang_list" -->
35                     <!-- TMPL_IF name="selected" -->
36                         <option value="<!-- TMPL_VAR name="language" -->" selected="selected">
37                     <!-- TMPL_ELSE -->
38                         <option value="<!-- TMPL_VAR name="language" -->">
39                     <!-- /TMPL_IF -->
40                         <!-- TMPL_VAR name="language" -->
41                     </option>
42                 <!-- /TMPL_LOOP" -->
43             </select>
44             </p>
45             <p>
46                 <label for="title">Title</label>
47                 <input id="title" size="30" type="text" name="title" value="<!-- TMPL_VAR NAME="title" -->" />
48             </p>
49             <p>
50                 <label for="expirationdate">Expiration date</label>
51                 <input id="expirationdate" type="text" name="expirationdate" value="<!-- TMPL_VAR NAME="expirationdate" -->" />
52                 <script type="text/javascript">
53                     Calendar.setup(
54                     {
55                         inputField : "expirationdate",
56                         ifFormat : "%Y-%m-%d",
57                     }
58                     );
59                 </script>
60             </p>
61             <p>
62                 <label for="number">Appear in position </label>
63                 <!-- TMPL_IF NAME="number"-->
64                     <input id="number" size="3" name="number" type="text" checked="1" />
65                 <!-- TMPL_ELSE -->
66                     <input id="number" size="3" name="number" type="text" />
67                 <!-- /TMPL_IF -->
68             </p>
69             <p>News</p>
70             <textarea name="new" cols="75" rows="10"><!-- TMPL_VAR NAME="new" --></textarea>
71             <p>
72                 <input class="button" type="submit" value="Save" />
73                 <input class="button" type="button" value="Cancel" onclick="window.location.href='/cgi-bin/koha/tools/opac-news.pl'" />
74             </p>
75         </form>
76                 </div>
77     <!-- TMPL_ELSE -->
78         <div id="koha-news_filter">
79             <form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" />
80             <label>Language</label>
81             <select name="lang">
82             <option value="">All</option>
83             <option value="koha">Librarian interface</option>
84                 <!-- TMPL_LOOP name="lang_list" -->
85                     <!-- TMPL_IF name="selected" -->
86                         <option value="<!-- TMPL_VAR name="language" -->" selected />
87                     <!-- TMPL_ELSE -->
88                         <option value="<!-- TMPL_VAR name="language" -->" />
89                     <!-- /TMPL_IF -->
90                         <!-- TMPL_VAR name="language" -->
91                     </option>
92                 <!-- /TMPL_LOOP" -->
93             </select>
94             <input type="submit" class="button" value="Filter">
95             </form>
96         </div>
97         <!-- TMPL_IF NAME="opac_news_count" -->
98         <div id="koha-news_list">
99             <form name="del_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" onsubmit="return confirm('Are you sure you want to delete the selected news?')">
100                 <table>
101                     <tr>
102                         <th></th>
103                         <th>Language</th>
104                         <th>Number</th>
105                         <th>Creation Date</th>
106                         <th>Expiration Date</th>
107                         <th>Title</th>
108                         <th>News</th>
109                         <th></th>
110                     </tr>
111                     <!-- TMPL_LOOP NAME="opac_news" -->
112                         <tr>
113                             <td>
114                                 <input type="checkbox" name="ids" value="<!-- TMPL_VAR NAME="idnew" -->" />
115                             </td>
116                             <td><!-- TMPL_VAR NAME="lang" --></td>
117                             <td><!-- TMPL_VAR NAME="number" --></td>
118                             <td><!-- TMPL_VAR NAME="newdate" --></td>
119                             <td><!-- TMPL_VAR NAME="expirationdate" --></td>
120                             <td><!-- TMPL_VAR NAME="title" --></td>
121                             <!-- TMPL_IF NAME="hasexpirated" -->
122                             <td class="hasexpirated">
123                             <!-- TMPL_ELSE -->
124                             <td>
125                             <!-- /TMPL_IF -->
126                                 <!-- TMPL_VAR NAME="new" -->
127                             </td>
128                             <td>
129                                 <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=<!-- TMPL_VAR NAME="idnew" -->">
130                                     Edit
131                                 </a>
132                             </td>
133                         </tr>
134                     <!-- /TMPL_LOOP -->
135                 </table>
136                 <input type="hidden" name="op" value="del" />
137                 <input type="submit" class="button" value="Delete selected" />
138             </form>
139                         </div>
140         <!-- TMPL_ELSE -->
141             <p>No news loaded</p>
142         <!-- /TMPL_IF -->
143         <div id="action">
144           <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">Add news</a>
145         </div>
146                 </div>
147     <!-- /TMPL_IF -->
148
149
150 </div>
151 </div>
152 </div>
153
154 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
155 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->