bug fixing :
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / admin / branches.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- System Administration: <!-- TMPL_IF name="add" --><!-- TMPL_VAR name="head" --><!-- /TMPL_IF -->
2 <!-- TMPL_IF name="delete_confirm" -->Confirm deletion of branch '<!-- TMPL_VAR NAME="branchcode" -->'<!-- /TMPL_IF -->
3 <!-- TMPL_IF name="else" --><!-- TMPL_VAR name="head" --><!-- /TMPL_IF -->
4 <!-- TMPL_IF name="delete_category" -->Confirm deletion of category<!-- /TMPL_IF -->
5 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
6
7 <!-- TMPL_INCLUDE NAME="menus.inc" -->
8 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
9
10 <!-- TMPL_IF name="add" -->
11 <h1><!-- TMPL_VAR name="head" --></h1>
12 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
13 <input type="hidden" name="op" value="add_validate" />
14 <table>
15         <tr>
16                 <td>Branch code</td>
17                 <td>
18                         <!-- TMPL_IF name="branchcode" -->
19                                 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
20                                 <!-- TMPL_VAR name="branchcode" -->
21                         <!-- TMPL_ELSE -->
22                                 <input type="text" name="branchcode" size="5" maxlength="5" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
23                         <!-- /TMPL_IF -->
24                 </td>
25         </tr>
26         <tr>
27                 <td>Name</td>
28                 <td><input type="text" name="branchname" size="40" maxlength="80" value="<!-- TMPL_VAR name="branch_name" escape="HTML" -->" />&nbsp;</td>
29         </tr>
30 <!-- TMPL_LOOP name="categoryloop" -->
31                                         <tr>
32                                                 <td><!-- TMPL_VAR name="categoryname" --></td>
33                                                 <td><input type="checkbox" name="<!-- TMPL_VAR name="categorycode" -->" <!-- TMPL_VAR name="checked" --> /><!-- TMPL_VAR name="codedescription" --></td>
34                                         </tr>
35                                 <!-- /TMPL_LOOP -->
36 <tr>
37                 <td>Address</td>
38                 <td><input type="text" name="branchaddress1" value="<!-- TMPL_VAR name="branchaddress1" escape="HTML" -->" /></td>
39         </tr>
40         <tr>
41                 <td>&nbsp;</td>
42                 <td><input type="text" name="branchaddress2" value="<!-- TMPL_VAR name="branchaddress2" escape="HTML" -->" /></td>
43         </tr>
44         <tr>
45                 <td>&nbsp;</td>
46                 <td><input type="text" name="branchaddress3" value="<!-- TMPL_VAR name="branchaddress3" escape="HTML" -->" /></td>
47         </tr>
48         <tr>
49                 <td>Phone</td>
50                 <td><input type="text" name="branchphone" value="<!-- TMPL_VAR name="branchphone" escape="HTML" -->" /></td>
51         </tr>
52         <tr>
53                 <td>Fax</td>
54                 <td><input type="text" name="branchfax" value="<!-- TMPL_VAR name="branchfax" escape="HTML" -->" /></td>
55         </tr>
56         <tr>
57                 <td>E-mail</td>
58                 <td><input type="text" name="branchemail" value="<!-- TMPL_VAR name="branchemail" escape="HTML" -->" /></td>
59         </tr>
60         <tr>
61                 <td>Branch IP</td>
62                 <td><input type="text" name="branchip" value="<!-- TMPL_VAR name="branchip" escape="HTML" -->" /></td>
63         </tr>
64         <tr>
65                 <td>Branch Printer</td>
66                 <td>    
67                         <select id="branchprinter" name="branchprinter">
68                                 <option value="">None</option>
69                         <!-- TMPL_LOOP NAME="printerloop" -->
70                                 <option value="<!-- TMPL_VAR NAME="value" -->"<!-- TMPL_IF NAME="selected" --> selected="selected"<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="branchprinter" --></option>
71                                 <!-- /TMPL_LOOP -->
72                         </select>
73                 </td>
74         </tr>
75 </table><p><input type="submit" value="Submit" /></p>
76 </form>
77 <!-- /TMPL_IF -->
78
79 <!-- TMPL_IF name="delete_confirm" -->
80         <h3>Confirm deletion of <!-- TMPL_VAR NAME="branchname" --> (<!-- TMPL_VAR NAME="branchcode" -->)?</h3>
81         <span class="form"><form action="<!-- TMPL_VAR name="action" -->" method="post">
82                 <input type="hidden" name="op" value="delete_confirmed" />
83                 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
84                         <input type="hidden" name="branchname" value="<!-- TMPL_VAR NAME="branchname" escape="HTML" -->">
85                 <input type="submit" value="Delete Branch" />
86         </form> 
87         <form action="<!-- TMPL_VAR name="action" -->" method="post"><input type="hidden" name="op" value="">
88                 <input type="submit" value="Do Not Delete" />
89         </form></span>
90 <!-- /TMPL_IF -->
91
92 <!-- TMPL_IF name="else" -->
93         
94         <!-- TMPL_IF NAME="message" --><div class="error"><!-- TMPL_VAR name="message" --><!-- /TMPL_IF -->
95         <table>
96         <caption><!-- TMPL_VAR name="head" --></caption>
97                 <tr>
98                         <th>Name</th>
99                         <th>Code</th>
100                         <th>Address</th>
101                         <th>Category</th>
102                         <th>Branch IP</th>
103                         <th>Branch Printer</th>
104                         <th>&nbsp;</th>
105                         <th>&nbsp;</th>
106                 </tr>
107                 <!-- TMPL_LOOP name="branches" -->
108                         <tr>
109                                 <td><!-- TMPL_VAR name="branch_name" escape="HTML" --></td>
110                                 <td><!-- TMPL_VAR name="branch_code" escape="HTML" --></td>
111                                 <td>
112                                         <!-- TMPL_IF name="address-empty-p" -->
113                                                 (nothing entered)
114                                         <!-- TMPL_ELSE -->
115                                                 <!-- TMPL_IF name="branchaddress1" -->
116                                                         <!-- TMPL_VAR name="branchaddress1" escape="HTML" --><!-- /TMPL_IF -->
117                                                 <!-- TMPL_IF name="branchaddress2" -->
118                                                         <br /><!-- TMPL_VAR name="branchaddress2" escape="HTML" --><!-- /TMPL_IF -->
119                                                 <!-- TMPL_IF name="branchaddress3" -->
120                                                         <br /><!-- TMPL_VAR name="branchaddress3" escape="HTML" --><!-- /TMPL_IF -->
121                                                 <!-- TMPL_IF name=branchphone -->
122                                                         <br />Ph: <!-- TMPL_VAR name="branchphone" escape="HTML" --><!-- /TMPL_IF -->
123                                                 <!-- TMPL_IF name="branchfax" -->
124                                                         <br />Fax: <!-- TMPL_VAR name="branchfax" escape="HTML" --><!-- /TMPL_IF -->
125                                                 <!-- TMPL_IF name="branchemail" -->
126                                                         <br />Email: <!-- TMPL_VAR name="branchemail" escape="HTML" --><!-- /TMPL_IF -->
127                                         <!-- /TMPL_IF -->
128                                 </td>
129                                 <td>
130                                         <!-- TMPL_IF name="no-categories-p" -->
131                                                 (no categories set)
132                                         <!-- TMPL_ELSE -->
133                                                 <!-- TMPL_LOOP name="category_list" -->
134                                                         <!-- TMPL_VAR name="categoryname" --><br />
135                                                 <!-- /TMPL_LOOP -->
136                                         <!-- /TMPL_IF -->
137                                 </td>
138                                 <td>
139                                         <!-- TMPL_VAR NAME="branchip" -->
140                                 </td>
141                                 <td>
142                                         <!-- TMPL_VAR NAME="branchprinter" -->
143                                 </td>
144                                 <td>
145                                         <form action="<!-- TMPL_VAR name=action -->" method="post">
146                                         <input type="hidden" name="op" value="edit" />
147                                         <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name=value escape="HTML" -->" />
148                                         <input type="submit" value="Edit" />
149                                         </form>
150                                 </td>
151                                 <td>
152                                         <form action="<!-- TMPL_VAR name=action -->" method="post">
153                                         <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name=value escape="HTML" -->" />
154 <input type="hidden" name="branchname" value="<!-- TMPL_VAR NAME="branch_name" escape="HTML" -->">
155                                         <input type="hidden" name="op" value="delete" /><input type="submit" value="Delete" />
156                                         </form>
157                                 </td>
158                         </tr>
159                 <!-- /TMPL_LOOP -->
160         </table>
161 <form action="<!-- TMPL_VAR name=action -->" method="post">
162                 <p><input type="hidden" name="op" value="add" />
163                 <input type="submit" value="Add New Branch" /></p>
164         </form>
165         
166         <table>
167         <caption>Branches Categories</caption>
168         <tr>
169                 <th>Name</th>
170                 <th>Code</th>
171                 <th>Description</th>
172                 <th>&nbsp;</th>
173                 <th>&nbsp;</th>
174         </tr>
175         <!-- TMPL_LOOP name="branchcategories" -->
176                 <tr>
177                 <td><!-- TMPL_VAR name="categoryname" --></td>
178                 <td><!-- TMPL_VAR name="categorycode" --></td>
179                 <td><!-- TMPL_VAR name="codedescription" --></td>
180                 <td>
181                         <form action="<!-- TMPL_VAR name=action -->" method="post">
182                         <input type="hidden" name="op" value="editcategory" />
183                         <input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
184                         <input type="submit" value="Edit" />
185                         </form>
186                 </td>
187                 <td>
188                         <form action="<!-- TMPL_VAR name=action -->" method="post">
189                         <input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
190                         <input type="hidden" name="op" value="delete_category" /><input type="submit" value="Delete" />
191                         </form>
192                 </td>
193                 </tr>
194         <!-- /TMPL_LOOP -->
195         </table><form action="<!-- TMPL_VAR name="action" -->" method="post"><p>
196                 <input type="hidden" name="op" value="editcategory" />
197                 <input type="submit" value="Add New Category" /></p>
198         </form>
199 <!-- /TMPL_IF -->
200
201 <!-- TMPL_IF name="editcategory" -->
202         
203         <form action="<!-- TMPL_VAR name=action -->" name="Aform" method="post">
204         <input type="hidden" name=op value="addcategory_validate" />
205         <table>
206                 <caption><!-- TMPL_VAR name="head" --></caption>
207                 <tr>
208                         <td>Category code</td>
209                         <td>
210                                 <!-- TMPL_IF name="categorycode" -->
211                                         <input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
212                                         <!-- TMPL_VAR name="categorycode" -->
213                                 <!-- TMPL_ELSE -->
214                                         <input type="text" name="categorycode" size="5" maxlength="5" value="<!-- TMPL_VAR name="categorycode" escape="HTML" -->" />
215                                 <!-- /TMPL_IF -->
216                         </td>
217                 </tr>
218                 <tr>
219                         <td>Name</td>
220                         <td><input type="text" name="categoryname" size="40" maxlength="80" value="<!-- TMPL_VAR name=categoryname escape="HTML" -->" />&nbsp;</td>
221                 </tr>
222                 <tr>
223                         <td>Description</td>
224                         <td><input type="text" name="codedescription" size="40" maxlength="80" value="<!-- TMPL_VAR name="codedescription" escape="HTML" -->" />&nbsp;</td>
225                 </tr>
226         </table><input type="submit" value="Update" />
227         </form>
228 <!-- /TMPL_IF -->
229
230 <!-- TMPL_IF name="delete_category" -->
231         Confirm delete:
232         <form action="<!-- TMPL_VAR name=action -->" method="post">
233                 <input type="hidden" name="op" value="categorydelete_confirmed" />
234                 <input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
235                 <input type="submit" value="YES" />
236         </form>
237         <form action="<!-- TMPL_VAR name="action" -->" method="post"><input type="hidden" name="op" value="">
238                 <input type="submit" value="NO" />
239         </form>
240 <!-- /TMPL_IF -->
241
242 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->