Managed Server
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Auto Zustand ändern Pulldown

    jey

    • Frisch an Board
    • Beiträge: 92
    • Geschlecht:
    Auto Zustand ändern Pulldown
    am: 02. März 2012, 06:35:50
    in user Registration page if we select country auto change the state pulldown field in the appropriate country - state

    how to change that?

    create_account.php
    Code: PHP  [Auswählen]
    if (ACCOUNT_STATE == 'true') {
            $smarty->assign('state', '1');

            if ($process == true) {
                    if ($entry_state_has_zones == true) {
                            $zones_array = array ();
                            $zones_query = xtc_db_query("select zone_name from ".TABLE_ZONES." where zone_country_id = '".(int) $country."' order by zone_name");
                            while ($zones_values = xtc_db_fetch_array($zones_query)) {
                                     $zones_array[] = array (
              'id' => $zones_values['zone_name'],
              'text' => $zones_values['zone_name']
            );
                            }
                            $state_input = xtc_draw_pull_down_menuNote(array ('name' => 'state', 'text' => '&nbsp;'. (xtc_not_null(ENTRY_STATE_TEXT) ? '<span class="inputRequirement">'.ENTRY_STATE_TEXT.'</span>' : '')), $zones_array);
                    } else {
                            $state_input = xtc_draw_input_fieldNote(array ('name' => 'state', 'text' => '&nbsp;'. (xtc_not_null(ENTRY_STATE_TEXT) ? '<span class="inputRequirement">'.ENTRY_STATE_TEXT.'</span>' : '')));
                    }
            } else {
                    $state_input = xtc_draw_input_fieldNote(array ('name' => 'state', 'text' => '&nbsp;'. (xtc_not_null(ENTRY_STATE_TEXT) ? '<span class="inputRequirement">'.ENTRY_STATE_TEXT.'</span>' : '')));
            }

            $smarty->assign('INPUT_STATE', $state_input);
    } else {
            $smarty->assign('state', '0');
    }
    $smarty->assign('SELECT_COUNTRY', xtc_get_country_list(array ('name' => 'country', 'text' => '&nbsp;'. (xtc_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">'.ENTRY_COUNTRY_TEXT.'</span>' : '')), $country));

     


    Linkback: https://www.modified-shop.org/forum/index.php?topic=18613.0
    1 Antworten
    1988 Aufrufe
    16. Juni 2010, 18:52:51 von Tomcraft
    2 Antworten
    1512 Aufrufe
    22. Februar 2017, 09:05:10 von modi-fied-user
    2 Antworten
    1605 Aufrufe
    23. Mai 2016, 15:02:47 von Bonsai
    2 Antworten
    2278 Aufrufe
    05. Dezember 2011, 11:43:04 von bebbi