141 lines
6.1 KiB
Cheetah
141 lines
6.1 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" -->
|
|
</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/reports/tools-home.pl">Tools</a> › Koha News</div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
|
|
<div id="koha-news_main" class="searchresults">
|
|
<h1> OPAC and Koha News</h1>
|
|
<!-- 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" -->" />
|
|
<p>
|
|
<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>
|
|
</p>
|
|
<p>
|
|
<label for="title">Title</label>
|
|
<input id="title" size="30" type="text" name="title" value="<!-- TMPL_VAR NAME="title" -->" />
|
|
</p>
|
|
<p>
|
|
<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 : "%Y-%m-%d",
|
|
}
|
|
);
|
|
</script>
|
|
</p>
|
|
<p>
|
|
<label for="number">Appear in position </label>
|
|
<!-- TMPL_IF NAME="number"-->
|
|
<input id="number" size="3" name="number" type="text" checked="checked" />
|
|
<!-- TMPL_ELSE -->
|
|
<input id="number" size="3" name="number" type="text" />
|
|
<!-- /TMPL_IF -->
|
|
</p>
|
|
<p>News</p>
|
|
<textarea name="new" cols="75" rows="10"><!-- TMPL_VAR NAME="new" --></textarea>
|
|
<p>
|
|
<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'" />
|
|
</p>
|
|
</form>
|
|
</div>
|
|
<!-- TMPL_ELSE -->
|
|
<div id="koha-news_filter">
|
|
<form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" />
|
|
<label>Language</label>
|
|
<select name="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>
|
|
</div>
|
|
<!-- TMPL_IF NAME="opac_news_count" -->
|
|
<div id="koha-news_list">
|
|
<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" -->
|
|
<tr>
|
|
<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" --></td>
|
|
<td><!-- TMPL_VAR NAME="title" --></td>
|
|
<!-- TMPL_IF NAME="hasexpirated" -->
|
|
<td class="hasexpirated">
|
|
<!-- TMPL_ELSE -->
|
|
<td>
|
|
<!-- /TMPL_IF -->
|
|
<!-- 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>
|
|
</div>
|
|
<!-- TMPL_ELSE -->
|
|
<p>No news loaded</p>
|
|
<!-- /TMPL_IF -->
|
|
<div id="action">
|
|
<a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">Add news</a>
|
|
</div>
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
<!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|