function gfullmap_backend_menu()
{
    wp_nonce_field('update-options');
    $options = get_option('gfullmap_options');
    echo get_option('plugin_error');
    ?>

<!--wrap div start-->
<div class="wrap">
	<div id="icon-themes" class="icon32"></div>
	<h2> <?php 
    _e('GoogleMap LightBox ' . gfullmap_get_version() . ' Setting\'s', 'gfullmap');
    ?>
 </h2>
</div>	
<!--wrap div end-->

<div id="poststuff">

   <?php 
    global $fwbm;
    if (isset($_REQUEST['gfullmap_add_btn'])) {
        add_map_details();
    }
    if (isset($_GET['deactivate'])) {
        echo "<div class='gmapfrnt-show-message updated'>";
        _e('Map Has been Deactivated', 'gfullmap');
        echo "</div>";
    }
    if (isset($_GET['activate'])) {
        echo "<div class='gmapfrnt-show-message updated'>";
        _e('Map Has been Activated', 'gfullmap');
        echo "</div>";
    }
    if (isset($_GET['delete'])) {
        echo "<div class='gmapfrnt-show-message updated'>";
        _e('Map Has been Deleted', 'contactform');
        echo "</div>";
    }
    ?>
		
	
	<!-- postbox start -->		
	<div class="postbox" id="gfullmap_admin"> 
		
		<h3 class="hndle"><span style="font-family: verdana;"><?php 
    _e("Table Of GoogleMap Lightbox", 'gfullmap');
    ?>
</span></h3>
		<div class="inside" style="padding: 0px; float:left;margin:0px;width:100%;">	
			<!-- inside div start -->				
		    <table style="text-align:center;font-weight:bold;font-size:12px;background:#eeeeee; border-top: 1px solid #DDDDDD;">
				<tr>
					<td style="color:#04569A;width:112px;"><?php 
    _e("ID", 'gfullmap');
    ?>
</td>
					<td style="color:#04569A;"><?php 
    _e("Map Name", 'gfullmap');
    ?>
</td>
					<td style="width:157px;color:#04569A; "><?php 
    _e("Shortcode", 'gfullmap');
    ?>
</td> 
					<td style="text-align:right;color:#04569A;"><?php 
    _e("Edit Map", 'gfullmap');
    ?>
</td> 
					<td style="text-align:right;width:150px;color:#04569A;"><?php 
    _e("Activate Map", 'gfullmap');
    ?>
</td> 
					<td style="width:176px;color:#04569A;"><?php 
    _e("Delete Map", 'gfullmap');
    ?>
</td> 
				</tr>
			</table>			
			
			<?php 
    if (!(isset($_GET['add']) && $_GET['add'] == 1)) {
        fwgm_get_map_details();
    }
    if (isset($_GET['add']) && $_GET['add'] == 1) {
        display_map_info();
    }
    ?>
		
			<div class="form_cont">
				<form method="post" action="?page=gfullmap&add=1"> <!-- Add new Map Form start -->
					<table>
						<tr>
							<td><input style=" border: 1px solid #AAAAAA;" type="text" id="fullmap_option_name" name="fullmap_option_name" size="50" /></td>
							<td style="text-align:center;"> <span><?php 
    _e('*Please Do not use spaces and special characters in map name', 'gfullmap');
    ?>
</span> </td>
							<td><input type="submit" value=" <?php 
    _e('Add New GoogleMap', 'gfullmap');
    ?>
 " class="button-primary" id="gfullmap_add_btn" name="gfullmap_add_btn"></td>
						</tr>				
					</table>			
				</form>	 <!-- Add new Map Form end-->  
			</div>	
		
		</div><!-- inside div end -->	
	</div> <!-- postbox div end -->
</div> <!-- poststuff end -->
<div style="clear:both;"></div>
<iframe class="gmaplbox_iframe" src="http://www.sketchthemes.com/sketch-updates/plugin-updates/cbar-lite/cbar-lite.php" width="250px" height="370px" scrolling="no" ></iframe> 
<?php 
}
function edit_details()
{
    $option = $_GET['edit'];
    if ($_GET["edit"]) {
        $option = $_GET['edit'];
    } else {
        $option = 'gfullmap_options';
    }
    ?>
	<div class="wrap"> <!--wrap div start-->
		<div id="icon-themes" class="icon32"></div>
		<h2> <?php 
    _e('GoogleMap LightBox ' . gfullmap_get_version() . ' Edit <span style="color:#1E8CBE">(' . $option . ')</span>', 'gfullmap');
    ?>
 </h2>
	</div>	<!--wrap div end-->
	<?php 
    if (isset($_REQUEST['settings-updated']) && $_REQUEST['settings-updated'] == "true") {
        _e('<div class="show-message-edit updated">Settings Saved</div>', 'gfullmap');
    }
    ?>
	
	<div class="postbox g_innerpage_container" id="gfullmap_admin" style="width:754px;">
		<h3 class="hndle"><span><?php 
    _e("Edit GoogleMap Setting's", 'gfullmap');
    ?>
</span></h3>
		<div class="inside" style="padding: 15px;margin: 0;">
			<form method="post" name="map_details" id="#map_details" action="options.php">
			
				<?php 
    wp_nonce_field('update-options');
    $options = get_option($option);
    ?>
				
				<table style="width:725px;">                          
					<tr>								
						<td> <?php 
    _e('Check to show Image', 'gfullmap');
    ?>
</td>
						<td colspan="3"> <input <?php 
    if (isset($options['g_image_chkbox'])) {
        checked('1', $options['g_image_chkbox'], true);
    }
    ?>
 id="fwgm_chk" type="checkbox" name="<?php 
    echo $option;
    ?>
[g_image_chkbox]" value = "1"/> <span> <label style="font-size:11px;color:#DB1E00;" for="fwgm_chk"> <?php 
    _e('Check it, if you want to show image instead of default map.', 'gfullmap');
    ?>
</label> </span> </td> 
					</tr> 
					 <tr>								
						<td> <?php 
    _e('Insert image path', 'gfullmap');
    ?>
</td>
						<td colspan="2"> <input class="gfull_upload_image" style="width:220px;" type="text" size="23" name="<?php 
    echo $option;
    ?>
[g_image_path]" value="<?php 
    echo $options['g_image_path'];
    ?>
" /><input class="button-primary gfull_upload_button" type="button" value="Upload Image" /></td>
					</tr>
					<tr>								
						<td> <?php 
    _e('Address to Show in Map', 'gfullmap');
    ?>
</td>
						<td> <textarea id="fwgm_add" style="width:220px;" name="<?php 
    echo $option;
    ?>
[g_thumb_address]" ><?php 
    echo $options['g_thumb_address'];
    ?>
</textarea></td>
					</tr>									
					<tr>
						<td><?php 
    _e('LightBox Map Width', 'gfullmap');
    ?>
</td>
						<td><input type="text" size="8" name="<?php 
    echo $option;
    ?>
[glightbox_width]" value="<?php 
    echo $options['glightbox_width'];
    ?>
"/> <span style="font-size:11px;font-weight:normal;"> <?php 
    _e('in pixels', 'gfullmap');
    ?>
 </span> </td>
						<td><?php 
    _e('LightBox Map Height', 'gfullmap');
    ?>
</td>
						<td><input type="text" size="8" name="<?php 
    echo $option;
    ?>
[glightbox_height]" value="<?php 
    echo $options['glightbox_height'];
    ?>
"/> <span style="font-size:11px;font-weight:normal;"> <?php 
    _e('in pixels', 'gfullmap');
    ?>
 </span> </td>
					</tr>
					<tr>
						<td><?php 
    _e('Map Width', 'gfullmap');
    ?>
</td>
						<td><input type="text" size="8" name="<?php 
    echo $option;
    ?>
[g_thumb_width]" value="<?php 
    echo $options['g_thumb_width'];
    ?>
"/> <span style="font-size:11px;font-weight:normal;"> <?php 
    _e('in pixels', 'gfullmap');
    ?>
</span> </td>
						<td><?php 
    _e('Map Height', 'gfullmap');
    ?>
</td>
						<td><input type="text" size="8" name="<?php 
    echo $option;
    ?>
[g_thumb_height]" value="<?php 
    echo $options['g_thumb_height'];
    ?>
"/> <span style="font-size:11px;font-weight:normal;"><?php 
    _e('in pixels', 'gfullmap');
    ?>
</span> </td>
					</tr> 						
					<tr class ="fwgm_row <?php 
    if (isset($options['g_image_chkbox'])) {
        ?>
hide<?php 
    }
    ?>
">
						<td><?php 
    _e("Map Type", 'gfullmap');
    ?>
 </td>
						<td>
							<select style="width:91px;" name="<?php 
    echo $option;
    ?>
[g_map_type]">
								<option <?php 
    selected('roadmap', $options['g_map_type']);
    ?>
 value="roadmap"><?php 
    _e('Roadmap', 'gmapfull');
    ?>
</option>
								<option <?php 
    selected('satellite', $options['g_map_type']);
    ?>
 value="satellite"><?php 
    _e('Satellite', 'gmapfull');
    ?>
</option>
								<option <?php 
    selected('terrain', $options['g_map_type']);
    ?>
 value="terrain"><?php 
    _e('Terrain', 'gmapfull');
    ?>
</option>
								<option <?php 
    selected('hybrid', $options['g_map_type']);
    ?>
 value="hybrid"><?php 
    _e('Hybrid', 'gmapfull');
    ?>
</option>
							</select>
						</td>                          
					</tr>
					<tr class ="fwgm_row <?php 
    if (isset($options['g_image_chkbox'])) {
        ?>
hide<?php 
    }
    ?>
" >								
						<td><?php 
    _e("Map Zoom Level", 'gfullmap');
    ?>
 </td>
						<td>
							 <select style="width:91px;" name="<?php 
    echo $option;
    ?>
[g_zoom_val]">									
								<option <?php 
    selected('0', $options['g_zoom_val']);
    ?>
 value="0"><?php 
    _e('0', 'gmapfull');
    ?>
</option>
								<option <?php 
    selected('5', $options['g_zoom_val']);
    ?>
 value="5"><?php 
    _e('5', 'gmapfull');
    ?>
</option>
								<option <?php 
    selected('10', $options['g_zoom_val']);
    ?>
 value="10"><?php 
    _e('10', 'gmapfull');
    ?>
</option>
								<option <?php 
    selected('15', $options['g_zoom_val']);
    ?>
 value="15"><?php 
    _e('15', 'gmapfull');
    ?>
</option>
							 </select>
						</td>
					</tr>			
					<tr>
						<td><?php 
    _e("LightBox Map Type", 'gfullmap');
    ?>
</td>
						<td>
							<select style="width:91px;" name="<?php 
    echo $option;
    ?>
[glightbox_map_type]">
								<option <?php 
    selected('m', $options['glightbox_map_type']);
    ?>
 value="m"><?php 
    _e('Roadmap', 'gmapfull');
    ?>
</option>
								<option <?php 
    selected('k', $options['glightbox_map_type']);
    ?>
 value="k"><?php 
    _e('Satellite', 'gmapfull');
    ?>
</option>
								<option <?php 
    selected('p', $options['glightbox_map_type']);
    ?>
 value="p"><?php 
    _e('Terrain', 'gmapfull');
    ?>
</option>
								<option <?php 
    selected('h', $options['glightbox_map_type']);
    ?>
 value="h"><?php 
    _e('Hybrid', 'gmapfull');
    ?>
</option>
							</select>
						</td>																		
					</tr>					
					<tr>								
						<td><?php 
    _e("Lightbox Zoom Level", 'gfullmap');
    ?>
</td>
						<td>
						<select style="width:91px;"  name="<?php 
    echo $option;
    ?>
[glightbox_zoom_val]">
								<option <?php 
    selected('0', $options['glightbox_zoom_val']);
    ?>
 value="0"><?php 
    _e('0', 'gmapfull');
    ?>
</option>
								<option <?php 
    selected('5', $options['glightbox_zoom_val']);
    ?>
 value="5"><?php 
    _e('5', 'gmapfull');
    ?>
</option>
								<option <?php 
    selected('10', $options['glightbox_zoom_val']);
    ?>
 value="10"><?php 
    _e('10', 'gmapfull');
    ?>
</option>
								<option <?php 
    selected('15', $options['glightbox_zoom_val']);
    ?>
 value="15"><?php 
    _e('15', 'gmapfull');
    ?>
</option>
						 </select>
						</td>						
					</tr>
					
					<tr>								
						<td><?php 
    _e("Select Language for Lightbox Map", 'gfullmap');
    ?>
</td>
						<td>
						<select style="width:91px;"  name="<?php 
    echo $option;
    ?>
[gmap_language]">								    
							
							<option <?php 
    selected('ar', $options['gmap_language']);
    ?>
 value="ar"><?php 
    _e('ARABIC', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('eu', $options['gmap_language']);
    ?>
 value="eu"><?php 
    _e('BASQUE', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('bg', $options['gmap_language']);
    ?>
 value="bg"><?php 
    _e('BULGARIAN', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('bn', $options['gmap_language']);
    ?>
 value="bn"><?php 
    _e('BENGALI', 'gmapfull');
    ?>
</option>
							
							<option <?php 
    selected('ca', $options['gmap_language']);
    ?>
 value="ca"><?php 
    _e('CATALAN', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('cs', $options['gmap_language']);
    ?>
 value="cs"><?php 
    _e('CZECH', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('da', $options['gmap_language']);
    ?>
 value="da"><?php 
    _e('DANISH', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('de', $options['gmap_language']);
    ?>
 value="de"><?php 
    _e('GERMAN', 'gmapfull');
    ?>
</option>
							
							<option <?php 
    selected('el', $options['gmap_language']);
    ?>
 value="el"><?php 
    _e('GREEK', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('en', $options['gmap_language']);
    ?>
 value="en"><?php 
    _e('ENGLISH', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('es', $options['gmap_language']);
    ?>
 value="es"><?php 
    _e('SPANISH', 'gmapfull');
    ?>
</option>
							
							<option <?php 
    selected('fa', $options['gmap_language']);
    ?>
 value="fa"><?php 
    _e('FARSI', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('fi', $options['gmap_language']);
    ?>
 value="fi"><?php 
    _e('FINNISH', 'gmapfull');
    ?>
</option>
							
							
							<option <?php 
    selected('fr', $options['gmap_language']);
    ?>
 value="fr"><?php 
    _e('FRENCH', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('gl', $options['gmap_language']);
    ?>
 value="gl"><?php 
    _e('GALICIAN', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('gu', $options['gmap_language']);
    ?>
 value="gu"><?php 
    _e('GUJARATI', 'gmapfull');
    ?>
</option>
							
							<option <?php 
    selected('hi', $options['gmap_language']);
    ?>
 value="hi"><?php 
    _e('HINDI', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('hr', $options['gmap_language']);
    ?>
 value="hr"><?php 
    _e('CROATIAN', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('hu', $options['gmap_language']);
    ?>
 value="hu"><?php 
    _e('HUNGARIAN', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('id', $options['gmap_language']);
    ?>
 value="id"><?php 
    _e('INDONESIAN', 'gmapfull');
    ?>
</option>
							
							<option <?php 
    selected('it', $options['gmap_language']);
    ?>
 value="it"><?php 
    _e('ITALIAN', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('iw', $options['gmap_language']);
    ?>
 value="iw"><?php 
    _e('HEBREW', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('ja', $options['gmap_language']);
    ?>
 value="ja"><?php 
    _e('JAPANESE', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('kn', $options['gmap_language']);
    ?>
 value="kn"><?php 
    _e('KANNADA', 'gmapfull');
    ?>
</option>
							
							<option <?php 
    selected('ko', $options['gmap_language']);
    ?>
 value="ko"><?php 
    _e('KOREAN', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('lt', $options['gmap_language']);
    ?>
 value="lt"><?php 
    _e('LITHUANIAN', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('lv', $options['gmap_language']);
    ?>
 value="lv"><?php 
    _e('LATVIAN', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('ml', $options['gmap_language']);
    ?>
 value="ml"><?php 
    _e('MALAYALAM', 'gmapfull');
    ?>
</option>
							
							<option <?php 
    selected('mr', $options['gmap_language']);
    ?>
 value="mr"><?php 
    _e('MARATHI', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('nl', $options['gmap_language']);
    ?>
 value="nl"><?php 
    _e('DUTCH', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('nn', $options['gmap_language']);
    ?>
 value="nn"><?php 
    _e('NORWEGIAN NYNORSK', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('no', $options['gmap_language']);
    ?>
 value="no"><?php 
    _e('NORWEGIAN', 'gmapfull');
    ?>
</option>
							
							<option <?php 
    selected('pl', $options['gmap_language']);
    ?>
 value="pl"><?php 
    _e('POLISH', 'gmapfull');
    ?>
</option>
							<option <?php 
    selected('pt', $options['gmap_language']);
    ?>
 value="pt"><?php 
    _e('PORTUGUESE', 'gmapfull');
    ?>
</option>