Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl
Paul POULAIN a35d66bc8c introducing a noprint class to hide things on printer
this noprint class can be used for all buttons & other places where the screen display something you don't want to see on printer.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-19 20:27:38 -06:00

150 lines
7 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Tools &rsaquo; 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> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <!-- TMPL_IF NAME="add_form" --><a href="/cgi-bin/koha/tools/koha-news.pl">Koha News</a> &rsaquo; <!-- 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" -->
<div id="toolbar">
<script type="text/javascript">
//<![CDATA[
// prepare DOM for YUI Toolbar
$(document).ready(function() {
yuiToolbar();
});
// YUI Toolbar Functions
function yuiToolbar() {
new YAHOO.widget.Button("newentry");
}
//]]>
</script>
<ul class="toolbar">
<li><a id="newentry" href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">New Entry</a></li>
</ul></div>
<!-- /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>
<fieldset class="action"><input class="button" type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/tools/koha-news.pl">Cancel</a></fieldset>
</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>&nbsp;</th>
<th>Language</th>
<th>Number</th>
<th>Creation Date</th>
<th>Expiration Date</th>
<th>Title</th>
<th>News</th>
<th>&nbsp;</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&amp;id=<!-- TMPL_VAR NAME="idnew" -->">Edit</a></td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<input type="hidden" name="op" value="del" />
<fieldset class="action"><input type="submit" class="button" value="Delete selected" /></fieldset>
</form>
<!-- TMPL_ELSE -->
<p>No news loaded</p>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</div>
</div>
<!-- TMPL_UNLESS NAME="add_form" -->
<div class="yui-b noprint">
<!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
</div>
<!-- /TMPL_UNLESS -->
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->