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