View | Details | Raw Unified | Return to bug 5432
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-1 / +3 lines)
Lines 82-87 function update_child() { Link Here
82
	    new YAHOO.widget.Button("editpatron");
82
	    new YAHOO.widget.Button("editpatron");
83
	    new YAHOO.widget.Button("addnote");
83
	    new YAHOO.widget.Button("addnote");
84
	    new YAHOO.widget.Button("changepassword");
84
	    new YAHOO.widget.Button("changepassword");
85
	    new YAHOO.widget.Button("duplicate");
85
	    new YAHOO.widget.Button("printslip");
86
	    new YAHOO.widget.Button("printslip");
86
		new YAHOO.widget.Button("printpage");
87
		new YAHOO.widget.Button("printpage");
87
	    new YAHOO.widget.Button("renewpatron");
88
	    new YAHOO.widget.Button("renewpatron");
Lines 110-116 function update_child() { Link Here
110
	<!-- TMPL_IF name="adultborrower" --><li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;category_type=C">Add child</a></li><!-- /TMPL_IF -->
111
	<!-- TMPL_IF name="adultborrower" --><li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;category_type=C">Add child</a></li><!-- /TMPL_IF -->
111
<!--	<li><a id="addnote" href="/cgi-bin/koha/members/addnotes.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Add Note</a></li> -->
112
<!--	<li><a id="addnote" href="/cgi-bin/koha/members/addnotes.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Add Note</a></li> -->
112
	<li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=<!-- TMPL_VAR NAME="borrowernumber" -->">Change Password</a></li>
113
	<li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=<!-- TMPL_VAR NAME="borrowernumber" -->">Change Password</a></li>
113
	<li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;print=page">Print Page</a></li>
114
	<li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;category_type=<!-- TMPL_VAR NAME="category_type"-->">Duplicate</a></li>
115
    <li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;print=page">Print Page</a></li>
114
	<li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;print=slip">Print Slip</a></li>
116
	<li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;print=slip">Print Slip</a></li>
115
	<li id="moremenuc"><a id="renewpatron" href="/cgi-bin/koha/members/moremember.pl?reregistration=y&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Renew Account</a></li><!-- TMPL_IF NAME="CAN_user_permissions" --><li><a id="patronflags" href="/cgi-bin/koha/members/member-flags.pl?member=<!-- TMPL_VAR NAME="borrowernumber" -->">Set Permissions</a></li><!-- /TMPL_IF --><li><a id="deletepatron" href="javascript:confirm_deletion();">Delete</a></li>
117
	<li id="moremenuc"><a id="renewpatron" href="/cgi-bin/koha/members/moremember.pl?reregistration=y&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Renew Account</a></li><!-- TMPL_IF NAME="CAN_user_permissions" --><li><a id="patronflags" href="/cgi-bin/koha/members/member-flags.pl?member=<!-- TMPL_VAR NAME="borrowernumber" -->">Set Permissions</a></li><!-- /TMPL_IF --><li><a id="deletepatron" href="javascript:confirm_deletion();">Delete</a></li>
116
</ul></div>
118
</ul></div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl (-59 / +58 lines)
Lines 1-6 Link Here
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2
<title>Koha &rsaquo; Patrons &rsaquo; 
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>
3
<!-- TMPL_IF NAME="opadd" -->Add<!-- TMPL_ELSIF NAME="opduplicate" -->Duplicate<!-- 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" -->
4
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5
<!-- TMPL_INCLUDE NAME="calendar.inc" -->
5
<!-- TMPL_INCLUDE NAME="calendar.inc" -->
6
<script type="text/JavaScript" language="JavaScript">
6
<script type="text/JavaScript" language="JavaScript">
Lines 71-79 Link Here
71
		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 -->
71
		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 -->
72
<!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
72
<!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
73
<!-- TMPL_ELSE --> 
73
<!-- TMPL_ELSE --> 
74
<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 -->
74
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --></a> &rsaquo; <strong><!-- TMPL_IF NAME="opduplicate" -->Duplicate<!-- 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 -->
75
</strong><!-- /TMPL_IF --></div>
75
</strong><!-- /TMPL_IF --></div>
76
76
<!-- TMPL_IF NAME="opduplicate" -->tast<!-- /TMPL_IF -->
77
<!-- TMPL_IF NAME="opadd" --><div id="doc" class="yui-t7"><!-- TMPL_ELSE --><div id="doc3" class="yui-t2"><!-- /TMPL_IF -->
77
<!-- TMPL_IF NAME="opadd" --><div id="doc" class="yui-t7"><!-- TMPL_ELSE --><div id="doc3" class="yui-t2"><!-- /TMPL_IF -->
78
   
78
   
79
   <div id="bd">
79
   <div id="bd">
Lines 91-97 Link Here
91
	</h1>
91
	</h1>
92
	<!-- TMPL_ELSE -->
92
	<!-- TMPL_ELSE -->
93
	<h1>
93
	<h1>
94
		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 -->
94
		<!-- TMPL_IF NAME="opduplicate" -->Duplicate<!-- 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 -->
95
<!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --> 
95
<!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --> 
96
	</h1>
96
	</h1>
97
	<!-- /TMPL_IF -->
97
	<!-- /TMPL_IF -->
Lines 149-156 Link Here
149
			</ul>
149
			</ul>
150
		</div>
150
		</div>
151
	<!-- /TMPL_IF -->
151
	<!-- /TMPL_IF -->
152
	
152
153
  
153
154
<!-- TMPL_UNLESS NAME="check_member" --><form name="form" id="entryform"  action="/cgi-bin/koha/members/memberentry.pl" method="post">
154
<!-- TMPL_UNLESS NAME="check_member" --><form name="form" id="entryform"  action="/cgi-bin/koha/members/memberentry.pl" method="post">
155
<input type="hidden" name="nodouble"  value="<!-- TMPL_VAR NAME="nodouble" -->" /> <!-- /TMPL_UNLESS -->
155
<input type="hidden" name="nodouble"  value="<!-- TMPL_VAR NAME="nodouble" -->" /> <!-- /TMPL_UNLESS -->
156
<!--    field always hidden in different form (1,2,3) -->
156
<!--    field always hidden in different form (1,2,3) -->
Lines 160-168 Link Here
160
<input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
160
<input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
161
<input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
161
<input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
162
<input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
162
<input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
163
<input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
163
<input type="hidden" name="borrowernumber" value="<!-- TMPL_IF NAME="opduplicate" --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="borrowernumber" --><!-- /TMPL_IF -->" />
164
<input type="hidden" name="nodouble"  value="<!-- TMPL_IF NAME="opduplicate" --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="nodouble" --><!-- /TMPL_IF -->" />
164
<!--TMPL_IF Name="step"--><input type="hidden" name="step"  value="<!-- TMPL_VAR NAME="step" -->" /><!--/TMPL_IF-->
165
<!--TMPL_IF Name="step"--><input type="hidden" name="step"  value="<!-- TMPL_VAR NAME="step" -->" /><!--/TMPL_IF-->
165
<!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
166
<!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSIF NAME="opduplicate" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
166
167
167
<!--TMPL_IF Name="step_1"-->
168
<!--TMPL_IF Name="step_1"-->
168
	<fieldset class="rows" id="memberentry_identity">
169
	<fieldset class="rows" id="memberentry_identity">
Lines 190-198 Link Here
190
		<!-- /TMPL_IF-->
191
		<!-- /TMPL_IF-->
191
		Surname: </label>
192
		Surname: </label>
192
		<!-- TMPL_IF NAME="uppercasesurnames" -->
193
		<!-- TMPL_IF NAME="uppercasesurnames" -->
193
		<input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="<!-- TMPL_VAR NAME="surname" -->" />
194
		<input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="<!-- TMPL_VAR NAME="surname" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
194
		<!-- TMPL_ELSE -->
195
		<!-- TMPL_ELSE -->
195
		<input type="text" id="surname" name="surname" size="20"  value="<!-- TMPL_VAR NAME="surname" -->" />
196
		<input type="text" id="surname" name="surname" size="20"  value="<!-- TMPL_VAR NAME="surname" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
196
		<!-- /TMPL_IF -->
197
		<!-- /TMPL_IF -->
197
		<!-- TMPL_IF NAME="mandatorysurname" --><span class="required">Required</span><!-- /TMPL_IF -->
198
		<!-- TMPL_IF NAME="mandatorysurname" --><span class="required">Required</span><!-- /TMPL_IF -->
198
		</li>
199
		</li>
Lines 204-210 Link Here
204
                <label for="firstname">
205
                <label for="firstname">
205
                <!-- /TMPL_IF-->
206
                <!-- /TMPL_IF-->
206
                First name: </label>
207
                First name: </label>
207
                <input type="text" id="firstname" name="firstname" size="20"  value="<!-- TMPL_VAR NAME="firstname" -->" />
208
                <input type="text" id="firstname" name="firstname" size="20"  value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="firstname" --><!-- /TMPL_IF -->" />
208
                <!-- TMPL_IF NAME="mandatoryfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
209
                <!-- TMPL_IF NAME="mandatoryfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
209
            </li>
210
            </li>
210
            <li>
211
            <li>
Lines 216-224 Link Here
216
                Date of birth: </label>
217
                Date of birth: </label>
217
				
218
				
218
	<!-- TMPL_IF NAME="metric" -->			
219
	<!-- TMPL_IF NAME="metric" -->			
219
                <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
220
                <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="dateofbirth" --><!-- /TMPL_IF -->" />
220
<!-- TMPL_ELSE -->
221
<!-- TMPL_ELSE -->
221
                <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
222
                <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="dateofbirth" --><!-- /TMPL_IF -->" />
222
<!-- /TMPL_IF -->
223
<!-- /TMPL_IF -->
223
224
224
                <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
225
                <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
Lines 242-248 Link Here
242
                    <label for="initials">
243
                    <label for="initials">
243
                <!-- /TMPL_IF-->
244
                <!-- /TMPL_IF-->
244
                Initials: </label>
245
                Initials: </label>
245
                <input type="text" id="initials" name="initials" size="20"  value="<!-- TMPL_VAR NAME="initials" -->" />	
246
                <input type="text" id="initials" name="initials" size="20"  value="<!-- TMPL_VAR NAME="initials" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />	
246
                <!-- TMPL_IF NAME="mandatoryinitials" --><span class="required">Required</span><!-- /TMPL_IF -->
247
                <!-- TMPL_IF NAME="mandatoryinitials" --><span class="required">Required</span><!-- /TMPL_IF -->
247
            </li>
248
            </li>
248
        <!-- /TMPL_UNLESS -->
249
        <!-- /TMPL_UNLESS -->
Lines 253-259 Link Here
253
			<label for="othernames">
254
			<label for="othernames">
254
			<!-- /TMPL_IF-->
255
			<!-- /TMPL_IF-->
255
			Other name: </label>
256
			Other name: </label>
256
			<input type="text" id="othernames" name="othernames" size="20"  value="<!-- TMPL_VAR NAME="othernames" -->" />
257
			<input type="text" id="othernames" name="othernames" size="20"  value="<!-- TMPL_VAR NAME="othernames" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
257
<!-- TMPL_IF NAME="mandatoryothernames" --><span class="required">Required</span><!-- /TMPL_IF -->
258
<!-- TMPL_IF NAME="mandatoryothernames" --><span class="required">Required</span><!-- /TMPL_IF -->
258
		<!-- TMPL_IF NAME="I" --><input type="hidden" name="sex" value="N" /><!-- /TMPL_IF -->
259
		<!-- TMPL_IF NAME="I" --><input type="hidden" name="sex" value="N" /><!-- /TMPL_IF -->
259
		</li>
260
		</li>
Lines 298-304 Link Here
298
	            <span><!-- TMPL_VAR NAME="contactname" --></span>
299
	            <span><!-- TMPL_VAR NAME="contactname" --></span>
299
	            <input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
300
	            <input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
300
	            <!-- TMPL_ELSE -->
301
	            <!-- TMPL_ELSE -->
301
	            <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
302
	            <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
302
	            <!-- /TMPL_IF -->
303
	            <!-- /TMPL_IF -->
303
	        </li>
304
	        </li>
304
<!-- TMPL_ELSE -->
305
<!-- TMPL_ELSE -->
Lines 316-322 Link Here
316
     <span><!-- TMPL_VAR NAME="contactname" --></span>
317
     <span><!-- TMPL_VAR NAME="contactname" --></span>
317
     <input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
318
     <input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
318
     <!-- TMPL_ELSE -->
319
     <!-- TMPL_ELSE -->
319
     <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
320
     <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
320
     <!-- /TMPL_IF -->
321
     <!-- /TMPL_IF -->
321
 </li>
322
 </li>
322
 <li>
323
 <li>
Lines 325-331 Link Here
325
     <span><!-- TMPL_VAR NAME="contactfirstname" --></span>
326
     <span><!-- TMPL_VAR NAME="contactfirstname" --></span>
326
     <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
327
     <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
327
     <!-- TMPL_ELSE -->
328
     <!-- TMPL_ELSE -->
328
     <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
329
     <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
329
     <!-- /TMPL_IF -->
330
     <!-- /TMPL_IF -->
330
 </li>
331
 </li>
331
 <!-- TMPL_IF name="relshiploop" -->
332
 <!-- TMPL_IF name="relshiploop" -->
Lines 366-372 Link Here
366
      <label for="streetnumber">
367
      <label for="streetnumber">
367
      <!-- /TMPL_IF-->
368
      <!-- /TMPL_IF-->
368
      Street number: </label>
369
      Street number: </label>
369
      <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
370
      <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
370
<!-- TMPL_IF NAME="mandatorystreetnumber" --><span class="required">Required</span><!-- /TMPL_IF -->
371
<!-- TMPL_IF NAME="mandatorystreetnumber" --><span class="required">Required</span><!-- /TMPL_IF -->
371
    </li>
372
    </li>
372
    <!-- TMPL_IF NAME="road_cgipopup" -->
373
    <!-- TMPL_IF NAME="road_cgipopup" -->
Lines 388-394 Link Here
388
      <label for="address">
389
      <label for="address">
389
      <!--/TMPL_IF-->
390
      <!--/TMPL_IF-->
390
      Address: </label>
391
      Address: </label>
391
      <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
392
      <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
392
	  <!-- TMPL_IF NAME="mandatoryaddress" --><span class="required">Required</span><!-- /TMPL_IF -->
393
	  <!-- TMPL_IF NAME="mandatoryaddress" --><span class="required">Required</span><!-- /TMPL_IF -->
393
    </li>
394
    </li>
394
    <li>
395
    <li>
Lines 398-404 Link Here
398
      <label for="address2">
399
      <label for="address2">
399
      <!-- /TMPL_IF-->
400
      <!-- /TMPL_IF-->
400
      Address 2: </label>
401
      Address 2: </label>
401
      <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
402
      <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
402
	  <!-- TMPL_IF NAME="mandatoryaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
403
	  <!-- TMPL_IF NAME="mandatoryaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
403
    </li>  
404
    </li>  
404
    <li>
405
    <li>
Lines 409-415 Link Here
409
      <!-- /TMPL_IF-->
410
      <!-- /TMPL_IF-->
410
      City, State: </label>
411
      City, State: </label>
411
        
412
        
412
        <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
413
        <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
413
        <!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong>
414
        <!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong>
414
        <select id="select_city" name="select_city">
415
        <select id="select_city" name="select_city">
415
        <!-- TMPL_LOOP NAME="city_loop" -->
416
        <!-- TMPL_LOOP NAME="city_loop" -->
Lines 432-438 Link Here
432
        <label for="zipcode">
433
        <label for="zipcode">
433
      <!-- /TMPL_IF-->
434
      <!-- /TMPL_IF-->
434
      Zip/Postal code: </label>
435
      Zip/Postal code: </label>
435
      <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
436
      <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
436
	  <!-- TMPL_IF NAME="mandatoryzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
437
	  <!-- TMPL_IF NAME="mandatoryzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
437
    </li>
438
    </li>
438
    
439
    
Lines 443-449 Link Here
443
        <label for="country">
444
        <label for="country">
444
      <!-- /TMPL_IF-->
445
      <!-- /TMPL_IF-->
445
      Country: </label>
446
      Country: </label>
446
      <input type="text" name="country" id="country" size="20" value="<!-- TMPL_VAR NAME="country" -->" />
447
      <input type="text" name="country" id="country" size="20" value="<!-- TMPL_VAR NAME="country" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
447
	  <!-- TMPL_IF NAME="mandatorycountry" --><span class="required">Required</span><!-- /TMPL_IF -->
448
	  <!-- TMPL_IF NAME="mandatorycountry" --><span class="required">Required</span><!-- /TMPL_IF -->
448
    </li>    
449
    </li>    
449
  
450
  
Lines 458-464 Link Here
458
      <label for="phone">
459
      <label for="phone">
459
      <!-- /TMPL_IF-->
460
      <!-- /TMPL_IF-->
460
      Phone (home): </label>
461
      Phone (home): </label>
461
      <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
462
      <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
462
	  <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF --><div class="hint">Shows on transit slips</div>
463
	  <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF --><div class="hint">Shows on transit slips</div>
463
464
464
    </li>
465
    </li>
Lines 469-475 Link Here
469
      <label for="phonepro">
470
      <label for="phonepro">
470
      <!-- /TMPL_IF-->
471
      <!-- /TMPL_IF-->
471
      Phone (work): </label>
472
      Phone (work): </label>
472
      <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
473
      <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
473
	  <!-- TMPL_IF NAME="mandatoryphonepro" --><span class="required">Required</span><!-- /TMPL_IF -->
474
	  <!-- TMPL_IF NAME="mandatoryphonepro" --><span class="required">Required</span><!-- /TMPL_IF -->
474
    </li>
475
    </li>
475
    <li>
476
    <li>
Lines 479-485 Link Here
479
      <label for="mobile">
480
      <label for="mobile">
480
      <!-- /TMPL_IF-->
481
      <!-- /TMPL_IF-->
481
      Phone (cell): </label>
482
      Phone (cell): </label>
482
      <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
483
      <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
483
	  <!-- TMPL_IF NAME="mandatorymobile" --><span class="required">Required</span><!-- /TMPL_IF -->
484
	  <!-- TMPL_IF NAME="mandatorymobile" --><span class="required">Required</span><!-- /TMPL_IF -->
484
    </li>
485
    </li>
485
    <li>
486
    <li>
Lines 488-495 Link Here
488
      <!--TMPL_ELSE-->
489
      <!--TMPL_ELSE-->
489
      <label for="email">
490
      <label for="email">
490
      <!-- /TMPL_IF-->
491
      <!-- /TMPL_IF-->
491
      Email (home): </label>
492
      Primary Email: </label>
492
      <input type="text" id="email" name="email" size="45" value="<!-- TMPL_VAR NAME="email" -->" />  
493
      <input type="text" id="email" name="email" size="45" value="<!-- TMPL_VAR NAME="email" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />  
493
	  <!-- TMPL_IF NAME="mandatoryemail" --><span class="required">Required</span><!-- /TMPL_IF --><div class="hint">Shows on transit slips</div>
494
	  <!-- TMPL_IF NAME="mandatoryemail" --><span class="required">Required</span><!-- /TMPL_IF --><div class="hint">Shows on transit slips</div>
494
495
495
    </li>
496
    </li>
Lines 499-506 Link Here
499
      <!--TMPL_ELSE-->
500
      <!--TMPL_ELSE-->
500
      <label for="emailpro">
501
      <label for="emailpro">
501
      <!-- /TMPL_IF-->
502
      <!-- /TMPL_IF-->
502
      Email (work): </label>
503
      Secondary Email: </label>
503
      <input type="text" id="emailpro" name="emailpro" size="45" value="<!-- TMPL_VAR NAME="emailpro" -->" />
504
      <input type="text" id="emailpro" name="emailpro" size="45" value="<!-- TMPL_VAR NAME="emailpro" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
504
	  <!-- TMPL_IF NAME="mandatoryemailpro" --><span class="required">Required</span><!-- /TMPL_IF -->
505
	  <!-- TMPL_IF NAME="mandatoryemailpro" --><span class="required">Required</span><!-- /TMPL_IF -->
505
    </li>
506
    </li>
506
    <li>
507
    <li>
Lines 510-516 Link Here
510
      <label for="fax">
511
      <label for="fax">
511
      <!-- /TMPL_IF-->
512
      <!-- /TMPL_IF-->
512
      Fax: </label>
513
      Fax: </label>
513
      <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
514
      <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
514
	  <!-- TMPL_IF NAME="mandatoryfax" --><span class="required">Required</span><!-- /TMPL_IF -->
515
	  <!-- TMPL_IF NAME="mandatoryfax" --><span class="required">Required</span><!-- /TMPL_IF -->
515
    </li>
516
    </li>
516
	</ol>
517
	</ol>
Lines 530-536 Link Here
530
					<label for="B_address">
531
					<label for="B_address">
531
				<!-- /TMPL_IF-->
532
				<!-- /TMPL_IF-->
532
				Address: </label>
533
				Address: </label>
533
				<input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
534
				<input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
534
	  <!-- TMPL_IF NAME="mandatoryB_address" --><span class="required">Required</span><!-- /TMPL_IF -->
535
	  <!-- TMPL_IF NAME="mandatoryB_address" --><span class="required">Required</span><!-- /TMPL_IF -->
535
			</li>
536
			</li>
536
			<li>
537
			<li>
Lines 540-548 Link Here
540
					<label for="B_address2">
541
					<label for="B_address2">
541
				<!-- /TMPL_IF-->
542
				<!-- /TMPL_IF-->
542
				Address 2: </label>
543
				Address 2: </label>
543
				<input type="text" id="B_address2" name="B_address2" size="40" value="<!-- TMPL_VAR NAME="B_address2" -->" />
544
				<input type="text" id="B_address2" name="B_address2" size="40" value="<!-- TMPL_VAR NAME="B_address2" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
544
	  <!-- TMPL_IF NAME="mandatoryB_address2" --><span class="required">Required</span><!-- /TMPL_IF -->
545
	  <!-- TMPL_IF NAME="mandatoryB_address2" --><span class="required">Required</span><!-- /TMPL_IF -->
545
			</li>			
546
			</li>
546
			<li>
547
			<li>
547
				<!-- TMPL_IF NAME="mandatoryB_city" -->
548
				<!-- TMPL_IF NAME="mandatoryB_city" -->
548
					<label for="B_city" class="required" >
549
					<label for="B_city" class="required" >
Lines 550-556 Link Here
550
					<label for="B_city">
551
					<label for="B_city">
551
				<!-- /TMPL_IF-->
552
				<!-- /TMPL_IF-->
552
				City, State: </label>
553
				City, State: </label>
553
				<input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
554
				<input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
554
	  <!-- TMPL_IF NAME="mandatoryB_city" --><span class="required">Required</span><!-- /TMPL_IF -->
555
	  <!-- TMPL_IF NAME="mandatoryB_city" --><span class="required">Required</span><!-- /TMPL_IF -->
555
			</li>
556
			</li>
556
			<li>
557
			<li>
Lines 560-566 Link Here
560
					<label for="B_zipcode">
561
					<label for="B_zipcode">
561
				<!-- /TMPL_IF-->
562
				<!-- /TMPL_IF-->
562
				Zip/Postal code: </label>
563
				Zip/Postal code: </label>
563
				<input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
564
				<input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="<!-- TMPL_VAR NAME="B_zipcode" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
564
	  <!-- TMPL_IF NAME="mandatoryB_zipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
565
	  <!-- TMPL_IF NAME="mandatoryB_zipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
565
			</li>
566
			</li>
566
			<li>
567
			<li>
Lines 570-576 Link Here
570
					<label for="B_country">
571
					<label for="B_country">
571
				<!-- /TMPL_IF-->
572
				<!-- /TMPL_IF-->
572
				Country: </label>
573
				Country: </label>
573
				<input type="text" id="B_country" name="B_country" size="20" value="<!-- TMPL_VAR NAME="B_country" -->" />
574
				<input type="text" id="B_country" name="B_country" size="20" value="<!-- TMPL_VAR NAME="B_country" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
574
	  <!-- TMPL_IF NAME="mandatoryB_country" --><span class="required">Required</span><!-- /TMPL_IF -->
575
	  <!-- TMPL_IF NAME="mandatoryB_country" --><span class="required">Required</span><!-- /TMPL_IF -->
575
			</li>
576
			</li>
576
            <li>
577
            <li>
Lines 580-586 Link Here
580
                <label for="B_phone">
581
                <label for="B_phone">
581
                <!-- /TMPL_IF-->
582
                <!-- /TMPL_IF-->
582
                Phone: </label>  
583
                Phone: </label>  
583
                <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
584
                <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
584
                <!-- TMPL_IF NAME="mandatoryB_phone" --><span class="required">Required</span><!-- /TMPL_IF -->
585
                <!-- TMPL_IF NAME="mandatoryB_phone" --><span class="required">Required</span><!-- /TMPL_IF -->
585
            </li>
586
            </li>
586
			<li> 
587
			<li> 
Lines 590-596 Link Here
590
          <label for="B_email">
591
          <label for="B_email">
591
        <!-- /TMPL_IF-->
592
        <!-- /TMPL_IF-->
592
        Email: </label>
593
        Email: </label>
593
        <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
594
        <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
594
		<!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
595
		<!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
595
            <li>
596
            <li>
596
                <!-- TMPL_IF NAME="mandatorycontactnote" -->
597
                <!-- TMPL_IF NAME="mandatorycontactnote" -->
Lines 615-621 Link Here
615
				<label for="altcontactsurname">
616
				<label for="altcontactsurname">
616
				<!-- /TMPL_IF -->
617
				<!-- /TMPL_IF -->
617
				Surname:</label>
618
				Surname:</label>
618
				<input type="text" name="altcontactsurname" id="altcontactsurname" value="<!-- TMPL_VAR NAME="altcontactsurname" -->" />
619
				<input type="text" name="altcontactsurname" id="altcontactsurname" value="<!-- TMPL_VAR NAME="altcontactsurname" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
619
				<!-- TMPL_IF NAME="mandatoryaltcontactsurname" --><span class="required">Required</span><!-- /TMPL_IF -->
620
				<!-- TMPL_IF NAME="mandatoryaltcontactsurname" --><span class="required">Required</span><!-- /TMPL_IF -->
620
			</li>
621
			</li>
621
			<li>
622
			<li>
Lines 625-631 Link Here
625
				<label for="altcontactfirstname">
626
				<label for="altcontactfirstname">
626
				<!-- /TMPL_IF -->
627
				<!-- /TMPL_IF -->
627
				First name:</label>
628
				First name:</label>
628
				<input type="text" name="altcontactfirstname" id="altcontactfirstname" value="<!-- TMPL_VAR NAME="altcontactfirstname" -->" />
629
				<input type="text" name="altcontactfirstname" id="altcontactfirstname" value="<!-- TMPL_VAR NAME="altcontactfirstname" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
629
				<!-- TMPL_IF NAME="mandatoryaltcontactfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
630
				<!-- TMPL_IF NAME="mandatoryaltcontactfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
630
			</li>
631
			</li>
631
			<li>
632
			<li>
Lines 635-641 Link Here
635
				<label for="altcontactaddress1">
636
				<label for="altcontactaddress1">
636
				<!-- /TMPL_IF -->
637
				<!-- /TMPL_IF -->
637
				Address:</label>
638
				Address:</label>
638
				<input type="text" name="altcontactaddress1" id="altcontactaddress1" value="<!-- TMPL_VAR NAME="altcontactaddress1" -->" size="40" />
639
				<input type="text" name="altcontactaddress1" id="altcontactaddress1" value="<!-- TMPL_VAR NAME="altcontactaddress1" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> size="40" />
639
				<!-- TMPL_IF NAME="mandatoryaltcontactaddress1" --><span class="required">Required</span><!-- /TMPL_IF -->
640
				<!-- TMPL_IF NAME="mandatoryaltcontactaddress1" --><span class="required">Required</span><!-- /TMPL_IF -->
640
			</li>
641
			</li>
641
			<li>
642
			<li>
Lines 645-651 Link Here
645
				<label for="altcontactaddress2">
646
				<label for="altcontactaddress2">
646
				<!-- /TMPL_IF -->
647
				<!-- /TMPL_IF -->
647
				Address 2:</label>
648
				Address 2:</label>
648
				<input type="text" name="altcontactaddress2" id="altcontactaddress2" value="<!-- TMPL_VAR NAME="altcontactaddress2" -->" size="40" />
649
				<input type="text" name="altcontactaddress2" id="altcontactaddress2" value="<!-- TMPL_VAR NAME="altcontactaddress2" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> size="40" />
649
				<!-- TMPL_IF NAME="mandatoryaltcontactaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
650
				<!-- TMPL_IF NAME="mandatoryaltcontactaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
650
			</li>
651
			</li>
651
			<li>
652
			<li>
Lines 655-661 Link Here
655
				<label for="altcontactaddress3">
656
				<label for="altcontactaddress3">
656
				<!-- /TMPL_IF -->
657
				<!-- /TMPL_IF -->
657
				City, State:</label>
658
				City, State:</label>
658
				<input type="text" name="altcontactaddress3" id="altcontactaddress3" value="<!-- TMPL_VAR NAME="altcontactaddress3" -->" size="40" />
659
				<input type="text" name="altcontactaddress3" id="altcontactaddress3" value="<!-- TMPL_VAR NAME="altcontactaddress3" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> size="40" />
659
				<!-- TMPL_IF NAME="mandatoryaltcontactaddress3" --><span class="required">Required</span><!-- /TMPL_IF -->
660
				<!-- TMPL_IF NAME="mandatoryaltcontactaddress3" --><span class="required">Required</span><!-- /TMPL_IF -->
660
			</li>
661
			</li>
661
			<li>
662
			<li>
Lines 665-671 Link Here
665
				<label for="altcontactzipcode">
666
				<label for="altcontactzipcode">
666
				<!-- /TMPL_IF -->
667
				<!-- /TMPL_IF -->
667
				Zip/Postal code:</label>
668
				Zip/Postal code:</label>
668
				<input type="text" name="altcontactzipcode" id="altcontactzipcode" value="<!-- TMPL_VAR NAME="altcontactzipcode" -->" size="5" />
669
				<input type="text" name="altcontactzipcode" id="altcontactzipcode" value="<!-- TMPL_VAR NAME="altcontactzipcode" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> size="5" />
669
				<!-- TMPL_IF NAME="mandatoryaltcontactzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
670
				<!-- TMPL_IF NAME="mandatoryaltcontactzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
670
			</li>
671
			</li>
671
			<li>
672
			<li>
Lines 675-681 Link Here
675
				<label for="altcontactcountry">
676
				<label for="altcontactcountry">
676
				<!-- /TMPL_IF -->
677
				<!-- /TMPL_IF -->
677
				Country:</label>
678
				Country:</label>
678
				<input type="text" name="altcontactcountry" id="altcontactcountry" value="<!-- TMPL_VAR NAME="altcontactcountry" -->" size="20" />
679
				<input type="text" name="altcontactcountry" id="altcontactcountry" value="<!-- TMPL_VAR NAME="altcontactcountry" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> size="20" />
679
				<!-- TMPL_IF NAME="mandatoryaltcontactcountry" --><span class="required">Required</span><!-- /TMPL_IF -->
680
				<!-- TMPL_IF NAME="mandatoryaltcontactcountry" --><span class="required">Required</span><!-- /TMPL_IF -->
680
			</li>			
681
			</li>			
681
			<li>
682
			<li>
Lines 685-691 Link Here
685
				<label for="altcontactphone">
686
				<label for="altcontactphone">
686
				<!-- /TMPL_IF -->
687
				<!-- /TMPL_IF -->
687
				Phone:</label>
688
				Phone:</label>
688
				<input type="text" name="altcontactphone" id="altcontactphone" value="<!-- TMPL_VAR NAME="altcontactphone" -->" />
689
				<input type="text" name="altcontactphone" id="altcontactphone" value="<!-- TMPL_VAR NAME="altcontactphone" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
689
				<!-- TMPL_IF NAME="mandatoryaltcontactphone" --><span class="required">Required</span><!-- /TMPL_IF -->
690
				<!-- TMPL_IF NAME="mandatoryaltcontactphone" --><span class="required">Required</span><!-- /TMPL_IF -->
690
			</li>
691
			</li>
691
            </ol>
692
            </ol>
Lines 722-728 Link Here
722
      <label for="cardnumber">
723
      <label for="cardnumber">
723
    <!-- /TMPL_IF--> 
724
    <!-- /TMPL_IF--> 
724
    Card number: </label>
725
    Card number: </label>
725
    <input type="text" id="cardnumber" name="cardnumber" size="20" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
726
    <input type="text" id="cardnumber" name="cardnumber" size="20" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="cardnumber" --><!-- /TMPL_IF -->" />
726
	  <!-- TMPL_IF NAME="mandatorycardnumber" --><span class="required">Required</span><!-- /TMPL_IF --></li>
727
	  <!-- TMPL_IF NAME="mandatorycardnumber" --><span class="required">Required</span><!-- /TMPL_IF --></li>
727
    <li>
728
    <li>
728
      <!-- TMPL_IF NAME="mandatorybranchcode" -->
729
      <!-- TMPL_IF NAME="mandatorybranchcode" -->
Lines 783-789 Link Here
783
    <!--TMPL_IF NAME="CGIsort2" --> 
784
    <!--TMPL_IF NAME="CGIsort2" --> 
784
      <!-- TMPL_VAR NAME="CGIsort2" -->
785
      <!-- TMPL_VAR NAME="CGIsort2" -->
785
    <!--TMPL_ELSE-->
786
    <!--TMPL_ELSE-->
786
      <input  type="text" id="sort2" name="sort2" size="20"  value="<!-- TMPL_VAR NAME="sort2" -->" />
787
      <input  type="text" id="sort2" name="sort2" size="20"  value="<!-- TMPL_VAR NAME="sort2" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
787
	  <!-- TMPL_IF NAME="mandatorysort2" --><span class="required">Required</span><!-- /TMPL_IF -->
788
	  <!-- TMPL_IF NAME="mandatorysort2" --><span class="required">Required</span><!-- /TMPL_IF -->
788
    <!-- /TMPL_IF --> 
789
    <!-- /TMPL_IF --> 
789
    </li>
790
    </li>
Lines 870-878 Link Here
870
			OPAC Login: </label>
871
			OPAC Login: </label>
871
872
872
<!-- TMPL_IF NAME="NoUpdateLogin" -->
873
<!-- TMPL_IF NAME="NoUpdateLogin" -->
873
<input type="text" id="userid" name="userid" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="userid" -->" />
874
<input type="text" id="userid" name="userid" size="20" disabled="disabled" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="userid" --><!-- /TMPL_IF -->" />
874
<!-- TMPL_ELSE -->
875
<!-- TMPL_ELSE -->
875
<input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
876
<input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="userid" --><!-- /TMPL_IF -->" />
876
<!-- /TMPL_IF -->
877
<!-- /TMPL_IF -->
877
878
878
	  <!-- TMPL_IF NAME="mandatoryuserid" --><span class="required">Required</span><!-- /TMPL_IF -->
879
	  <!-- TMPL_IF NAME="mandatoryuserid" --><span class="required">Required</span><!-- /TMPL_IF -->
Lines 886-901 Link Here
886
			Password: </label>
887
			Password: </label>
887
			<!--TMPL_IF NAME="opadd"-->
888
			<!--TMPL_IF NAME="opadd"-->
888
			<!-- TMPL_IF NAME="NoUpdateLogin" -->
889
			<!-- TMPL_IF NAME="NoUpdateLogin" -->
889
				<input type="text" id="password" name="password" size="20"  disabled="disabled" value="<!-- TMPL_VAR NAME="password" -->" />
890
				<input type="text" id="password" name="password" size="20"  disabled="disabled" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="password" --><!-- /TMPL_IF -->" />
890
<!-- TMPL_ELSE -->
891
<!-- TMPL_ELSE -->
891
				<input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
892
				<input type="text" id="password" name="password" size="20" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="password" --><!-- /TMPL_IF -->" />
892
<!-- /TMPL_IF -->
893
<!-- /TMPL_IF -->
893
			<!--TMPL_ELSE-->
894
			<!--TMPL_ELSE-->
894
			<!--TMPL_IF NAME="password"-->
895
			<!--TMPL_IF NAME="password"-->
895
				<!-- TMPL_IF NAME="NoUpdateLogin" -->
896
				<!-- TMPL_IF NAME="NoUpdateLogin" -->
896
					<input type="text" id="password" name="password" size="20"  disabled="disabled" value="****" />
897
					<input type="text" id="password" name="password" size="20"  disabled="disabled" value="****" />
897
				<!-- TMPL_ELSE -->
898
				<!-- TMPL_ELSE -->
898
					<input type="text" id="password" name="password" size="20" value="****" />
899
					<input type="text" id="password" name="password" size="20" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE-->****<!-- /TMPL_IF -->" />
899
				<!-- /TMPL_IF -->
900
				<!-- /TMPL_IF -->
900
			<!--TMPL_ELSE-->
901
			<!--TMPL_ELSE-->
901
				<!-- TMPL_IF NAME="NoUpdateLogin" -->
902
				<!-- TMPL_IF NAME="NoUpdateLogin" -->
Lines 920-933 Link Here
920
				<!-- TMPL_IF EXPR="key eq 'debarred'" -->Debarred:<!-- /TMPL_IF -->
921
				<!-- TMPL_IF EXPR="key eq 'debarred'" -->Debarred:<!-- /TMPL_IF -->
921
				<!-- TMPL_IF EXPR="key eq 'lost'" -->Lost Card:<!-- /TMPL_IF -->
922
				<!-- TMPL_IF EXPR="key eq 'lost'" -->Lost Card:<!-- /TMPL_IF -->
922
                </label>
923
                </label>
923
				
924
				<label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
924
				<label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
925
				<!-- TMPL_IF NAME="yes" -->
925
				<!-- TMPL_IF NAME="yes" -->
926
				<input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
926
				<input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
927
				<!-- TMPL_ELSE -->
927
				<!-- TMPL_ELSE -->
928
				<input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
928
				<input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
929
				<!-- /TMPL_IF -->
929
				<!-- /TMPL_IF -->
930
				
931
				<label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
930
				<label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
932
				<!-- TMPL_IF NAME="no" -->
931
				<!-- TMPL_IF NAME="no" -->
933
				<input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
932
				<input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
Lines 975-981 Link Here
975
                    </select>
974
                    </select>
976
                <!-- TMPL_ELSE -->
975
                <!-- TMPL_ELSE -->
977
                    <input type="text" maxlength="64" value="<!-- TMPL_VAR NAME="value" -->"
976
                    <input type="text" maxlength="64" value="<!-- TMPL_VAR NAME="value" -->"
978
                           id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->" />
977
                           id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
979
                <!-- /TMPL_IF -->
978
                <!-- /TMPL_IF -->
980
                <!-- TMPL_IF NAME="password_allowed" -->
979
                <!-- TMPL_IF NAME="password_allowed" -->
981
                    (Password: <input type="password" maxlength="64" value="<!-- TMPL_VAR NAME="password" -->"
980
                    (Password: <input type="password" maxlength="64" value="<!-- TMPL_VAR NAME="password" -->"
Lines 1047-1053 Link Here
1047
    <!-- TMPL_INCLUDE NAME="messaging-preference-form.inc" -->
1046
    <!-- TMPL_INCLUDE NAME="messaging-preference-form.inc" -->
1048
    <!-- TMPL_IF NAME="SMSSendDriver" -->
1047
    <!-- TMPL_IF NAME="SMSSendDriver" -->
1049
        <p><label for="SMSnumber">SMS number:</label> 
1048
        <p><label for="SMSnumber">SMS number:</label> 
1050
          <input type="text" id="SMSnumber" name="SMSnumber" value="<!-- TMPL_VAR NAME="SMSnumber"  -->" />
1049
          <input type="text" id="SMSnumber" name="SMSnumber" value="<!-- TMPL_VAR NAME="SMSnumber"  -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
1051
        </p>
1050
        </p>
1052
    <!-- /TMPL_IF -->
1051
    <!-- /TMPL_IF -->
1053
  </fieldset>
1052
  </fieldset>
(-)a/members/memberentry.pl (-17 / +23 lines)
Lines 70-83 my $destination = $input->param('destination'); Link Here
70
my $cardnumber     = $input->param('cardnumber');
70
my $cardnumber     = $input->param('cardnumber');
71
my $check_member   = $input->param('check_member');
71
my $check_member   = $input->param('check_member');
72
my $nodouble       = $input->param('nodouble');
72
my $nodouble       = $input->param('nodouble');
73
$nodouble = 1 if $op eq 'modify'; # FIXME hack to represent fact that if we're
73
my $duplicate      = $input->param('duplicate');
74
                                  # modifying an existing patron, it ipso facto
74
$nodouble = 1 if ($op eq 'modify' or $op eq 'duplicate');    # FIXME hack to represent fact that if we're
75
                                  # isn't a duplicate.  Marking FIXME because this
75
                                     # modifying an existing patron, it ipso facto
76
                                  # script needs to be refactored.
76
                                     # isn't a duplicate.  Marking FIXME because this
77
my $select_city    = $input->param('select_city');
77
                                     # script needs to be refactored.
78
my $nok            = $input->param('nok');
78
my $select_city   = $input->param('select_city');
79
my $guarantorinfo  = $input->param('guarantorinfo');
79
my $nok           = $input->param('nok');
80
my $step           = $input->param('step') || 0;
80
my $guarantorinfo = $input->param('guarantorinfo');
81
my $step          = $input->param('step') || 0;
81
my @errors;
82
my @errors;
82
my $default_city;
83
my $default_city;
83
# $check_categorytype contains the value of duplicate borrowers category type to redirect in good template in step =2
84
# $check_categorytype contains the value of duplicate borrowers category type to redirect in good template in step =2
Lines 98-106 my @field_check=split(/\|/,$check_BorrowerMandatoryField); Link Here
98
foreach (@field_check) {
99
foreach (@field_check) {
99
	$template->param( "mandatory$_" => 1);    
100
	$template->param( "mandatory$_" => 1);    
100
}
101
}
101
$template->param("add"=>1) if ($op eq 'add');
102
$template->param( "add" => 1 ) if ( $op eq 'add' );
102
$template->param("checked" => 1) if (defined($nodouble) && $nodouble eq 1);
103
$template->param( "duplicate" => 1 ) if ( $op eq 'duplicate' );
103
($borrower_data = GetMember( 'borrowernumber'=>$borrowernumber )) if ($op eq 'modify' or $op eq 'save');
104
$template->param( "checked" => 1 ) if ( defined($nodouble) && $nodouble eq 1 );
105
( $borrower_data = GetMember( 'borrowernumber' => $borrowernumber ) ) if ( $op eq 'modify' or $op eq 'save' or $op eq 'duplicate' );
104
my $categorycode  = $input->param('categorycode') || $borrower_data->{'categorycode'};
106
my $categorycode  = $input->param('categorycode') || $borrower_data->{'categorycode'};
105
my $category_type = $input->param('category_type');
107
my $category_type = $input->param('category_type');
106
my $new_c_type = $category_type; #if we have input param, then we've already chosen the cat_type.
108
my $new_c_type = $category_type; #if we have input param, then we've already chosen the cat_type.
Lines 116-124 $category_type="A" unless $category_type; # FIXME we should display a error mess Link Here
116
%data = %$borrower_data if ($borrower_data);
118
%data = %$borrower_data if ($borrower_data);
117
119
118
# initialize %newdata
120
# initialize %newdata
119
my %newdata;	# comes from $input->param()
121
my %newdata;                                                                             # comes from $input->param()
120
if ($op eq 'insert' || $op eq 'modify' || $op eq 'save') {
122
if ( $op eq 'insert' || $op eq 'modify' || $op eq 'save' || $op eq 'duplicate' ) {
121
    my @names= ($borrower_data && $op ne 'save') ? keys %$borrower_data : $input->param();
123
    my @names = ( $borrower_data && $op ne 'save' ) ? keys %$borrower_data : $input->param();
122
    foreach my $key (@names) {
124
    foreach my $key (@names) {
123
        if (defined $input->param($key)) {
125
        if (defined $input->param($key)) {
124
            $newdata{$key} = $input->param($key);
126
            $newdata{$key} = $input->param($key);
Lines 275-282 if ($op eq 'save' || $op eq 'insert'){ Link Here
275
  }
277
  }
276
}
278
}
277
279
278
if ( ($op eq 'modify' || $op eq 'insert' || $op eq 'save') and ($step == 0 or $step == 3 )){
280
if ( ($op eq 'modify' || $op eq 'insert' || $op eq 'save'|| $op eq 'duplicate') and ($step == 0 or $step == 3 )){
279
    if (exists ($newdata{'dateexpiry'}) && !($newdata{'dateexpiry'})){
281
    unless ($newdata{'dateexpiry'}){
280
        my $arg2 = $newdata{'dateenrolled'} || C4::Dates->today('iso');
282
        my $arg2 = $newdata{'dateenrolled'} || C4::Dates->today('iso');
281
        $newdata{'dateexpiry'} = GetExpiryDate($newdata{'categorycode'},$arg2);
283
        $newdata{'dateexpiry'} = GetExpiryDate($newdata{'categorycode'},$arg2);
282
    }
284
    }
Lines 384-389 if ($op eq "modify") { Link Here
384
    $template->param( updtype => 'M',modify => 1 );
386
    $template->param( updtype => 'M',modify => 1 );
385
    $template->param( step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1) unless $step;
387
    $template->param( step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1) unless $step;
386
}
388
}
389
if ( $op eq "duplicate" ) {
390
    $template->param( updtype => 'I' );
391
    $template->param( step_1 => 1, step_2 => 1, step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1 ) unless $step;
392
}
393
387
# my $cardnumber=$data{'cardnumber'};
394
# my $cardnumber=$data{'cardnumber'};
388
$data{'cardnumber'}=fixup_cardnumber($data{'cardnumber'}) if $op eq 'add';
395
$data{'cardnumber'}=fixup_cardnumber($data{'cardnumber'}) if $op eq 'add';
389
if(!defined($data{'sex'})){
396
if(!defined($data{'sex'})){
390
- 

Return to bug 5432