</td> <td class="main"><?php echo olc_draw_pull_down_menu('affiliate_country_id', olc_get_countries(), $aInfo->affiliate_country_id, 'onchange="update_zone(this.form);"'); ?> </td> </tr> <?php if (ACCOUNT_STATE == TRUE_STRING_S) { ?> <tr> <td class="main"><?php echo ENTRY_STATE; ?> </td> <td class="main"><?php echo olc_draw_pull_down_menu('affiliate_zone_id', olc_prepare_country_zones_pull_down($aInfo->affiliate_country_id), $aInfo->affiliate_zone_id, 'onchange="resetStateText(this.form);"'); ?> </td> </tr> <tr> <td class="main"> </td> <td class="main"><?php echo olc_draw_input_field('affiliate_state', $aInfo->affiliate_state, 'maxlength="32" onchange="resetZoneSelected(this.form);"'); ?> </td> </tr> <?php } ?> </table></td> </tr>
if ($_GET['action'] == 'list') { switch ($_GET['saction']) { case 'new': $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_NEW_SUB_ZONE . HTML_B_END); $contents = array('form' => olc_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $_GET['sID'] . '&saction=insert_sub')); $contents[] = array('text' => TEXT_INFO_NEW_SUB_ZONE_INTRO); $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY . HTML_BR . olc_draw_pull_down_menu('zone_country_id', olc_get_countries(TEXT_ALL_COUNTRIES), '', 'onchange="update_zone(this.form);"')); $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_ZONE . HTML_BR . olc_draw_pull_down_menu('zone_id', olc_prepare_country_zones_pull_down())); $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_insert.gif', IMAGE_INSERT) . BLANK . HTML_A_START . olc_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $_GET['sID']) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; case 'edit': $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_EDIT_SUB_ZONE . HTML_B_END); $contents = array('form' => olc_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $sInfo->association_id . '&saction=save_sub')); $contents[] = array('text' => TEXT_INFO_EDIT_SUB_ZONE_INTRO); $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY . HTML_BR . olc_draw_pull_down_menu('zone_country_id', olc_get_countries(TEXT_ALL_COUNTRIES), $sInfo->zone_country_id, 'onchange="update_zone(this.form);"')); $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY_ZONE . HTML_BR . olc_draw_pull_down_menu('zone_id', olc_prepare_country_zones_pull_down($sInfo->zone_country_id), $sInfo->zone_id)); $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . BLANK . HTML_A_START . olc_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $sInfo->association_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; case 'delete': $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_SUB_ZONE . HTML_B_END); $contents = array('form' => olc_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $sInfo->association_id . '&saction=deleteconfirm_sub')); $contents[] = array('text' => TEXT_INFO_DELETE_SUB_ZONE_INTRO); $contents[] = array('text' => '<br/><b>' . $sInfo->countries_name . HTML_B_END); $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $sInfo->association_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; default: if (is_object($sInfo)) { $heading[] = array('text' => HTML_B_START . $sInfo->countries_name . HTML_B_END); $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $sInfo->association_id . '&saction=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=list&spage=' . $_GET['spage'] . '&sID=' . $sInfo->association_id . '&saction=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END); $contents[] = array('text' => HTML_BR . TEXT_INFO_DATE_ADDED . BLANK . olc_date_short($sInfo->date_added)); if (olc_not_null($sInfo->last_modified)) {