[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/includes/modules/ -> checkout_new_address.php (source)

   1  <?php
   2  /*

   3  $Id: checkout_new_address.php 14 2006-07-28 17:42:07Z user $

   4  

   5    osCMax Power E-Commerce

   6    http://oscdox.com

   7  

   8    Copyright 2006 osCMax

   9  

  10    Released under the GNU General Public License

  11  */
  12  
  13    if (!isset($process)) $process = false;
  14  ?>
  15  <table border="0" width="100%" cellspacing="0" cellpadding="2">
  16  <?php
  17    if (ACCOUNT_GENDER == 'true') {
  18      if (isset($gender)) {
  19        $male = ($gender == 'm') ? true : false;
  20        $female = ($gender == 'f') ? true : false;
  21      } else {
  22        $male = false;
  23        $female = false;
  24      }
  25  ?>
  26    <tr>
  27      <td class="main"><?php echo ENTRY_GENDER; ?></td>
  28      <td class="main"><?php echo tep_draw_radio_field('gender', 'm', $male) . '&nbsp;&nbsp;' . MALE . '&nbsp;&nbsp;' . tep_draw_radio_field('gender', 'f', $female) . '&nbsp;&nbsp;' . FEMALE . '&nbsp;' . (tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>': ''); ?></td>
  29    </tr>
  30  <?php
  31    }
  32  ?>
  33    <tr>
  34      <td class="main"><?php echo ENTRY_FIRST_NAME; ?></td>
  35      <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>
  36    </tr>
  37    <tr>
  38      <td class="main"><?php echo ENTRY_LAST_NAME; ?></td>
  39      <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>
  40    </tr>
  41  <?php
  42    if (ACCOUNT_COMPANY == 'true') {
  43  ?>
  44    <tr>
  45      <td class="main"><?php echo ENTRY_COMPANY; ?></td>
  46      <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>
  47    </tr>
  48  <?php
  49    }
  50  ?>
  51    <tr>
  52      <td class="main"><?php echo ENTRY_STREET_ADDRESS; ?></td>
  53      <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>
  54    </tr>
  55  <?php
  56    if (ACCOUNT_SUBURB == 'true') {
  57  ?>
  58    <tr>
  59      <td class="main"><?php echo ENTRY_SUBURB; ?></td>
  60      <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>
  61    </tr>
  62  <?php
  63    }
  64  ?>
  65    <tr>
  66      <td class="main"><?php echo ENTRY_POST_CODE; ?></td>
  67      <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>
  68    </tr>
  69    <tr>
  70      <td class="main"><?php echo ENTRY_CITY; ?></td>
  71      <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>
  72    </tr>
  73  <?php
  74    if (ACCOUNT_STATE == 'true') {
  75  ?>
  76    <tr>
  77      <td class="main"><?php echo ENTRY_STATE; ?></td>
  78      <td class="main">
  79  <?php
  80  // BOF: MOD - Country-State Selector

  81      $zones_array = array();
  82      $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = " . $country . " order by zone_name");
  83      while ($zones_values = tep_db_fetch_array($zones_query)) {
  84        $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
  85          }
  86        if (count($zones_array) > 0) {
  87          echo tep_draw_pull_down_menu('state', $zones_array);
  88        } else {
  89          echo tep_draw_input_field('state');
  90        }
  91  // EOF: MOD - Country-State Selector

  92  
  93      if (tep_not_null(ENTRY_STATE_TEXT)) echo '&nbsp;<span class="inputRequirement">' . ENTRY_STATE_TEXT;
  94  ?>
  95      </td>
  96    </tr>
  97  <?php
  98    }
  99  ?>
 100    <tr>
 101      <td class="main"><?php echo ENTRY_COUNTRY; ?></td>
 102  <?php /* LINE CHANGED: MOD - Country-State Selector Added: ,$country,'onChange="return refresh_form(checkout_address);"' */ ?>
 103      <td class="main"><?php echo tep_get_country_list('country',$country,'onChange="return refresh_form(checkout_address);"') . '&nbsp;' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>
 104    </tr>
 105  </table>


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7