bdotjones Posted December 25, 2005 Share Posted December 25, 2005 (edited) Hi, I am using this contribution: State list dropdown and US default country http://www.oscommerce.com/community/contri...+drop+down+menu and when I fill out the form and hit submit. I keep on getting the error saying "Error:Please select a state from the States pull down menu." when I did select a state. Does anyone know what is causing this problem and how can I fix it thanx Edited December 25, 2005 by bdotjones Quote Link to comment Share on other sites More sharing options...
bdotjones Posted December 27, 2005 Author Share Posted December 27, 2005 Here's the code for my create_account.php file...Can someone please take a look and tell me why its not registering the state from the dropdown menu. Thanx <?php /* $Id: create_account.php,v 1.65 2003/06/09 23:03:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce <?php require('includes/form_check.js.php'); ?> Released under the GNU General Public License */ require('includes/application_top.php'); // needs to be included earlier to set the success message in the messageStack require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CREATE_ACCOUNT); /*BOF Pulldown date of birth 1.0*/ if(isset($HTTP_POST_VARS['dob_day']) && isset($HTTP_POST_VARS['dob_month']) && isset($HTTP_POST_VARS['dob_year'])) { $HTTP_POST_VARS['dob'] = $HTTP_POST_VARS['dob_month'].'/'.$HTTP_POST_VARS['dob_day'].'/'.$HTTP_POST_VARS['dob_year']; } /*EOF Pulldown date of birth 1.0*/ $process = false; if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process')) { $process = true; if (ACCOUNT_GENDER == 'true') { if (isset($HTTP_POST_VARS['gender'])) { $gender = tep_db_prepare_input($HTTP_POST_VARS['gender']); } else { $gender = false; } } //BEGIN USERNAME $username = tep_db_prepare_input($HTTP_POST_VARS['username']); //END USERNAME $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']); $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']); if (ACCOUNT_DOB == 'true') $dob = tep_db_prepare_input($HTTP_POST_VARS[dob_month] . '/' . $HTTP_POST_VARS[dob_day] . '/' . $HTTP_POST_VARS[dob_year]); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']); if (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input($HTTP_POST_VARS['company']); $street_address = tep_db_prepare_input($HTTP_POST_VARS['street_address']); if (ACCOUNT_SUBURB == 'true') $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']); $postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']); $city = tep_db_prepare_input($HTTP_POST_VARS['city']); if (ACCOUNT_STATE == 'true') { $state = tep_db_prepare_input($HTTP_POST_VARS['state']); if (isset($HTTP_POST_VARS['zone_id'])) { $zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']); } else { $zone_id = false; } } $country = tep_db_prepare_input($HTTP_POST_VARS['country']); //$telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']); //Strips out the garbage so you have a phone number with no spaces $telephone = tep_db_prepare_input(ereg_replace("\.|\(|\)|-| ", "",($HTTP_POST_VARS['telephone']))); //If the first number is a 1 then it starts at the second number and formats from there so 12345678901 becomes (234) 567-8901 if($telephone{0} == 1) { $telephone = tep_db_prepare_input("(".substr($telephone,1,3).") ".substr($telephone,4,3)."-".substr($telephone,7,4),($HTTP_POST_VARS['telephone'])); } //If the first number is not a 1 then it just formats 2345678901 into (234) 567-8901 else { $telephone = tep_db_prepare_input("(".substr($telephone,0,3).") ".substr($telephone,3,3)."-".substr($telephone,6,4),($HTTP_POST_VARS['telephone'])); } $fax = tep_db_prepare_input($HTTP_POST_VARS['fax']); if (isset($HTTP_POST_VARS['newsletter'])) { $newsletter = tep_db_prepare_input($HTTP_POST_VARS['newsletter']); } else { $newsletter = false; } $password = tep_db_prepare_input($HTTP_POST_VARS['password']); $confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']); $error = false; if (ACCOUNT_GENDER == 'true') { if ( ($gender != 'm') && ($gender != 'f') ) { $error = true; $messageStack->add('create_account', ENTRY_GENDER_ERROR); } } if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_FIRST_NAME_ERROR); } if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_LAST_NAME_ERROR); } if (ACCOUNT_DOB == 'true') { if (checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4)) == false) { $error = true; $messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR); } } if (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR); } elseif (tep_validate_email($email_address) == false) { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } else { $check_email_query = tep_db_query("select count(*) as total from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); $check_email = tep_db_fetch_array($check_email_query); if ($check_email['total'] > 0) { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS); } } //BEGIN USERNAME if (strlen($username) < ENTRY_USERNAME_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_USERNAME_ERROR); } else { $check_uname_query = tep_db_query("select count(*) as total from " . TABLE_CUSTOMERS . " where customers_username = '" . tep_db_input($username) . "'"); $check_uname = tep_db_fetch_array($check_uname_query); if ($check_uname['total'] > 0) { $error = true; $messageStack->add('create_account', ENTRY_USERNAME_ERROR_EXISTS); } } //END USERNAME if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_STREET_ADDRESS_ERROR); } if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_POST_CODE_ERROR); } if (strlen($city) < ENTRY_CITY_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_CITY_ERROR); } if (is_numeric($country) == false) { $error = true; $messageStack->add('create_account', ENTRY_COUNTRY_ERROR); } if (ACCOUNT_STATE == 'true') { $zone_id = 0; $check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "'"); $check = tep_db_fetch_array($check_query); $entry_state_has_zones = ($check['total'] > 0); if ($entry_state_has_zones == true) { $zone_query = tep_db_query("select distinct zone_id from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' and (zone_code like '%" . tep_db_input($state) . "%')"); if (tep_db_num_rows($zone_query) == 1) { $zone = tep_db_fetch_array($zone_query); $zone_id = $zone['zone_id']; } else { $error = true; $messageStack->add('create_account', ENTRY_STATE_ERROR_SELECT); } } else { if (strlen($state) < ENTRY_STATE_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_STATE_ERROR); } } } if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR); } if (strlen($password) < ENTRY_PASSWORD_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_PASSWORD_ERROR); } elseif ($password != $confirmation) { $error = true; $messageStack->add('create_account', ENTRY_PASSWORD_ERROR_NOT_MATCHING); } // Add username to array if ($error == false) { $sql_data_array = array('customers_username' => $username, 'customers_firstname' => $firstname, 'customers_lastname' => $lastname, 'customers_email_address' => $email_address, 'customers_telephone' => $telephone, 'customers_fax' => $fax, 'customers_newsletter' => $newsletter, 'customers_password' => tep_encrypt_password($password)); if (ACCOUNT_GENDER == 'true') $sql_data_array['customers_gender'] = $gender; if (ACCOUNT_DOB == 'true') $sql_data_array['customers_dob'] = tep_date_raw($dob); tep_db_perform(TABLE_CUSTOMERS, $sql_data_array); $customer_id = tep_db_insert_id(); $sql_data_array = array('customers_id' => $customer_id, 'entry_firstname' => $firstname, 'entry_lastname' => $lastname, 'entry_street_address' => $street_address, 'entry_postcode' => $postcode, 'entry_city' => $city, 'entry_country_id' => $country); if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender; if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $company; if (ACCOUNT_SUBURB == 'true') $sql_data_array['entry_suburb'] = $suburb; if (ACCOUNT_STATE == 'true') { if ($zone_id > 0) { $sql_data_array['entry_zone_id'] = $zone_id; $sql_data_array['entry_state'] = ''; } else { $sql_data_array['entry_zone_id'] = '0'; $sql_data_array['entry_state'] = $state; } } tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array); $address_id = tep_db_insert_id(); tep_db_query("update " . TABLE_CUSTOMERS . " set customers_default_address_id = '" . (int)$address_id . "' where customers_id = '" . (int)$customer_id . "'"); 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())"); if (SESSION_RECREATE == 'True') { tep_session_recreate(); } $customer_first_name = $firstname; $customer_default_address_id = $address_id; $customer_country_id = $country; $customer_zone_id = $zone_id; //BEGIN USERNAME tep_session_register('customer_username'); //END USERNAME tep_session_register('customer_id'); tep_session_register('customer_first_name'); tep_session_register('customer_default_address_id'); tep_session_register('customer_country_id'); tep_session_register('customer_zone_id'); // #CHAVEIRO14# Autologon if ((ALLOW_AUTOLOGONLOGON == 'false') || ($HTTP_POST_VARS['remember_me'] == '')) { tep_autologincookie(false); } else { tep_autologincookie(true); } // #CHAVEIRO14# Autologon END // restore cart contents $cart->restore_contents(); // build the message content $name = $firstname . ' ' . $lastname; if (ACCOUNT_GENDER == 'true') { if ($gender == 'm') { $email_text = sprintf(EMAIL_GREET_MR, $lastname); } else { $email_text = sprintf(EMAIL_GREET_MS, $lastname); } } else { $email_text = sprintf(EMAIL_GREET_NONE, $firstname); } $email_text .= EMAIL_WELCOME . EMAIL_USERNAME . EMAIL_PASSWORD . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING; tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); if ($cart->count_contents() == 0) { tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL')); } else { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); } } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html <?php echo HTML_PARAMS; ?>> <head> <!--CC KABAKA 1.0--> <title><?php echo TITLE; ?></title> <!-- Info --> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" /> <meta name="description" content="" /> <meta name="robots" content="index,follow" /> <meta name="keywords" content="<?php echo KEYWORDS; ?>" /> <meta name="copyright" content="<?php echo COPYRIGHT; ?>" /> <meta name="author" content="<?php echo AUTHOR; ?>" /> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" /> <!-- CSS --> <link rel="stylesheet" type="text/css" href="css/fouc.css" media="all" /> <link rel="stylesheet" type="text/css" href="css/cckabaka.css" media="screen" /> <!-- JavaScript --> <script type="text/javascript" src="includes/form_check.js"></script> </head> <body> <p id="skipnav"><a href="#content" title="Skip straight to content">Skip straight to content</a></p> <div id="wrap"> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <div id="main-body"> <div id="content"> <div class="post"> <h2><?php echo HEADING_TITLE; ?></h2> <p>Create an account now to make purchases and take part in various features of this site.It's easy and free! <?php echo '<a href="' .tep_href_link(FILENAME_LOGIN, '', 'SSL') . '">'. LOGINBOX_ALREADY_HAVE_ACCOUNT . '</a>'; ?></p> <!-- <div class="retcust"> <?php #echo tep_draw_form('login','post',tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?> <fieldset> <legend><strong><?php #echo LOGINBOX_EXSISTING_CUSTOMER ?></strong></legend> <div class="row"> <span class="fieldtitle"><label><strong><?php #echo LOGINBOX_EMAIL; ?></strong></label></span> <?php #echo tep_draw_input_field2('email_address','email'); ?> </div> <div class="row"> <span class="fieldtitle"><label><strong><?php #echo LOGINBOX_PASSWORD; ?></strong></label></span> <?php #echo tep_draw_password_field2('password','password'); ?> </div> <div class="row"> <?php #if ( (ALLOW_AUTOLOGON == 'true') && ((isset($HTTP_COOKIE_VARS['cookie_test']) && (SESSION_FORCE_COOKIE_USE == 'True')) || (SESSION_FORCE_COOKIE_USE != 'True')) ) { ?> <span class="checkbox"><label><?php #echo LOGINBOX_REMEMBER_ME; ?></label></span> <span><?php #echo tep_draw_checkbox_field('remember_me','on', (($password == '') ? false : true)); ?></span> <?php #} ?> </div> <div class="row"> <span class="spacer"> </span> <?php #echo tep_draw_input_field('signin', 'Sign In', '', 'submit'); ?> </div> <p><?php #echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . LOGINBOX_TEXT_PASSWORD . '</a>'; ?></p> </fieldset> </form> </div> --> <!-- end .retcust --> <?php if ($messageStack->size('create_account') > 0) { ?> <?php echo $messageStack->output('create_account'); ?> <?php } ?> <div class="newcust" id="accountinfo"> <?php echo tep_draw_form('create_account', 'post', tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') , 'onsubmit="return check_form(create_account);"') . '<div>' . tep_draw_hidden_field('action', 'process') . '</div>'; ?> <fieldset> <legend><strong><?php echo LOGINBOX_NEW_CUSTOMER ?></strong></legend> <p><?php echo FORM_REQUIRED_INFORMATION; ?></p> <?php if (ACCOUNT_GENDER == 'true') { ?> <div class="row"> <span class="fieldtitle"><label><strong><?php echo ENTRY_GENDER; ?></strong></label></span> <?php echo tep_draw_radio_field('gender', 'm', true) . ' ' . MALE . ' ' . tep_draw_radio_field('gender', 'f') . ' ' . FEMALE . ' ' . (tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>': ''); ?> </div> <?php } ?> <div class="row"> <span class="fieldtitle"><label for="firstname"><strong><?php echo ENTRY_FIRST_NAME; ?></strong></label></span> <?php echo tep_draw_input_field('firstname') . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?> </div> <div class="row"> <span class="fieldtitle"><label for="lastname"><strong> <?php echo ENTRY_LAST_NAME; ?></strong></label></span> <span><?php echo tep_draw_input_field('lastname') . ' ' . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?></span> </div> <?php if (ACCOUNT_DOB == 'true') { ?> <div class="row"> <span class="fieldtitle"><label for="dob_month"><strong> <?php echo ENTRY_DATE_OF_BIRTH; ?></strong></label></span> <span> <?php $days = array(array('id' => '00', 'text' => '-Day-'), array('id' => '01', 'text' => '1'),array('id' => '02', 'text' => '2'), array('id' => '03', 'text' => '3'), array('id' => '04', 'text' => '4'), array('id' => '05', 'text' => '5'), array('id' => '06', 'text' => '6'), array('id' => '07', 'text' => '7'), array('id' => '08', 'text' => '8'), array('id' => '09', 'text' => '9'), array('id' => '10' , 'text' => '10'), array('id' => '11', 'text' => '11'), array('id' => '12', 'text' => '12'), array('id' => '13', 'text' => '13'), array('id' => '14', 'text' => '14'), array('id' => '15', 'text' => '15'), array('id' => '16', 'text' => '16'), array('id' => '17', 'text' => '17'), array('id' => '18', 'text' => '18'), array('id' => '19', 'text' => '19'), array('id' => '20', 'text' => '20'), array('id' => '21', 'text' => '21'), array('id' => '22', 'text' => '22'), array('id' => '23', 'text' => '23'), array('id' => '24', 'text' => '24'), array('id' => '25', 'text' => '25'), array('id' => '26', 'text' => '26'), array('id' => '27', 'text' => '27'), array('id' => '28', 'text' => '28'), array('id' => '29', 'text' => '29'), array('id' => '30', 'text' => '30'), array('id' => '31', 'text' => '31')); $months = array(array('id' => '00', 'text' => '-Month-'), array('id' => '01', 'text' => 'January'), array('id' => '02', 'text' => 'February'), array('id' => '03', 'text' => 'March'), array('id' => '04', 'text' => 'April'), array('id' => '05', 'text' => 'May'), array('id' => '06', 'text' => 'June'), array('id' => '07', 'text' => 'July'), array('id' => '08', 'text' => 'August'), array('id' => '09', 'text' => 'September'), array('id' => '10', 'text' => 'October'), array('id' => '11', 'text' => 'November'), array('id' => '12', 'text' => 'December')); $year_string = "-Year-"; $years[] = array('id' => $i, 'text' => $year_string); for($i=1920; $i<date('Y')-17; $i++) { $years[] = array('id' => $i, 'text' => $i); } echo tep_draw_pull_down_menu('dob_month', $months). ' '; echo tep_draw_pull_down_menu('dob_day', $days). ' '; echo tep_draw_pull_down_menu('dob_year', $years). ' '; echo tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''; ?> </span> </div> <?php } ?> <div class="row"> <span class="fieldtitle"><label><strong><?php echo ENTRY_EMAIL_ADDRESS; ?></strong></label></span> <span><?php echo tep_draw_input_field2('email_address', 'email2') . ' ' . (tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?></span> </div> </fieldset> <?php if (ACCOUNT_COMPANY == 'true') { ?> <fieldset> <legend><strong><?php echo CATEGORY_COMPANY; ?></strong></legend> <div class="row"> <span class="fieldtitle"><label for="company"><strong> <?php echo ENTRY_COMPANY; ?></strong></label></span> <span> <?php echo tep_draw_input_field('company') . ' ' . (tep_not_null(ENTRY_COMPANY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?></span> </div> </fieldset> <?php } ?> <fieldset> <legend><strong><?php echo CATEGORY_ADDRESS; ?></strong></legend> <div class="row"> <span class="fieldtitle"><label for="street_address"><strong><?php echo ENTRY_STREET_ADDRESS; ?></strong></label></span> <span><?php echo tep_draw_input_field('street_address') . ' ' . (tep_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''); ?></span> </div> <?php if (ACCOUNT_SUBURB == 'true') { ?> <div class="row"> <span class="fieldtitle"><label for="suburb"><strong><?php echo ENTRY_SUBURB; ?></strong></label></span> <span><?php echo tep_draw_input_field('suburb') . ' ' . (tep_not_null(ENTRY_SUBURB_TEXT) ? '<span class="inputRequirement">' . ENTRY_SUBURB_TEXT . '</span>': ''); ?></span> </div> <?php } ?> <div class="row"> <span class="fieldtitle"><label for="city"><strong><?php echo ENTRY_CITY; ?></strong></label></span> <span><?php echo tep_draw_input_field('city') . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></span> </div> <?php if (ACCOUNT_STATE == 'true') { ?> <div class="row"> <span class="fieldtitle"><label for="state"><strong> <?php echo ENTRY_STATE; ?></strong></label></span> <span><?php if ($process == true) { if ($entry_state_has_zones == true) { $zones_array = array(); $zones_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT)); $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' order by zone_name"); while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); } echo tep_draw_pull_down_menu('state', $zones_array); } else { $zones_array = array(); $zones_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT)); $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " order by zone_name"); while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); } echo tep_draw_pull_down_menu('state', $zones_array); } } else { $zones_array = array(); $zones_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT)); $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " order by zone_name"); while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); } echo tep_draw_pull_down_menu('state', $zones_array); } if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT . '</span>'; ?> </span> </div> <?php } ?> <div class="row"> <span class="fieldtitle"><label for="postcode"><strong><?php echo ENTRY_POST_CODE; ?></strong></label></span> <span><?php echo tep_draw_input_field('postcode') . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></span> </div> <div class="row"> <span class="fieldtitle"><label for="country"><strong><?php echo ENTRY_COUNTRY; ?></strong></label></span> <span><?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></span> </div> </fieldset> <fieldset> <legend><strong><?php echo CATEGORY_CONTACT; ?></strong></legend> <div class="row"> <span class="fieldtitle"><label for="telephone"><strong><?php echo ENTRY_TELEPHONE_NUMBER; ?></strong></label></span> <span> <?php echo tep_draw_input_field('telephone') . ' ' . (tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?></span> </div> <p>Needed if there are questions about your account</p> <div class="row"> <span class="fieldtitle"><label for="fax"><strong><?php echo ENTRY_FAX_NUMBER; ?></strong></label></span> <span> <?php echo tep_draw_input_field('fax') . ' ' . (tep_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?></span> </div> </fieldset> <fieldset> <legend><strong><?php echo CATEGORY_OPTIONS; ?></strong></legend> <div class="row"> <span class="checkbox"><label><strong><?php echo ENTRY_NEWSLETTER; ?></strong></label></span> <span> <?php echo tep_draw_checkbox_field('newsletter', '1') . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></span> </div> </fieldset> <fieldset> <legend><strong><?php echo CATEGORY_PASSWORD; ?></strong></legend> <div class="row"> <span class="fieldtitle"><label for="username"><strong><?php echo ENTRY_USERNAME; ?></strong></label></span> <span> <?php echo tep_draw_input_field('username') . ' ' . (tep_not_null(ENTRY_USERNAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_USERNAME_TEXT . '</span>': ''); ?></span> </div> <div class="row"> <span class="fieldtitle"><label for="password"><strong><?php echo ENTRY_PASSWORD; ?></strong></label></span> <span> <?php echo tep_draw_password_field2('password','password2') . ' ' . (tep_not_null(ENTRY_PASSWORD_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_TEXT . '</span>': ''); ?></span> </div> <div class="row"> <span class="fieldtitle"><label for="confirmation"><strong> <?php echo ENTRY_PASSWORD_CONFIRMATION; ?></strong></label></span> <span><?php echo tep_draw_password_field('confirmation') . ' ' . (tep_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '</span>': ''); ?></span> </div> <div class="row"> <span class="spacer"> </span> <?php echo tep_draw_input_field('continue', 'Continue', '', 'submit'); ?> </div> </fieldset> </form> </div> <!-- end .newcust --> </div> <!-- end #post --> </div> <!-- end #content --> <div id="sidebar"> <div class="sidebox"> <div class="boxhead"><h3>What?s New</h3></div> <div class="boxbody"> <ul> <li>Insert what?s new here.</li> </ul> </div> </div> <div class="sidebox"> <div class="boxhead"><h3>News</h3></div> <div class="boxbody"> <ul> <li>Insert some news here.</li> <li>And some more.</li> </ul> </div> </div> <div class="sidebox"> <div class="boxhead"><h3>Newsletter</h3></div> <div class="boxbody"> <ul> <li>Insert sign up for newletter form.</li> </ul> </div> </div> <div class="sidebox"> <div class="boxhead"><h3>Calendar Events</h3></div> <div class="boxbody"> <ul> <li>Insert calendar events here.</li> <li>And more events.</li> <li>And more events.</li> <li>And more events.</li> <li>And more events.</li> <li>And more events.</li> </ul> </div> </div> </div> <!-- end #sidebar --> <div id="footer"> <?php require(DIR_WS_INCLUDES . 'footer.php');/*<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>*/ ?> </div> <!-- end #footer --> </div> <!-- end #main body --> </div> <!-- end #wrap --> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.