<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
- theme : "advanced",
+ theme : "advanced",
+ content_css : "[% themelang %]/css/tinymce.css",
plugins : "table,save,advhr,advlink,iespell,searchreplace,print,contextmenu",
- theme_advanced_disable : "underline,strikethrough,styleselect,image",
- theme_advanced_buttons1_add_before : "save,separator",
- theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
- theme_advanced_buttons3_add_before : "tablecontrols,separator",
- theme_advanced_buttons3_add : "iespell,advhr,separator,print",
+ theme_advanced_buttons1 : "save,|,bold,italic,|,cut,copy,paste,|,search,replace,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,|,link,unlink,anchor,cleanup,help,code,advhr,|,print",
+ theme_advanced_buttons2 : "tablecontrols,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,|,visualaid,|,sub,sup,|,charmap",
+ theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
+ theme_advanced_resizing : true,
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
- apply_source_formatting : true
+ apply_source_formatting : true,
+ height : "300",
+ width : "700"
});
</script>
</head>
-<body>
+<body id="tools_koha-news" class="tools">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
<input type="hidden" name="op" value="[% op %]" />
<input type="hidden" name="id" value="[% id %]" />
<fieldset class="rows">
- <legend>OPAC and Koha News</legend>
+ <legend>OPAC and Koha news</legend>
<ol> <li>
- <label for="lang">Display Location</label>
+ <label for="lang">Display location</label>
<select id="lang" name="lang">
<option value="koha">Librarian interface</option>
[% IF ( slip ) %]<option value="slip" selected="selected">Slip</option>[% ELSE %]<option value="slip">Slip</option>[% END %]
</li>
<li>
<label for="title">Title</label>
- <input id="title" size="30" type="text" name="title" value="[% title %]" />
+ <input id="title" size="30" type="text" name="title" value="[% new_detail.title %]" />
</li>
<li>
<label for="timestamp">Publication date</label>
- <input id="timestamp" type="text" name="timestamp" size="15" value="[% timestamp %]" />
- <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="timestampButton" style="cursor: pointer;" />
+ <input id="timestamp" type="text" name="timestamp" size="15" value="[% new_detail.timestamp %]" />
+ <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show calendar" border="0" id="timestampButton" style="cursor: pointer;" />
<script type="text/javascript">
Calendar.setup(
{
</li>
<li>
<label for="expirationdate">Expiration date</label>
- <input id="expirationdate" type="text" name="expirationdate" size="15" value="[% expirationdate %]" />
- <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="openCalendar" style="cursor: pointer;" />
+ <input id="expirationdate" type="text" name="expirationdate" size="15" value="[% new_detail.expirationdate %]" />
+ <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show calendar" border="0" id="openCalendar" style="cursor: pointer;" />
<script type="text/javascript">
Calendar.setup(
{
</li>
<li>
<label for="number">Appear in position </label>
- [% IF ( number ) %]
- <input id="number" size="3" name="number" type="text" checked="checked" value="[% number %]" />
+ [% IF ( new_detail.number ) %]
+ <input id="number" size="3" name="number" type="text" checked="checked" value="[% new_detail.number %]" />
[% ELSE %]
<input id="number" size="3" name="number" type="text" />
[% END %]
</li>
<li><label for="new">News</label>
- <textarea name="new" id="new" cols="75" rows="10">[% new %]</textarea></li>
+ <textarea name="new" id="new" cols="75" rows="10">[% new_detail.new %]</textarea></li>
</ol>
</fieldset>
[% ELSE %]
<div style="margin-bottom:5px;">
<form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" >
- <label for="lang">Display Location:</label>
+ <label for="lang">Display location:</label>
<select name="lang" id="lang">
<option value="">All</option>
<option value="koha">Librarian interface</option>
<th> </th>
<th>Location</th>
<th>Number</th>
- <th>Creation Date</th>
- <th>Expiration Date</th>
+ <th>Creation date</th>
+ <th>Expiration date</th>
<th>Title</th>
<th>News</th>
<th> </th>