> <?php echo TITLE; ?>
' . tep_get_geo_zone_name($HTTP_GET_VARS['zone']) . ''; ?>
'' . TEXT_INFO_HEADING_NEW_SUB_ZONE . ''); $contents = array('form' => tep_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $HTTP_GET_VARS['zpage'] . '&zID=' . $HTTP_GET_VARS['zID'] . '&action=list&spage=' . $HTTP_GET_VARS['spage'] . '&' . (isset($HTTP_GET_VARS['sID']) ? 'sID=' . $HTTP_GET_VARS['sID'] . '&' : '') . 'saction=insert_sub')); $contents[] = array('text' => TEXT_INFO_NEW_SUB_ZONE_INTRO); $contents[] = array('text' => '
' . TEXT_INFO_COUNTRY . '
' . tep_draw_pull_down_menu('zone_country_id', tep_get_countries(TEXT_ALL_COUNTRIES), '', 'onChange="update_zone(this.form);"')); $contents[] = array('text' => '
' . TEXT_INFO_COUNTRY_ZONE . '
' . tep_draw_pull_down_menu('zone_id', tep_prepare_country_zones_pull_down())); $contents[] = array('align' => 'center', 'text' => '
' . tep_image_submit('button_insert.gif', IMAGE_INSERT) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ''); break; case 'edit': $heading[] = array('text' => '' . TEXT_INFO_HEADING_EDIT_SUB_ZONE . ''); $contents = array('form' => tep_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $HTTP_GET_VARS['zpage'] . '&zID=' . $HTTP_GET_VARS['zID'] . '&action=list&spage=' . $HTTP_GET_VARS['spage'] . '&sID=' . $sInfo->association_id . '&saction=save_sub')); $contents[] = array('text' => TEXT_INFO_EDIT_SUB_ZONE_INTRO); $contents[] = array('text' => '
' . TEXT_INFO_COUNTRY . '
' . tep_draw_pull_down_menu('zone_country_id', tep_get_countries(TEXT_ALL_COUNTRIES), $sInfo->zone_country_id, 'onChange="update_zone(this.form);"')); $contents[] = array('text' => '
' . TEXT_INFO_COUNTRY_ZONE . '
' . tep_draw_pull_down_menu('zone_id', tep_prepare_country_zones_pull_down($sInfo->zone_country_id), $sInfo->zone_id)); $contents[] = array('align' => 'center', 'text' => '
' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ''); break; case 'delete': $heading[] = array('text' => '' . TEXT_INFO_HEADING_DELETE_SUB_ZONE . ''); $contents = array('form' => tep_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $HTTP_GET_VARS['zpage'] . '&zID=' . $HTTP_GET_VARS['zID'] . '&action=list&spage=' . $HTTP_GET_VARS['spage'] . '&sID=' . $sInfo->association_id . '&saction=deleteconfirm_sub')); $contents[] = array('text' => TEXT_INFO_DELETE_SUB_ZONE_INTRO); $contents[] = array('text' => '
' . $sInfo->countries_name . ''); $contents[] = array('align' => 'center', 'text' => '
' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ''); break; default: if (isset($sInfo) && is_object($sInfo)) { $heading[] = array('text' => '' . $sInfo->countries_name . ''); $contents[] = array('align' => 'center', 'text' => '' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '' . tep_image_button('button_delete.gif', IMAGE_DELETE) . ''); $contents[] = array('text' => '
' . TEXT_INFO_DATE_ADDED . ' ' . tep_date_short($sInfo->date_added)); if (tep_not_null($sInfo->last_modified)) $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . tep_date_short($sInfo->last_modified)); } break; } } else { switch ($action) { case 'new_zone': $heading[] = array('text' => '' . TEXT_INFO_HEADING_NEW_ZONE . ''); $contents = array('form' => tep_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $HTTP_GET_VARS['zpage'] . '&zID=' . $HTTP_GET_VARS['zID'] . '&action=insert_zone')); $contents[] = array('text' => TEXT_INFO_NEW_ZONE_INTRO); $contents[] = array('text' => '
' . TEXT_INFO_ZONE_NAME . '
' . tep_draw_input_field('geo_zone_name')); $contents[] = array('text' => '
' . TEXT_INFO_ZONE_DESCRIPTION . '
' . tep_draw_input_field('geo_zone_description')); $contents[] = array('align' => 'center', 'text' => '
' . tep_image_submit('button_insert.gif', IMAGE_INSERT) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ''); break; case 'edit_zone': $heading[] = array('text' => '' . TEXT_INFO_HEADING_EDIT_ZONE . ''); $contents = array('form' => tep_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $HTTP_GET_VARS['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=save_zone')); $contents[] = array('text' => TEXT_INFO_EDIT_ZONE_INTRO); $contents[] = array('text' => '
' . TEXT_INFO_ZONE_NAME . '
' . tep_draw_input_field('geo_zone_name', $zInfo->geo_zone_name)); $contents[] = array('text' => '
' . TEXT_INFO_ZONE_DESCRIPTION . '
' . tep_draw_input_field('geo_zone_description', $zInfo->geo_zone_description)); $contents[] = array('align' => 'center', 'text' => '
' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ''); break; case 'delete_zone': $heading[] = array('text' => '' . TEXT_INFO_HEADING_DELETE_ZONE . ''); $contents = array('form' => tep_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $HTTP_GET_VARS['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=deleteconfirm_zone')); $contents[] = array('text' => TEXT_INFO_DELETE_ZONE_INTRO); $contents[] = array('text' => '
' . $zInfo->geo_zone_name . ''); $contents[] = array('align' => 'center', 'text' => '
' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ''); break; default: if (isset($zInfo) && is_object($zInfo)) { $heading[] = array('text' => '' . $zInfo->geo_zone_name . ''); $contents[] = array('align' => 'center', 'text' => '' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '' . ' ' . tep_image_button('button_details.gif', IMAGE_DETAILS) . ''); $contents[] = array('text' => '
' . TEXT_INFO_NUMBER_ZONES . ' ' . $zInfo->num_zones); $contents[] = array('text' => '
' . TEXT_INFO_DATE_ADDED . ' ' . tep_date_short($zInfo->date_added)); if (tep_not_null($zInfo->last_modified)) $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . tep_date_short($zInfo->last_modified)); $contents[] = array('text' => '
' . TEXT_INFO_ZONE_DESCRIPTION . '
' . $zInfo->geo_zone_description); } break; } } if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) { echo ' ' . "\n"; } ?>
association_id)) { echo ' ' . "\n"; } else { echo ' ' . "\n"; } ?>
 
