Restructuring guarantor display to address Bug 2220 ("Guarantor needs two fields...
[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_ELSE --> Modify<!--/TMPL_IF--> <!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organisation patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF --><!--TMPL_UNLESS Name="opadd"--> <!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR name="firstname" --><!--/TMPL_UNLESS--></title>
4 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/members.js"></script>
6 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
7 <script type="text/JavaScript" language="JavaScript">
8 //<![CDATA[
9          $(document).ready(function() {
10                 $("#guarantordelete").click(function() {
11                         $("#guarantorid").attr("value","");
12                         $("#contactname").attr("value","");
13                         $("#contactfirstname").attr("value","");
14                         $("#guarantorsearch").attr("value","Find guarantor");
15                 });
16                         $("#select_city").change(function(){
17                                 var myRegEx=new RegExp(/(.*)\|(.*)/);
18                         document.form.select_city.value.match(myRegEx);
19                         document.form.zipcode.value=RegExp.$1;
20                         document.form.city.value=RegExp.$2;                                     
21                 });
22          });
23
24     function clear_entry(node) {
25         var original = node.parentNode.parentNode;
26         $("input", original).attr('value', '');
27         $("select", original).attr('value', '');
28     }
29
30     function clone_entry(node) {
31         var original = node.parentNode.parentNode;
32         var clone = original.cloneNode(true);
33         var newId = 50 + parseInt(Math.random() * 100000);
34         $("input", clone).attr('id', function() {
35             return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
36         });
37         $("input", clone).attr('name', function() {
38             return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
39         });
40         $("select", clone).attr('id', function() {
41             return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
42         });
43         $("select", clone).attr('name', function() {
44             return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
45         });
46         original.parentNode.insertBefore(clone, original.nextSibling);
47     }
48
49 //]]>
50 </script>
51 </head>
52 <body>
53 <!-- TMPL_INCLUDE NAME="header.inc" -->
54 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
55
56 <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; 
57 <!-- TMPL_IF NAME="opadd" -->
58                 Add<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organisation patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF -->
59 <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
60 <!-- TMPL_ELSE --> 
61 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --></a> &rsaquo; <strong>Modify<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organisation patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF -->
62 </strong><!-- /TMPL_IF --></div>
63
64 <!-- TMPL_IF NAME="opadd" --><div id="doc" class="yui-t7"><!-- TMPL_ELSE --><div id="doc3" class="yui-t2"><!-- /TMPL_IF -->
65    
66    <div id="bd">
67         <div id="yui-main">
68         <div class="yui-b">
69
70
71         <!-- TMPL_IF NAME="opadd" -->
72         <h1>
73                 Add<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organisation patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF --> <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --> 
74         </h1>
75         <!-- TMPL_ELSE -->
76         <h1>
77                 Modify<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organisation patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF -->
78 <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --> 
79         </h1>
80         <!-- /TMPL_IF -->
81   
82         <!-- TMPL_IF NAME="check_member" -->
83                 <p>
84                 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
85                         <div class="dialog error">
86                                 <h3>Duplicate suspected</h3>
87                                 <a href="javascript:Dopop('borrowers_details.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >Detail</a>
88                                 Duplicate ?
89                                 <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->&amp;category_type=<!--TMPL_VAR NAME="check_categorytype"-->">Yes</a> 
90                                 &nbsp;&nbsp;&nbsp; No, it is not
91                                 <!-- TMPL_IF NAME="checked"-->
92                                         <input type="checkbox" checked="checked" name="answernodouble" >
93                                 <!-- TMPL_ELSE -->
94                                         <input type="checkbox" name="answernodouble" />
95                                 <!-- /TMPL_IF -->
96                         </div>
97                 </form>
98                 </p>
99         <!--/TMPL_IF-->
100                 
101         <!-- TMPL_IF Name="debug" -->
102                 <div id="debug">
103                                 <div>Debug is on (level <!-- TMPL_VAR NAME="debug" -->)</div>
104                 </div>
105         <!-- /TMPL_IF -->
106         <!-- TMPL_IF Name="nok" -->
107                 <div class="dialog error">
108                         <p>The following fields are wrong. Please fix them.</p>
109                         <ul>
110                         <!-- TMPL_IF NAME="ERROR_login_exist" -->
111                                 <li id="ERROR_login_exist">Login/password already exists.</li>
112                         <!-- /TMPL_IF -->
113                         <!-- TMPL_IF NAME="ERROR_cardnumber" -->
114                                 <li id="ERROR_cardnumber">Cardnumber already in use.</li>
115                         <!-- /TMPL_IF -->
116                         <!-- TMPL_IF NAME="ERROR_age_limitations" -->
117                                 <li id="ERROR_age_limitations">Patron's age is incorrect for their category.  
118                                         Ages allowed are <!-- TMPL_VAR NAME="ERROR_age_limitations"-->.</li>
119                         <!-- /TMPL_IF -->
120                         <!-- TMPL_IF NAME="ERROR_branch" -->
121                                 <li id="ERROR_branch">Library is invalid.</li>
122                         <!-- /TMPL_IF -->   
123                         <!-- TMPL_IF NAME="ERROR_dateofbirth" -->
124                                 <li id="ERROR_dateofbirth">Date of birth is invalid.</li>
125                         <!-- /TMPL_IF -->
126                         <!-- TMPL_IF NAME="ERROR_dateenrolled" -->
127                                 <li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
128                         <!-- /TMPL_IF -->
129                         <!-- TMPL_IF NAME="ERROR_dateexpiry" -->
130                                 <li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
131                         <!-- /TMPL_IF -->
132             <!-- TMPL_IF NAME="ERROR_extended_unique_id_failed" -->
133                 <li id="ERROR_extended_unique_id_failed">The attribute value 
134                     <!-- TMPL_VAR NAME="ERROR_extended_unique_id_failed" --> is already is use by another patron record.</li>
135                         <!-- /TMPL_IF -->
136                         </ul>
137                 </div>
138         <!-- /TMPL_IF -->
139         
140   
141 <form name="form"  action="/cgi-bin/koha/members/memberentry.pl" method="post"> 
142 <!--    field always hidden in different form (1,2,3) -->
143 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
144 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
145 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
146 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
147 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
148 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
149 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
150 <input type="hidden" name="nodouble"  value="<!-- TMPL_VAR NAME="nodouble" -->" />
151 <!--TMPL_IF Name="step"--><input type="hidden" name="step"  value="<!-- TMPL_VAR NAME="step" -->" /><!--/TMPL_IF-->
152 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
153
154 <!--TMPL_IF Name="step_1"-->
155         <fieldset class="rows" id="memberentry_identity">
156                 <legend><!--TMPL_IF Name="I"-->Organisation <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
157                 <ol>
158                 <!-- TMPL_UNLESS name="I" -->
159                 <!-- TMPL_IF NAME="title_cgipopup" -->
160             <li>
161             <!-- TMPL_IF NAME="mandatorytitle" -->
162                 <label for="btitle" class="required">
163             <!-- TMPL_ELSE -->
164                 <label for="btitle">
165             <!-- /TMPL_IF-->
166             Salutation: </label>
167             <!-- TMPL_VAR NAME="borrotitlepopup" -->
168             <!-- TMPL_IF NAME="mandatorytitle" --><span class="required">Required</span><!-- /TMPL_IF -->
169             </li>
170                 <!-- /TMPL_IF -->
171         <!-- /TMPL_UNLESS -->
172                 <li>
173                 <!-- TMPL_IF NAME="mandatorysurname" -->
174                 <label for="surname" class="required">
175                 <!-- TMPL_ELSE -->
176                 <label for="surname">
177                 <!-- /TMPL_IF-->
178                 Surname: </label>
179                 <!-- TMPL_IF NAME="uppercasesurnames" -->
180                 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="<!-- TMPL_VAR NAME="surname" -->" />
181                 <!-- TMPL_ELSE -->
182                 <input type="text" id="surname" name="surname" size="20"  value="<!-- TMPL_VAR NAME="surname" -->" />
183                 <!-- /TMPL_IF -->
184                 <!-- TMPL_IF NAME="mandatorysurname" --><span class="required">Required</span><!-- /TMPL_IF -->
185                 </li>
186                 <!-- TMPL_UNLESS name="I" -->
187             <li>
188                 <!-- TMPL_IF NAME="mandatoryfirstname" -->
189                 <label for="firstname" class="required">
190                 <!-- TMPL_ELSE -->
191                 <label for="firstname">
192                 <!-- /TMPL_IF-->
193                 Firstname: </label>
194                 <input type="text" id="firstname" name="firstname" size="20"  value="<!-- TMPL_VAR NAME="firstname" -->" />
195                 <!-- TMPL_IF NAME="mandatoryfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
196             </li>
197             <li>
198                 <!-- TMPL_IF NAME="mandatorydateofbirth" -->
199                 <label for="dateofbirth" class="required">
200                 <!-- TMPL_ELSE -->
201                 <label for="dateofbirth">
202                 <!-- /TMPL_IF-->
203                 Date of birth: </label>
204                                 
205         <!-- TMPL_IF NAME="metric" -->                  
206                 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
207 <!-- TMPL_ELSE -->
208                 <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
209 <!-- /TMPL_IF -->
210
211                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
212         <script language="JavaScript" type="text/javascript">
213             Calendar.setup(
214             {
215                 inputField : "dateofbirth",
216                 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
217                 button : "dateofbirth_button"
218             }
219             );
220         </script>
221         <!-- TMPL_IF NAME="mandatorydateofbirth" --><span class="required">Required</span><!-- /TMPL_IF -->
222         <!-- TMPL_IF NAME="ERROR_dateofbirth" --><span class="required">(Error)</span><!-- /TMPL_IF -->
223             </li>
224             <li>
225                 <!-- TMPL_IF NAME="mandatoryinitials" -->
226                     <label for="initials" class="required">
227                 <!-- TMPL_ELSE -->
228                     <label for="initials">
229                 <!-- /TMPL_IF-->
230                 Initials: </label>
231                 <input type="text" id="initials" name="initials" size="20"  value="<!-- TMPL_VAR NAME="initials" -->" />        
232                 <!-- TMPL_IF NAME="mandatoryinitials" --><span class="required">Required</span><!-- /TMPL_IF -->
233             </li>
234         <!-- /TMPL_UNLESS -->
235                 <li>
236                         <!-- TMPL_IF NAME="mandatoryothernames" -->
237                         <label for="othernames" class="required">
238                         <!-- TMPL_ELSE -->
239                         <label for="othernames">
240                         <!-- /TMPL_IF-->
241                         Other name: </label>
242                         <input type="text" id="othernames" name="othernames" size="20"  value="<!-- TMPL_VAR NAME="othernames" -->" />
243 <!-- TMPL_IF NAME="mandatoryothernames" --><span class="required">Required</span><!-- /TMPL_IF -->
244                 <!-- TMPL_IF NAME="I" --><input type="hidden" name="sex" value="N" /><!-- /TMPL_IF -->
245                 </li>
246     <!--TMPL_UNLESS Name="I"-->
247                 <li class="radio">
248                 
249                 <!-- TMPL_IF NAME="female" -->
250                                 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked"  />
251 <!-- TMPL_ELSE -->
252                                 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
253 <!-- /TMPL_IF -->
254                 <!-- TMPL_IF NAME="male" -->
255                 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" />
256 <!-- TMPL_ELSE -->
257                                 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
258 <!-- /TMPL_IF -->
259 <!-- TMPL_IF NAME="none" -->
260                                 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value=""  checked="checked"  />
261 <!-- TMPL_ELSE -->
262                                 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" />
263 <!-- /TMPL_IF -->
264         </li>
265     <!--/TMPL_UNLESS-->
266                 </ol>
267         </fieldset>
268         
269 <!--TMPL_IF Name="showguarantor"--><input type="hidden" name="guarantorid"   value="<!-- TMPL_VAR NAME="guarantorid" -->" />
270         <fieldset class="rows">
271         <legend>Guarantor Information</legend>
272         <ol>
273         <li>
274                 <label for="contactname">First Name: </label><input name="contactname" id="contactname" type="text"  size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
275         </li>
276         <li><label for="contactfirstname">Last Name: </label><input name="contactfirstname" id="contactfirstname" type="text"  size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" /></li>
277   <!-- TMPL_IF name="relshiploop" --><li><label for="relationship">Relationship: </label>
278   <select name="relationship" id="relationship" >
279     <!-- TMPL_LOOP name="relshiploop" -->
280         <!-- TMPL_IF name="selected" -->
281             <option value="<!-- TMPL_VAR name="relationship" -->" selected="selected" ><!-- TMPL_VAR name="relationship" --></option>
282         <!-- TMPL_ELSE -->
283             <option value="<!-- TMPL_VAR name="relationship" -->"><!-- TMPL_VAR name="relationship" --></option>
284         <!-- /TMPL_IF -->
285     <!-- /TMPL_LOOP -->
286     </select></li>
287   <!-- /TMPL_IF -->
288         <li><span class="label">&nbsp;</span><!-- TMPL_IF NAME="guarantorid"-->  
289     <input id="guarantorsearch" type="button" value="Change Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
290   <!-- TMPL_ELSE -->
291     <input id="guarantorsearch" type="button" value="Find Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
292   <!-- /TMPL_IF --> <input id="guarantordelete" type="button" value="Delete Guarantor" /></li>
293         </ol>
294         </fieldset>
295
296 <!--/TMPL_IF-->
297 <fieldset class="rows">
298     <legend>Main address</legend><ol>
299     <li>
300       <!-- TMPL_IF NAME="mandatorystreetnumber" -->
301       <label for="streetnumber" class="required">
302       <!--TMPL_ELSE-->
303       <label for="streetnumber">
304       <!-- /TMPL_IF-->
305       Street number: </label>
306       <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
307 <!-- TMPL_IF NAME="mandatorystreetnumber" --><span class="required">Required</span><!-- /TMPL_IF -->
308     </li>
309     <!-- TMPL_IF NAME="road_cgipopup" -->
310       <li>
311       <!-- TMPL_IF NAME="mandatorystreettype" -->
312       <label for="streettype" class="required">
313       <!--TMPL_ELSE-->
314       <label for="streettype">
315       <!-- /TMPL_IF-->
316       Street type: </label>
317       <!-- TMPL_VAR NAME="roadpopup" -->
318           <!-- TMPL_IF NAME="mandatorystreettype" --><span class="required">Required</span><!-- /TMPL_IF -->
319       </li>
320     <!--/TMPL_IF--> 
321     <li>
322       <!-- TMPL_IF NAME="mandatoryaddress" -->
323       <label for="address" class="required">
324       <!--TMPL_ELSE-->
325       <label for="address">
326       <!--/TMPL_IF-->
327       Address: </label>
328       <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
329           <!-- TMPL_IF NAME="mandatoryaddress" --><span class="required">Required</span><!-- /TMPL_IF -->
330     </li>
331     <li>
332       <!-- TMPL_IF NAME="mandatoryaddress2" -->
333       <label for="address2" class="required">
334       <!--TMPL_ELSE-->
335       <label for="address2">
336       <!-- /TMPL_IF-->
337       Address 2: </label>
338       <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
339           <!-- TMPL_IF NAME="mandatoryaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
340     </li>  
341     <li>
342       <!-- TMPL_IF NAME="mandatorycity" -->
343         <label for="city" class="required">
344       <!--TMPL_ELSE-->
345         <label for="city">
346       <!-- /TMPL_IF-->
347       City, State: </label>
348         
349         <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
350         <!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong> <!-- TMPL_VAR NAME="citypopup" --><!-- /TMPL_IF -->
351           <!-- TMPL_IF NAME="mandatorycity" --><span class="required">Required</span><!-- /TMPL_IF -->
352     </li>
353     <li> 
354       <!-- TMPL_IF NAME="mandatoryzipcode" -->
355         <label for="zipcode" class="required">
356       <!--TMPL_ELSE-->
357         <label for="zipcode">
358       <!-- /TMPL_IF-->
359       Zipcode: </label>
360       <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
361           <!-- TMPL_IF NAME="mandatoryzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
362     </li>
363   
364         </ol>
365     </fieldset>
366   <fieldset class="rows" id="memberentry_contact">
367     <legend>Contact</legend><ol>       
368 <!--TMPL_IF Name="C"-->
369       <h2>Patron</h2>
370       <li> 
371         <!-- TMPL_IF NAME="mandatoryB_email" -->
372           <label for="B_email" class="required">
373         <!--TMPL_ELSE-->
374           <label for="B_email">
375         <!-- /TMPL_IF-->
376         E-mail (home): </label>
377         <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
378                 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
379 <!--/TMPL_IF-->
380       <li>
381       <!-- TMPL_IF NAME="mandatoryphone" --> 
382       <label for="phone" class="required">
383       <!--TMPL_ELSE-->
384       <label for="phone">
385       <!-- /TMPL_IF-->
386       Phone (home): </label>
387       <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
388           <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
389     </li>
390     <li>
391       <!-- TMPL_IF NAME="mandatoryphonepro" -->
392       <label for="phonepro" class="required">
393       <!--TMPL_ELSE-->
394       <label for="phonepro">
395       <!-- /TMPL_IF-->
396       Phone (work): </label>
397       <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
398           <!-- TMPL_IF NAME="mandatoryphonepro" --><span class="required">Required</span><!-- /TMPL_IF -->
399     </li>
400     <li>
401       <!-- TMPL_IF NAME="mandatorymobile" -->
402       <label for="mobile" class="required">
403       <!--TMPL_ELSE-->
404       <label for="mobile">
405       <!-- /TMPL_IF-->
406       Phone (cell): </label>
407       <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
408           <!-- TMPL_IF NAME="mandatorymobile" --><span class="required">Required</span><!-- /TMPL_IF -->
409     </li>
410     <li>
411       <!-- TMPL_IF NAME="mandatoryemail" -->
412       <label for="email" class="required">
413       <!--TMPL_ELSE-->
414       <label for="email">
415       <!-- /TMPL_IF-->
416       E-mail (home): </label>
417       <input type="text" id="email" name="email" size="45" value="<!-- TMPL_VAR NAME="email" -->" />  
418           <!-- TMPL_IF NAME="mandatoryemail" --><span class="required">Required</span><!-- /TMPL_IF -->
419     </li>
420     <li>
421       <!-- TMPL_IF NAME="mandatoryemailpro" --> 
422       <label for="emailpro" class="required">
423       <!--TMPL_ELSE-->
424       <label for="emailpro">
425       <!-- /TMPL_IF-->
426       E-mail (work): </label>
427       <input type="text" id="emailpro" name="emailpro" size="45" value="<!-- TMPL_VAR NAME="emailpro" -->" />
428           <!-- TMPL_IF NAME="mandatoryemailpro" --><span class="required">Required</span><!-- /TMPL_IF -->
429     </li>
430     <li>
431       <!-- TMPL_IF NAME="mandatoryfax" -->
432       <label for="fax" class="required">
433       <!--TMPL_ELSE-->
434       <label for="fax">
435       <!-- /TMPL_IF-->
436       Fax: </label>
437       <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
438           <!-- TMPL_IF NAME="mandatoryfax" --><span class="required">Required</span><!-- /TMPL_IF -->
439     </li>
440         </ol>
441   </fieldset>
442
443
444 <!-- ************************ STEP_1 *********************** -->
445 <!--/TMPL_IF -->
446 <!--TMPL_IF Name="step_2"-->
447
448                 <fieldset class="rows" id="memberentry_address">
449                 <legend>Alternate address</legend><ol>
450                         <li>
451                                 <!-- TMPL_IF NAME="mandatoryB_address" -->
452                                         <label for="B_address" class="required">
453                                 <!--TMPL_ELSE-->
454                                         <label for="B_address">
455                                 <!-- /TMPL_IF-->
456                                 Address: </label>
457                                 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
458           <!-- TMPL_IF NAME="mandatoryB_address" --><span class="required">Required</span><!-- /TMPL_IF -->
459                         </li>
460                         <li>
461                                 <!-- TMPL_IF NAME="mandatoryB_city" -->
462                                         <label for="B_city" class="required" >
463                                 <!--TMPL_ELSE-->
464                                         <label for="B_city">
465                                 <!-- /TMPL_IF-->
466                                 City: </label>
467                                 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
468           <!-- TMPL_IF NAME="mandatoryB_city" --><span class="required">Required</span><!-- /TMPL_IF -->
469                         </li>
470                         <li>
471                                 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
472                                         <label for="B_zipcode" class="required">
473                                 <!--TMPL_ELSE-->
474                                         <label for="B_zipcode">
475                                 <!-- /TMPL_IF-->
476                                 Zipcode: </label>
477                                 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="5" size="5" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
478           <!-- TMPL_IF NAME="mandatoryB_zipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
479                         </li>
480             <li>
481                 <!-- TMPL_IF NAME="mandatoryB_phone" -->
482                 <label for="B_phone" class="required">
483                 <!--TMPL_ELSE-->
484                 <label for="B_phone">
485                 <!-- /TMPL_IF-->
486                 Phone: </label>  
487                 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
488                 <!-- TMPL_IF NAME="mandatoryB_phone" --><span class="required">Required</span><!-- /TMPL_IF -->
489             </li>
490                         <li> 
491         <!-- TMPL_IF NAME="mandatoryB_email" -->
492           <label for="B_email" class="required">
493         <!--TMPL_ELSE-->
494           <label for="B_email">
495         <!-- /TMPL_IF-->
496         E-mail: </label>
497         <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
498                 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
499             <li>
500                 <!-- TMPL_IF NAME="mandatorycontactnote" -->
501                 <label for="contactnote" class="required">
502                 <!--TMPL_ELSE-->
503                 <label for="contactnote">
504                 <!-- /TMPL_IF-->
505                 Contact note: </label>
506                 <textarea id="contactnote" name="contactnote" cols="40" rows="2"><!-- TMPL_VAR NAME="contactnote" --></textarea>
507         <!-- TMPL_IF NAME="mandatorycontactnote" --><span class="required">Required</span><!-- /TMPL_IF -->
508             </li>
509                         </ol>
510                 </fieldset>
511                 <fieldset class="rows" id="memberentry_altaddress">       
512                     <legend>Alternate Contact</legend><ol>
513                         <li>
514                             <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" -->
515                                 <label for="altcontactfirstname" class="required">
516                                 <!-- TMPL_ELSE -->
517                                 <label for="altcontactfirstname">
518                                 <!-- /TMPL_IF -->
519                                 Firstname:</label>
520                                 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="<!-- TMPL_VAR NAME="altcontactfirstname" -->" />
521                                 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
522                         </li>
523                         <li>
524                             <!-- TMPL_IF NAME="mandatoryaltcontactsurname" -->
525                                 <label for="altcontactsurname" class="required">
526                                 <!-- TMPL_ELSE -->
527                                 <label for="altcontactsurname">
528                                 <!-- /TMPL_IF -->
529                                 Surname:</label>
530                                 <input type="text" name="altcontactsurname" id="altcontactsurname" value="<!-- TMPL_VAR NAME="altcontactsurname" -->" />
531                                 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" --><span class="required">Required</span><!-- /TMPL_IF -->
532                         </li>
533                         <li>
534                             <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" -->
535                                 <label for="altcontactaddress1" class="required">
536                                 <!-- TMPL_ELSE -->
537                                 <label for="altcontactaddress1">
538                                 <!-- /TMPL_IF -->
539                                 Address line 1:</label>
540                                 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="<!-- TMPL_VAR NAME="altcontactaddress1" -->" size="40" />
541                                 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" --><span class="required">Required</span><!-- /TMPL_IF -->
542                         </li>
543                         <li>
544                             <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" -->
545                                 <label for="altcontactaddress2" class="required">
546                                 <!-- TMPL_ELSE -->
547                                 <label for="altcontactaddress2">
548                                 <!-- /TMPL_IF -->
549                                 Address line 2:</label>
550                                 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="<!-- TMPL_VAR NAME="altcontactaddress2" -->" size="40" />
551                                 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
552                         </li>
553                         <li>
554                             <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" -->
555                                 <label for="altcontactaddress3" class="required">
556                                 <!-- TMPL_ELSE -->
557                                 <label for="altcontactaddress3">
558                                 <!-- /TMPL_IF -->
559                                 City, State:</label>
560                                 <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="<!-- TMPL_VAR NAME="altcontactaddress3" -->" size="40" />
561                                 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" --><span class="required">Required</span><!-- /TMPL_IF -->
562                         </li>
563                         <li>
564                             <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" -->
565                                 <label for="altcontactzipcode" class="required">
566                                 <!-- TMPL_ELSE -->
567                                 <label for="altcontactzipcode">
568                                 <!-- /TMPL_IF -->
569                                 ZIP/Post code:</label>
570                                 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="<!-- TMPL_VAR NAME="altcontactzipcode" -->" size="5" />
571                                 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
572                         </li>
573                         <li>
574                             <!-- TMPL_IF NAME="mandatoryaltcontactphone" -->
575                                 <label for="altcontactphone" class="required">
576                                 <!-- TMPL_ELSE -->
577                                 <label for="altcontactphone">
578                                 <!-- /TMPL_IF -->
579                                 Phone:</label>
580                                 <input type="text" name="altcontactphone" id="altcontactphone" value="<!-- TMPL_VAR NAME="altcontactphone" -->" />
581                                 <!-- TMPL_IF NAME="mandatoryaltcontactphone" --><span class="required">Required</span><!-- /TMPL_IF -->
582                         </li>
583             </ol>
584         </fieldset>
585
586
587   <!-- TMPL_IF NAME="I" -->
588         <!-- TMPL_IF NAME="memberofinstution" -->
589         <fieldset class="rows" id="memberentry_organisation">
590                 <legend>Organisations</legend><ol>
591                 <li>
592                         <!-- TMPL_IF NAME="mandatoryphone" --> 
593                         <label for="organisations" class="required">
594                         <!--TMPL_ELSE-->
595                         <label for="organisations">
596                         <!-- /TMPL_IF-->
597                         Organisation(s): </label>
598                         <!-- TMPL_VAR NAME="CGIorganisations" -->
599           <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
600                 </li>
601                 </ol>
602         </fieldset>
603         <!-- /TMPL_IF -->
604   <!-- /TMPL_IF -->
605               
606 <!-- /TMPL_IF -->
607 <!--TMPL_IF Name="step_3"-->
608
609   <fieldset class="rows" id="memberentry_library_management">
610     <legend>Library Management</legend><ol>
611    <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
612       <label for="cardnumber" class="required">
613     <!--TMPL_ELSE -->
614       <label for="cardnumber">
615     <!-- /TMPL_IF--> 
616     Card number: </label>
617     <input type="text" id="cardnumber" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
618           <!-- TMPL_IF NAME="mandatorycardnumber" --><span class="required">Required</span><!-- /TMPL_IF --></li>
619     <li>
620       <!-- TMPL_IF NAME="mandatorybranchcode" -->
621         <label for="branchcode" class="required">
622       <!--TMPL_ELSE-->
623         <label for="branchcode">
624       <!-- /TMPL_IF-->
625       Library: </label>
626       <!-- TMPL_VAR NAME="CGIbranch" -->
627           <!-- TMPL_IF NAME="mandatorybranchcode" --><span class="required">Required</span><!-- /TMPL_IF -->
628     </li>
629     <li>
630     <!-- TMPL_IF NAME="typeloop" -->
631         <label for="categorycode">Category: </label>
632         <select id="categorycode" name="categorycode">
633         <!-- TMPL_LOOP NAME="typeloop" -->
634                 <!-- TMPL_IF EXPR="typename eq 'C'" --><optgroup label="Child"><!-- /TMPL_IF -->
635                 <!-- TMPL_IF EXPR="typename eq 'A'" --><optgroup label="Adult"><!-- /TMPL_IF -->
636                 <!-- TMPL_IF EXPR="typename eq 'S'" --><optgroup label="Staff"><!-- /TMPL_IF -->
637                 <!-- TMPL_IF EXPR="typename eq 'I'" --><optgroup label="Organisation"><!-- /TMPL_IF -->
638                 <!-- TMPL_IF EXPR="typename eq 'P'" --><optgroup label="Professional"><!-- /TMPL_IF -->
639                 <!-- TMPL_IF EXPR="typename eq 'X'" --><optgroup label="Statistical"><!-- /TMPL_IF -->
640                 <!-- TMPL_LOOP NAME="categoryloop" -->
641                                 <!-- TMPL_IF NAME="categorycodeselected" -->
642                <option value="<!-- TMPL_VAR NAME="categorycode" -->" selected="selected"><!-- TMPL_VAR NAME="categoryname" --></option>
643                                 <!-- TMPL_ELSE -->
644 <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="categoryname" --></option>
645                                 <!-- /TMPL_IF -->
646                 <!-- /TMPL_LOOP -->
647         </optgroup>
648         <!-- /TMPL_LOOP -->
649                 </select>
650     <!-- TMPL_ELSE -->
651         <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--><!--TMPL_IF Name="S"-->a Staff Member<!--/TMPL_IF-->.</span>
652               <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
653     <!-- /TMPL_IF -->
654     </li>
655     <li>
656       <!-- TMPL_IF NAME="mandatorysort1" -->
657         <label for="sort1" class="required">
658       <!-- TMPL_ELSE -->
659         <label for="sort1">
660       <!-- /TMPL_IF-->
661       Sort 1: </label>
662       <!--TMPL_IF NAME="CGIsort1" --> 
663         <!-- TMPL_VAR NAME="CGIsort1" -->
664       <!--TMPL_ELSE-->
665         <input  type="text" id="sort1" name="sort1" size="20"  value="<!-- TMPL_VAR NAME="sort1" -->" />
666           <!-- TMPL_IF NAME="mandatorysort1" --><span class="required">Required</span><!-- /TMPL_IF -->
667       <!-- /TMPL_IF -->   
668     </li>
669     <li>
670     <!-- TMPL_IF NAME="mandatorysort2" -->
671     <label for="sort2" class="required">
672     <!-- TMPL_ELSE -->
673     <label for="sort2">
674     <!-- /TMPL_IF-->
675     Sort 2: </label>
676     <!--TMPL_IF NAME="CGIsort2" --> 
677       <!-- TMPL_VAR NAME="CGIsort2" -->
678     <!--TMPL_ELSE-->
679       <input  type="text" id="sort2" name="sort2" size="20"  value="<!-- TMPL_VAR NAME="sort2" -->" />
680           <!-- TMPL_IF NAME="mandatorysort2" --><span class="required">Required</span><!-- /TMPL_IF -->
681     <!-- /TMPL_IF --> 
682     </li>
683         </ol>
684   </fieldset>
685         <fieldset class="rows" id="memberentry_subscription">
686         <legend>Library set-up</legend><ol>
687                 <li>
688                         <!-- TMPL_IF NAME="mandatorydateenrolled" -->
689                         <label for="dateenrolled" class="required">
690                         <!--TMPL_ELSE-->
691                         <label for="dateenrolled">
692                         <!-- /TMPL_IF-->
693                         Registration date: </label>
694                         <input type="text" id="dateenrolled" name="dateenrolled"  maxlength="10" size="10" <!-- TMPL_IF NAME="metric" -->onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');"<!-- /TMPL_IF--> value="<!-- TMPL_VAR NAME="dateenrolled" -->" />
695             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
696       <script language="JavaScript" type="text/javascript">
697         Calendar.setup(
698           {
699             inputField : "dateenrolled",
700             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
701             button : "dateenrolled_button"
702           }
703         );
704       </script>
705                 <!-- TMPL_IF NAME="mandatorydateenrolled" --><span class="required">Required</span><!-- /TMPL_IF -->
706                 <!-- TMPL_IF NAME="ERROR_dateenrolled" --><span class="required">(Error)</span><!-- /TMPL_IF -->
707                 </li>
708                 <li>
709                         <!-- TMPL_IF NAME="mandatorydateexpiry" -->
710                         <label for="dateexpiry" class="required">
711                         <!--TMPL_ELSE-->
712                         <label for="dateexpiry">
713                         <!-- /TMPL_IF-->
714                         Expiry date: </label>
715                         <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10"  size="10" <!-- TMPL_IF NAME="metric" -->onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');"<!-- /TMPL_IF--> value="<!-- TMPL_VAR NAME="dateexpiry" -->" />
716             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
717       <script language="JavaScript" type="text/javascript">
718         Calendar.setup(
719           {
720             inputField : "dateexpiry",
721             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
722             button : "dateexpiry_button"
723           }
724         );
725       </script>
726                 <!-- TMPL_IF NAME="mandatorydateexpiry" --><span class="required">Required</span><!-- /TMPL_IF -->
727                 <!-- TMPL_IF NAME="ERROR_dateexpiry" --><span class="required">(Error)</span><!-- /TMPL_IF -->
728                 </li>
729                 <li>
730                         <!-- TMPL_IF NAME="mandatoryopacnote" -->
731                                 <label for="opacnote" class="required">
732                         <!--TMPL_ELSE-->
733                                 <label for="opacnote">
734                         <!-- /TMPL_IF-->        
735                         OPAC note: </label>
736                         <textarea id="opacnote" name="opacnote" cols="55" rows="5"><!-- TMPL_VAR NAME="opacnote" --></textarea>
737           <!-- TMPL_IF NAME="mandatoryopacnote" --><span class="required">Required</span><!-- /TMPL_IF -->
738                 </li>
739                 <li>
740                         <!-- TMPL_IF NAME="mandatoryborrowernotes" -->  
741                                 <label for="borrowernotes" class="required">
742                         <!--TMPL_ELSE-->
743                                 <label for="borrowernotes">
744                         <!-- /TMPL_IF-->
745                         Library note: </label>
746                         <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
747           <!-- TMPL_IF NAME="mandatoryborrowernotes" --><span class="required">Required</span><!-- /TMPL_IF -->
748                 </li>
749                 </ol>
750         </fieldset>
751         <fieldset class="rows" id="memberentry_userid">
752                 <legend>OPAC login</legend><ol>
753                 <li>
754                         <!-- TMPL_IF NAME="mandatoryuserid" -->
755                         <label for="userid" class="required">
756                         <!--TMPL_ELSE-->
757                         <label for="userid">
758                         <!-- /TMPL_IF-->
759                         OPAC Login: </label>
760
761 <!-- TMPL_IF NAME="NoUpdateLogin" -->
762 <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="userid" -->" />
763 <!-- TMPL_ELSE -->
764 <input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
765 <!-- /TMPL_IF -->
766
767           <!-- TMPL_IF NAME="mandatoryuserid" --><span class="required">Required</span><!-- /TMPL_IF -->
768                 </li>
769                 <li>
770                         <!-- TMPL_IF NAME="mandatorypassword" -->
771                         <label for="password" class="required">
772                         <!--TMPL_ELSE-->
773                         <label for="password">
774                         <!-- /TMPL_IF-->
775                         Password: </label>
776                         <!--TMPL_IF NAME="opadd"-->
777                         <!-- TMPL_IF NAME="NoUpdateLogin" -->
778                                 <input type="text" id="password" name="password" size="20"  disabled="disabled" value="<!-- TMPL_VAR NAME="password" -->" />
779 <!-- TMPL_ELSE -->
780                                 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
781 <!-- /TMPL_IF -->
782                         <!--TMPL_ELSE-->
783                         <!--TMPL_IF NAME="password"-->
784                                 <!-- TMPL_IF NAME="NoUpdateLogin" -->
785                                         <input type="text" id="password" name="password" size="20"  disabled="disabled" value="****" />
786                                 <!-- TMPL_ELSE -->
787                                         <input type="text" id="password" name="password" size="20" value="****" />
788                                 <!-- /TMPL_IF -->
789                         <!--TMPL_ELSE-->
790                                 <!-- TMPL_IF NAME="NoUpdateLogin" -->
791                                         <input type="text" id="password" name="password" size="20"  disabled="disabled" value="" />
792                                 <!-- TMPL_ELSE -->
793                                         <input type="text" id="password" name="password" size="20" value="" />
794                                 <!-- /TMPL_IF -->
795                         <!--/TMPL_IF-->
796                         <!--/TMPL_IF-->
797           <!-- TMPL_IF NAME="mandatorypassword" --><span class="required">Required</span><!-- /TMPL_IF -->
798                 </li></ol>
799                 </fieldset>
800                 <!--this zones are not necessary in modif mode -->
801                 <!-- TMPL_UNLESS NAME="opadd" -->
802                 <fieldset class="rows">
803                         <legend>Patron Account Flags</legend>
804                         <ol class="radio">
805                         <!-- TMPL_LOOP NAME="flagloop" -->
806                                 <li><label class="radio" for="yes<!-- TMPL_VAR name="name" -->">
807                                 <!-- TMPL_IF EXPR="key eq 'gonenoaddress'" -->Gone no Address:<!-- /TMPL_IF -->
808                                 <!-- TMPL_IF EXPR="key eq 'debarred'" -->Debarred:<!-- /TMPL_IF -->
809                                 <!-- TMPL_IF EXPR="key eq 'lost'" -->Lost Card:<!-- /TMPL_IF -->
810                 </label>
811                                 
812                                 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
813                                 <!-- TMPL_IF NAME="yes" -->
814                                 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
815                                 <!-- TMPL_ELSE -->
816                                 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
817                                 <!-- /TMPL_IF -->
818                                 
819                                 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
820                                 <!-- TMPL_IF NAME="no" -->
821                                 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
822                                 <!-- TMPL_ELSE -->
823                                 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
824                                 <!-- /TMPL_IF -->
825
826 </li>
827                         <!-- /TMPL_LOOP -->
828                         </ol>
829                         </fieldset>
830                 <!-- /TMPL_UNLESS -->   
831 <!-- /TMPL_IF -->
832
833 <!-- TMPL_IF NAME="step_4" --><!-- TMPL_IF NAME="ExtendedPatronAttributes" -->
834   <fieldset class="rows" id="memberentry_patron_attributes">
835     <input type="hidden" name="setting_extended_patron_attributes" value="1">
836     <legend>Additional attributes and identifiers</legend>
837     <!-- TMPL_IF NAME="no_patron_attribute_types" -->
838     No patron attribute types defined.
839     <!-- TMPL_ELSE -->
840     <table>
841         <tr>
842             <th>Type</th>
843             <th colspan="2">Value</th>
844         </tr>
845         <!-- TMPL_LOOP NAME='patron_attributes' -->
846         <tr>
847             <td><!-- TMPL_VAR NAME="code" --> (<!-- TMPL_VAR NAME="description" -->)
848             </td>
849             <td>
850                 <input type="hidden" id="<!-- TMPL_VAR NAME="form_id" -->_code" name="<!-- TMPL_VAR NAME="form_id" -->_code"
851                        value="<!-- TMPL_VAR NAME="code" -->" />
852                 <!-- TMPL_IF NAME="use_dropdown" -->
853                     <select id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->">
854                         <option value="" />
855                         <!-- TMPL_LOOP NAME="auth_val_loop" -->
856                             <!-- TMPL_IF NAME="selected" -->
857                                 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected">
858                                     <!-- TMPL_VAR NAME="lib" -->
859                                 </option>
860                             <!-- TMPL_ELSE -->
861                                 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" >
862                                     <!-- TMPL_VAR NAME="lib" -->
863                                 </option>
864                             <!-- /TMPL_IF -->
865                         <!-- /TMPL_LOOP -->
866                     </select>
867                 <!-- TMPL_ELSE -->
868                     <input type="text" maxlength="30" value="<!-- TMPL_VAR NAME="value" -->"
869                            id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->" />
870                 <!-- /TMPL_IF -->
871                 <!-- TMPL_IF NAME="password_allowed" -->
872                     (Password: <input type="password" maxlength="30" value="<!-- TMPL_VAR NAME="password" -->"
873                            id="<!-- TMPL_VAR NAME="form_id" -->_password" name="<!-- TMPL_VAR NAME="form_id" -->_password" />)
874                 <!-- /TMPL_IF -->
875             </td>
876             <td>
877                 <a href="#" onclick="clear_entry(this); return false;">Clear</a>
878                 <!-- TMPL_IF NAME="repeatable" -->
879                 <a href="#" onclick="clone_entry(this); return false;">New</a>
880                 <!-- /TMPL_IF -->
881             </td>
882         </tr>
883         <!-- /TMPL_LOOP -->
884     </table>
885     <!-- /TMPL_IF -->
886   </fieldset>
887 <!-- /TMPL_IF--><!-- /TMPL_IF -->
888
889     <fieldset class="action">
890         <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
891       <!-- TMPL_IF NAME="opadd" -->
892        <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
893            <!-- TMPL_ELSE -->
894           <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Cancel</a>
895            <!-- /TMPL_IF -->
896     </fieldset>
897 </form>
898   
899 </div>
900 </div>
901
902 <!-- TMPL_UNLESS NAME="opadd" --><div class="yui-b">
903 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
904 </div><!-- /TMPL_UNLESS -->
905 </div>
906 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->