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 type="text/javascript" src="[% themelang %]/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
17 <script type="text/javascript">
21 content_css : "[% themelang %]/css/tinymce.css",
22 plugins : "table,save,advhr,advlink,iespell,searchreplace,print,contextmenu",
23 theme_advanced_buttons1 : "save,|,bold,italic,|,cut,copy,paste,|,search,replace,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,|,link,unlink,anchor,cleanup,help,code,advhr,|,print",
24 theme_advanced_buttons2 : "tablecontrols,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,|,visualaid,|,sub,sup,|,charmap",
25 theme_advanced_buttons3 : "",
26 theme_advanced_toolbar_location : "top",
27 theme_advanced_toolbar_align : "left",
28 theme_advanced_path_location : "bottom",
29 theme_advanced_resizing : true,
30 plugin_insertdate_dateFormat : "%Y-%m-%d",
31 plugin_insertdate_timeFormat : "%H:%M:%S",
32 apply_source_formatting : true,
38 <body id="tools_koha-news" class="tools">
39 [% INCLUDE 'header.inc' %]
40 [% INCLUDE 'cat-search.inc' %]
42 <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 ) %]
43 Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %]</div>
45 [% IF ( add_form ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
50 [% UNLESS ( add_form ) %]
52 <script type="text/javascript">
54 // prepare DOM for YUI Toolbar
55 $(document).ready(function() {
58 // YUI Toolbar Functions
59 function yuiToolbar() {
60 new YAHOO.widget.Button("newentry");
65 <li><a id="newentry" href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">New Entry</a></li>
70 <form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" >
71 <input type="hidden" name="op" value="[% op %]" />
72 <input type="hidden" name="id" value="[% id %]" />
73 <fieldset class="rows">
74 <legend>OPAC and Koha news</legend>
76 <label for="lang">Display location</label>
77 <select id="lang" name="lang">
78 <option value="koha">Librarian interface</option>
79 [% IF ( slip ) %]<option value="slip" selected="selected">Slip</option>[% ELSE %]<option value="slip">Slip</option>[% END %]
80 [% FOREACH lang_lis IN lang_list %]
81 [% 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 %]
86 <label for="title">Title</label>
87 <input id="title" size="30" type="text" name="title" value="[% new_detail.title %]" />
90 <label for="from">Publication date</label>
91 <input id="from" type="text" name="timestamp" size="15" value="[% new_detail.timestamp %]" class="datepickerfrom" />
92 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
95 <label for="to">Expiration date</label>
96 <input id="to" type="text" name="expirationdate" size="15" value="[% new_detail.expirationdate %]" class="datepickerto" />
97 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
100 <label for="number">Appear in position </label>
101 [% IF ( new_detail.number ) %]
102 <input id="number" size="3" name="number" type="text" checked="checked" value="[% new_detail.number %]" />
104 <input id="number" size="3" name="number" type="text" />
107 <li><label for="new">News</label>
108 <textarea name="new" id="new" cols="75" rows="10">[% new_detail.new %]</textarea></li>
112 <fieldset class="action"><input class="button" type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/tools/koha-news.pl">Cancel</a></fieldset>
115 <div style="margin-bottom:5px;">
116 <form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" >
117 <label for="lang">Display location:</label>
118 <select name="lang" id="lang">
119 <option value="">All</option>
120 <option value="koha">Librarian interface</option>
121 <option value="slip">Slip</option>
122 [% FOREACH lang_lis IN lang_list %]
123 [% IF ( lang_lis.selected ) %]
124 <option value="[% lang_lis.language %]" selected="selected">
126 <option value="[% lang_lis.language %]">
128 OPAC ([% lang_lis.language %])
132 <input type="submit" class="button" value="Filter" />
135 [% IF ( opac_news_count ) %]
136 <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?')">
142 <th>Creation date</th>
143 <th>Expiration date</th>
148 <tbody>[% FOREACH opac_new IN opac_news %]
149 [% IF ( opac_new.expired ) %]
155 <input type="checkbox" name="ids" value="[% opac_new.idnew %]" />
157 <td>[% IF ( opac_new.lang == 'koha' ) %]
160 [% IF ( opac_new.lang == 'slip' ) %]
168 <td>[% opac_new.number %]</td>
169 <td>[% opac_new.newdate %]</td>
170 <td>[% opac_new.expirationdate %] [% IF ( opac_new.expired ) %](<span class="expired">expired</span>)[% END %]</td>
171 <td>[% opac_new.title %]</td>
175 <td><a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&id=[% opac_new.idnew %]">Edit</a></td>
179 <input type="hidden" name="op" value="del" />
180 <fieldset class="action"><input type="submit" class="button" value="Delete selected" /></fieldset>
183 <p>No news loaded</p>
188 [% UNLESS ( add_form ) %]
189 <div class="yui-b noprint">
190 [% INCLUDE 'tools-menu.inc' %]
194 [% INCLUDE 'intranet-bottom.inc' %]