Partial commit to add Create-Label-Batch-from-Import-Batch
[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; Tools &rsaquo; Koha News</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
5 </head>
6 <body>
7 <!-- TMPL_INCLUDE NAME="header.inc" -->
8 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
9
10 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <!-- TMPL_IF NAME="add_form" --><a href="/cgi-bin/koha/tools/koha-news.pl">Koha News</a> &rsaquo; <!-- TMPL_IF NAME="id" -->
11 Edit News Item<!-- TMPL_ELSE -->Add News Item<!-- /TMPL_IF --><!-- TMPL_ELSE -->Koha News<!-- /TMPL_IF --></div>
12
13 <!-- TMPL_IF NAME="add_form" --><div id="doc" class="yui-t7"><!-- TMPL_ELSE --><div id="doc3" class="yui-t2"><!-- /TMPL_IF -->
14    <div id="bd">
15         <div id="yui-main">
16         <div class="yui-b">
17  
18 <!-- TMPL_UNLESS NAME="add_form" -->
19 <div id="toolbar">
20         <script type="text/javascript">
21         //<![CDATA[
22         // prepare DOM for YUI Toolbar
23          $(document).ready(function() {
24             yuiToolbar();
25          });
26         // YUI Toolbar Functions
27         function yuiToolbar() {
28             new YAHOO.widget.Button("newentry");
29         }
30         //]]>
31         </script>
32         <ul class="toolbar">
33         <li><a id="newentry" href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">New Entry</a></li>
34 </ul></div>
35 <!-- /TMPL_UNLESS -->
36
37 <!-- TMPL_IF name="add_form" -->
38         <form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" >
39             <input type="hidden" name="op" value="<!-- TMPL_VAR NAME="op" -->" />
40             <input type="hidden" name="id" value="<!-- TMPL_VAR NAME="id" -->" />
41                         <fieldset class="rows">
42                         <legend>OPAC and Koha News</legend>
43            <ol> <li>
44             <label for="lang">Language</label>
45             <select id="lang" name="lang">
46                 <option value="koha">Librarian interface</option>
47                 <!-- TMPL_LOOP name="lang_list" -->
48                     <!-- TMPL_IF name="selected" --><option value="<!-- TMPL_VAR name="language" -->" selected="selected"><!-- TMPL_VAR name="language" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR name="language" -->"><!-- TMPL_VAR name="language" --></option><!-- /TMPL_IF -->
49                 <!-- /TMPL_LOOP -->
50             </select>
51             </li>
52             <li>
53                 <label for="title">Title</label>
54                 <input id="title" size="30" type="text" name="title" value="<!-- TMPL_VAR NAME="title" -->" />
55             </li>
56             <li>
57                 <label for="expirationdate">Expiration date</label>
58                 <input id="expirationdate" type="text" name="expirationdate" value="<!-- TMPL_VAR NAME="expirationdate" -->" />
59                 <script type="text/javascript">
60                     Calendar.setup(
61                     {
62                         inputField : "expirationdate",
63                         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
64                     }
65                     );
66                 </script>
67             </li>
68             <li>
69                 <label for="number">Appear in position </label>
70                 <!-- TMPL_IF NAME="number"-->
71                     <input id="number" size="3" name="number" type="text" checked="checked" value="<!-- TMPL_VAR NAME="number"  -->" />
72                 <!-- TMPL_ELSE -->
73                     <input id="number" size="3" name="number" type="text" />
74                 <!-- /TMPL_IF -->
75             </li>
76             <li><label for="new">News</label>
77             <textarea name="new" id="new"  cols="75" rows="10"><!-- TMPL_VAR NAME="new" --></textarea></li>
78             </ol>
79                         </fieldset>
80   
81                 <fieldset class="action"><input class="button" type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/tools/koha-news.pl">Cancel</a></fieldset>
82         </form>
83     <!-- TMPL_ELSE -->
84         <form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl">
85             <label for="lang">Display Location:</label>
86             <select name="lang" id="lang">
87             <option value="">All</option>
88             <option value="koha">Librarian interface</option>
89                 <!-- TMPL_LOOP name="lang_list" -->
90                     <!-- TMPL_IF name="selected" -->
91                         <option value="<!-- TMPL_VAR name="language" -->" selected="selected">
92                     <!-- TMPL_ELSE -->
93                         <option value="<!-- TMPL_VAR name="language" -->">
94                     <!-- /TMPL_IF -->
95                         <!-- TMPL_VAR name="language" -->
96                     </option>
97                 <!-- /TMPL_LOOP -->
98             </select>
99             <input type="submit" class="button" value="Filter" />
100             </form>
101         <!-- TMPL_IF NAME="opac_news_count" -->
102         <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?')">
103                 <table>
104                     <tr>
105                         <th>&nbsp;</th>
106                         <th>Language</th>
107                         <th>Number</th>
108                         <th>Creation Date</th>
109                         <th>Expiration Date</th>
110                         <th>Title</th>
111                         <th>News</th>
112                         <th>&nbsp;</th>
113                     </tr>
114                     <!-- TMPL_LOOP NAME="opac_news" -->
115                          <!-- TMPL_IF NAME="expired" -->
116                             <tr class="expired">
117                             <!-- TMPL_ELSE -->
118                             <tr>
119                             <!-- /TMPL_IF -->
120                             <td>
121                                 <input type="checkbox" name="ids" value="<!-- TMPL_VAR NAME="idnew" -->" />
122                             </td>
123                             <td><!-- TMPL_VAR NAME="lang" --></td>
124                             <td><!-- TMPL_VAR NAME="number" --></td>
125                             <td><!-- TMPL_VAR NAME="newdate" --></td>
126                             <td><!-- TMPL_VAR NAME="expirationdate" --> <!-- TMPL_IF NAME="expired" -->(<span class="expired">expired</span>)<!-- /TMPL_IF --></td>
127                             <td><!-- TMPL_VAR NAME="title" --></td>
128                            <td>
129                                 <!-- TMPL_VAR NAME="new" -->
130                             </td>
131                             <td><a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=<!-- TMPL_VAR NAME="idnew" -->">Edit</a></td>
132                         </tr>
133                     <!-- /TMPL_LOOP -->
134                 </table>
135                 <input type="hidden" name="op" value="del" />
136                 <fieldset class="action"><input type="submit" class="button" value="Delete selected" /></fieldset>
137             </form>
138         <!-- TMPL_ELSE -->
139             <p>No news loaded</p>
140         <!-- /TMPL_IF -->
141     <!-- /TMPL_IF -->
142 </div>
143 </div>
144 <!-- TMPL_UNLESS NAME="add_form" -->
145     <div class="yui-b noprint">
146         <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
147     </div>
148 <!-- /TMPL_UNLESS -->
149 </div>
150 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->