Adds helpful note to Home Phone and Home Email fields to remind staff which fields...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / memberentrygen.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Patrons &rsaquo; 
3 <!-- TMPL_IF NAME="opadd" -->   Add<!-- TMPL_ELSE --> Modify<!--/TMPL_IF--> <!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> 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="P"-->
280                 <!-- TMPL_IF NAME="guarantorid" -->
281                 <li id="contact-details">
282                 <!-- TMPL_ELSE -->
283                 <li id="contact-details" style="display: none">
284                 <!-- /TMPL_IF -->
285                     <span class="label">Organization #:</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 -->
286                 </li>
287                 <li>
288                     <label for="contactname">Organization name: </label>
289                     <!-- TMPL_IF NAME="guarantorid" -->
290                     <span><!-- TMPL_VAR NAME="contactname" --></span>
291                     <input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
292                     <!-- TMPL_ELSE -->
293                     <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
294                     <!-- /TMPL_IF -->
295                 </li>
296 <!-- TMPL_ELSE -->
297  <!-- TMPL_IF NAME="C" -->
298  <!-- TMPL_IF NAME="guarantorid" -->
299  <li id="contact-details">
300  <!-- TMPL_ELSE -->
301  <li id="contact-details" style="display: none">
302  <!-- /TMPL_IF -->
303      <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 -->
304  </li>
305  <li>
306      <label for="contactname">Surname: </label>
307      <!-- TMPL_IF NAME="guarantorid" -->
308      <span><!-- TMPL_VAR NAME="contactname" --></span>
309      <input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
310      <!-- TMPL_ELSE -->
311      <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
312      <!-- /TMPL_IF -->
313  </li>
314  <li>
315      <label for="contactfirstname">First name: </label>
316      <!-- TMPL_IF NAME="guarantorid" -->
317      <span><!-- TMPL_VAR NAME="contactfirstname" --></span>
318      <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
319      <!-- TMPL_ELSE -->
320      <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
321      <!-- /TMPL_IF -->
322  </li>
323  <!-- TMPL_IF name="relshiploop" -->
324  <li>
325      <label for="relationship">Relationship: </label>
326      <select name="relationship" id="relationship" >
327          <!-- TMPL_LOOP name="relshiploop" -->
328          <!-- TMPL_IF name="selected" -->
329          <option value="<!-- TMPL_VAR name="relationship" -->" selected="selected" ><!-- TMPL_VAR name="relationship" --></option>
330          <!-- TMPL_ELSE -->
331          <option value="<!-- TMPL_VAR name="relationship" -->"><!-- TMPL_VAR name="relationship" --></option>
332          <!-- /TMPL_IF -->
333          <!-- /TMPL_LOOP -->
334      </select>
335  </li>
336  <!-- /TMPL_IF -->
337  <!-- /TMPL_IF -->
338 <!--/TMPL_IF -->
339         <li>
340             <span class="label">&nbsp;</span>
341             <!-- TMPL_IF NAME="guarantorid" -->
342             <input id="guarantorsearch" type="button" value="Change" onclick="Dopopguarantor('guarantor_search.pl');" />
343             <!-- TMPL_ELSE -->
344             <input id="guarantorsearch" type="button" value="Set to Patron" onclick="Dopopguarantor('guarantor_search.pl');" />
345             <!-- /TMPL_IF -->
346             <input id="guarantordelete" type="button" value="Delete" />
347         </li>
348         </ol>
349     </fieldset>
350
351 <!--/TMPL_IF-->
352 <fieldset class="rows">
353     <legend>Main address</legend><ol>
354     <li>
355       <!-- TMPL_IF NAME="mandatorystreetnumber" -->
356       <label for="streetnumber" class="required">
357       <!--TMPL_ELSE-->
358       <label for="streetnumber">
359       <!-- /TMPL_IF-->
360       Street number: </label>
361       <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
362 <!-- TMPL_IF NAME="mandatorystreetnumber" --><span class="required">Required</span><!-- /TMPL_IF -->
363     </li>
364     <!-- TMPL_IF NAME="road_cgipopup" -->
365       <li>
366       <!-- TMPL_IF NAME="mandatorystreettype" -->
367       <label for="streettype" class="required">
368       <!--TMPL_ELSE-->
369       <label for="streettype">
370       <!-- /TMPL_IF-->
371       Street type: </label>
372       <!-- TMPL_VAR NAME="roadpopup" -->
373           <!-- TMPL_IF NAME="mandatorystreettype" --><span class="required">Required</span><!-- /TMPL_IF -->
374       </li>
375     <!--/TMPL_IF--> 
376     <li>
377       <!-- TMPL_IF NAME="mandatoryaddress" -->
378       <label for="address" class="required">
379       <!--TMPL_ELSE-->
380       <label for="address">
381       <!--/TMPL_IF-->
382       Address: </label>
383       <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
384           <!-- TMPL_IF NAME="mandatoryaddress" --><span class="required">Required</span><!-- /TMPL_IF -->
385     </li>
386     <li>
387       <!-- TMPL_IF NAME="mandatoryaddress2" -->
388       <label for="address2" class="required">
389       <!--TMPL_ELSE-->
390       <label for="address2">
391       <!-- /TMPL_IF-->
392       Address 2: </label>
393       <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
394           <!-- TMPL_IF NAME="mandatoryaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
395     </li>  
396     <li>
397       <!-- TMPL_IF NAME="mandatorycity" -->
398         <label for="city" class="required">
399       <!--TMPL_ELSE-->
400         <label for="city">
401       <!-- /TMPL_IF-->
402       City, State: </label>
403         
404         <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
405         <!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong> <!-- TMPL_VAR NAME="citypopup" --><!-- /TMPL_IF -->
406           <!-- TMPL_IF NAME="mandatorycity" --><span class="required">Required</span><!-- /TMPL_IF -->
407     </li>
408     <li> 
409       <!-- TMPL_IF NAME="mandatoryzipcode" -->
410         <label for="zipcode" class="required">
411       <!--TMPL_ELSE-->
412         <label for="zipcode">
413       <!-- /TMPL_IF-->
414       Zip/Postal code: </label>
415       <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
416           <!-- TMPL_IF NAME="mandatoryzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
417     </li>
418   
419         </ol>
420     </fieldset>
421   <fieldset class="rows" id="memberentry_contact">
422     <legend>Contact</legend><ol>
423       <li>
424       <!-- TMPL_IF NAME="mandatoryphone" --> 
425       <label for="phone" class="required">
426       <!--TMPL_ELSE-->
427       <label for="phone">
428       <!-- /TMPL_IF-->
429       Phone (home): </label>
430       <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
431           <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF --><strong><em>Shows on transit slips</em></strong>
432
433     </li>
434     <li>
435       <!-- TMPL_IF NAME="mandatoryphonepro" -->
436       <label for="phonepro" class="required">
437       <!--TMPL_ELSE-->
438       <label for="phonepro">
439       <!-- /TMPL_IF-->
440       Phone (work): </label>
441       <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
442           <!-- TMPL_IF NAME="mandatoryphonepro" --><span class="required">Required</span><!-- /TMPL_IF -->
443     </li>
444     <li>
445       <!-- TMPL_IF NAME="mandatorymobile" -->
446       <label for="mobile" class="required">
447       <!--TMPL_ELSE-->
448       <label for="mobile">
449       <!-- /TMPL_IF-->
450       Phone (cell): </label>
451       <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
452           <!-- TMPL_IF NAME="mandatorymobile" --><span class="required">Required</span><!-- /TMPL_IF -->
453     </li>
454     <li>
455       <!-- TMPL_IF NAME="mandatoryemail" -->
456       <label for="email" class="required">
457       <!--TMPL_ELSE-->
458       <label for="email">
459       <!-- /TMPL_IF-->
460       Email (home): </label>
461       <input type="text" id="email" name="email" size="45" value="<!-- TMPL_VAR NAME="email" -->" />  
462           <!-- TMPL_IF NAME="mandatoryemail" --><span class="required">Required</span><!-- /TMPL_IF --><strong><em>Shows on transit slips</em></strong>
463
464     </li>
465     <li>
466       <!-- TMPL_IF NAME="mandatoryemailpro" --> 
467       <label for="emailpro" class="required">
468       <!--TMPL_ELSE-->
469       <label for="emailpro">
470       <!-- /TMPL_IF-->
471       Email (work): </label>
472       <input type="text" id="emailpro" name="emailpro" size="45" value="<!-- TMPL_VAR NAME="emailpro" -->" />
473           <!-- TMPL_IF NAME="mandatoryemailpro" --><span class="required">Required</span><!-- /TMPL_IF -->
474     </li>
475     <li>
476       <!-- TMPL_IF NAME="mandatoryfax" -->
477       <label for="fax" class="required">
478       <!--TMPL_ELSE-->
479       <label for="fax">
480       <!-- /TMPL_IF-->
481       Fax: </label>
482       <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
483           <!-- TMPL_IF NAME="mandatoryfax" --><span class="required">Required</span><!-- /TMPL_IF -->
484     </li>
485         </ol>
486   </fieldset>
487
488
489 <!-- ************************ STEP_1 *********************** -->
490 <!--/TMPL_IF -->
491 <!--TMPL_IF Name="step_2"-->
492
493                 <fieldset class="rows" id="memberentry_address">
494                 <legend>Alternate address</legend><ol>
495                         <li>
496                                 <!-- TMPL_IF NAME="mandatoryB_address" -->
497                                         <label for="B_address" class="required">
498                                 <!--TMPL_ELSE-->
499                                         <label for="B_address">
500                                 <!-- /TMPL_IF-->
501                                 Address: </label>
502                                 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
503           <!-- TMPL_IF NAME="mandatoryB_address" --><span class="required">Required</span><!-- /TMPL_IF -->
504                         </li>
505                         <li>
506                                 <!-- TMPL_IF NAME="mandatoryB_city" -->
507                                         <label for="B_city" class="required" >
508                                 <!--TMPL_ELSE-->
509                                         <label for="B_city">
510                                 <!-- /TMPL_IF-->
511                                 City, State: </label>
512                                 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
513           <!-- TMPL_IF NAME="mandatoryB_city" --><span class="required">Required</span><!-- /TMPL_IF -->
514                         </li>
515                         <li>
516                                 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
517                                         <label for="B_zipcode" class="required">
518                                 <!--TMPL_ELSE-->
519                                         <label for="B_zipcode">
520                                 <!-- /TMPL_IF-->
521                                 Zip/Postal code: </label>
522                                 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
523           <!-- TMPL_IF NAME="mandatoryB_zipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
524                         </li>
525             <li>
526                 <!-- TMPL_IF NAME="mandatoryB_phone" -->
527                 <label for="B_phone" class="required">
528                 <!--TMPL_ELSE-->
529                 <label for="B_phone">
530                 <!-- /TMPL_IF-->
531                 Phone: </label>  
532                 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
533                 <!-- TMPL_IF NAME="mandatoryB_phone" --><span class="required">Required</span><!-- /TMPL_IF -->
534             </li>
535                         <li> 
536         <!-- TMPL_IF NAME="mandatoryB_email" -->
537           <label for="B_email" class="required">
538         <!--TMPL_ELSE-->
539           <label for="B_email">
540         <!-- /TMPL_IF-->
541         Email: </label>
542         <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
543                 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
544             <li>
545                 <!-- TMPL_IF NAME="mandatorycontactnote" -->
546                 <label for="contactnote" class="required">
547                 <!--TMPL_ELSE-->
548                 <label for="contactnote">
549                 <!-- /TMPL_IF-->
550                 Contact note: </label>
551                 <textarea id="contactnote" name="contactnote" cols="40" rows="2"><!-- TMPL_VAR NAME="contactnote" --></textarea>
552         <!-- TMPL_IF NAME="mandatorycontactnote" --><span class="required">Required</span><!-- /TMPL_IF -->
553             </li>
554                         </ol>
555                 </fieldset>
556                 <fieldset class="rows" id="memberentry_altaddress">       
557                     <legend>Alternate Contact</legend><ol>
558                         <li>
559                             <!-- TMPL_IF NAME="mandatoryaltcontactsurname" -->
560                                 <label for="altcontactsurname" class="required">
561                                 <!-- TMPL_ELSE -->
562                                 <label for="altcontactsurname">
563                                 <!-- /TMPL_IF -->
564                                 Surname:</label>
565                                 <input type="text" name="altcontactsurname" id="altcontactsurname" value="<!-- TMPL_VAR NAME="altcontactsurname" -->" />
566                                 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" --><span class="required">Required</span><!-- /TMPL_IF -->
567                         </li>
568                         <li>
569                             <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" -->
570                                 <label for="altcontactfirstname" class="required">
571                                 <!-- TMPL_ELSE -->
572                                 <label for="altcontactfirstname">
573                                 <!-- /TMPL_IF -->
574                                 First name:</label>
575                                 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="<!-- TMPL_VAR NAME="altcontactfirstname" -->" />
576                                 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
577                         </li>
578                         <li>
579                             <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" -->
580                                 <label for="altcontactaddress1" class="required">
581                                 <!-- TMPL_ELSE -->
582                                 <label for="altcontactaddress1">
583                                 <!-- /TMPL_IF -->
584                                 Address:</label>
585                                 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="<!-- TMPL_VAR NAME="altcontactaddress1" -->" size="40" />
586                                 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" --><span class="required">Required</span><!-- /TMPL_IF -->
587                         </li>
588                         <li>
589                             <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" -->
590                                 <label for="altcontactaddress2" class="required">
591                                 <!-- TMPL_ELSE -->
592                                 <label for="altcontactaddress2">
593                                 <!-- /TMPL_IF -->
594                                 Address 2:</label>
595                                 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="<!-- TMPL_VAR NAME="altcontactaddress2" -->" size="40" />
596                                 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
597                         </li>
598                         <li>
599                             <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" -->
600                                 <label for="altcontactaddress3" class="required">
601                                 <!-- TMPL_ELSE -->
602                                 <label for="altcontactaddress3">
603                                 <!-- /TMPL_IF -->
604                                 City, State:</label>
605                                 <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="<!-- TMPL_VAR NAME="altcontactaddress3" -->" size="40" />
606                                 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" --><span class="required">Required</span><!-- /TMPL_IF -->
607                         </li>
608                         <li>
609                             <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" -->
610                                 <label for="altcontactzipcode" class="required">
611                                 <!-- TMPL_ELSE -->
612                                 <label for="altcontactzipcode">
613                                 <!-- /TMPL_IF -->
614                                 Zip/Postal code:</label>
615                                 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="<!-- TMPL_VAR NAME="altcontactzipcode" -->" size="5" />
616                                 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
617                         </li>
618                         <li>
619                             <!-- TMPL_IF NAME="mandatoryaltcontactphone" -->
620                                 <label for="altcontactphone" class="required">
621                                 <!-- TMPL_ELSE -->
622                                 <label for="altcontactphone">
623                                 <!-- /TMPL_IF -->
624                                 Phone:</label>
625                                 <input type="text" name="altcontactphone" id="altcontactphone" value="<!-- TMPL_VAR NAME="altcontactphone" -->" />
626                                 <!-- TMPL_IF NAME="mandatoryaltcontactphone" --><span class="required">Required</span><!-- /TMPL_IF -->
627                         </li>
628             </ol>
629         </fieldset>
630
631
632   <!-- TMPL_IF NAME="I" -->
633         <!-- TMPL_IF NAME="memberofinstution" -->
634         <fieldset class="rows" id="memberentry_organisation">
635                 <legend>Organizations</legend><ol>
636                 <li>
637                         <!-- TMPL_IF NAME="mandatoryphone" --> 
638                         <label for="organisations" class="required">
639                         <!--TMPL_ELSE-->
640                         <label for="organisations">
641                         <!-- /TMPL_IF-->
642                         Organization(s): </label>
643                         <!-- TMPL_VAR NAME="CGIorganisations" -->
644           <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
645                 </li>
646                 </ol>
647         </fieldset>
648         <!-- /TMPL_IF -->
649   <!-- /TMPL_IF -->
650               
651 <!-- /TMPL_IF -->
652 <!--TMPL_IF Name="step_3"-->
653
654   <fieldset class="rows" id="memberentry_library_management">
655     <legend>Library Management</legend><ol>
656    <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
657       <label for="cardnumber" class="required">
658     <!--TMPL_ELSE -->
659       <label for="cardnumber">
660     <!-- /TMPL_IF--> 
661     Card number: </label>
662     <input type="text" id="cardnumber" name="cardnumber" size="20" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
663           <!-- TMPL_IF NAME="mandatorycardnumber" --><span class="required">Required</span><!-- /TMPL_IF --></li>
664     <li>
665       <!-- TMPL_IF NAME="mandatorybranchcode" -->
666         <label for="branchcode" class="required">
667       <!--TMPL_ELSE-->
668         <label for="branchcode">
669       <!-- /TMPL_IF-->
670       Library: </label>
671       <!-- TMPL_VAR NAME="CGIbranch" -->
672           <!-- TMPL_IF NAME="mandatorybranchcode" --><span class="required">Required</span><!-- /TMPL_IF -->
673     </li>
674     <li>
675     <!-- TMPL_IF NAME="typeloop" -->
676         <label for="categorycode">Category: </label>
677         <select id="categorycode" name="categorycode">
678         <!-- TMPL_LOOP NAME="typeloop" -->
679                 <!-- TMPL_IF EXPR="typename eq 'C'" --><optgroup label="Child"><!-- /TMPL_IF -->
680                 <!-- TMPL_IF EXPR="typename eq 'A'" --><optgroup label="Adult"><!-- /TMPL_IF -->
681                 <!-- TMPL_IF EXPR="typename eq 'S'" --><optgroup label="Staff"><!-- /TMPL_IF -->
682                 <!-- TMPL_IF EXPR="typename eq 'I'" --><optgroup label="Organization"><!-- /TMPL_IF -->
683                 <!-- TMPL_IF EXPR="typename eq 'P'" --><optgroup label="Professional"><!-- /TMPL_IF -->
684                 <!-- TMPL_IF EXPR="typename eq 'X'" --><optgroup label="Statistical"><!-- /TMPL_IF -->
685                 <!-- TMPL_LOOP NAME="categoryloop" -->
686                                 <!-- TMPL_IF NAME="categorycodeselected" -->
687                <option value="<!-- TMPL_VAR NAME="categorycode" -->" selected="selected"><!-- TMPL_VAR NAME="categoryname" --></option>
688                                 <!-- TMPL_ELSE -->
689 <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="categoryname" --></option>
690                                 <!-- /TMPL_IF -->
691                 <!-- /TMPL_LOOP -->
692         </optgroup>
693         <!-- /TMPL_LOOP -->
694                 </select>
695     <!-- TMPL_ELSE -->
696         <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>
697               <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
698     <!-- /TMPL_IF -->
699     </li>
700     <li>
701       <!-- TMPL_IF NAME="mandatorysort1" -->
702         <label for="sort1" class="required">
703       <!-- TMPL_ELSE -->
704         <label for="sort1">
705       <!-- /TMPL_IF-->
706       Sort 1: </label>
707       <!--TMPL_IF NAME="CGIsort1" --> 
708         <!-- TMPL_VAR NAME="CGIsort1" -->
709       <!--TMPL_ELSE-->
710         <input  type="text" id="sort1" name="sort1" size="20"  value="<!-- TMPL_VAR NAME="sort1" -->" />
711           <!-- TMPL_IF NAME="mandatorysort1" --><span class="required">Required</span><!-- /TMPL_IF -->
712       <!-- /TMPL_IF -->   
713     </li>
714     <li>
715     <!-- TMPL_IF NAME="mandatorysort2" -->
716     <label for="sort2" class="required">
717     <!-- TMPL_ELSE -->
718     <label for="sort2">
719     <!-- /TMPL_IF-->
720     Sort 2: </label>
721     <!--TMPL_IF NAME="CGIsort2" --> 
722       <!-- TMPL_VAR NAME="CGIsort2" -->
723     <!--TMPL_ELSE-->
724       <input  type="text" id="sort2" name="sort2" size="20"  value="<!-- TMPL_VAR NAME="sort2" -->" />
725           <!-- TMPL_IF NAME="mandatorysort2" --><span class="required">Required</span><!-- /TMPL_IF -->
726     <!-- /TMPL_IF --> 
727     </li>
728         </ol>
729   </fieldset>
730         <fieldset class="rows" id="memberentry_subscription">
731         <legend>Library set-up</legend><ol>
732                 <li>
733                         <!-- TMPL_IF NAME="mandatorydateenrolled" -->
734                         <label for="dateenrolled" class="required">
735                         <!--TMPL_ELSE-->
736                         <label for="dateenrolled">
737                         <!-- /TMPL_IF-->
738                         Registration date: </label>
739                         <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" -->" />
740             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
741       <script language="JavaScript" type="text/javascript">
742         Calendar.setup(
743           {
744             inputField : "dateenrolled",
745             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
746             button : "dateenrolled_button"
747           }
748         );
749       </script>
750                 <!-- TMPL_IF NAME="mandatorydateenrolled" --><span class="required">Required</span><!-- /TMPL_IF -->
751                 <!-- TMPL_IF NAME="ERROR_dateenrolled" --><span class="required">(Error)</span><!-- /TMPL_IF -->
752                 </li>
753                 <li>
754                         <!-- TMPL_IF NAME="mandatorydateexpiry" -->
755                         <label for="dateexpiry" class="required">
756                         <!--TMPL_ELSE-->
757                         <label for="dateexpiry">
758                         <!-- /TMPL_IF-->
759                         Expiry date (leave blank for auto calc) </label>
760                         <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 -->" />
761             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
762       <script language="JavaScript" type="text/javascript">
763         Calendar.setup(
764           {
765             inputField : "dateexpiry",
766             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
767             button : "dateexpiry_button"
768           }
769         );
770       </script>
771                 <!-- TMPL_IF NAME="mandatorydateexpiry" --><span class="required">Required</span><!-- /TMPL_IF -->
772                 <!-- TMPL_IF NAME="ERROR_dateexpiry" --><span class="required">(Error)</span><!-- /TMPL_IF -->
773                 </li>
774                 <li>
775                         <!-- TMPL_IF NAME="mandatoryopacnote" -->
776                                 <label for="opacnote" class="required">
777                         <!--TMPL_ELSE-->
778                                 <label for="opacnote">
779                         <!-- /TMPL_IF-->        
780                         OPAC note: </label>
781                         <textarea id="opacnote" name="opacnote" cols="55" rows="5"><!-- TMPL_VAR NAME="opacnote" --></textarea>
782                         <div class="hint">This message appears on this patron's user page in the OPAC</div>
783           <!-- TMPL_IF NAME="mandatoryopacnote" --><span class="required">Required</span><!-- /TMPL_IF -->
784                 </li>
785                 <li>
786                         <!-- TMPL_IF NAME="mandatoryborrowernotes" -->  
787                                 <label for="borrowernotes" class="required">
788                         <!--TMPL_ELSE-->
789                                 <label for="borrowernotes">
790                         <!-- /TMPL_IF-->
791                         Circulation note: </label>
792                         <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
793                         <div class="hint">This message displays when checking out to this patron</div>
794           <!-- TMPL_IF NAME="mandatoryborrowernotes" --><span class="required">Required</span><!-- /TMPL_IF -->
795                 </li>
796                 </ol>
797         </fieldset>
798         <fieldset class="rows" id="memberentry_userid">
799                 <legend>OPAC login</legend><ol>
800                 <li>
801                         <!-- TMPL_IF NAME="mandatoryuserid" -->
802                         <label for="userid" class="required">
803                         <!--TMPL_ELSE-->
804                         <label for="userid">
805                         <!-- /TMPL_IF-->
806                         OPAC Login: </label>
807
808 <!-- TMPL_IF NAME="NoUpdateLogin" -->
809 <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="userid" -->" />
810 <!-- TMPL_ELSE -->
811 <input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
812 <!-- /TMPL_IF -->
813
814           <!-- TMPL_IF NAME="mandatoryuserid" --><span class="required">Required</span><!-- /TMPL_IF -->
815                 </li>
816                 <li>
817                         <!-- TMPL_IF NAME="mandatorypassword" -->
818                         <label for="password" class="required">
819                         <!--TMPL_ELSE-->
820                         <label for="password">
821                         <!-- /TMPL_IF-->
822                         Password: </label>
823                         <!--TMPL_IF NAME="opadd"-->
824                         <!-- TMPL_IF NAME="NoUpdateLogin" -->
825                                 <input type="text" id="password" name="password" size="20"  disabled="disabled" value="<!-- TMPL_VAR NAME="password" -->" />
826 <!-- TMPL_ELSE -->
827                                 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
828 <!-- /TMPL_IF -->
829                         <!--TMPL_ELSE-->
830                         <!--TMPL_IF NAME="password"-->
831                                 <!-- TMPL_IF NAME="NoUpdateLogin" -->
832                                         <input type="text" id="password" name="password" size="20"  disabled="disabled" value="****" />
833                                 <!-- TMPL_ELSE -->
834                                         <input type="text" id="password" name="password" size="20" value="****" />
835                                 <!-- /TMPL_IF -->
836                         <!--TMPL_ELSE-->
837                                 <!-- TMPL_IF NAME="NoUpdateLogin" -->
838                                         <input type="text" id="password" name="password" size="20"  disabled="disabled" value="" />
839                                 <!-- TMPL_ELSE -->
840                                         <input type="text" id="password" name="password" size="20" value="" />
841                                 <!-- /TMPL_IF -->
842                         <!--/TMPL_IF-->
843                         <!--/TMPL_IF-->
844           <!-- 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 -->
845 <!-- TMPL_IF NAME="minPasswordLength" --><div class="hint">Minimum password length: <!-- TMPL_VAR NAME="minPasswordLength" --></div><!-- /TMPL_IF -->
846                 </li></ol>
847                 </fieldset>
848                 <!--this zones are not necessary in modif mode -->
849                 <!-- TMPL_UNLESS NAME="opadd" -->
850                 <fieldset class="rows">
851                         <legend>Patron Account Flags</legend>
852                         <ol class="radio">
853                         <!-- TMPL_LOOP NAME="flagloop" -->
854                                 <li><label class="radio" for="yes<!-- TMPL_VAR name="name" -->">
855                                 <!-- TMPL_IF EXPR="key eq 'gonenoaddress'" -->Gone no Address:<!-- /TMPL_IF -->
856                                 <!-- TMPL_IF EXPR="key eq 'debarred'" -->Debarred:<!-- /TMPL_IF -->
857                                 <!-- TMPL_IF EXPR="key eq 'lost'" -->Lost Card:<!-- /TMPL_IF -->
858                 </label>
859                                 
860                                 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
861                                 <!-- TMPL_IF NAME="yes" -->
862                                 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
863                                 <!-- TMPL_ELSE -->
864                                 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
865                                 <!-- /TMPL_IF -->
866                                 
867                                 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
868                                 <!-- TMPL_IF NAME="no" -->
869                                 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
870                                 <!-- TMPL_ELSE -->
871                                 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
872                                 <!-- /TMPL_IF -->
873
874 </li>
875                         <!-- /TMPL_LOOP -->
876                         </ol>
877                         </fieldset>
878                 <!-- /TMPL_UNLESS -->   
879
880 <!-- /TMPL_IF -->
881
882 <!-- TMPL_IF NAME="step_4" --><!-- TMPL_IF NAME="ExtendedPatronAttributes" --><!-- TMPL_UNLESS NAME="no_patron_attribute_types" -->
883   <fieldset class="rows" id="memberentry_patron_attributes">
884     <input type="hidden" name="setting_extended_patron_attributes" value="1" />
885     <legend>Additional attributes and identifiers</legend>
886     <table>
887         <tr>
888             <th>Type</th>
889             <th colspan="2">Value</th>
890         </tr>
891         <!-- TMPL_LOOP NAME='patron_attributes' -->
892         <tr>
893             <td><!-- TMPL_VAR NAME="code" --> (<!-- TMPL_VAR NAME="description" -->)
894             </td>
895             <td>
896                 <input type="hidden" id="<!-- TMPL_VAR NAME="form_id" -->_code" name="<!-- TMPL_VAR NAME="form_id" -->_code"
897                        value="<!-- TMPL_VAR NAME="code" ESCAPE="HTML" -->" />
898                 <!-- TMPL_IF NAME="use_dropdown" -->
899                     <select id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->">
900                         <option value="" />
901                         <!-- TMPL_LOOP NAME="auth_val_loop" -->
902                             <!-- TMPL_IF NAME="selected" -->
903                                 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected">
904                                     <!-- TMPL_VAR NAME="lib" -->
905                                 </option>
906                             <!-- TMPL_ELSE -->
907                                 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" >
908                                     <!-- TMPL_VAR NAME="lib" -->
909                                 </option>
910                             <!-- /TMPL_IF -->
911                         <!-- /TMPL_LOOP -->
912                     </select>
913                 <!-- TMPL_ELSE -->
914                     <input type="text" maxlength="64" value="<!-- TMPL_VAR NAME="value" -->"
915                            id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->" />
916                 <!-- /TMPL_IF -->
917                 <!-- TMPL_IF NAME="password_allowed" -->
918                     (Password: <input type="password" maxlength="64" value="<!-- TMPL_VAR NAME="password" -->"
919                            id="<!-- TMPL_VAR NAME="form_id" -->_password" name="<!-- TMPL_VAR NAME="form_id" -->_password" />)
920                 <!-- /TMPL_IF -->
921             </td>
922             <td>
923                 <a href="#" onclick="clear_entry(this); return false;">Clear</a>
924                 <!-- TMPL_IF NAME="repeatable" -->
925                 <a href="#" onclick="clone_entry(this); return false;">New</a>
926                 <!-- /TMPL_IF -->
927             </td>
928         </tr>
929         <!-- /TMPL_LOOP -->
930     </table>
931   </fieldset>
932 <!-- /TMPL_IF--><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
933
934 <!-- TMPL_IF NAME="step_5" --><!-- TMPL_IF NAME="EnhancedMessagingPreferences" -->
935   <fieldset class="rows" id="memberentry_messaging_prefs">
936     <!-- TMPL_IF NAME="opadd" -->
937     <!-- handle changing prefs if creating new patron and changing
938          the patron category
939     -->
940     <script language="javascript" type="text/javascript">//<![CDATA[
941        $(document).ready(function(){
942             var message_prefs_dirty = false;
943             $('#memberentry_messaging_prefs > *').change(function() {
944                 message_prefs_dirty = true;
945             });
946             $('#categorycode').change(function() {
947                 var categorycode = $(this).val();
948                 if (message_prefs_dirty) {
949                     if (!confirm('Change messaging preferences to default for this category?')) {
950                         return;
951                     }
952                 }
953                 $.getJSON('/cgi-bin/koha/members/default_messageprefs.pl?categorycode=' + categorycode,
954                     function(data) {
955                         $.each(data.messaging_preferences, function(i, item) {
956                             var attrid = item.message_attribute_id;
957                             var transports = ['email', 'rss', 'sms'];
958                             $.each(transports, function(j, transport) {
959                                 if (item['transport-' + transport] != ' ') {
960                                     $('#' + transport + attrid).attr('checked', item['transport-' + transport]);
961                                 } else {
962                                     $('#' + transport + attrid).removeAttr('checked');
963                                 }
964                             });
965                             if (item.digest && item.digest != ' ') {
966                                 $('#digest' + attrid).attr('checked', item.digest);
967                             } else {
968                                 $('#digest' + attrid).removeAttr('checked');
969                             }
970                             if (item.takes_days == '1') {
971                                 $('[name=' + attrid + '-DAYS]').val('' + item.days_in_advance);
972                             }
973                         });
974                         message_prefs_dirty = false;
975                     }
976                 );
977             });
978         });
979     //]]>
980     </script>
981     <!-- /TMPL_IF -->
982     <input type="hidden" name="setting_messaging_prefs" value="1" />
983     <legend>Patron messaging preferences</legend>
984     <!-- TMPL_INCLUDE NAME="messaging-preference-form.inc" -->
985     <!-- TMPL_IF NAME="SMSSendDriver" -->
986         <p><label for="SMSnumber">SMS number:</label> 
987           <input type="text" id="SMSnumber" name="SMSnumber" value="<!-- TMPL_VAR NAME="SMSnumber"  -->" />
988         </p>
989     <!-- /TMPL_IF -->
990   </fieldset>
991 <!-- /TMPL_IF --> <!-- /TMPL_IF -->
992
993     <fieldset class="action">
994         <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
995       <!-- TMPL_IF NAME="opadd" -->
996        <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
997            <!-- TMPL_ELSE -->
998           <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Cancel</a>
999            <!-- /TMPL_IF -->
1000     </fieldset>
1001 </form>
1002   
1003 </div>
1004 </div>
1005
1006 <!-- TMPL_UNLESS NAME="opadd" --><div class="yui-b">
1007 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
1008 </div><!-- /TMPL_UNLESS -->
1009 </div>
1010 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->