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