association_id)) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ''; } ?> 
display_count($zones_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['spage'], TEXT_DISPLAY_NUMBER_OF_COUNTRIES); ?> display_links($zones_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['spage'], 'zpage=' . $HTTP_GET_VARS['zpage'] . '&zID=' . $HTTP_GET_VARS['zID'] . '&action=list', 'spage'); ?>
' . tep_image_button('button_back.gif', IMAGE_BACK) . ' ' . tep_image_button('button_insert.gif', IMAGE_INSERT) . ''; ?>
0) { $zones['num_zones'] = $num_zones['num_zones']; } else { $zones['num_zones'] = 0; } $zInfo = new objectInfo($zones); } if (isset($zInfo) && is_object($zInfo) && ($zones['geo_zone_id'] == $zInfo->geo_zone_id)) { echo ' ' . "\n"; } else { echo ' ' . "\n"; } ?>
 
' . tep_image(DIR_WS_ICONS . 'folder.gif', ICON_FOLDER) . ' ' . $zones['geo_zone_name']; ?> geo_zone_id)) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif'); } else { echo '' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ''; } ?> 
display_count($zones_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['zpage'], TEXT_DISPLAY_NUMBER_OF_TAX_ZONES); ?> display_links($zones_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['zpage'], '', 'zpage'); ?>
geo_zone_id . '&action=new_zone') . '">' . tep_image_button('button_insert.gif', IMAGE_INSERT) . ''; ?>
' . "\n"; $box = new box; echo $box->infoBox($heading, $contents); echo '