Logical error where closing tags for LI and OL were inside the (2nd half of the)...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / memberentrygen.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Patrons &rsaquo; <!-- TMPL_IF NAME="opadd" -->
3                 Add<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
4 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- TMPL_ELSE -->Modify<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
5 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- /TMPL_IF --></title>
6 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
7 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/members.js"></script>
8 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
9 </head>
10 <body>
11 <!-- TMPL_INCLUDE NAME="header.inc" -->
12 <!-- TMPL_INCLUDE NAME="members-search.inc" -->
13
14 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; <!-- TMPL_IF NAME="opadd" -->
15                 Add<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
16 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- TMPL_ELSE --> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --></a> &rsaquo; Modify<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
17 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- /TMPL_IF --></div>
18
19 <div id="doc3" class="yui-t2">
20    
21    <div id="bd">
22         <div id="yui-main">
23         <div class="yui-b">
24
25
26         <!-- TMPL_IF NAME="opadd" -->
27         <h1>
28                 Add<!--TMPL_IF Name="I"--> organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> professional <!--/TMPL_IF -->
29 patron <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --> 
30         </h1>
31         <!-- TMPL_ELSE -->
32         <h1 >
33                 Modify<!--TMPL_IF Name="I"--> organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> professional <!--/TMPL_IF -->
34 patron <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --> 
35         </h1>
36         <!-- /TMPL_IF -->
37         <!-- TMPL_IF NAME="check_member" -->
38                 <p>
39                 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
40                         <div id="problem">
41                                 Duplicate suspected
42                                 <a href="javascript:Dopop('borrowers_details.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >Detail</a>
43                                 Duplicate ?
44                                 <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->&category_type=<!--TMPL_VAR NAME="check_categorytype"-->">Yes</a> 
45                                 &nbsp;&nbsp;&nbsp; No, it is not
46                                 <!-- TMPL_IF NAME="checked"-->
47                                         <input type="checkbox" checked="checked" name="answernodouble" >
48                                 <!-- TMPL_ELSE -->
49                                         <input type="checkbox" name="answernodouble" />
50                                 <!-- /TMPL_IF -->
51                         </div>
52                 </form>
53                 </p>
54         <!--/TMPL_IF-->
55                 
56         <!-- TMPL_IF Name="nok" -->
57                 <div id="problem">
58                         <p>The following fields are wrong. Please fix it/them</p>
59                         <!-- TMPL_IF NAME="ERROR_login_exist" -->
60                                 <div id="ERROR_login_exist">login/password already exist</div>
61                         <!-- /TMPL_IF -->
62                         <!-- TMPL_IF NAME="ERROR_cardnumber" -->
63                                 <div id="ERROR_cardnumber">Cardnumber already in use</div>
64                         <!-- /TMPL_IF -->
65       <!-- TMPL_IF NAME="ERROR_age_limitations" -->
66               <div id="ERROR_age_limitations">Patron is too young or too old for this category</div>
67       <!-- /TMPL_IF -->
68                 </div>
69         <!-- /TMPL_IF -->
70         
71   <!--TMPL_IF Name="allsteps"-->
72
73   <!--/TMPL_IF-->
74   
75 <form name="form"  action="/cgi-bin/koha/members/memberentry.pl" method="post"> 
76 <!--    field always hidden in different form (1,2,3) -->
77 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
78 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
79 <input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->" />
80 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
81 <input type="hidden" name="guarantorid"   value="<!-- TMPL_VAR NAME="guarantorid" -->" />
82 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
83 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
84 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
85 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
86 <input type="hidden" name="nodouble"  value="<!-- TMPL_VAR NAME="nodouble" -->" />
87 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
88
89 <!--TMPL_IF Name="step_1"-->
90   <div id="step1" class="content_visible">
91   <!--TMPL_IF Name="I"-->
92   <input type="hidden" name="FormFieldList" value="surname|contactname|contactfirstname" /> <!--TMPL_ELSE--> <input type="hidden" name="FormFieldList" value="title|surname|firstname|dateofbirth|initials|othernames" />  <!--/TMPL_IF-->
93         <fieldset class="rows" id="memberentry_identity">
94                 <legend><!--TMPL_IF Name="I"-->Organisation <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
95                 <ol>
96                 <li>
97                 <!-- TMPL_IF NAME="mandatorytitle" -->
98                         <label for="btitle" class="required">
99                 <!-- TMPL_ELSE -->
100                         <label for="btitle">
101                 <!-- /TMPL_IF-->
102                 Title: </label>
103                 <!-- TMPL_VAR NAME="borrotitlepopup" -->
104                 </li>
105
106                 <li>
107                 <!-- TMPL_IF NAME="mandatorysurname" -->
108                 <label for="surname" class="required">
109                 <!-- TMPL_ELSE -->
110                 <label for="surname">
111                 <!-- /TMPL_IF-->
112                 Surname: </label>
113                 <!-- TMPL_IF NAME="uppercasesurnames" -->
114                 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="<!-- TMPL_VAR NAME="surname" -->" />
115                 <!-- TMPL_ELSE -->
116                 <input type="text" id="surname" name="surname" size="20"  value="<!-- TMPL_VAR NAME="surname" -->" />
117                 <!-- /TMPL_IF -->
118                 </li>
119                 <li>
120                 <!-- TMPL_IF NAME="mandatoryfirstname" -->
121                 <label for="firstname" class="required">
122                 <!-- TMPL_ELSE -->
123                 <label for="firstname">
124                 <!-- /TMPL_IF-->
125                 Firstname: </label>
126                 <input type="text" id="firstname" name="firstname" size="20"  value="<!-- TMPL_VAR NAME="firstname" -->" />
127                 </li>
128                 <li>
129                         <!-- TMPL_IF NAME="mandatorydateofbirth" -->
130                         <label for="dateofbirth" class="required">
131                         <!-- TMPL_ELSE -->      
132                         <label for="dateofbirth">
133                         <!-- /TMPL_IF-->
134                         Date of birth: </label>
135                         <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
136             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
137       <script language="JavaScript" type="text/javascript">
138         Calendar.setup(
139           {
140             inputField : "dateofbirth",
141             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
142             button : "dateofbirth_button"
143           }
144         );
145       </script>
146                 </li>
147                 <li>
148                         <!-- TMPL_IF NAME="mandatoryinitials" -->
149                                 <label for="initials" class="required">
150                         <!-- TMPL_ELSE -->
151                                 <label for="initials">
152                         <!-- /TMPL_IF-->
153                         Initials: </label>
154                         <input type="text" id="initials" name="initials" size="20"  value="<!-- TMPL_VAR NAME="initials" -->" />        
155                 </li>
156                 <li>
157                         <!-- TMPL_IF NAME="mandatoryothernames" -->
158                         <label for="othernames" class="required">
159                         <!-- TMPL_ELSE -->
160                         <label for="othernames">
161                         <!-- /TMPL_IF-->
162                         Other name: </label>
163                         <input type="text" id="othernames" name="othernames" size="20"  value="<!-- TMPL_VAR NAME="othernames" -->" />
164                 </li>
165                 <li class="radio">
166                 <!-- TMPL_IF NAME="female" -->
167                                 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" />
168                                 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
169                 <!-- TMPL_ELSE -->
170                                 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
171                                 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" />
172                 <!-- /TMPL_IF -->
173         </li>
174                 </ol>
175 <!--TMPL_IF Name="C"-->  <p>
176   <input name="guarantordelete" type="button" value="Delete Guarantor" onclick="document.form.guarantorid.value='';document.form.guarantorinfo.value='',document.form.guarantorsearch.value='Find guarantor';" />
177   <!-- TMPL_IF NAME="guarantorid"-->  
178     
179     <input name="guarantorsearch" type="button" value="Modify Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
180   <!-- TMPL_ELSE -->
181     <input name="guarantorsearch" type="button" value="Find guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
182   <!-- /TMPL_IF -->
183   <input name="guarantorinfo" type="text"  size="20" value="<!-- TMPL_VAR NAME="guarantorinfo" -->" disabled="disabled" readonly="readonly" />
184   </p>       
185 <!--/TMPL_IF-->       
186         </fieldset>
187 <fieldset class="rows">
188     <legend>Main address</legend><ol>
189     <li>
190       <!-- TMPL_IF NAME="mandatorystreetnumber" -->
191       <label for="streetnumber" class="required">
192       <!--TMPL_ELSE-->
193       <label for="streetnumber">
194       <!-- /TMPL_IF-->
195       Street number: </label>
196       <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
197     </li>
198     <!-- TMPL_IF NAME="road_cgipopup" -->
199       <li>
200       <!-- TMPL_IF NAME="mandatorystreettype" -->
201       <label for="streettype" class="required">
202       <!--TMPL_ELSE-->
203       <label for="streettype">
204       <!-- /TMPL_IF-->
205       Street type: </label>
206       <!-- TMPL_VAR NAME="roadpopup" -->
207       </li>
208     <!--/TMPL_IF--> 
209     <li>
210       <!-- TMPL_IF NAME="mandatoryaddress" -->
211       <label for="address" class="required">
212       <!--TMPL_ELSE-->
213       <label for="address">
214       <!--/TMPL_IF-->
215       Address: </label>
216       <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
217     </li>
218     <li>
219       <!-- TMPL_IF NAME="mandatoryaddress2" -->
220       <label for="address2" class="required">
221       <!--TMPL_ELSE-->
222       <label for="address2">
223       <!-- /TMPL_IF-->
224       Address 2: </label>
225       <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
226     </li>
227     <li> 
228       <!-- TMPL_IF NAME="mandatoryzipcode" -->
229         <label for="zipcode" class="required">
230       <!--TMPL_ELSE-->
231         <label for="zipcode">
232       <!-- /TMPL_IF-->
233       Zipcode: </label>
234       <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
235     </li>
236     <!-- TMPL_IF NAME="city_cgipopup" --> 
237     <li>
238       <!-- TMPL_IF NAME="mandatoryselect_city" -->
239         <label for="select_city" class="required">
240       <!-- TMPL_ELSE -->
241         <label for="select_city">
242       <!-- /TMPL_IF-->
243       Select a city: </label>
244       <!-- TMPL_VAR NAME="citypopup" -->
245     </li>
246     <!-- /TMPL_IF-->
247     <li>
248       <!-- TMPL_IF NAME="mandatorycity" -->
249         <label for="city" class="required">
250       <!--TMPL_ELSE-->
251         <label for="city">
252       <!-- /TMPL_IF-->
253       City: </label>
254       <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
255     </li>
256         </ol>
257     </fieldset>
258   <fieldset class="rows" id="memberentry_contact">
259     <legend>Contact</legend><ol>       
260 <!--TMPL_IF Name="C"-->
261       <h2>Borrower</h2>
262       <li> 
263         <!-- TMPL_IF NAME="mandatoryB_email" -->
264           <label for="B_email" class="required">
265         <!--TMPL_ELSE-->
266           <label for="B_email">
267         <!-- /TMPL_IF-->
268         E-mail (home): </label>
269         <input type="text" id="B_email" name="B_email" value="<!-- TMPL_VAR NAME="B_email" -->" /> 
270         <!-- TMPL_IF NAME="mandatoryB_phone" -->
271           <label for="B_phone" class="required">
272         <!--TMPL_ELSE-->
273           <label for="B_phone">
274         <!-- /TMPL_IF-->
275         Phone (cell): </label>  
276         <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />     
277       </li>
278 <!--/TMPL_IF-->
279       <li>
280       <!-- TMPL_IF NAME="mandatoryphone" --> 
281       <label for="phone" class="required">
282       <!--TMPL_ELSE-->
283       <label for="phone">
284       <!-- /TMPL_IF-->
285       Phone (home): </label>
286       <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
287     </li>
288     <li>
289       <!-- TMPL_IF NAME="mandatoryphonepro" -->
290       <label for="phonepro" class="required">
291       <!--TMPL_ELSE-->
292       <label for="phonepro">
293       <!-- /TMPL_IF-->
294       Phone (prof): </label>
295       <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
296     </li>
297     <li>
298       <!-- TMPL_IF NAME="mandatorymobile" -->
299       <label for="mobile" class="required">
300       <!--TMPL_ELSE-->
301       <label for="mobile">
302       <!-- /TMPL_IF-->
303       Phone (cell): </label>
304       <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
305     </li>
306     <li>
307       <!-- TMPL_IF NAME="mandatoryemail" -->
308       <label for="email" class="required">
309       <!--TMPL_ELSE-->
310       <label for="email">
311       <!-- /TMPL_IF-->
312       E-mail (home): </label>
313       <input type="text" id="email" name="email" value="<!-- TMPL_VAR NAME="email" -->" />  
314     </li>
315     <li>
316       <!-- TMPL_IF NAME="mandatoryemailpro" --> 
317       <label for="emailpro" class="required">
318       <!--TMPL_ELSE-->
319       <label for="emailpro">
320       <!-- /TMPL_IF-->
321       E-mail (prof): </label>
322       <input type="text" id="emailpro" name="emailpro" value="<!-- TMPL_VAR NAME="emailpro" -->" />
323     </li>
324     <li>
325       <!-- TMPL_IF NAME="mandatoryfax" -->
326       <label for="fax" class="required">
327       <!--TMPL_ELSE-->
328       <label for="fax">
329       <!-- /TMPL_IF-->
330       Fax: </label>
331       <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
332     </li>
333         </ol>
334   </fieldset>
335 </div>
336
337 <!-- ************************ STEP_1 *********************** -->
338 <!--/TMPL_IF -->
339 <!--TMPL_IF Name="step_2"-->
340 <!--TMPL_IF Name="step_1"-->
341 <div id="step2" class="content_hidden">
342 <!--TMPL_ELSE-->
343 <div id="step2" class="content_visible">
344 <!--/TMPL_IF-->       
345
346                 <fieldset class="rows" id="memberentry_address">
347                 <legend>Alternate address</legend><ol>
348                         <li>
349                                 <!-- TMPL_IF NAME="mandatoryB_address" -->
350                                         <label for="B_address" class="required">
351                                 <!--TMPL_ELSE-->
352                                         <label for="B_address">
353                                 <!-- /TMPL_IF-->
354                                 Address: </label>
355                                 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
356                         </li>
357                         <li>
358                                 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
359                                         <label for="B_zipcode" class="required">
360                                 <!--TMPL_ELSE-->
361                                         <label for="B_zipcode">
362                                 <!-- /TMPL_IF-->
363                                 Zipcode: </label>
364                                 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="5" size="5" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
365                         </li>
366                         <li>
367                                 <!-- TMPL_IF NAME="mandatoryB_city" -->
368                                         <label for="B_city" class="required" >
369                                 <!--TMPL_ELSE-->
370                                         <label for="B_city">
371                                 <!-- /TMPL_IF-->
372                                 City: </label>
373                                 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
374                         </li>
375                         </ol>
376                 </fieldset>
377   <!-- TMPL_IF NAME="I" -->
378         <!-- TMPL_IF NAME="memberofinstution" -->
379         <fieldset class="rows" id="memberentry_organisation">
380                 <legend>Organisations</legend><ol>
381                 <li>
382                         <!-- TMPL_IF NAME="mandatoryphone" --> 
383                         <label for="organisations" class="required">
384                         <!--TMPL_ELSE-->
385                         <label for="organisations">
386                         <!-- /TMPL_IF-->
387                         Organisation(s): </label>
388                         <!-- TMPL_VAR NAME="CGIorganisations" -->
389                 </li>
390                 </ol>
391         </fieldset>
392         <!-- /TMPL_IF -->
393   <!-- /TMPL_IF -->
394 </div>
395               
396 <!-- /TMPL_IF -->
397 <!--TMPL_IF Name="step_3"-->
398 <!--TMPL_IF Name="step_1"-->
399 <div id="step3" class="content_hidden">
400 <!--TMPL_ELSE-->
401 <div id="step3" class="content_visible">
402 <!--/TMPL_IF-->       
403
404   <fieldset class="rows" id="memberentry_library_management">
405     <legend>Library Management</legend><ol>
406    <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
407       <label for="cardnumber" class="required">
408     <!--TMPL_ELSE -->
409       <label for="cardnumber">
410     <!-- /TMPL_IF--> 
411     Card number: </label>
412     <input type="text" id="cardnumber" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->" /></li>
413     <li>
414       <!-- TMPL_IF NAME="mandatorybranchcode" -->
415         <label for="branchcode" class="required">
416       <!--TMPL_ELSE-->
417         <label for="branchcode">
418       <!-- /TMPL_IF-->
419       Branch: </label>
420       <!-- TMPL_VAR NAME="CGIbranch" -->
421     </li>
422     <li>
423     <!-- TMPL_IF NAME="catcodepopup" -->
424           <label for="categorycode">Category: </label>
425           <!-- TMPL_VAR NAME="catcodepopup" -->
426       <!-- TMPL_ELSE -->
427           <span class="problem">There is no category type to add <!--TMPL_IF Name="A"-->an Adult<!--/TMPL_IF--><!--TMPL_IF Name="C"-->a Child<!--/TMPL_IF--><!--TMPL_IF Name="I"-->an Institution<!--/TMPL_IF--><!--TMPL_IF Name="P"-->a professionnal<!--/TMPL_IF-->.</span>
428               <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
429       <!-- /TMPL_IF -->
430     </li>
431     <li>
432       <!-- TMPL_IF NAME="mandatorysort1" -->
433         <label for="sort1" class="required">
434       <!-- TMPL_ELSE -->
435         <label for="sort1">
436       <!-- /TMPL_IF-->
437       Sort 1: </label>
438       <!--TMPL_IF NAME="CGIsort1" --> 
439         <!-- TMPL_VAR NAME="CGIsort1" -->
440       <!--TMPL_ELSE-->
441         <input  type="text" id="sort1" name="sort1" size="20"  value="<!-- TMPL_VAR NAME="sort1" -->" />
442       <!-- /TMPL_IF -->   
443     </li>
444     <li>
445     <!-- TMPL_IF NAME="mandatorysort2" -->
446     <label for="sort2" class="required">
447     <!-- TMPL_ELSE -->
448     <label for="sort2">
449     <!-- /TMPL_IF-->
450     Sort 2: </label>
451     <!--TMPL_IF NAME="CGIsort2" --> 
452       <!-- TMPL_VAR NAME="CGIsort2" -->
453     <!--TMPL_ELSE-->
454       <input  type="text" id="sort2" name="sort2" size="20"  value="<!-- TMPL_VAR NAME="sort2" -->" />
455     <!-- /TMPL_IF --> 
456     </li>
457         </ol>
458   </fieldset>
459         <fieldset class="rows" id="memberentry_subscription">
460         <legend>Library set-up</legend><ol>
461                 <li>
462                         <!-- TMPL_IF NAME="mandatorydateenrolled" -->
463                         <label for="dateenrolled" class="required">
464                         <!--TMPL_ELSE-->
465                         <label for="dateenrolled">
466                         <!-- /TMPL_IF-->
467                         Arrival date: </label>
468                         <input type="text" id="dateenrolled" name="dateenrolled"  maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="<!-- TMPL_VAR NAME="dateenrolled" -->" />
469             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
470       <script language="JavaScript" type="text/javascript">
471         Calendar.setup(
472           {
473             inputField : "dateenrolled",
474             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
475             button : "dateenrolled_button"
476           }
477         );
478       </script>
479                 </li>
480                 <li>
481                         <!-- TMPL_IF NAME="mandatorydateexpiry" -->
482                         <label for="dateexpiry" class="required">
483                         <!--TMPL_ELSE-->
484                         <label for="dateexpiry">
485                         <!-- /TMPL_IF-->
486                         Expiry date: </label>
487                         <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10"  size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="<!-- TMPL_VAR NAME="dateexpiry" -->" />
488             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
489       <script language="JavaScript" type="text/javascript">
490         Calendar.setup(
491           {
492             inputField : "dateexpiry",
493             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
494             button : "dateexpiry_button"
495           }
496         );
497       </script>
498                 </li>
499                 <li>
500                         <!-- TMPL_IF NAME="mandatoryopacnote" -->
501                                 <label for="opacnote" class="required">
502                         <!--TMPL_ELSE-->
503                                 <label for="opacnote">
504                         <!-- /TMPL_IF-->        
505                         OPAC note: </label>
506                         <textarea id="opacnote" name="opacnote" cols="40" rows="2"><!-- TMPL_VAR NAME="opacnote" --></textarea>
507                 </li>
508                 <li>
509                         <!-- TMPL_IF NAME="mandatoryborrowernotes" -->  
510                                 <label for="borrowernotes" class="required">
511                         <!--TMPL_ELSE-->
512                                 <label for="borrowernotes">
513                         <!-- /TMPL_IF-->
514                         Library note: </label>
515                         <textarea id="borrowernotes" name="borrowernotes" cols="40" rows="2"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
516                 </li>
517                 </ol>
518         </fieldset>
519         <fieldset class="rows" id="memberentry_userid">
520                 <legend>OPAC login</legend><ol>
521                 <li>
522                         <!-- TMPL_IF NAME="mandatoryuserid" -->
523                         <label for="userid" class="required">
524                         <!--TMPL_ELSE-->
525                         <label for="userid">
526                         <!-- /TMPL_IF-->
527                         OPAC Login: </label>
528                         <input type="text" id="userid" name="userid" size="20"  value="<!-- TMPL_VAR NAME="userid" -->" />
529                 </li>
530                 <li>
531                         <!-- TMPL_IF NAME="mandatorypassword" -->
532                         <label for="password" class="required">
533                         <!--TMPL_ELSE-->
534                         <label for="password">
535                         <!-- /TMPL_IF-->
536                         Password: </label>
537                         <!--TMPL_IF NAME="opadd"-->
538                                 <input type="text" id="password" name="password" size="20"  value="<!-- TMPL_VAR NAME="password" -->" />
539                         <!--TMPL_ELSE-->
540                                 <!--TMPL_IF NAME="password"-->
541                                         <input type="text" id="password" name="password" size="20"  value="****" />
542                                 <!--TMPL_ELSE-->
543                                         <input type="text" id="password" name="password" size="20"  value="" />
544                                 <!--/TMPL_IF-->
545                         <!--/TMPL_IF-->
546                 </li></ol>
547                 </fieldset>
548                 <!--this zones are not necessary in modif mode -->
549                 <!-- TMPL_UNLESS NAME="opadd" -->
550                 <fieldset class="rows">
551                         <legend>Patron Account Flags</legend>
552                         <ol class="radio">
553                         <!-- TMPL_LOOP NAME="flagloop" -->
554                                 <li><label class="radio" for="yes<!-- TMPL_VAR NAME="name" -->"><!-- TMPL_VAR NAME="html" -->: </label>
555                                 
556                                 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
557                                 <!-- TMPL_IF NAME="yes" -->
558                                 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
559                                 <!-- TMPL_ELSE -->
560                                 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
561                                 <!-- /TMPL_IF -->
562                                 
563                                 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
564                                 <!-- TMPL_IF NAME="no" -->
565                                 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
566                                 <!-- TMPL_ELSE -->
567                                 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
568                                 <!-- /TMPL_IF -->
569
570 </li>
571                         <!-- /TMPL_LOOP -->
572                         </ol>
573                         </fieldset>
574                 <!-- /TMPL_UNLESS -->   
575 </div>
576 <!-- /TMPL_IF -->
577     <fieldset class="action">
578       <!-- TMPL_IF NAME="opadd" -->
579         <input type="button" name="step4" onclick="return check_form_borrowers(); unique();" value="Add Patron" />
580       <!-- TMPL_ELSE -->
581         <input type="button" name="step4" onclick="return check_form_borrowers();" value="Save Changes" />
582       <!--/TMPL_IF -->
583     </fieldset>
584 </form>
585   
586 </div>
587 </div>
588
589 <div class="yui-b">
590 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
591 </div>
592 </div>
593 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->