Owen Leonard
63cb08fc8d
Signed-off-by: Chris Cormack <crc@liblime.com> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
133 lines
6.7 KiB
Cheetah
133 lines
6.7 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Tools › Koha News</title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="calendar.inc" -->
|
|
<!-- TMPL_UNLESS NAME="add_form" --><!-- TMPL_INCLUDE NAME="yui-toolbars.inc" --><!-- /TMPL_UNLESS -->
|
|
</head>
|
|
<body>
|
|
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/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" -->
|
|
Edit News Item<!-- TMPL_ELSE -->Add News Item<!-- /TMPL_IF --><!-- TMPL_ELSE -->Koha News<!-- /TMPL_IF --></div>
|
|
|
|
<!-- TMPL_IF NAME="add_form" --><div id="doc" class="yui-t7"><!-- TMPL_ELSE --><div id="doc3" class="yui-t2"><!-- /TMPL_IF -->
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
<!-- TMPL_UNLESS NAME="add_form" --><!-- TMPL_INCLUDE NAME="tools-news-toolbar.inc" --><!-- /TMPL_UNLESS -->
|
|
|
|
<!-- TMPL_IF name="add_form" -->
|
|
<form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" >
|
|
<input type="hidden" name="op" value="<!-- TMPL_VAR NAME="op" -->" />
|
|
<input type="hidden" name="id" value="<!-- TMPL_VAR NAME="id" -->" />
|
|
<fieldset class="rows">
|
|
<legend>OPAC and Koha News</legend>
|
|
<ol> <li>
|
|
<label for="lang">Language</label>
|
|
<select id="lang" name="lang">
|
|
<option value="koha">Librarian interface</option>
|
|
<!-- TMPL_LOOP name="lang_list" -->
|
|
<!-- 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 -->
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
</li>
|
|
<li>
|
|
<label for="title">Title</label>
|
|
<input id="title" size="30" type="text" name="title" value="<!-- TMPL_VAR NAME="title" -->" />
|
|
</li>
|
|
<li>
|
|
<label for="expirationdate">Expiration date</label>
|
|
<input id="expirationdate" type="text" name="expirationdate" value="<!-- TMPL_VAR NAME="expirationdate" -->" />
|
|
<script type="text/javascript">
|
|
Calendar.setup(
|
|
{
|
|
inputField : "expirationdate",
|
|
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
|
|
}
|
|
);
|
|
</script>
|
|
</li>
|
|
<li>
|
|
<label for="number">Appear in position </label>
|
|
<!-- TMPL_IF NAME="number"-->
|
|
<input id="number" size="3" name="number" type="text" checked="checked" value="<!-- TMPL_VAR NAME="number" -->" />
|
|
<!-- TMPL_ELSE -->
|
|
<input id="number" size="3" name="number" type="text" />
|
|
<!-- /TMPL_IF -->
|
|
</li>
|
|
<li><label for="new">News</label>
|
|
<textarea name="new" id="new" cols="75" rows="10"><!-- TMPL_VAR NAME="new" --></textarea></li>
|
|
</ol>
|
|
</fieldset>
|
|
|
|
<input class="button" type="submit" value="Save" />
|
|
<input class="button" type="button" value="Cancel" onclick="window.location.href='/cgi-bin/koha/tools/opac-news.pl'" />
|
|
</form>
|
|
<!-- TMPL_ELSE -->
|
|
<form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl">
|
|
<label for="lang">Language</label>
|
|
<select name="lang" id="lang">
|
|
<option value="">All</option>
|
|
<option value="koha">Librarian interface</option>
|
|
<!-- TMPL_LOOP name="lang_list" -->
|
|
<!-- TMPL_IF name="selected" -->
|
|
<option value="<!-- TMPL_VAR name="language" -->" selected="selected">
|
|
<!-- TMPL_ELSE -->
|
|
<option value="<!-- TMPL_VAR name="language" -->">
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_VAR name="language" -->
|
|
</option>
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
<input type="submit" class="button" value="Filter" />
|
|
</form>
|
|
<!-- TMPL_IF NAME="opac_news_count" -->
|
|
<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?')">
|
|
<table>
|
|
<tr>
|
|
<th> </th>
|
|
<th>Language</th>
|
|
<th>Number</th>
|
|
<th>Creation Date</th>
|
|
<th>Expiration Date</th>
|
|
<th>Title</th>
|
|
<th>News</th>
|
|
<th> </th>
|
|
</tr>
|
|
<!-- TMPL_LOOP NAME="opac_news" -->
|
|
<!-- TMPL_IF NAME="expired" -->
|
|
<tr class="expired">
|
|
<!-- TMPL_ELSE -->
|
|
<tr>
|
|
<!-- /TMPL_IF -->
|
|
<td>
|
|
<input type="checkbox" name="ids" value="<!-- TMPL_VAR NAME="idnew" -->" />
|
|
</td>
|
|
<td><!-- TMPL_VAR NAME="lang" --></td>
|
|
<td><!-- TMPL_VAR NAME="number" --></td>
|
|
<td><!-- TMPL_VAR NAME="newdate" --></td>
|
|
<td><!-- TMPL_VAR NAME="expirationdate" --> <!-- TMPL_IF NAME="expired" -->(<span class="expired">expired</span>)<!-- /TMPL_IF --></td>
|
|
<td><!-- TMPL_VAR NAME="title" --></td>
|
|
<td>
|
|
<!-- TMPL_VAR NAME="new" -->
|
|
</td>
|
|
<td><a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&id=<!-- TMPL_VAR NAME="idnew" -->">Edit</a></td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
<input type="hidden" name="op" value="del" />
|
|
<input type="submit" class="button" value="Delete selected" />
|
|
</form>
|
|
<!-- TMPL_ELSE -->
|
|
<p>No news loaded</p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_UNLESS NAME="add_form" --><div class="yui-b">
|
|
<!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
|
|
</div><!-- /TMPL_UNLESS -->
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|