function wpgmza_edit_marker($mid) { global $wpgmza_tblname_maps; global $wpdb; if ($_GET['action'] == "edit_marker" && isset($mid)) { $res = wpgmza_get_marker_data($mid); echo "\r\n <div class='wrap'>\r\n <h1>WP Google Maps</h1>\r\n <div class='wide'>\r\n\r\n <h2>" . __("Edit Marker Location", "wp-google-maps") . " " . __("ID", "wp-google-maps") . "#{$mid}</h2>\r\n <form action='?page=wp-google-maps-menu&action=edit&map_id=" . $res->map_id . "' method='post' id='wpgmaps_edit_marker'>\r\n <p></p>\r\n\r\n <input type='hidden' name='wpgmaps_marker_id' id='wpgmaps_marker_id' value='" . $mid . "' />\r\n <div id=\"wpgmaps_status\"></div>\r\n <table>\r\n\r\n <tr>\r\n <td>" . __("Marker Latitude", "wp-google-maps") . ":</td>\r\n <td><input id='wpgmaps_marker_lat' name='wpgmaps_marker_lat' type='text' size='15' maxlength='100' value='" . $res->lat . "' /></td>\r\n </tr>\r\n <tr>\r\n <td>" . __("Marker Longitude", "wp-google-maps") . ":</td>\r\n <td><input id='wpgmaps_marker_lng' name='wpgmaps_marker_lng' type='text' size='15' maxlength='100' value='" . $res->lng . "' /></td>\r\n </tr>\r\n\r\n </table>\r\n <p class='submit'><input type='submit' name='wpgmza_save_maker_location' class='button-primary' value='" . __("Save Marker Location", "wp-google-maps") . " »' /></p>\r\n <p style=\"width:600px; color:#808080;\">" . __("Tip: Use your mouse to change the location of the marker. Simply click and drag it to your desired location.", "wp-google-maps") . "</p>\r\n\r\n\r\n <div id=\"wpgmza_map\">\r\n <div class=\"wpgm_notice_message\" style='text-align:center;'>\r\n <ul>\r\n <li><small><strong>" . __("The map could not load.", "wp-google-maps") . "</strong><br />" . __("This is normally caused by a conflict with another plugin or a JavaScript error that is preventing our plugin's Javascript from executing. Please try disable all plugins one by one and see if this problem persists. If it persists, please contact nick@wpgmaps.com for support.", "wp-google-maps") . "</small>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n </form>\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n\r\n\r\n "; } }
$map_height_type == "px"; } if ($map_width_type == "%" && intval($res->map_width) > 100) { $res->map_width = 100; } if ($map_height_type == "%" && intval($res->map_height) > 100) { $res->map_height = 100; } if (!$map_align || $map_align == "" || $map_align == "1") {