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