Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/stopwords.tmpl
Tomas Cohen Arazi 33c7b21cde Bug 6084: Missing translation markers in javascript alert messages
I ommited commented lines and "if $debug" lines too.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-04-07 21:46:45 +12:00

153 lines
5.6 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; System Administration &rsaquo; Stop words
<!-- TMPL_IF NAME="add_form" -->&rsaquo; <!-- TMPL_IF NAME="searchfield" -->Modify<!-- TMPL_ELSE -->New<!-- /TMPL_IF --> stop word
<!-- TMPL_ELSIF NAME="add_validate" -->&rsaquo; Data recorded
<!-- TMPL_ELSIF NAME="delete_confirm" -->&rsaquo; Delete stop word '<!-- TMPL_VAR NAME="searchfield" -->' ?
<!-- TMPL_ELSIF NAME="delete_confirmed" -->&rsaquo; Data deleted
<!-- /TMPL_IF -->
</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script language="javascript" type="text/javascript">
//<![CDATA[
$(document).ready(function() {
new YAHOO.widget.Button("newstopword");
});
function toUC(f) {
var x=f.value.toUpperCase();
f.value=x;
return true;
}
function Check(f) {
if (f.word.value.length==0) {
alert(_("Form not submitted: word missing"));
} else {
document.Aform.submit();
}
}
//]]>
</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="stopwords-admin-search.inc" -->
<div id="breadcrumbs">
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
&rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
&rsaquo; <a href="/cgi-bin/koha/admin/stopwords.pl">Stop Words</a>
<!-- TMPL_IF NAME="add_form" -->
&rsaquo; <!-- TMPL_IF NAME="searchfield" -->Modify<!-- TMPL_ELSE -->New<!-- /TMPL_IF --> Stop Word
<!-- TMPL_ELSIF NAME="add_validate" -->
&rsaquo; Data recorded
<!-- TMPL_ELSIF NAME="delete_confirm" -->
&rsaquo; Delete Stop Word '<!-- TMPL_VAR NAME="searchfield" -->' ?
<!-- TMPL_ELSIF NAME="delete_confirmed" -->
&rsaquo; Data deleted
<!-- /TMPL_IF -->
</div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<!-- TMPL_IF NAME="add_form" -->
<!-- TMPL_IF NAME="searchfield" -->
<h1>Modify word</h1>
<!-- TMPL_ELSE -->
<h1>New word</h1>
<!-- /TMPL_IF -->
<form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
<input type="hidden" name="op" value="add_validate" />
<fieldset class="rows">
<ol><li>
<!-- TMPL_IF NAME="searchfield" -->
<span class="label">Word</span>
<input type="hidden" name="word" value="<!-- TMPL_VAR NAME="searchfield" -->" /><!-- TMPL_VAR NAME="searchfield" -->
<!-- TMPL_ELSE -->
<label for="word">Word</label>
<input type="text" name="word" id="word" size="50" maxlength="250" onblur="toUC(this)" />
<!-- /TMPL_IF -->
</li>
</ol>
</fieldset>
<fieldset class="action">
<input type="button" value="Save" onclick="Check(this.form)" />
<a class="cancel" href="/cgi-bin/koha/admin/stopwords.pl">Cancel</a>
</fieldset>
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="add_validate" -->
<div class="dialog message"> <h3>Data recorded</h3>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<input type="submit" value="OK" class="approve" />
</form></div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirm" -->
<div class="dialog alert">
<h3>Delete Stop Word <span class="ex">'<!-- TMPL_VAR NAME="searchfield" -->'</span></h3>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<input type="hidden" name="op" value="delete_confirmed" />
<input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
<input type="submit" value="Yes, Delete" class="approve" />
</form>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="get">
<input type="submit" class="deny" value="No, Do Not Delete" />
</form></div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirmed" -->
<div class="dialog message"> <h3>Data deleted</h3>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<input type="submit" value="OK" class="approve" />
</form></div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="else" -->
<div id="toolbar">
<ul class="toolbar">
<li><a id="newstopword" href="/cgi-bin/koha/admin/stopwords.pl?op=add_form">New Stop Word</a></li>
</ul></div>
<h1>Stop Words</h1>
<p class="message">NOTE : if you change something in this table, ask your administrator to run misc/batchRebuildBiblioTables.pl script.</p>
<!-- TMPL_IF NAME="searchfield" -->
<p>You searched for <b><!-- TMPL_VAR NAME="searchfield" --></b></p>
<!-- /TMPL_IF -->
<table>
<tr><th>Word</th>
<th></th>
</tr>
<!-- TMPL_LOOP NAME="loop" -->
<!-- TMPL_IF NAME="__odd__" --><tr>
<!-- TMPL_ELSE --><tr class="highlight">
<!-- /TMPL_IF -->
<td><!-- TMPL_VAR NAME="word" --></td>
<td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&amp;searchfield=<!-- TMPL_VAR NAME="word" -->">Delete</a></td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<div class="pages">
<!-- TMPL_IF NAME="offsetgtzero" -->
<a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->">&lt;&lt; Previous</a>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ltcount" -->
<a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->">Next &gt;&gt;</a>
<!-- /TMPL_iF -->
</div>
<!-- /TMPL_IF -->
</div>
</div>
<div class="yui-b">
<!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->