1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › News Management</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
6 <!-- TMPL_INCLUDE NAME="header.inc" -->
7 <!-- TMPL_INCLUDE NAME="menu-tools.inc" -->
9 <!-- Additions to enable Calendar system -->
10 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
11 <!-- End of additions --><!-- Additions to enable Calendar system -->
12 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
13 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
14 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
15 <!-- End of additions -->
17 <div id="doc3" class="yui-t2">
21 <div class="yui-b"><div class="yui-g">
24 <div id="koha-news_main" class="searchresults">
25 <h1> OPAC & 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" -->" />
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">
38 <option value="<!-- TMPL_VAR name="language" -->">
40 <!-- TMPL_VAR name="language" -->
46 <label for="title">Title</label>
47 <input id="title" size="30" type="text" name="title" value="<!-- TMPL_VAR NAME="title" -->" />
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">
55 inputField : "expirationdate",
56 ifFormat : "%Y-%m-%d",
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" />
66 <input id="number" size="3" name="number" type="text" />
70 <textarea name="new" cols="75" rows="10"><!-- TMPL_VAR NAME="new" --></textarea>
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'" />
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>
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 />
88 <option value="<!-- TMPL_VAR name="language" -->" />
90 <!-- TMPL_VAR name="language" -->
94 <input type="submit" class="button" value="Filter">
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?')">
105 <th>Creation Date</th>
106 <th>Expiration Date</th>
111 <!-- TMPL_LOOP NAME="opac_news" -->
114 <input type="checkbox" name="ids" value="<!-- TMPL_VAR NAME="idnew" -->" />
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">
126 <!-- TMPL_VAR NAME="new" -->
129 <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&id=<!-- TMPL_VAR NAME="idnew" -->">
136 <input type="hidden" name="op" value="del" />
137 <input type="submit" class="button" value="Delete selected" />
141 <p>No news loaded</p>
144 <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">Add news</a>
154 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
155 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->