function wpgmaps_settings_page_pro()
{
    echo "<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>" . __("WP Google Map Settings", "wp-google-maps") . "</h2>";
    wpgmza_version_check();
    if (function_exists("wpgmza_register_pro_version")) {
        $pro_settings1 = wpgmaps_settings_page_sub('infowindow');
        $pro_settings2 = wpgmaps_settings_page_sub('mapsettings');
        $pro_settings3 = wpgmaps_settings_page_sub('ugm');
        $pro_settings4 = wpgmaps_settings_page_sub('advanced');
        $pro_settings5 = wpgmaps_settings_page_sub('mlisting');
        global $wpgmza_version;
        if (floatval($wpgmza_version) < 5) {
            $prov_msg = "<div class='error below-h1'><p>Please update your BASIC version of this plugin for all of these settings to work.</p></div>";
        } else {
            $prov_msg = '';
        }
    }
    if (function_exists('wpgmza_register_ugm_version')) {
        $pro_settings3 = wpgmaps_settings_page_sub('ugm');
    }
    echo "\r\n        <form action='' method='post' id='wpgmaps_options'>\r\n        <p>{$prov_msg}</p>\r\n            \r\n            <div id=\"wpgmaps_tabs\">\r\n                <ul>\r\n                        <li><a href=\"#tabs-1\">" . __("Maps", "wp-google-maps") . "</a></li>\r\n                        <li><a href=\"#tabs-2\">" . __("InfoWindows", "wp-google-maps") . "</a></li>\r\n                        <li><a href=\"#tabs-3\">" . __("Marker Listing", "wp-google-maps") . "</a></li>\r\n                        <li><a href=\"#tabs-4\">" . __("Advanced", "wp-google-maps") . "</a></li>\r\n                        <li><a href=\"#tabs-5\">" . __("Visitor Generated Markers", "wp-google-maps") . "</a></li>\r\n                        <li><a href=\"#tabs-6\">" . __("Error Log", "wp-google-maps") . "</a></li>\r\n                </ul>\r\n                <div id=\"tabs-1\">\r\n                    {$pro_settings2}\r\n                </div>\r\n                <div id=\"tabs-2\">\r\n                    {$pro_settings1}\r\n                </div>\r\n                <div id=\"tabs-3\">\r\n                    {$pro_settings5}\r\n                </div>\r\n                <div id=\"tabs-4\">\r\n                    {$pro_settings4}\r\n                </div>\r\n                <div id=\"tabs-5\">\r\n                    {$pro_settings3}\r\n                </div>\r\n                <div id=\"tabs-6\">\r\n                    <h3>" . __("WP Google Maps Error log", "wp-google-maps") . "</h3>\r\n                    <p>" . __("Having issues? Perhaps something below can give you a clue as to what's wrong. Alternatively, email this through to nick@wpgmaps.com for help!", "wp-google-maps") . "</p>    \r\n                    <textarea style='width:100%; height:600px;' readonly>\r\n                        " . wpgmza_return_error_log() . "\r\n                    </textarea>\r\n                </div>\r\n            </div>\r\n            \r\n                \r\n\r\n                \r\n                \r\n                \r\n\r\n                <p class='submit'><input type='submit' name='wpgmza_save_settings' class='button-primary' value='" . __("Save Settings", "wp-google-maps") . " &raquo;' /></p>\r\n\r\n\r\n            </form>\r\n            \r\n            \r\n    ";
    echo "</div>";
}
function wpgmza_pro_menu()
{
    global $wpgmza_pro_version;
    global $wpgmza_p_version;
    global $wpgmza_post_nonce;
    global $wpgmza_tblname_maps;
    global $wpdb;
    if (!wpgmaps_check_permissions()) {
        wpgmaps_permission_warning();
    }
    if ($_GET['action'] == "edit") {
    } else {
        if ($_GET['action'] == "new") {
            $def_data = get_option("WPGMZA_SETTINGS");
            $data['map_default_starting_lat'] = $map_start_lat;
            $data['map_default_starting_lng'] = $map_start_lng;
            $data['map_default_height'] = $map_height;
            $data['map_default_width'] = $map_width;
            $data['map_default_zoom'] = $map_start_zoom;
            $data['map_default_type'] = $type;
            $data['map_default_alignment'] = $alignment;
            $data['map_default_order_markers_by'] = $order_markers_by;
            $data['map_default_order_markers_choice'] = $order_markers_choice;
            $data['map_default_show_user_location'] = $show_user_location;
            $data['map_default_directions'] = $directions_enabled;
            $data['map_default_bicycle'] = $bicycle_enabled;
            $data['map_default_traffic'] = $traffic_enabled;
            $data['map_default_dbox'] = $dbox;
            $data['map_default_dbox_width'] = $dbox_width;
            $data['map_default_marker'] = $map_default_marker;
            if (isset($def_data['map_default_height'])) {
                $wpgmza_height = $def_data['map_default_height'];
            } else {
                $wpgmza_height = "400";
            }
            if (isset($def_data['map_default_width'])) {
                $wpgmza_width = $def_data['map_default_width'];
            } else {
                $wpgmza_width = "600";
            }
            if (isset($def_data['map_default_marker'])) {
                $wpgmza_def_marker = $def_data['map_default_marker'];
            } else {
                $wpgmza_def_marker = "0";
            }
            if (isset($def_data['map_default_alignment'])) {
                $wpgmza_def_alignment = $def_data['map_default_alignment'];
            } else {
                $wpgmza_def_alignment = "0";
            }
            if (isset($def_data['map_default_order_markers_by'])) {
                $wpgmza_def_order_markers_by = $def_data['map_default_order_markers_by'];
            } else {
                $wpgmza_def_order_markers_by = "0";
            }
            if (isset($def_data['map_default_order_markers_choice'])) {
                $wpgmza_def_order_markers_choice = $def_data['map_default_order_markers_choice'];
            } else {
                $wpgmza_def_order_markers_choice = "0";
            }
            if (isset($def_data['map_default_show_user_location'])) {
                $wpgmza_def_show_user_location = $def_data['map_default_show_user_location'];
            } else {
                $wpgmza_def_show_user_location = "0";
            }
            if (isset($def_data['map_default_directions'])) {
                $wpgmza_def_directions = $def_data['map_default_directions'];
            } else {
                $wpgmza_def_directions = "0";
            }
            if (isset($def_data['map_default_bicycle'])) {
                $wpgmza_def_bicycle = $def_data['map_default_bicycle'];
            } else {
                $wpgmza_def_bicycle = "0";
            }
            if (isset($def_data['map_default_traffic'])) {
                $wpgmza_def_traffic = $def_data['map_default_traffic'];
            } else {
                $wpgmza_def_traffic = "0";
            }
            if (isset($def_data['map_default_dbox'])) {
                $wpgmza_def_dbox = $def_data['map_default_dbox'];
            } else {
                $wpgmza_def_dbox = "0";
            }
            if (isset($def_data['map_default_dbox_wdith'])) {
                $wpgmza_def_dbox_width = $def_data['map_default_dbox_width'];
            } else {
                $wpgmza_def_dbox_width = "500";
            }
            if (isset($def_data['map_default_listmarkers'])) {
                $wpgmza_def_listmarkers = $def_data['map_default_listmarkers'];
            } else {
                $wpgmza_def_listmarkers = "0";
            }
            if (isset($def_data['map_default_listmarkers_advanced'])) {
                $wpgmza_def_listmarkers_advanced = $def_data['map_default_listmarkers_advanced'];
            } else {
                $wpgmza_def_listmarkers_advanced = "0";
            }
            if (isset($def_data['map_default_filterbycat'])) {
                $wpgmza_def_filterbycat = $def_data['map_default_filterbycat'];
            } else {
                $wpgmza_def_filterbycat = "0";
            }
            if (isset($def_data['map_default_type'])) {
                $wpgmza_def_type = $def_data['map_default_type'];
            } else {
                $wpgmza_def_type = "1";
            }
            if (isset($def_data['map_default_zoom'])) {
                $start_zoom = $def_data['map_default_zoom'];
            } else {
                $start_zoom = 5;
            }
            if (isset($def_data['map_default_ugm_access'])) {
                $ugm_access = $def_data['map_default_ugm_access'];
            } else {
                $ugm_access = 0;
            }
            if (isset($def_data['map_default_starting_lat']) && isset($def_data['map_default_starting_lng'])) {
                $wpgmza_lat = $def_data['map_default_starting_lat'];
                $wpgmza_lng = $def_data['map_default_starting_lng'];
            } else {
                $wpgmza_lat = "51.5081290";
                $wpgmza_lng = "-0.1280050";
            }
            $wpdb->insert($wpgmza_tblname_maps, array("map_title" => "New Map", "map_start_lat" => "{$wpgmza_lat}", "map_start_lng" => "{$wpgmza_lng}", "map_width" => "{$wpgmza_width}", "map_height" => "{$wpgmza_height}", "map_start_location" => "{$wpgmza_lat},{$wpgmza_lng}", "map_start_zoom" => "{$start_zoom}", "default_marker" => "{$wpgmza_def_marker}", "alignment" => "{$wpgmza_def_alignment}", "styling_enabled" => "0", "styling_json" => "", "active" => "0", "directions_enabled" => "{$wpgmza_def_directions}", "type" => "{$wpgmza_def_type}", "kml" => "", "fusion" => "", "map_width_type" => "px", "map_height_type" => "px", "fusion" => "", "mass_marker_support" => "0", "ugm_enabled" => "0", "ugm_access" => "{$ugm_access}", "bicycle" => "{$wpgmza_def_bicycle}", "traffic" => "{$wpgmza_def_traffic}", "dbox" => "{$wpgmza_def_dbox}", "dbox_width" => "{$wpgmza_def_dbox_width}", "listmarkers" => "{$wpgmza_def_listmarkers}", "listmarkers_advanced" => "{$wpgmza_def_listmarkers_advanced}", "filterbycat" => "{$wpgmza_def_filterbycat}", "order_markers_by" => "{$wpgmza_def_order_markers_by}", "order_markers_choice" => "{$wpgmza_def_order_markers_choice}", "show_user_location" => "{$wpgmza_def_show_user_location}"));
            $lastid = $wpdb->insert_id;
            $_GET['map_id'] = $lastid;
            //wp_redirect( admin_url('admin.php?page=wp-google-maps-menu&action=edit&map_id='.$lastid) );
            //$wpdb->print_errors();
            echo "<script>window.location = \"" . get_option('siteurl') . "/wp-admin/admin.php?page=wp-google-maps-menu&action=edit&map_id=" . $lastid . "\"</script>";
        }
    }
    if (isset($_GET['map_id'])) {
        $res = wpgmza_get_map_data($_GET['map_id']);
        if (function_exists(wpgmza_register_gold_version)) {
            $addon_text = __("including Pro &amp; Gold add-ons", "wp-google-maps");
        } else {
            $addon_text = __("including Pro add-on", "wp-google-maps");
        }
        if (!$res->map_id || $res->map_id == "") {
            $wpgmza_data['map_id'] = 1;
        }
        if (!$res->default_marker || $res->default_marker == "" || $res->default_marker == "0") {
            $display_marker = "<img src=\"" . wpgmaps_get_plugin_url() . "/images/marker.png\" />";
        } else {
            $display_marker = "<img src=\"" . $res->default_marker . "\" />";
        }
        if ($res->map_start_zoom) {
            $wpgmza_zoom[intval($res->map_start_zoom)] = "SELECTED";
        } else {
            $wpgmza_zoom[8] = "SELECTED";
        }
        if ($res->type) {
            $wpgmza_map_type[intval($res->type)] = "SELECTED";
        } else {
            $wpgmza_map_type[1] = "SELECTED";
        }
        if ($res->alignment) {
            $wpgmza_map_align[intval($res->alignment)] = "SELECTED";
        } else {
            $wpgmza_map_align[1] = "SELECTED";
        }
        if ($res->directions_enabled) {
            $wpgmza_directions[intval($res->directions_enabled)] = "SELECTED";
        } else {
            $wpgmza_directions[2] = "SELECTED";
        }
        if ($res->bicycle) {
            $wpgmza_bicycle[intval($res->bicycle)] = "SELECTED";
        } else {
            $wpgmza_bicycle[2] = "SELECTED";
        }
        if ($res->traffic) {
            $wpgmza_traffic[intval($res->traffic)] = "SELECTED";
        } else {
            $wpgmza_traffic[2] = "SELECTED";
        }
        if ($res->dbox != "1") {
            $wpgmza_dbox[intval($res->dbox)] = "SELECTED";
        } else {
            $wpgmza_dbox[1] = "SELECTED";
        }
        if ($res->order_markers_by) {
            $wpgmza_map_order_markers_by[intval($res->order_markers_by)] = "SELECTED";
        } else {
            $wpgmza_map_order_markers_by[1] = "SELECTED";
        }
        if ($res->order_markers_choice) {
            $wpgmza_map_order_markers_choice[intval($res->order_markers_choice)] = "SELECTED";
        } else {
            $wpgmza_map_order_markers_choice[2] = "SELECTED";
        }
        if ($res->show_user_location) {
            $wpgmza_show_user_location[intval($res->show_user_location)] = "SELECTED";
        } else {
            $wpgmza_show_user_location[2] = "SELECTED";
        }
        if (stripslashes($res->map_width_type) == "%") {
            $wpgmza_map_width_type_percentage = "SELECTED";
        } else {
            $wpgmza_map_width_type_px = "SELECTED";
        }
        if (stripslashes($res->map_height_type) == "%") {
            $wpgmza_map_height_type_percentage = "SELECTED";
        } else {
            $wpgmza_map_height_type_px = "SELECTED";
        }
        if ($res->listmarkers == "1") {
            $listmarkers_checked = "CHECKED";
        } else {
        }
        if ($res->filterbycat == "1") {
            $listfilters_checked = "CHECKED";
        } else {
        }
        if ($res->listmarkers_advanced == "1") {
            $listmarkers_advanced_checked = "CHECKED";
        } else {
        }
        $wpgmza_csv = "<a href=\"" . wpgmaps_get_plugin_url() . "/csv.php\" title=\"" . __("Download this as a CSV file", "wp-google-maps") . "\">" . __("Download this data as a CSV file", "wp-google-maps") . "</a>";
    }
    echo "\n       <div class='wrap'>\n    \n    \n    \n    \n    \n    \n            <h1>WP Google Maps <small>({$addon_text})</small></h1>\n            <div class='wide'>\n                    " . wpgmza_version_check() . "\n                    <h2>" . __("Create your Map", "wp-google-maps") . "</h2>\n                    {$version_message}\n    \n    <form action='' method='post' id='wpgmaps_options' name='wpgmza_map_form'>\n\n        <div id=\"wpgmaps_tabs\">\n                <ul>\n                        <li><a href=\"#tabs-1\">General Settings</a></li>\n                        <li><a href=\"#tabs-2\">Advanced Settings</a></li>\n                </ul>\n                <div id=\"tabs-1\">\n\n                     \n            \n                    <p></p>\n\n                        <input type='hidden' name='http_referer' value='" . $_SERVER['PHP_SELF'] . "' />\n                        <input type='hidden' name='wpgmza_id' id='wpgmza_id' value='" . $res->id . "' />\n                        <input id='wpgmza_start_location' name='wpgmza_start_location' type='hidden' size='40' maxlength='100' value='" . $res->map_start_location . "' />\n                        <select id='wpgmza_start_zoom' name='wpgmza_start_zoom' style=\"display:none;\">\n                            <option value=\"1\" " . $wpgmza_zoom[1] . ">1</option>\n                            <option value=\"2\" " . $wpgmza_zoom[2] . ">2</option>\n                            <option value=\"3\" " . $wpgmza_zoom[3] . ">3</option>\n                            <option value=\"4\" " . $wpgmza_zoom[4] . ">4</option>\n                            <option value=\"5\" " . $wpgmza_zoom[5] . ">5</option>\n                            <option value=\"6\" " . $wpgmza_zoom[6] . ">6</option>\n                            <option value=\"7\" " . $wpgmza_zoom[7] . ">7</option>\n                            <option value=\"8\" " . $wpgmza_zoom[8] . ">8</option>\n                            <option value=\"9\" " . $wpgmza_zoom[9] . ">9</option>\n                            <option value=\"10\" " . $wpgmza_zoom[10] . ">10</option>\n                            <option value=\"11\" " . $wpgmza_zoom[11] . ">11</option>\n                            <option value=\"12\" " . $wpgmza_zoom[12] . ">12</option>\n                            <option value=\"13\" " . $wpgmza_zoom[13] . ">13</option>\n                            <option value=\"14\" " . $wpgmza_zoom[14] . ">14</option>\n                            <option value=\"15\" " . $wpgmza_zoom[15] . ">15</option>\n                            <option value=\"16\" " . $wpgmza_zoom[16] . ">16</option>\n                            <option value=\"17\" " . $wpgmza_zoom[17] . ">17</option>\n                            <option value=\"18\" " . $wpgmza_zoom[18] . ">18</option>\n                            <option value=\"19\" " . $wpgmza_zoom[19] . ">19</option>\n                            <option value=\"20\" " . $wpgmza_zoom[20] . ">20</option>\n                            <option value=\"21\" " . $wpgmza_zoom[21] . ">21</option>\n                        </select>\n\n                    <table class='form-table'>\n                        <tr>\n                            <td>" . __("Short code", "wp-google-maps") . ":</td>\n                            <td><input type='text' readonly name='shortcode' style='font-size:18px; text-align:center;' value='[wpgmza id=\"" . $res->id . "\"]' /> <small><i>" . __("copy this into your post or page to display the map", "wp-google-maps") . "</i></td>\n                        </tr>\n                        <tr>\n                            <td>" . __("Map Name", "wp-google-maps") . ":</td>\n                            <td><input id='wpgmza_title' name='wpgmza_title' class='regular-text' type='text' size='20' maxlength='50' value='" . $res->map_title . "' /></td>\n                        </tr>\n                        <tr>\n                             <td>" . __("Map Dimensions", "wp-google-maps") . ":</td>\n                             <td>\n                                " . __("Width", "wp-google-maps") . ": <input id='wpgmza_width' name='wpgmza_width' type='text' size='4' maxlength='4' class='small-text' value='" . $res->map_width . "' />\n                                 <select id='wpgmza_map_width_type' name='wpgmza_map_width_type'>\n                                    <option value=\"px\" {$wpgmza_map_width_type_px}>px</option>\n                                    <option value=\"%\" {$wpgmza_map_width_type_percentage}>%</option>\n                                 </select>\n\n                                &nbsp; &nbsp; &nbsp; &nbsp; \n                                " . __("Height", "wp-google-maps") . ": <input id='wpgmza_height' name='wpgmza_height' type='text' size='4' maxlength='4' class='small-text' value='" . $res->map_height . "' />\n                                 <select id='wpgmza_map_height_type' name='wpgmza_map_height_type'>\n                                    <option value=\"px\" {$wpgmza_map_height_type_px}>px</option>\n                                    <option value=\"%\" {$wpgmza_map_height_type_percentage}>%</option>\n                                 </select>\n\n                            </td>\n                        </tr>\n\n                    </table>\n                    \n            \n            \n                </div>\n                <div id=\"tabs-2\">\n                    <table class='form-table' id='wpgmaps_advanced_options'>\n                        <tr>\n                            <td>" . __("Default Marker Image", "wp-google-maps") . ":</td>\n                            <td><span id=\"wpgmza_mm\">{$display_marker}</span> <input id=\"upload_default_marker\" name=\"upload_default_marker\" type='hidden' size='35' class='regular-text' maxlength='700' value='" . $res->default_marker . "' " . $wpgmza_act . "/> <input id=\"upload_default_marker_btn\" type=\"button\" value=\"" . __("Upload Image", "wp-google-maps") . "\" {$wpgmza_act} /> <a href=\"javascript:void(0);\" onClick=\"document.forms['wpgmza_map_form'].upload_default_marker.value = ''; var span = document.getElementById('wpgmza_mm'); while( span.firstChild ) { span.removeChild( span.firstChild ); } span.appendChild( document.createTextNode('')); return false;\" title=\"Reset to default\">-reset-</a> &nbsp; &nbsp; <small><i>" . __("Get great map markers <a href='http://mapicons.nicolasmollet.com/' target='_BLANK' title='Great Google Map Markers'>here</a>", "wp-google-maps") . "</i></small></td>\n                        </tr>\n\n                        <tr>\n                            <td>" . __("Map type", "wp-google-maps") . ":</td>\n                            <td><select id='wpgmza_map_type' name='wpgmza_map_type' class='postform'>\n                                <option value=\"1\" " . $wpgmza_map_type[1] . ">" . __("Roadmap", "wp-google-maps") . "</option>\n                                <option value=\"2\" " . $wpgmza_map_type[2] . ">" . __("Satellite", "wp-google-maps") . "</option>\n                                <option value=\"3\" " . $wpgmza_map_type[3] . ">" . __("Hybrid", "wp-google-maps") . "</option>\n                                <option value=\"4\" " . $wpgmza_map_type[4] . ">" . __("Terrain", "wp-google-maps") . "</option>\n                            </select>\n                            </td>\n                        </tr>\n                        <tr>\n                             <td>" . __("List all Markers", "wp-google-maps") . ":</td>\n                             <td>\n                                <input id='wpgmza_listmarkers' name='wpgmza_listmarkers' type='checkbox' value='1' {$listmarkers_checked} /> " . __("List all markers below the map", "wp-google-maps") . "\n                                <br /><input id='wpgmza_listmarkers_advanced' name='wpgmza_listmarkers_advanced' type='checkbox' value='1' {$listmarkers_advanced_checked} /> " . __("Select this for the advanced listing functionality", "wp-google-maps") . "\n\n                            </td>\n                        </tr>\n                        <tr>\n                             <td>" . __("Filter by Category", "wp-google-maps") . ":</td>\n                             <td>\n                                <input id='wpgmza_filterbycat' name='wpgmza_filterbycat' type='checkbox' value='1' {$listfilters_checked} /> " . __("Allow users to filter by category?", "wp-google-maps") . "\n\n                            </td>\n                        </tr>\n                        <tr>\n                             <td>" . __("Order markers by", "wp-google-maps") . ":</td>\n                             <td>\n                                <select id='wpgmza_order_markers_by' name='wpgmza_order_markers_by' class='postform'>\n                                    <option value=\"1\" " . $wpgmza_map_order_markers_by[1] . ">" . __("ID", "wp-google-maps") . "</option>\n                                    <option value=\"2\" " . $wpgmza_map_order_markers_by[2] . ">" . __("Title", "wp-google-maps") . "</option>\n                                    <option value=\"3\" " . $wpgmza_map_order_markers_by[3] . ">" . __("Address", "wp-google-maps") . "</option>\n                                    <option value=\"4\" " . $wpgmza_map_order_markers_by[4] . ">" . __("Description", "wp-google-maps") . "</option>\n                                    <option value=\"5\" " . $wpgmza_map_order_markers_by[5] . ">" . __("Category", "wp-google-maps") . "</option>\n                                </select>\n                                <select id='wpgmza_order_markers_choice' name='wpgmza_order_markers_choice' class='postform'>\n                                    <option value=\"1\" " . $wpgmza_map_order_markers_choice[1] . ">" . __("Ascending", "wp-google-maps") . "</option>\n                                    <option value=\"2\" " . $wpgmza_map_order_markers_choice[2] . ">" . __("Descending", "wp-google-maps") . "</option>\n                                </select>\n\n                            </td>\n                        </tr>\n                        <tr>\n                            <td>" . __("Map Alignment", "wp-google-maps") . ":</td>\n                            <td><select id='wpgmza_map_align' name='wpgmza_map_align' class='postform'>\n                                <option value=\"1\" " . $wpgmza_map_align[1] . ">" . __("Left", "wp-google-maps") . "</option>\n                                <option value=\"2\" " . $wpgmza_map_align[2] . ">" . __("Center", "wp-google-maps") . "</option>\n                                <option value=\"3\" " . $wpgmza_map_align[3] . ">" . __("Right", "wp-google-maps") . "</option>\n                                <option value=\"4\" " . $wpgmza_map_align[4] . ">" . __("None", "wp-google-maps") . "</option>\n                            </select>\n                            </td>\n                        </tr>\n\n                        <tr>\n                            <td>" . __("Show User's Location?", "wp-google-maps") . ":</td>\n                            <td><select id='wpgmza_show_user_location' name='wpgmza_show_user_location' class='postform'>\n                                <option value=\"1\" " . $wpgmza_show_user_location[1] . ">" . __("Yes", "wp-google-maps") . "</option>\n                                <option value=\"2\" " . $wpgmza_show_user_location[2] . ">" . __("No", "wp-google-maps") . "</option>\n                            </select>\n                            </td>\n                        </tr>\n                        <tr>\n                            <td>" . __("Enable Directions?", "wp-google-maps") . ":</td>\n                            <td><select id='wpgmza_directions' name='wpgmza_directions' class='postform'>\n                                <option value=\"1\" " . $wpgmza_directions[1] . ">" . __("Yes", "wp-google-maps") . "</option>\n                                <option value=\"2\" " . $wpgmza_directions[2] . ">" . __("No", "wp-google-maps") . "</option>\n                            </select>\n                            &nbsp; &nbsp; &nbsp; &nbsp;\n                            " . __("Directions Box Open by Default?", "wp-google-maps") . ":\n                            <select id='wpgmza_dbox' name='wpgmza_dbox' class='postform'>\n                                <option value=\"1\" " . $wpgmza_dbox[1] . ">" . __("No", "wp-google-maps") . "</option>\n                                <option value=\"2\" " . $wpgmza_dbox[2] . ">" . __("Yes, on the left", "wp-google-maps") . "</option>\n                                <option value=\"3\" " . $wpgmza_dbox[3] . ">" . __("Yes, on the right", "wp-google-maps") . "</option>\n                                <option value=\"4\" " . $wpgmza_dbox[4] . ">" . __("Yes, above", "wp-google-maps") . "</option>\n                                <option value=\"5\" " . $wpgmza_dbox[5] . ">" . __("Yes, below", "wp-google-maps") . "</option>\n                            </select>\n                            &nbsp; &nbsp; &nbsp; &nbsp;\n                            " . __("Directions Box Width", "wp-google-maps") . ":\n                            <input id='wpgmza_dbox_width' name='wpgmza_dbox_width' type='text' size='4' maxlength='4' class='small-text' value='" . $res->dbox_width . "' /> px\n                            </td>\n                        </tr>\n                        <tr>\n                            <td>" . __("Enable Bicycle Layer?", "wp-google-maps") . ":</td>\n                            <td><select id='wpgmza_bicycle' name='wpgmza_bicycle' class='postform'>\n                                <option value=\"1\" " . $wpgmza_bicycle[1] . ">" . __("Yes", "wp-google-maps") . "</option>\n                                <option value=\"2\" " . $wpgmza_bicycle[2] . ">" . __("No", "wp-google-maps") . "</option>\n                            </select>\n                            &nbsp; &nbsp; &nbsp; &nbsp;\n\n                            " . __("Enable Traffic Layer?", "wp-google-maps") . ":\n                            <select id='wpgmza_traffic' name='wpgmza_traffic' class='postform'>\n                                <option value=\"1\" " . $wpgmza_traffic[1] . ">" . __("Yes", "wp-google-maps") . "</option>\n                                <option value=\"2\" " . $wpgmza_traffic[2] . ">" . __("No", "wp-google-maps") . "</option>\n                            </select></td>\n                        </tr>\n                        <tr>\n\n                        </tr>\n                        <tr>\n                            <td></td>\n                        </tr>\n                        <tr>\n                            <td>" . __("KML/GeoRSS URL", "wp-google-maps") . ":</td>\n                            <td>\n                             <input id='wpgmza_kml' name='wpgmza_kml' type='text' size='100' maxlength='700' class='regular-text' value='" . $res->kml . "' /> <em><small>" . __("The KML/GeoRSS layer will over-ride most of your map settings", "wp-google-maps") . "</small></em></td>\n                            </td>\n                        </tr>\n                        <tr>\n                            <td>" . __("Fusion table ID", "wp-google-maps") . ":</td>\n                            <td>\n                             <input id='wpgmza_fusion' name='wpgmza_fusion' type='text' size='20' maxlength='200' class='small-text' value='" . $res->fusion . "' /> <em><small>" . __("Read data directly from your Fusion Table. For more information, see <a href='http://googlemapsmania.blogspot.com/2010/05/fusion-tables-google-maps-api.html'>http://googlemapsmania.blogspot.com/2010/05/fusion-tables-google-maps-api.html</a>", "wp-google-maps") . "</small></em></td>\n                            </td>\n                        </tr>\n                        </table>\n                            <div id=\"wpgmaps_save_reminder\" style=\"display:none;\"><span style=\"font-size:16px; color:#1C62B9;\">\n                            " . __("Remember to save your map!", "wp-google-maps") . "\n                            </span></div>\n\n            \n    \n                </div>\n            </div> <!-- end of tab2 -->       \n\n\n\n\n\n\n                <p class='submit'><input type='submit' name='wpgmza_savemap' class='button-primary' value='" . __("Save Map", "wp-google-maps") . " &raquo;' /></p>\n                <p style=\"width:600px; color:#808080;\">\n                    " . __("Tip: Use your mouse to change the layout of your map. When you have positioned the map to your desired location, press \"Save Map\" to keep your settings.", "wp-google-maps") . "</p>\n\n                <div id=\"wpgmza_map\">&nbsp;</div>\n                <a name=\"wpgmaps_marker\" /></a>\n\n                <div id=\"wpgmaps_tabs_markers\">\n                <ul>\n                        <li><a href=\"#tabs-m-1\" class=\"tabs-m-1\">" . __("Markers", "wp-google-maps") . "</a></li>\n                        <li><a href=\"#tabs-m-2\" class=\"tabs-m-2\">" . __("Polygons", "wp-google-maps") . "</a></li>\n                        <li><a href=\"#tabs-m-3\" class=\"tabs-m-3\">" . __("Polylines", "wp-google-maps") . "</a></li>\n                </ul>\n                <div id=\"tabs-m-1\">\n\n\n                    <h2 style=\"padding-top:0; margin-top:0;\">" . __("Add a marker", "wp-google-maps") . "</h2>\n                    <input type=\"hidden\" name=\"wpgmza_edit_id\" id=\"wpgmza_edit_id\" value=\"\" />\n                    <p>\n                    <table>\n                    <tr>\n                        <td>" . __("Title", "wp-google-maps") . ": </td>\n                        <td><input id='wpgmza_add_title' name='wpgmza_add_title' type='text' size='35' maxlength='200' value='' /> &nbsp;<br /></td>\n\n                    </tr>\n                    <tr>\n                        <td>" . __("Address/GPS", "wp-google-maps") . ": </td>\n                        <td><input id='wpgmza_add_address' name='wpgmza_add_address' type='text' size='35' maxlength='200' value='' /> &nbsp;<br /></td>\n\n                    </tr>\n\n                    <tr><td valign='top'>" . __("Description", "wp-google-maps") . ": </td>\n                    <td><textarea id='wpgmza_add_desc' name='wpgmza_add_desc' " . $wpgmza_act . " rows='3' cols='37'></textarea>  &nbsp;<br /></td></tr>\n                    <tr><td>" . __("Pic URL", "wp-google-maps") . ": </td>\n                    <td><input id='wpgmza_add_pic' name=\"wpgmza_add_pic\" type='text' size='35' maxlength='700' value='' " . $wpgmza_act . "/> <input id=\"upload_image_button\" type=\"button\" value=\"" . __("Upload Image", "wp-google-maps") . "\" {$wpgmza_act} /> &nbsp; <small><i>(" . __("Or paste image URL", "wp-google-maps") . ")</i></small><br /></td></tr>\n                    <tr><td>" . __("Link URL", "wp-google-maps") . ": </td>\n                        <td><input id='wpgmza_link_url' name='wpgmza_link_url' type='text' size='35' maxlength='700' value='' " . $wpgmza_act . " /><small><i> " . __("Format: http://www.domain.com", "wp-google-maps") . "</i></small><br /></td></tr>\n                    <tr><td>" . __("Custom Marker", "wp-google-maps") . ": </td>\n                    <td><span id=\"wpgmza_cmm\"></span><input id='wpgmza_add_custom_marker' name=\"wpgmza_add_custom_marker\" type='hidden' size='35' maxlength='700' value='' " . $wpgmza_act . "/> <input id=\"upload_custom_marker_button\" type=\"button\" value=\"" . __("Upload Image", "wp-google-maps") . "\" {$wpgmza_act} /> &nbsp; <small><i>(" . __("ignore if you want to use the default marker", "wp-google-maps") . ")</i></small><br /></td></tr>\n                    <tr>\n                        <td>" . __("Category", "wp-google-maps") . ": </td>\n                        <td>\n                            <select name=\"wpgmza_category\" id=\"wpgmza_category\">\n                                " . wpgmza_pro_return_category_select_list() . "\n                        </td>\n                    </tr>\n                    <tr>\n                        <td>" . __("Animation", "wp-google-maps") . ": </td>\n                        <td>\n                            <select name=\"wpgmza_animation\" id=\"wpgmza_animation\">\n                                <option value=\"0\">" . __("None", "wp-google-maps") . "</option>\n                                <option value=\"1\">" . __("Bounce", "wp-google-maps") . "</option>\n                                <option value=\"2\">" . __("Drop", "wp-google-maps") . "</option>\n                        </td>\n                    </tr>\n                    <tr>\n                        <td>" . __("InfoWindow open by default", "wp-google-maps") . ": </td>\n                        <td>\n                            <select name=\"wpgmza_infoopen\" id=\"wpgmza_infoopen\">\n                                <option value=\"0\">" . __("No", "wp-google-maps") . "</option>\n                                <option value=\"1\">" . __("Yes", "wp-google-maps") . "</option>\n                        </td>\n                    </tr>\n                    <tr>\n                        <td></td>\n                        <td>\n                            <span id=\"wpgmza_addmarker_div\"><input type=\"button\" id='wpgmza_addmarker' class='button-primary' value='" . __("Add Marker", "wp-google-maps") . "' /></span> <span id=\"wpgmza_addmarker_loading\" style=\"display:none;\">" . __("Adding", "wp-google-maps") . "...</span>\n                            <span id=\"wpgmza_editmarker_div\" style=\"display:none;\"><input type=\"button\" id='wpgmza_editmarker' class='button-primary' value='" . __("Save Marker", "wp-google-maps") . "' /></span><span id=\"wpgmza_editmarker_loading\" style=\"display:none;\">" . __("Saving", "wp-google-maps") . "...</span>\n                        </td>\n                    </tr>\n                    </table>\n                    <h2 style=\"padding-top:0; margin-top:0;\">" . __("Your Markers", "wp-google-maps") . "</h2>\n                    <div id=\"wpgmza_marker_holder\">\n                        " . wpgmza_return_marker_list($_GET['map_id']) . "\n                    </div>\n                </div>\n                <div id=\"tabs-m-2\">\n                        <h2 style=\"padding-top:0; margin-top:0;\">" . __("Add a Polygon", "wp-google-maps") . "</h2>\n                        <span id=\"wpgmza_addpolygon_div\"><a href='" . get_option('siteurl') . "/wp-admin/admin.php?page=wp-google-maps-menu&action=add_poly&map_id=" . $_GET['map_id'] . "' id='wpgmza_addpoly' class='button-primary' value='" . __("Add a New Polygon", "wp-google-maps") . "' />" . __("Add a New Polygon", "wp-google-maps") . "</a></span>\n                        <div id=\"wpgmza_poly_holder\">" . wpgmza_return_polygon_list($_GET['map_id']) . "</div>\n                </div>\n                <div id=\"tabs-m-3\">\n                        <h2 style=\"padding-top:0; margin-top:0;\">" . __("Add a Polyline", "wp-google-maps") . "</h2>\n                        <span id=\"wpgmza_addpolyline_div\"><a href='" . get_option('siteurl') . "/wp-admin/admin.php?page=wp-google-maps-menu&action=add_polyline&map_id=" . $_GET['map_id'] . "' id='wpgmza_addpolyline' class='button-primary' value='" . __("Add a New Polyline", "wp-google-maps") . "' />" . __("Add a New Polyline", "wp-google-maps") . "</a></span>\n                        <div id=\"wpgmza_polyline_holder\">" . wpgmza_return_polyline_list($_GET['map_id']) . "</div>\n                </div>\n            </div>\n                <p>{$wpgmza_act_msg}</p>\n            </form>\n\n            \n\n            " . wpgmza_return_pro_add_ons() . " \n            <p><br /><br />" . __("WP Google Maps encourages you to make use of the amazing icons created by Nicolas Mollet's Maps Icons Collection", "wp-google-maps") . " <a href='http://mapicons.nicolasmollet.com'>http://mapicons.nicolasmollet.com/</a> " . __("and to credit him when doing so.", "wp-google-maps") . "</p>\n\n\n            </div>\n        </div>\n    ";
}