Enabling yuipath system preference for choosing local or Yahoo-hosted YUI js library...
[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" --><!-- TMPL_INCLUDE NAME="tools-news-toolbar.inc" --><!-- /TMPL_UNLESS -->
19
20 <!-- TMPL_IF name="add_form" -->
21         <form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" >
22             <input type="hidden" name="op" value="<!-- TMPL_VAR NAME="op" -->" />
23             <input type="hidden" name="id" value="<!-- TMPL_VAR NAME="id" -->" />
24                         <fieldset class="rows">
25                         <legend>OPAC and Koha News</legend>
26            <ol> <li>
27             <label for="lang">Language</label>
28             <select id="lang" name="lang">
29                 <option value="koha">Librarian interface</option>
30                 <!-- TMPL_LOOP name="lang_list" -->
31                     <!-- 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 -->
32                 <!-- /TMPL_LOOP -->
33             </select>
34             </li>
35             <li>
36                 <label for="title">Title</label>
37                 <input id="title" size="30" type="text" name="title" value="<!-- TMPL_VAR NAME="title" -->" />
38             </li>
39             <li>
40                 <label for="expirationdate">Expiration date</label>
41                 <input id="expirationdate" type="text" name="expirationdate" value="<!-- TMPL_VAR NAME="expirationdate" -->" />
42                 <script type="text/javascript">
43                     Calendar.setup(
44                     {
45                         inputField : "expirationdate",
46                         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
47                     }
48                     );
49                 </script>
50             </li>
51             <li>
52                 <label for="number">Appear in position </label>
53                 <!-- TMPL_IF NAME="number"-->
54                     <input id="number" size="3" name="number" type="text" checked="checked" value="<!-- TMPL_VAR NAME="number"  -->" />
55                 <!-- TMPL_ELSE -->
56                     <input id="number" size="3" name="number" type="text" />
57                 <!-- /TMPL_IF -->
58             </li>
59             <li><label for="new">News</label>
60             <textarea name="new" id="new"  cols="75" rows="10"><!-- TMPL_VAR NAME="new" --></textarea></li>
61             </ol>
62                         </fieldset>
63   
64                 <input class="button" type="submit" value="Save" />
65                 <input class="button" type="button" value="Cancel" onclick="window.location.href='/cgi-bin/koha/tools/opac-news.pl'" />
66         </form>
67     <!-- TMPL_ELSE -->
68         <form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl">
69             <label for="lang">Language</label>
70             <select name="lang" id="lang">
71             <option value="">All</option>
72             <option value="koha">Librarian interface</option>
73                 <!-- TMPL_LOOP name="lang_list" -->
74                     <!-- TMPL_IF name="selected" -->
75                         <option value="<!-- TMPL_VAR name="language" -->" selected="selected">
76                     <!-- TMPL_ELSE -->
77                         <option value="<!-- TMPL_VAR name="language" -->">
78                     <!-- /TMPL_IF -->
79                         <!-- TMPL_VAR name="language" -->
80                     </option>
81                 <!-- /TMPL_LOOP -->
82             </select>
83             <input type="submit" class="button" value="Filter" />
84             </form>
85         <!-- TMPL_IF NAME="opac_news_count" -->
86         <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?')">
87                 <table>
88                     <tr>
89                         <th>&nbsp;</th>
90                         <th>Language</th>
91                         <th>Number</th>
92                         <th>Creation Date</th>
93                         <th>Expiration Date</th>
94                         <th>Title</th>
95                         <th>News</th>
96                         <th>&nbsp;</th>
97                     </tr>
98                     <!-- TMPL_LOOP NAME="opac_news" -->
99                          <!-- TMPL_IF NAME="expired" -->
100                             <tr class="expired">
101                             <!-- TMPL_ELSE -->
102                             <tr>
103                             <!-- /TMPL_IF -->
104                             <td>
105                                 <input type="checkbox" name="ids" value="<!-- TMPL_VAR NAME="idnew" -->" />
106                             </td>
107                             <td><!-- TMPL_VAR NAME="lang" --></td>
108                             <td><!-- TMPL_VAR NAME="number" --></td>
109                             <td><!-- TMPL_VAR NAME="newdate" --></td>
110                             <td><!-- TMPL_VAR NAME="expirationdate" --> <!-- TMPL_IF NAME="expired" -->(<span class="expired">expired</span>)<!-- /TMPL_IF --></td>
111                             <td><!-- TMPL_VAR NAME="title" --></td>
112                            <td>
113                                 <!-- TMPL_VAR NAME="new" -->
114                             </td>
115                             <td><a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=<!-- TMPL_VAR NAME="idnew" -->">Edit</a></td>
116                         </tr>
117                     <!-- /TMPL_LOOP -->
118                 </table>
119                 <input type="hidden" name="op" value="del" />
120                 <input type="submit" class="button" value="Delete selected" />
121             </form>
122         <!-- TMPL_ELSE -->
123             <p>No news loaded</p>
124         <!-- /TMPL_IF -->
125     <!-- /TMPL_IF -->
126 </div>
127 </div>
128 <!-- TMPL_UNLESS NAME="add_form" --><div class="yui-b">
129 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
130 </div><!-- /TMPL_UNLESS -->
131 </div>
132 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->