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