1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Tools › News</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
6 <script type="text/javascript">//<![CDATA[
7 $(document).ready(function() {
8 $("#newst").tablesorter({[% IF ( dateformat == 'metric' ) %]
9 dateFormat: 'uk',[% END %]
11 headers: { 0: {sorter:false},6: { sorter: false },7: { sorter: false }}
16 <script language="javascript" type="text/javascript" src="[% themelang %]/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
17 <script language="javascript" type="text/javascript">
21 plugins : "table,save,advhr,advlink,iespell,searchreplace,print,contextmenu",
22 theme_advanced_disable : "underline,strikethrough,styleselect,image",
23 theme_advanced_buttons1_add_before : "save,separator",
24 theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
25 theme_advanced_buttons3_add_before : "tablecontrols,separator",
26 theme_advanced_buttons3_add : "iespell,advhr,separator,print",
27 theme_advanced_toolbar_location : "top",
28 theme_advanced_toolbar_align : "left",
29 theme_advanced_path_location : "bottom",
30 plugin_insertdate_dateFormat : "%Y-%m-%d",
31 plugin_insertdate_timeFormat : "%H:%M:%S",
32 apply_source_formatting : true
37 [% INCLUDE 'header.inc' %]
38 [% INCLUDE 'cat-search.inc' %]
40 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › [% IF ( add_form ) %]<a href="/cgi-bin/koha/tools/koha-news.pl">News</a> › [% IF ( id ) %]
41 Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %]</div>
43 [% IF ( add_form ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
48 [% UNLESS ( add_form ) %]
50 <script type="text/javascript">
52 // prepare DOM for YUI Toolbar
53 $(document).ready(function() {
56 // YUI Toolbar Functions
57 function yuiToolbar() {
58 new YAHOO.widget.Button("newentry");
63 <li><a id="newentry" href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">New Entry</a></li>
68 <form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" >
69 <input type="hidden" name="op" value="[% op %]" />
70 <input type="hidden" name="id" value="[% id %]" />
71 <fieldset class="rows">
72 <legend>OPAC and Koha News</legend>
74 <label for="lang">Display Location</label>
75 <select id="lang" name="lang">
76 <option value="koha">Librarian interface</option>
77 [% IF ( slip ) %]<option value="slip" selected="selected">Slip</option>[% ELSE %]<option value="slip">Slip</option>[% END %]
78 [% FOREACH lang_lis IN lang_list %]
79 [% IF ( lang_lis.selected ) %]<option value="[% lang_lis.language %]" selected="selected">OPAC ([% lang_lis.language %])</option>[% ELSE %]<option value="[% lang_lis.language %]">OPAC ([% lang_lis.language %])</option>[% END %]
84 <label for="title">Title</label>
85 <input id="title" size="30" type="text" name="title" value="[% title %]" />
88 <label for="timestamp">Publication date</label>
89 <input id="timestamp" type="text" name="timestamp" size="15" value="[% timestamp %]" />
90 <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="timestampButton" style="cursor: pointer;" />
91 <script type="text/javascript">
94 button : "timestampButton",
95 inputField : "timestamp",
96 ifFormat : "[% DHTMLcalendar_dateformat %]"
100 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
103 <label for="expirationdate">Expiration date</label>
104 <input id="expirationdate" type="text" name="expirationdate" size="15" value="[% expirationdate %]" />
105 <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="openCalendar" style="cursor: pointer;" />
106 <script type="text/javascript">
109 button : "openCalendar",
110 inputField : "expirationdate",
111 ifFormat : "[% DHTMLcalendar_dateformat %]"
115 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
118 <label for="number">Appear in position </label>
120 <input id="number" size="3" name="number" type="text" checked="checked" value="[% number %]" />
122 <input id="number" size="3" name="number" type="text" />
125 <li><label for="new">News</label>
126 <textarea name="new" id="new" cols="75" rows="10">[% new %]</textarea></li>
130 <fieldset class="action"><input class="button" type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/tools/koha-news.pl">Cancel</a></fieldset>
133 <div style="margin-bottom:5px;">
134 <form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" >
135 <label for="lang">Display Location:</label>
136 <select name="lang" id="lang">
137 <option value="">All</option>
138 <option value="koha">Librarian interface</option>
139 <option value="slip">Slip</option>
140 [% FOREACH lang_lis IN lang_list %]
141 [% IF ( lang_lis.selected ) %]
142 <option value="[% lang_lis.language %]" selected="selected">
144 <option value="[% lang_lis.language %]">
146 OPAC ([% lang_lis.language %])
150 <input type="submit" class="button" value="Filter" />
153 [% IF ( opac_news_count ) %]
154 <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?')">
160 <th>Creation Date</th>
161 <th>Expiration Date</th>
166 <tbody>[% FOREACH opac_new IN opac_news %]
167 [% IF ( opac_new.expired ) %]
173 <input type="checkbox" name="ids" value="[% opac_new.idnew %]" />
175 <td>[% IF ( opac_new.lang == 'koha' ) %]
178 [% IF ( opac_new.lang == 'slip' ) %]
186 <td>[% opac_new.number %]</td>
187 <td>[% opac_new.newdate %]</td>
188 <td>[% opac_new.expirationdate %] [% IF ( opac_new.expired ) %](<span class="expired">expired</span>)[% END %]</td>
189 <td>[% opac_new.title %]</td>
193 <td><a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&id=[% opac_new.idnew %]">Edit</a></td>
197 <input type="hidden" name="op" value="del" />
198 <fieldset class="action"><input type="submit" class="button" value="Delete selected" /></fieldset>
201 <p>No news loaded</p>
206 [% UNLESS ( add_form ) %]
207 <div class="yui-b noprint">
208 [% INCLUDE 'tools-menu.inc' %]
212 [% INCLUDE 'intranet-bottom.inc' %]