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