1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Tools › 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 -->
7 <body class="yui-skin-sam">
8 <!-- TMPL_INCLUDE NAME="header.inc" -->
9 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
11 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/reports/tools-home.pl">Tools</a> › <!-- TMPL_IF NAME="add_form" --><a href="/cgi-bin/koha/tools/koha-news.pl">Koha News</a> › <!-- TMPL_IF NAME="id" -->
12 Edit News Item<!-- TMPL_ELSE -->Add News Item<!-- /TMPL_IF --><!-- TMPL_ELSE -->Koha News<!-- /TMPL_IF --></div>
14 <!-- TMPL_IF NAME="add_form" --><div id="doc" class="yui-t7"><!-- TMPL_ELSE --><div id="doc3" class="yui-t2"><!-- /TMPL_IF -->
19 <!-- TMPL_UNLESS NAME="add_form" --><!-- TMPL_INCLUDE NAME="tools-news-toolbar.inc" --><!-- /TMPL_UNLESS -->
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>
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 -->
37 <label for="title">Title</label>
38 <input id="title" size="30" type="text" name="title" value="<!-- TMPL_VAR NAME="title" -->" />
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">
46 inputField : "expirationdate",
47 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
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" -->" />
57 <input id="number" size="3" name="number" type="text" />
60 <li><label for="new">News</label>
61 <textarea name="new" id="new" cols="75" rows="10"><!-- TMPL_VAR NAME="new" --></textarea></li>
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'" />
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">
78 <option value="<!-- TMPL_VAR name="language" -->">
80 <!-- TMPL_VAR name="language" -->
84 <input type="submit" class="button" value="Filter" />
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?')">
93 <th>Creation Date</th>
94 <th>Expiration Date</th>
99 <!-- TMPL_LOOP NAME="opac_news" -->
100 <!-- TMPL_IF NAME="expired" -->
106 <input type="checkbox" name="ids" value="<!-- TMPL_VAR NAME="idnew" -->" />
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>
114 <!-- TMPL_VAR NAME="new" -->
116 <td><a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&id=<!-- TMPL_VAR NAME="idnew" -->">Edit</a></td>
120 <input type="hidden" name="op" value="del" />
121 <input type="submit" class="button" value="Delete selected" />
124 <p>No news loaded</p>
129 <!-- TMPL_UNLESS NAME="add_form" --><div class="yui-b">
130 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
131 </div><!-- /TMPL_UNLESS -->
133 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->