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