Quick Search:

View

Revision:

Diff

Diff from 1843 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/osCommerce/oscommerce2/trunk/catalog/create_account.php

Annotated File View

hpdl
477
1 <?php
2 /*
hpdl
1739
3   $Id: create_account.php 1843 2008-12-12 13:32:10Z hpdl $
hpdl
477
4
5   osCommerce, Open Source E-Commerce Solutions
6   http://www.oscommerce.com
7
hpdl
1840
8   Copyright (c) 2008 osCommerce
hpdl
477
9
10   Released under the GNU General Public License
11 */
12
13   require('includes/application_top.php');
14
15 // needs to be included earlier to set the success message in the messageStack
16   require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CREATE_ACCOUNT);
17
18   $process = false;
hpdl
1843
19   if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process') && isset($HTTP_POST_VARS['formid']) && ($HTTP_POST_VARS['formid'] == $sessiontoken)) {
hpdl
477
20     $process = true;
21
22     if (ACCOUNT_GENDER == 'true') {
23       if (isset($HTTP_POST_VARS['gender'])) {
24         $gender = tep_db_prepare_input($HTTP_POST_VARS['gender']);
25       } else {
26         $gender = false;
27       }
28     }
29     $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);
30     $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']);
31     if (ACCOUNT_DOB == 'true') $dob = tep_db_prepare_input($HTTP_POST_VARS['dob']);
32     $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);
33     if (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input($HTTP_POST_VARS['company']);
34     $street_address = tep_db_prepare_input($HTTP_POST_VARS['street_address']);
35     if (ACCOUNT_SUBURB == 'true') $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']);
36     $postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']);
37     $city = tep_db_prepare_input($HTTP_POST_VARS['city']);
38     if (ACCOUNT_STATE == 'true') {
39       $state = tep_db_prepare_input($HTTP_POST_VARS['state']);
40       if (isset($HTTP_POST_VARS['zone_id'])) {
41         $zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']);
42       } else {
43         $zone_id = false;
44       }
45     }
46     $country = tep_db_prepare_input($HTTP_POST_VARS['country']);
47     $telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']);
48     $fax = tep_db_prepare_input($HTTP_POST_VARS['fax']);
49     if (isset($HTTP_POST_VARS['newsletter'])) {
50       $newsletter = tep_db_prepare_input($HTTP_POST_VARS['newsletter']);
51     } else {
52       $newsletter = false;
53     }
54     $password = tep_db_prepare_input($HTTP_POST_VARS['password']);
55     $confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']);
56
57     $error = false;
58
59     if (ACCOUNT_GENDER == 'true') {
60       if ( ($gender != 'm') && ($gender != 'f') ) {
61         $error = true;
62
63         $messageStack->add('create_account', ENTRY_GENDER_ERROR);
64       }
65     }
66
67     if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) {
68       $error = true;
69
70       $messageStack->add('create_account', ENTRY_FIRST_NAME_ERROR);
71     }
72
73     if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) {
74       $error = true;
75
76       $messageStack->add('create_account', ENTRY_LAST_NAME_ERROR);
77     }
78
79     if (ACCOUNT_DOB == 'true') {
hpdl
1840
80       if ((is_numeric(tep_date_raw($dob)) == false) || (@checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4)) == false)) {
hpdl
477
81         $error = true;
82
83         $messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR);
84       }
85     }
86
87     if (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) {
88       $error = true;
89
90       $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR);
91     } elseif (tep_validate_email($email_address) == false) {
92       $error = true;
93
94       $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
95     } else {
96       $check_email_query = tep_db_query("select count(*) as total from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'");
97       $check_email = tep_db_fetch_array($check_email_query);
98       if ($check_email['total'] > 0) {
99         $error = true;
100
101         $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS);
102       }
103     }
104
105     if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {
106       $error = true;
107
108       $messageStack->add('create_account', ENTRY_STREET_ADDRESS_ERROR);
109     }
110
111     if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) {
112       $error = true;
113
114       $messageStack->add('create_account', ENTRY_POST_CODE_ERROR);
115     }
116
117     if (strlen($city) < ENTRY_CITY_MIN_LENGTH) {
118       $error = true;
119
120       $messageStack->add('create_account', ENTRY_CITY_ERROR);
121     }
122
123     if (is_numeric($country) == false) {
124       $error = true;
125
126       $messageStack->add('create_account', ENTRY_COUNTRY_ERROR);
127     }
128
129     if (ACCOUNT_STATE == 'true') {
130       $zone_id = 0;
131       $check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "'");
132       $check = tep_db_fetch_array($check_query);
133       $entry_state_has_zones = ($check['total'] > 0);
134       if ($entry_state_has_zones == true) {
hpdl
1598
135         $zone_query = tep_db_query("select distinct zone_id from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' and (zone_name = '" . tep_db_input($state) . "' or zone_code = '" . tep_db_input($state) . "')");
hpdl
477
136         if (tep_db_num_rows($zone_query) == 1) {
137           $zone = tep_db_fetch_array($zone_query);
138           $zone_id = $zone['zone_id'];
139         } else {
140           $error = true;
141
142           $messageStack->add('create_account', ENTRY_STATE_ERROR_SELECT);
143         }
144       } else {
145         if (strlen($state) < ENTRY_STATE_MIN_LENGTH) {
146           $error = true;
147
148           $messageStack->add('create_account', ENTRY_STATE_ERROR);
149         }
150       }
151     }
152
153     if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {
154       $error = true;
155
156       $messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);
157     }
158
159
160     if (strlen($password) < ENTRY_PASSWORD_MIN_LENGTH) {
161       $error = true;
162
163       $messageStack->add('create_account', ENTRY_PASSWORD_ERROR);
164     } elseif ($password != $confirmation) {
165       $error = true;
166
167       $messageStack->add('create_account', ENTRY_PASSWORD_ERROR_NOT_MATCHING);
168     }
169
170     if ($error == false) {
171       $sql_data_array = array('customers_firstname' => $firstname,
172                               'customers_lastname' => $lastname,
173                               'customers_email_address' => $email_address,
174                               'customers_telephone' => $telephone,
175                               'customers_fax' => $fax,
176                               'customers_newsletter' => $newsletter,
177                               'customers_password' => tep_encrypt_password($password));
178
179       if (ACCOUNT_GENDER == 'true') $sql_data_array['customers_gender'] = $gender;
180       if (ACCOUNT_DOB == 'true') $sql_data_array['customers_dob'] = tep_date_raw($dob);
181
182       tep_db_perform(TABLE_CUSTOMERS, $sql_data_array);
183
184       $customer_id = tep_db_insert_id();
185
186       $sql_data_array = array('customers_id' => $customer_id,
187                               'entry_firstname' => $firstname,
188                               'entry_lastname' => $lastname,
189                               'entry_street_address' => $street_address,
190                               'entry_postcode' => $postcode,
191                               'entry_city' => $city,
192                               'entry_country_id' => $country);
193
194       if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender;
195       if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $company;
196       if (ACCOUNT_SUBURB == 'true') $sql_data_array['entry_suburb'] = $suburb;
197       if (ACCOUNT_STATE == 'true') {
198         if ($zone_id > 0) {
199           $sql_data_array['entry_zone_id'] = $zone_id;
200           $sql_data_array['entry_state'] = '';
201         } else {
202           $sql_data_array['entry_zone_id'] = '0';
203           $sql_data_array['entry_state'] = $state;
204         }
205       }
206
207       tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);
208
209       $address_id = tep_db_insert_id();
210
211       tep_db_query("update " . TABLE_CUSTOMERS . " set customers_default_address_id = '" . (int)$address_id . "' where customers_id = '" . (int)$customer_id . "'");
212
213       tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('" . (int)$customer_id . "', '0', now())");
214
215       if (SESSION_RECREATE == 'True') {
216         tep_session_recreate();
217       }
218
219       $customer_first_name = $firstname;
220       $customer_default_address_id = $address_id;
221       $customer_country_id = $country;
222       $customer_zone_id = $zone_id;
223       tep_session_register('customer_id');
224       tep_session_register('customer_first_name');
225       tep_session_register('customer_default_address_id');
226       tep_session_register('customer_country_id');
227       tep_session_register('customer_zone_id');
228
hpdl
1843
229 // reset session token
230       $sessiontoken = md5(tep_rand() . tep_rand() . tep_rand() . tep_rand());
231
hpdl
477
232 // restore cart contents
233       $cart->restore_contents();
234
235 // build the message content
236       $name = $firstname . ' ' . $lastname;
237
238       if (ACCOUNT_GENDER == 'true') {
239          if ($gender == 'm') {
240            $email_text = sprintf(EMAIL_GREET_MR, $lastname);
241          } else {
242            $email_text = sprintf(EMAIL_GREET_MS, $lastname);
243          }
244       } else {
245         $email_text = sprintf(EMAIL_GREET_NONE, $firstname);
246       }
247
248       $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
249       tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
250
251       tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));
252     }
253   }
254
255   $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
256 ?>
257 <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
258 <html <?php echo HTML_PARAMS; ?>>
259 <head>
260 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
261 <title><?php echo TITLE; ?></title>
262 <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
263 <link rel="stylesheet" type="text/css" href="stylesheet.css">
264 <?php require('includes/form_check.js.php'); ?>
265 </head>
266 <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
267 <!-- header //-->
268 <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
269 <!-- header_eof //-->
270
271 <!-- body //-->
272 <table border="0" width="100%" cellspacing="3" cellpadding="3">
273   <tr>
274     <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
275 <!-- left_navigation //-->
276 <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
277 <!-- left_navigation_eof //-->
278     </table></td>
279 <!-- body_text //-->
hpdl
1843
280     <td width="100%" valign="top"><?php echo tep_draw_form('create_account', tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onSubmit="return check_form(create_account);"', true) . tep_draw_hidden_field('action', 'process'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
hpdl
477
281       <tr>
282         <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
283           <tr>
284             <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
285             <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
286           </tr>
287         </table></td>
288       </tr>
289       <tr>
290         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
291       </tr>
292       <tr>
293         <td class="smallText"><br><?php echo sprintf(TEXT_ORIGIN_LOGIN, tep_href_link(FILENAME_LOGIN, tep_get_all_get_params(), 'SSL')); ?></td>
294       </tr>
295       <tr>
296         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
297       </tr>
298 <?php
299   if ($messageStack->size('create_account') > 0) {
300 ?>
301       <tr>
302         <td><?php echo $messageStack->output('create_account'); ?></td>
303       </tr>
304       <tr>
305         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
306       </tr>
307 <?php
308   }
309 ?>
310       <tr>
311         <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
312           <tr>
313             <td class="main"><b><?php echo CATEGORY_PERSONAL; ?></b></td>
314            <td class="inputRequirement" align="right"><?php echo FORM_REQUIRED_INFORMATION; ?></td>
315           </tr>
316         </table></td>
317       </tr>
318       <tr>
319         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
320           <tr class="infoBoxContents">
321             <td><table border="0" cellspacing="2" cellpadding="2">
322 <?php
323   if (ACCOUNT_GENDER == 'true') {
324 ?>
325               <tr>
326                 <td class="main"><?php echo ENTRY_GENDER; ?></td>
327                 <td class="main"><?php echo tep_draw_radio_field('gender', 'm') . '&nbsp;&nbsp;' . MALE . '&nbsp;&nbsp;' . tep_draw_radio_field('gender', 'f') . '&nbsp;&nbsp;' . FEMALE . '&nbsp;' . (tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>': ''); ?></td>
328               </tr>
329 <?php
330   }
331 ?>
332               <tr>
333                 <td class="main"><?php echo ENTRY_FIRST_NAME; ?></td>
334                 <td class="main"><?php echo tep_draw_input_field('firstname') . '&nbsp;' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?></td>
335               </tr>
336               <tr>
337                 <td class="main"><?php echo ENTRY_LAST_NAME; ?></td>
338                 <td class="main"><?php echo tep_draw_input_field('lastname') . '&nbsp;' . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?></td>
339               </tr>
340 <?php
341   if (ACCOUNT_DOB == 'true') {
342 ?>
343               <tr>
344                 <td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td>
345                 <td class="main"><?php echo tep_draw_input_field('dob') . '&nbsp;' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td>
346               </tr>
347 <?php
348   }
349 ?>
350               <tr>
351                 <td class="main"><?php echo ENTRY_EMAIL_ADDRESS; ?></td>
352                 <td class="main"><?php echo tep_draw_input_field('email_address') . '&nbsp;' . (tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?></td>
353               </tr>
354             </table></td>
355           </tr>
356         </table></td>
357       </tr>
358 <?php
359   if (ACCOUNT_COMPANY == 'true') {
360 ?>
361       <tr>
362         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
363       </tr>
364       <tr>
365         <td class="main"><b><?php echo CATEGORY_COMPANY; ?></b></td>
366       </tr>
367       <tr>
368         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
369           <tr class="infoBoxContents">
370             <td><table border="0" cellspacing="2" cellpadding="2">
371               <tr>
372                 <td class="main"><?php echo ENTRY_COMPANY; ?></td>
373                 <td class="main"><?php echo tep_draw_input_field('company') . '&nbsp;' . (tep_not_null(ENTRY_COMPANY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?></td>
374               </tr>
375             </table></td>
376           </tr>
377         </table></td>
378       </tr>
379 <?php
380   }
381 ?>
382       <tr>
383         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
384       </tr>
385       <tr>
386         <td class="main"><b><?php echo CATEGORY_ADDRESS; ?></b></td>
387       </tr>
388       <tr>
389         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
390           <tr class="infoBoxContents">
391             <td><table border="0" cellspacing="2" cellpadding="2">
392               <tr>
393                 <td class="main"><?php echo ENTRY_STREET_ADDRESS; ?></td>
394                 <td class="main"><?php echo tep_draw_input_field('street_address') . '&nbsp;' . (tep_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''); ?></td>
395               </tr>
396 <?php
397   if (ACCOUNT_SUBURB == 'true') {
398 ?>
399               <tr>
400                 <td class="main"><?php echo ENTRY_SUBURB; ?></td>
401                 <td class="main"><?php echo tep_draw_input_field('suburb') . '&nbsp;' . (tep_not_null(ENTRY_SUBURB_TEXT) ? '<span class="inputRequirement">' . ENTRY_SUBURB_TEXT . '</span>': ''); ?></td>
402               </tr>
403 <?php
404   }
405 ?>
406               <tr>
407                 <td class="main"><?php echo ENTRY_POST_CODE; ?></td>
408                 <td class="main"><?php echo tep_draw_input_field('postcode') . '&nbsp;' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>
409               </tr>
410               <tr>
411                 <td class="main"><?php echo ENTRY_CITY; ?></td>
412                 <td class="main"><?php echo tep_draw_input_field('city') . '&nbsp;' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></td>
413               </tr>
414 <?php
415   if (ACCOUNT_STATE == 'true') {
416 ?>
417               <tr>
418                 <td class="main"><?php echo ENTRY_STATE; ?></td>
419                 <td class="main">
420 <?php
421     if ($process == true) {
422       if ($entry_state_has_zones == true) {
423         $zones_array = array();
424         $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' order by zone_name");
425         while ($zones_values = tep_db_fetch_array($zones_query)) {
426           $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
427         }
428         echo tep_draw_pull_down_menu('state', $zones_array);
429       } else {
430         echo tep_draw_input_field('state');
431       }
432     } else {
433       echo tep_draw_input_field('state');
434     }
435
436     if (tep_not_null(ENTRY_STATE_TEXT)) echo '&nbsp;<span class="inputRequirement">' . ENTRY_STATE_TEXT;
437 ?>
438                 </td>
439               </tr>
440 <?php
441   }
442 ?>
443               <tr>
444                 <td class="main"><?php echo ENTRY_COUNTRY; ?></td>
445                 <td class="main"><?php echo tep_get_country_list('country') . '&nbsp;' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>
446               </tr>
447             </table></td>
448           </tr>
449         </table></td>
450       </tr>
451       <tr>
452         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
453       </tr>
454       <tr>
455         <td class="main"><b><?php echo CATEGORY_CONTACT; ?></b></td>
456       </tr>
457       <tr>
458         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
459           <tr class="infoBoxContents">
460             <td><table border="0" cellspacing="2" cellpadding="2">
461               <tr>
462                 <td class="main"><?php echo ENTRY_TELEPHONE_NUMBER; ?></td>
463                 <td class="main"><?php echo tep_draw_input_field('telephone') . '&nbsp;' . (tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?></td>
464               </tr>
465               <tr>
466                 <td class="main"><?php echo ENTRY_FAX_NUMBER; ?></td>
467                 <td class="main"><?php echo tep_draw_input_field('fax') . '&nbsp;' . (tep_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?></td>
468               </tr>
469             </table></td>
470           </tr>
471         </table></td>
472       </tr>
473       <tr>
474         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
475       </tr>
476       <tr>
477         <td class="main"><b><?php echo CATEGORY_OPTIONS; ?></b></td>
478       </tr>
479       <tr>
480         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
481           <tr class="infoBoxContents">
482             <td><table border="0" cellspacing="2" cellpadding="2">
483               <tr>
484                 <td class="main"><?php echo ENTRY_NEWSLETTER; ?></td>
485                 <td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1') . '&nbsp;' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td>
486               </tr>
487             </table></td>
488           </tr>
489         </table></td>
490       </tr>
491       <tr>
492         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
493       </tr>
494       <tr>
495         <td class="main"><b><?php echo CATEGORY_PASSWORD; ?></b></td>
496       </tr>
497       <tr>
498         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
499           <tr class="infoBoxContents">
500             <td><table border="0" cellspacing="2" cellpadding="2">
501               <tr>
502                 <td class="main"><?php echo ENTRY_PASSWORD; ?></td>
503                 <td class="main"><?php echo tep_draw_password_field('password') . '&nbsp;' . (tep_not_null(ENTRY_PASSWORD_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_TEXT . '</span>': ''); ?></td>
504               </tr>
505               <tr>
506                 <td class="main"><?php echo ENTRY_PASSWORD_CONFIRMATION; ?></td>
507                 <td class="main"><?php echo tep_draw_password_field('confirmation') . '&nbsp;' . (tep_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '</span>': ''); ?></td>
508               </tr>
509             </table></td>
510           </tr>
511         </table></td>
512       </tr>
513       <tr>
514         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
515       </tr>
516       <tr>
517         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
518           <tr class="infoBoxContents">
519             <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
520               <tr>
521                 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
522                 <td><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
523                 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
524               </tr>
525             </table></td>
526           </tr>
527         </table></td>
528       </tr>
529     </table></form></td>
530 <!-- body_text_eof //-->
531     <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
532 <!-- right_navigation //-->
533 <?php include(DIR_WS_INCLUDES . 'column_right.php'); ?>
534 <!-- right_navigation_eof //-->
535     </table></td>
536   </tr>
537 </table>
538 <!-- body_eof //-->
539
540 <!-- footer //-->
541 <?php include(DIR_WS_INCLUDES . 'footer.php'); ?>
542 <!-- footer_eof //-->
543 <br>
544 </body>
545 </html>
546 <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>