Cleanup stopwords.pl and .tmpl
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / stopwords.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; System Administration &rsaquo; Stop words
3 <!-- TMPL_IF NAME="add_form"            -->&rsaquo; <!-- TMPL_IF NAME="searchfield" -->Modify<!-- TMPL_ELSE -->New<!-- /TMPL_IF --> stop word
4 <!-- TMPL_ELSIF NAME="add_validate"     -->&rsaquo; Data recorded
5 <!-- TMPL_ELSIF NAME="delete_confirm"   -->&rsaquo; Delete stop word '<!-- TMPL_VAR NAME="searchfield" -->' ?
6 <!-- TMPL_ELSIF NAME="delete_confirmed" -->&rsaquo; Data deleted
7 <!-- /TMPL_IF -->
8 </title>
9 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
10 <script language="javascript" type="text/javascript">
11 //<![CDATA[
12     $(document).ready(function() {
13         new YAHOO.widget.Button("newstopword");
14     });
15     function toUC(f) {
16         var x=f.value.toUpperCase();
17         f.value=x;
18         return true;
19     }
20     function Check(f) {
21         if (f.word.value.length==0) {
22             alert("Form not submitted: word missing");
23         } else {
24             document.Aform.submit();
25         }
26     }
27 //]]>
28 </script>
29 </head>
30 <body>
31 <!-- TMPL_INCLUDE NAME="header.inc" -->
32 <!-- TMPL_INCLUDE NAME="stopwords-admin-search.inc" -->
33
34 <div id="breadcrumbs">
35 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
36 &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
37 &rsaquo; <a href="/cgi-bin/koha/admin/stopwords.pl">Stop Words</a>
38 <!-- TMPL_IF NAME="add_form" -->
39     &rsaquo; <!-- TMPL_IF NAME="searchfield" -->Modify<!-- TMPL_ELSE -->New<!-- /TMPL_IF --> Stop Word
40 <!-- TMPL_ELSIF NAME="add_validate" -->
41     &rsaquo; Data recorded
42 <!-- TMPL_ELSIF NAME="delete_confirm" -->
43     &rsaquo; Delete Stop Word '<!-- TMPL_VAR NAME="searchfield" -->' ?
44 <!-- TMPL_ELSIF NAME="delete_confirmed" -->
45     &rsaquo; Data deleted
46 <!-- /TMPL_IF -->
47 </div>
48
49 <div id="doc3" class="yui-t2">
50    
51    <div id="bd">
52         <div id="yui-main">
53         <div class="yui-b">
54
55 <!-- TMPL_IF NAME="add_form" -->
56         <!-- TMPL_IF NAME="searchfield" -->
57             <h1>Modify word</h1>
58         <!-- TMPL_ELSE -->
59             <h1>New word</h1>
60         <!-- /TMPL_IF -->
61         <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
62             <input type="hidden" name="op" value="add_validate" />
63             <fieldset class="rows">
64             <ol><li>
65             <!-- TMPL_IF NAME="searchfield" -->
66                 <span class="label">Word</span>
67                     <input type="hidden" name="word" value="<!-- TMPL_VAR NAME="searchfield" -->" /><!-- TMPL_VAR NAME="searchfield" -->
68             <!-- TMPL_ELSE -->
69                 <label for="word">Word</label>
70                 <input type="text" name="word" id="word" size="50" maxlength="250" onblur="toUC(this)" />
71             <!-- /TMPL_IF -->
72                 </li>
73             </ol>
74             </fieldset>
75             <fieldset class="action">
76                 <input type="button" value="Save" onclick="Check(this.form)" />
77                 <a class="cancel" href="/cgi-bin/koha/admin/stopwords.pl">Cancel</a>
78             </fieldset>
79         </form>
80 <!-- /TMPL_IF -->
81
82 <!-- TMPL_IF NAME="add_validate" -->
83    <div class="dialog message"> <h3>Data recorded</h3>
84     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
85         <input type="submit" value="OK" class="approve" />
86     </form></div>
87 <!-- /TMPL_IF -->
88
89 <!-- TMPL_IF NAME="delete_confirm" -->
90     <div class="dialog alert">
91         <h3>Delete Stop Word <span class="ex">'<!-- TMPL_VAR NAME="searchfield" -->'</span></h3>
92         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
93         <input type="hidden" name="op" value="delete_confirmed" />
94         <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
95         <input type="submit" value="Yes, Delete" class="approve" />
96     </form>
97     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="get">
98         <input type="submit" class="deny" value="No, Do Not Delete" />
99     </form></div>
100 <!-- /TMPL_IF -->
101
102 <!-- TMPL_IF NAME="delete_confirmed" -->
103    <div class="dialog message"> <h3>Data deleted</h3>
104     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
105         <input type="submit" value="OK" class="approve" />
106     </form></div>
107 <!-- /TMPL_IF -->
108
109 <!-- TMPL_IF NAME="else" -->
110
111 <div id="toolbar">
112         <ul class="toolbar">
113         <li><a id="newstopword" href="/cgi-bin/koha/admin/stopwords.pl?op=add_form">New Stop Word</a></li>
114 </ul></div>
115
116     <h1>Stop Words</h1>
117     <p class="message">NOTE : if you change something in this table, ask your administrator to run misc/rebuildnonmarc.pl script.</p>
118
119     <!-- TMPL_IF NAME="searchfield" -->
120         <p>You searched for <b><!-- TMPL_VAR NAME="searchfield" --></b></p>
121     <!-- /TMPL_IF -->
122
123     <table>
124         <tr><th>Word</th>
125             <th></th>
126         </tr>
127         <!-- TMPL_LOOP NAME="loop" -->
128            <!-- TMPL_IF NAME="__odd__" --><tr>
129            <!-- TMPL_ELSE --><tr class="highlight">
130            <!-- /TMPL_IF -->
131             <td><!-- TMPL_VAR NAME="word" --></td>
132             <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&amp;searchfield=<!-- TMPL_VAR NAME="word" -->">Delete</a></td>
133         </tr>
134         <!-- /TMPL_LOOP -->
135     </table>
136
137     <div class="pages">
138         <!-- TMPL_IF NAME="offsetgtzero" -->
139             <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->">&lt;&lt; Previous</a>
140         <!-- /TMPL_IF -->
141         <!-- TMPL_IF NAME="ltcount" -->
142             <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->">Next &gt;&gt;</a>
143         <!-- /TMPL_iF -->
144     </div>
145 <!-- /TMPL_IF -->
146
147 </div>
148 </div>
149 <div class="yui-b">
150 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
151 </div>
152 </div>
153 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->