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