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