📄 account_details.php
字号:
} elseif ($error) { if ($entry_state_error) { if ($entry_state_has_zones) { $zones_array = array(); $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . tep_db_input($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) . ' ' . ENTRY_STATE_ERROR; } else { echo tep_draw_input_field('state') . ' ' . ENTRY_STATE_ERROR; } } else { if ($error) { echo tep_draw_input_field('state') . tep_draw_hidden_field('zone_id') . tep_draw_hidden_field('state'); //echo $state . tep_draw_hidden_field('zone_id') . tep_draw_hidden_field('state'); } } } else { echo tep_draw_input_field('state', sbs_get_zone_name($account['entry_country_id'], $account['entry_zone_id'], $account['entry_state'])) . ' ' . ENTRY_STATE_TEXT; }?></td> </tr><?php }?> <tr> <td class="main"> <?php echo ENTRY_COUNTRY; ?></td> <td class="main"> <?php $account['entry_country_id'] = STORE_COUNTRY; if ($is_read_only) { echo tep_get_country_name($account['entry_country_id']); }elseif ($error) { if ($entry_country_error) { echo sbs_get_country_list('country') . ' ' . ENTRY_COUNTRY_ERROR; } else { // echo tep_draw_input_field('country') . tep_draw_hidden_field('state'); echo sbs_get_country_list('country'); } } else { echo sbs_get_country_list('country', $account['entry_country_id']) . ' ' . ENTRY_COUNTRY_TEXT; }?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td class="formAreaTitle"><br><?php echo CATEGORY_CONTACT; ?></td> </tr> <tr> <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea"> <tr> <td class="main"><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"> <?php echo ENTRY_TELEPHONE_NUMBER; ?></td> <td class="main"> <?php if ($is_read_only) { echo $account['customers_telephone']; } elseif ($error) { if ($entry_telephone_error) { echo tep_draw_input_field('telephone') . ' ' . ENTRY_TELEPHONE_NUMBER_ERROR; } else { echo $telephone . tep_draw_hidden_field('telephone'); } } else { echo tep_draw_input_field('telephone', $account['customers_telephone']) . ' ' . ENTRY_TELEPHONE_NUMBER_TEXT; }?></td> </tr> <tr> <td class="main"> <?php echo ENTRY_FAX_NUMBER; ?></td> <td class="main"> <?php if ($is_read_only) { echo $account['customers_fax']; } elseif ($error) { if ($entry_fax_error) { echo tep_draw_input_field('fax'); } else { echo $fax . tep_draw_hidden_field('fax'); } } else { echo tep_draw_input_field('fax', $account['customers_fax']); }?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td class="formAreaTitle"><br><?php echo CATEGORY_OPTIONS; ?></td> </tr> <tr> <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea"> <tr> <td class="main"> <table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"> <?php echo ENTRY_CUSTOMERS_GROUP_NAME; ?></td> <td class="main"> <?php if ($processed != true) { $index = 0; $existing_customers_query = tep_db_query("select customers_group_id, customers_group_name from " . TABLE_CUSTOMERS_GROUPS . " order by customers_group_id "); while ($existing_customers = tep_db_fetch_array($existing_customers_query)) { $existing_customers_array[] = array("id" => $existing_customers['customers_group_id'], "text" => " ".$existing_customers['customers_group_name']." "); ++$index; } } // end if ($processed != true ) if ($processed == true) { $existing_customers_query = tep_db_query("select customers_group_id, customers_group_name from " . TABLE_CUSTOMERS_GROUPS . " where customers_group_id=".$_REQUEST['customers_group_id']); $existing_customers = tep_db_fetch_array($existing_customers_query); echo $existing_customers['customers_group_name']. tep_draw_hidden_field('customers_group_id'); } else { echo tep_draw_pull_down_menu('customers_group_id', $existing_customers_array, $cInfo->customers_group_id); } ?> </td> </tr> <tr> <td class="main"> <?php echo ENTRY_NEWSLETTER; ?></td> <td class="main"> <?php if ($is_read_only) { if ($account['customers_newsletter'] == '1') { echo ENTRY_NEWSLETTER_YES; } else { echo ENTRY_NEWSLETTER_NO; } } elseif ($processed) { if ($newsletter == '1') { echo ENTRY_NEWSLETTER_YES; } else { echo ENTRY_NEWSLETTER_NO; } echo tep_draw_hidden_field('newsletter'); } else { echo tep_draw_pull_down_menu('newsletter', $newsletter_array, $account['customers_newsletter']) . ' ' . ENTRY_NEWSLETTER_TEXT; }?></td> </tr> </table></td> </tr> </table></td> </tr><?php/*<?php if (!$is_read_only) {?> <tr> <td class="formAreaTitle"><br><?php echo CATEGORY_PASSWORD; ?></td> </tr> <tr> <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea"> <tr> <td class="main"><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"> <?php echo ENTRY_PASSWORD; ?></td> <td class="main"> <?php if ($error) { if ($entry_password_error) { echo tep_draw_password_field('password') . ' ' . ENTRY_PASSWORD_ERROR; } else { echo PASSWORD_HIDDEN . tep_draw_hidden_field('password') . tep_draw_hidden_field('confirmation'); } } else { echo tep_draw_password_field('password') . ' ' . ENTRY_PASSWORD_TEXT; }?></td> </tr><?php if ( (!$error) || ($entry_password_error) ) {?> <tr> <td class="main"> <?php echo ENTRY_PASSWORD_CONFIRMATION; ?></td> <td class="main"> <?php echo tep_draw_password_field('confirmation') . ' ' . ENTRY_PASSWORD_CONFIRMATION_TEXT;?></td> </tr><?php }?> </table></td> </tr> </table></td> </tr>*/ ?></table><!-- Shipping and Payment option Code --><!-- EOF Separate Pricing per Customer --><!-- BOF Separate Pricing per Customer --> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="formAreaTitle"><?php include_once(DIR_WS_LANGUAGES . $language . '/modules.php'); echo HEADING_TITLE_MODULES_PAYMENT; ?></td> </tr> <tr> <td class="formArea"><table border="0" cellspacing="2" cellpadding="2"> <tr bgcolor="#DEE4E8"> <td class="main" colspan="2"><?php if ($processed == true) { if ($_REQUEST['customers_payment_settings'] == '1') { echo ENTRY_CUSTOMERS_PAYMENT_SET ; echo ' : '; } else { echo ENTRY_CUSTOMERS_PAYMENT_DEFAULT; } echo tep_draw_hidden_field('customers_payment_settings'); } else { // $processed != true echo tep_draw_radio_field('customers_payment_settings', '1', false, (tep_not_null($cInfo->customers_payment_allowed)? '1' : '0' )) . ' ' . ENTRY_CUSTOMERS_PAYMENT_SET . ' ' . tep_draw_radio_field('customers_payment_settings', '0', false, (tep_not_null($cInfo->customers_payment_allowed)? '1' : '0' )) . ' ' . ENTRY_CUSTOMERS_PAYMENT_DEFAULT ; } ?></td> </tr><?php if ($processed != true) { $payments_allowed = explode (";",$cInfo->customers_payment_allowed); $module_active = explode (";",MODULE_PAYMENT_INSTALLED); $installed_modules = array(); for ($i = 0, $n = sizeof($directory_array); $i < $n; $i++) { $file = $directory_array[$i]; if (in_array ($directory_array[$i], $module_active)) { include(DIR_FS_CATALOG_LANGUAGES . $language . '/modules/payment/' . $file); include($module_directory . $file); $class = substr($file, 0, strrpos($file, '.')); if (tep_class_exists($class)) { $module = new $class; if ($module->check() > 0) { $installed_modules[] = $file; } } // end if (tep_class_exists($class))?> <tr> <td class="main" colspan="2"><?php echo tep_draw_checkbox_field('payment_allowed[' . $i . ']', $module->code.".php" , (in_array ($module->code.".php", $payments_allowed)) ? 1 : 0); ?>  <?php echo $module->title; ?></td> </tr><?php } // end if (in_array ($directory_array[$i], $module_active)) } // end for ($i = 0, $n = sizeof($directory_array); $i < $n; $i++) ?> <tr> <td class="main" colspan="2" style="padding-left: 30px; padding-right: 10px; padding-top: 10px;"><?php echo ENTRY_CUSTOMERS_PAYMENT_SET_EXPLAIN ?></td> </tr><?php } else { // end if ($processed != true)?> <tr> <td class="main" colspan="2"><?php if ($_REQUEST['customers_payment_settings'] == '1') { echo $customers_payment_allowed; } else { echo ENTRY_CUSTOMERS_PAYMENT_DEFAULT; } echo tep_draw_hidden_field('customers_payment_allowed'); ?></td> </tr><?php } // end else: $processed == true?> </td> </tr> </table> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="formAreaTitle"><?php echo HEADING_TITLE_MODULES_SHIPPING; ?></td> </tr> <tr> <td class="formArea"><table border="0" cellspacing="2" cellpadding="2"> <tr bgcolor="#DEE4E8"> <td class="main" colspan="2"><?php if ($processed == true) { if ($_REQUEST['customers_shipment_settings'] == '1') { echo ENTRY_CUSTOMERS_SHIPPING_SET ; echo ' : '; } else { echo ENTRY_CUSTOMERS_SHIPPING_DEFAULT; } echo tep_draw_hidden_field('customers_shipment_settings'); } else { // $processed != true echo tep_draw_radio_field('customers_shipment_settings', '1', false, (tep_not_null($cInfo->customers_shipment_allowed)? '1' : '0' )) . ' ' . ENTRY_CUSTOMERS_SHIPPING_SET . ' ' . tep_draw_radio_field('customers_shipment_settings', '0', false, (tep_not_null($cInfo->customers_shipment_allowed)? '1' : '0' )) . ' ' . ENTRY_CUSTOMERS_SHIPPING_DEFAULT ; } ?></td> </tr><?php if ($processed != true) { $shipment_allowed = explode (";",$cInfo->customers_shipment_allowed); $ship_module_active = explode (";",MODULE_SHIPPING_INSTALLED); $installed_shipping_modules = array(); for ($i = 0, $n = sizeof($ship_directory_array); $i < $n; $i++) { $file = $ship_directory_array[$i]; if (in_array ($ship_directory_array[$i], $ship_module_active)) { include(DIR_FS_CATALOG_LANGUAGES . $language . '/modules/shipping/' . $file); include($ship_module_directory . $file); $ship_class = substr($file, 0, strrpos($file, '.')); if (tep_class_exists($ship_class)) { $ship_module = new $ship_class; if ($ship_module->check() > 0) { $installed_shipping_modules[] = $file; } } // end if (tep_class_exists($ship_class))?> <tr> <td class="main" colspan="2"><?php echo tep_draw_checkbox_field('shipping_allowed[' . $i . ']', $ship_module->code.".php" , (in_array ($ship_module->code.".php", $shipment_allowed)) ? 1 : 0); ?>  <?php echo $ship_module->title; ?></td> </tr><?php } // end if (in_array ($ship_directory_array[$i], $ship_module_active)) } // end for ($i = 0, $n = sizeof($ship_directory_array); $i < $n; $i++) ?> <tr> <td class="main" colspan="2" style="padding-left: 30px; padding-right: 10px; padding-top: 10px;"><?php echo ENTRY_CUSTOMERS_SHIPPING_SET_EXPLAIN ?></td> </tr><?php } else { // end if ($processed != true)?> <tr> <td class="main" colspan="2"><?php if ($_REQUEST['customers_shipment_settings'] == '1') { echo $customers_shipment_allowed; } else { echo ENTRY_CUSTOMERS_SHIPPING_DEFAULT; } echo tep_draw_hidden_field('customers_shipment_allowed'); ?></td> </tr><?php } // end else: $processed == true?> </td> </tr> </table> </td> </tr><!-- EOF Separate Pricing per Customer -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -