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