Various random noodlings: - Visual changes to circ, detail, request, and member pages...
[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"><!-- TMPL_IF NAME="female" --><label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" />
166                 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
167                 <!-- TMPL_ELSE -->
168                 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
169                 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /></li>
170         </ol>
171                 
172                 <!-- /TMPL_IF -->
173 <!--TMPL_IF Name="C"-->  <p>
174   <input name="guarantordelete" type="button" value="Delete Guarantor" onclick="document.form.guarantorid.value='';document.form.guarantorinfo.value='',document.form.guarantorsearch.value='Find guarantor';" />
175   <!-- TMPL_IF NAME="guarantorid"-->  
176     
177     <input name="guarantorsearch" type="button" value="Modify Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
178   <!-- TMPL_ELSE -->
179     <input name="guarantorsearch" type="button" value="Find guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
180   <!-- /TMPL_IF -->
181   <input name="guarantorinfo" type="text"  size="20" value="<!-- TMPL_VAR NAME="guarantorinfo" -->" disabled="disabled" readonly="readonly" />
182   </p>       
183 <!--/TMPL_IF-->       
184         </fieldset>
185 <fieldset class="rows">
186     <legend>Main address</legend><ol>
187     <li>
188       <!-- TMPL_IF NAME="mandatorystreetnumber" -->
189       <label for="streetnumber" class="required">
190       <!--TMPL_ELSE-->
191       <label for="streetnumber">
192       <!-- /TMPL_IF-->
193       Street number: </label>
194       <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
195     </li>
196     <!-- TMPL_IF NAME="road_cgipopup" -->
197       <li>
198       <!-- TMPL_IF NAME="mandatorystreettype" -->
199       <label for="streettype" class="required">
200       <!--TMPL_ELSE-->
201       <label for="streettype">
202       <!-- /TMPL_IF-->
203       Street type: </label>
204       <!-- TMPL_VAR NAME="roadpopup" -->
205       </li>
206     <!--/TMPL_IF--> 
207     <li>
208       <!-- TMPL_IF NAME="mandatoryaddress" -->
209       <label for="address" class="required">
210       <!--TMPL_ELSE-->
211       <label for="address">
212       <!--/TMPL_IF-->
213       Address: </label>
214       <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
215     </li>
216     <li>
217       <!-- TMPL_IF NAME="mandatoryaddress2" -->
218       <label for="address2" class="required">
219       <!--TMPL_ELSE-->
220       <label for="address2">
221       <!-- /TMPL_IF-->
222       Address 2: </label>
223       <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
224     </li>
225     <li> 
226       <!-- TMPL_IF NAME="mandatoryzipcode" -->
227         <label for="zipcode" class="required">
228       <!--TMPL_ELSE-->
229         <label for="zipcode">
230       <!-- /TMPL_IF-->
231       Zipcode: </label>
232       <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
233     </li>
234     <!-- TMPL_IF NAME="city_cgipopup" --> 
235     <li>
236       <!-- TMPL_IF NAME="mandatoryselect_city" -->
237         <label for="select_city" class="required">
238       <!-- TMPL_ELSE -->
239         <label for="select_city">
240       <!-- /TMPL_IF-->
241       Select a city: </label>
242       <!-- TMPL_VAR NAME="citypopup" -->
243     </li>
244     <!-- /TMPL_IF-->
245     <li>
246       <!-- TMPL_IF NAME="mandatorycity" -->
247         <label for="city" class="required">
248       <!--TMPL_ELSE-->
249         <label for="city">
250       <!-- /TMPL_IF-->
251       City: </label>
252       <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
253     </li>
254         </ol>
255     </fieldset>
256   <fieldset class="rows" id="memberentry_contact">
257     <legend>Contact</legend><ol>       
258 <!--TMPL_IF Name="C"-->
259       <h2>Borrower</h2>
260       <li> 
261         <!-- TMPL_IF NAME="mandatoryB_email" -->
262           <label for="B_email" class="required">
263         <!--TMPL_ELSE-->
264           <label for="B_email">
265         <!-- /TMPL_IF-->
266         E-mail (home): </label>
267         <input type="text" id="B_email" name="B_email" value="<!-- TMPL_VAR NAME="B_email" -->" /> 
268         <!-- TMPL_IF NAME="mandatoryB_phone" -->
269           <label for="B_phone" class="required">
270         <!--TMPL_ELSE-->
271           <label for="B_phone">
272         <!-- /TMPL_IF-->
273         Phone (cell): </label>  
274         <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />     
275       </li>
276 <!--/TMPL_IF-->
277       <li>
278       <!-- TMPL_IF NAME="mandatoryphone" --> 
279       <label for="phone" class="required">
280       <!--TMPL_ELSE-->
281       <label for="phone">
282       <!-- /TMPL_IF-->
283       Phone (home): </label>
284       <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
285     </li>
286     <li>
287       <!-- TMPL_IF NAME="mandatoryphonepro" -->
288       <label for="phonepro" class="required">
289       <!--TMPL_ELSE-->
290       <label for="phonepro">
291       <!-- /TMPL_IF-->
292       Phone (prof): </label>
293       <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
294     </li>
295     <li>
296       <!-- TMPL_IF NAME="mandatorymobile" -->
297       <label for="mobile" class="required">
298       <!--TMPL_ELSE-->
299       <label for="mobile">
300       <!-- /TMPL_IF-->
301       Phone (cell): </label>
302       <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
303     </li>
304     <li>
305       <!-- TMPL_IF NAME="mandatoryemail" -->
306       <label for="email" class="required">
307       <!--TMPL_ELSE-->
308       <label for="email">
309       <!-- /TMPL_IF-->
310       E-mail (home): </label>
311       <input type="text" id="email" name="email" value="<!-- TMPL_VAR NAME="email" -->" />  
312     </li>
313     <li>
314       <!-- TMPL_IF NAME="mandatoryemailpro" --> 
315       <label for="emailpro" class="required">
316       <!--TMPL_ELSE-->
317       <label for="emailpro">
318       <!-- /TMPL_IF-->
319       E-mail (prof): </label>
320       <input type="text" id="emailpro" name="emailpro" value="<!-- TMPL_VAR NAME="emailpro" -->" />
321     </li>
322     <li>
323       <!-- TMPL_IF NAME="mandatoryfax" -->
324       <label for="fax" class="required">
325       <!--TMPL_ELSE-->
326       <label for="fax">
327       <!-- /TMPL_IF-->
328       Fax: </label>
329       <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
330     </li>
331         </ol>
332   </fieldset>
333 </div>
334
335 <!-- ************************ STEP_1 *********************** -->
336 <!--/TMPL_IF -->
337 <!--TMPL_IF Name="step_2"-->
338 <!--TMPL_IF Name="step_1"-->
339 <div id="step2" class="content_hidden">
340 <!--TMPL_ELSE-->
341 <div id="step2" class="content_visible">
342 <!--/TMPL_IF-->       
343
344                 <fieldset class="rows" id="memberentry_address">
345                 <legend>Alternate address</legend><ol>
346                         <li>
347                                 <!-- TMPL_IF NAME="mandatoryB_address" -->
348                                         <label for="B_address" class="required">
349                                 <!--TMPL_ELSE-->
350                                         <label for="B_address">
351                                 <!-- /TMPL_IF-->
352                                 Address: </label>
353                                 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
354                         </li>
355                         <li>
356                                 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
357                                         <label for="B_zipcode" class="required">
358                                 <!--TMPL_ELSE-->
359                                         <label for="B_zipcode">
360                                 <!-- /TMPL_IF-->
361                                 Zipcode: </label>
362                                 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="5" size="5" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
363                         </li>
364                         <li>
365                                 <!-- TMPL_IF NAME="mandatoryB_city" -->
366                                         <label for="B_city" class="required" >
367                                 <!--TMPL_ELSE-->
368                                         <label for="B_city">
369                                 <!-- /TMPL_IF-->
370                                 City: </label>
371                                 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
372                         </li>
373                         </ol>
374                 </fieldset>
375   <!-- TMPL_IF NAME="I" -->
376         <!-- TMPL_IF NAME="memberofinstution" -->
377         <fieldset class="rows" id="memberentry_organisation">
378                 <legend>Organisations</legend><ol>
379                 <li>
380                         <!-- TMPL_IF NAME="mandatoryphone" --> 
381                         <label for="organisations" class="required">
382                         <!--TMPL_ELSE-->
383                         <label for="organisations">
384                         <!-- /TMPL_IF-->
385                         Organisation(s): </label>
386                         <!-- TMPL_VAR NAME="CGIorganisations" -->
387                 </li>
388                 </ol>
389         </fieldset>
390         <!-- /TMPL_IF -->
391   <!-- /TMPL_IF -->
392 </div>
393               
394 <!-- /TMPL_IF -->
395 <!--TMPL_IF Name="step_3"-->
396 <!--TMPL_IF Name="step_1"-->
397 <div id="step3" class="content_hidden">
398 <!--TMPL_ELSE-->
399 <div id="step3" class="content_visible">
400 <!--/TMPL_IF-->       
401
402   <fieldset class="rows" id="memberentry_library_management">
403     <legend>Library Management</legend><ol>
404    <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
405       <label for="cardnumber" class="required">
406     <!--TMPL_ELSE -->
407       <label for="cardnumber">
408     <!-- /TMPL_IF--> 
409     Card number: </label>
410     <input type="text" id="cardnumber" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->" /></li>
411     <li>
412       <!-- TMPL_IF NAME="mandatorybranchcode" -->
413         <label for="branchcode" class="required">
414       <!--TMPL_ELSE-->
415         <label for="branchcode">
416       <!-- /TMPL_IF-->
417       Branch: </label>
418       <!-- TMPL_VAR NAME="CGIbranch" -->
419     </li>
420     <li>
421     <!-- TMPL_IF NAME="catcodepopup" -->
422           <label for="categorycode">Category: </label>
423           <!-- TMPL_VAR NAME="catcodepopup" -->
424       <!-- TMPL_ELSE -->
425           <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>
426               <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
427       <!-- /TMPL_IF -->
428     </li>
429     <li>
430       <!-- TMPL_IF NAME="mandatorysort1" -->
431         <label for="sort1" class="required">
432       <!-- TMPL_ELSE -->
433         <label for="sort1">
434       <!-- /TMPL_IF-->
435       Sort 1: </label>
436       <!--TMPL_IF NAME="CGIsort1" --> 
437         <!-- TMPL_VAR NAME="CGIsort1" -->
438       <!--TMPL_ELSE-->
439         <input  type="text" id="sort1" name="sort1" size="20"  value="<!-- TMPL_VAR NAME="sort1" -->" />
440       <!-- /TMPL_IF -->   
441     </li>
442     <li>
443     <!-- TMPL_IF NAME="mandatorysort2" -->
444     <label for="sort2" class="required">
445     <!-- TMPL_ELSE -->
446     <label for="sort2">
447     <!-- /TMPL_IF-->
448     Sort 2: </label>
449     <!--TMPL_IF NAME="CGIsort2" --> 
450       <!-- TMPL_VAR NAME="CGIsort2" -->
451     <!--TMPL_ELSE-->
452       <input  type="text" id="sort2" name="sort2" size="20"  value="<!-- TMPL_VAR NAME="sort2" -->" />
453     <!-- /TMPL_IF --> 
454     </li>
455         </ol>
456   </fieldset>
457         <fieldset class="rows" id="memberentry_subscription">
458         <legend>Library set-up</legend><ol>
459                 <li>
460                         <!-- TMPL_IF NAME="mandatorydateenrolled" -->
461                         <label for="dateenrolled" class="required">
462                         <!--TMPL_ELSE-->
463                         <label for="dateenrolled">
464                         <!-- /TMPL_IF-->
465                         Arrival date: </label>
466                         <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" -->" />
467             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
468       <script language="JavaScript" type="text/javascript">
469         Calendar.setup(
470           {
471             inputField : "dateenrolled",
472             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
473             button : "dateenrolled_button"
474           }
475         );
476       </script>
477                 </li>
478                 <li>
479                         <!-- TMPL_IF NAME="mandatorydateexpiry" -->
480                         <label for="dateexpiry" class="required">
481                         <!--TMPL_ELSE-->
482                         <label for="dateexpiry">
483                         <!-- /TMPL_IF-->
484                         Expiry date: </label>
485                         <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" -->" />
486             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
487       <script language="JavaScript" type="text/javascript">
488         Calendar.setup(
489           {
490             inputField : "dateexpiry",
491             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
492             button : "dateexpiry_button"
493           }
494         );
495       </script>
496                 </li>
497                 <li>
498                         <!-- TMPL_IF NAME="mandatoryopacnote" -->
499                                 <label for="opacnote" class="required">
500                         <!--TMPL_ELSE-->
501                                 <label for="opacnote">
502                         <!-- /TMPL_IF-->        
503                         OPAC note: </label>
504                         <textarea id="opacnote" name="opacnote" cols="40" rows="2"><!-- TMPL_VAR NAME="opacnote" --></textarea>
505                 </li>
506                 <li>
507                         <!-- TMPL_IF NAME="mandatoryborrowernotes" -->  
508                                 <label for="borrowernotes" class="required">
509                         <!--TMPL_ELSE-->
510                                 <label for="borrowernotes">
511                         <!-- /TMPL_IF-->
512                         Library note: </label>
513                         <textarea id="borrowernotes" name="borrowernotes" cols="40" rows="2"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
514                 </li>
515                 </ol>
516         </fieldset>
517         <fieldset class="rows" id="memberentry_userid">
518                 <legend>OPAC login</legend><ol>
519                 <li>
520                         <!-- TMPL_IF NAME="mandatoryuserid" -->
521                         <label for="userid" class="required">
522                         <!--TMPL_ELSE-->
523                         <label for="userid">
524                         <!-- /TMPL_IF-->
525                         OPAC Login: </label>
526                         <input type="text" id="userid" name="userid" size="20"  value="<!-- TMPL_VAR NAME="userid" -->" />
527                 </li>
528                 <li>
529                         <!-- TMPL_IF NAME="mandatorypassword" -->
530                         <label for="password" class="required">
531                         <!--TMPL_ELSE-->
532                         <label for="password">
533                         <!-- /TMPL_IF-->
534                         Password: </label>
535                         <!--TMPL_IF NAME="opadd"-->
536                                 <input type="text" id="password" name="password" size="20"  value="<!-- TMPL_VAR NAME="password" -->" />
537                         <!--TMPL_ELSE-->
538                                 <!--TMPL_IF NAME="password"-->
539                                         <input type="text" id="password" name="password" size="20"  value="****" />
540                                 <!--TMPL_ELSE-->
541                                         <input type="text" id="password" name="password" size="20"  value="" />
542                                 <!--/TMPL_IF-->
543                         <!--/TMPL_IF-->
544                 </li></ol>
545                 </fieldset>
546                 <!--this zones are not necessary in modif mode -->
547                 <!-- TMPL_UNLESS NAME="opadd" -->
548                 <fieldset class="rows">
549                         <legend>Patron Account Flags</legend>
550                         <ol class="radio">
551                         <!-- TMPL_LOOP NAME="flagloop" -->
552                                 <li><label class="radio" for="yes<!-- TMPL_VAR NAME="name" -->"><!-- TMPL_VAR NAME="html" -->: </label>
553                                 
554                                 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
555                                 <!-- TMPL_IF NAME="yes" -->
556                                 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
557                                 <!-- TMPL_ELSE -->
558                                 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
559                                 <!-- /TMPL_IF -->
560                                 
561                                 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
562                                 <!-- TMPL_IF NAME="no" -->
563                                 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
564                                 <!-- TMPL_ELSE -->
565                                 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
566                                 <!-- /TMPL_IF -->
567
568 </li>
569                         <!-- /TMPL_LOOP -->
570                         </ol>
571                         </fieldset>
572                 <!-- /TMPL_UNLESS -->   
573 </div>
574 <!-- /TMPL_IF -->
575     <fieldset class="action">
576       <!-- TMPL_IF NAME="opadd" -->
577         <input type="button" name="step4" onclick="return check_form_borrowers(); unique();" value="Add Patron" />
578       <!-- TMPL_ELSE -->
579         <input type="button" name="step4" onclick="return check_form_borrowers();" value="Save Changes" />
580       <!--/TMPL_IF -->
581     </fieldset>
582 </form>
583   
584 </div>
585 </div>
586
587 <div class="yui-b">
588 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
589 </div>
590 </div>
591 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->