<!-- Script PHP/MYSQL of management of classifieds ads developed by Script PAG. Script PAG all rights reserved. Use under license. http://www.script-pag.com -->
<div class="internal-body">

	<p class="header-internal-body"><?php  echo $language_adm['temp_style_map_info']; ?></p>
	
	<div class="body-internal-body form">
		
		<?php 
			
			if(!empty($error)) echo '<p class="error">'. $language_adm['temp_style_map_error'. $error] .'</p>'; 
			if(isset($_GET['succes']) && $_GET['succes'] == 1) echo '<p class="succes">'. $language_adm['temp_style_map_su'] .'</p>';
		
		 ?>
	
		<form method="post" action="template.php?act=<?php echo $act; ?>&amp;menu=25">
			<div>
				
				<?php if(file_exists('../template/map/cache_map.php')) : ?>
				<div class="flex-container div-form color-choice">
					<p class="title"><?php echo $language_adm['temp_style_map_fillover']; ?></p>
					<div><input type="text" name="fillover" id="fillover" value="<?php if(isset($_POST['fillover'])) echo htmlspecialchars($_POST['fillover']); else echo $cache_map['fillover']; ?>" /></div>
				</div>
				
				<div class="flex-container div-form color-choice">
					<p class="title"><?php echo $language_adm['temp_style_map_fillout']; ?></p>
					<div><input type="text" name="fillout" id="fillout" value="<?php if(isset($_POST['fillout'])) echo htmlspecialchars($_POST['fillout']); else echo $cache_map['fillout']; ?>" /></div>
				</div>
				
				<div class="map-preview"><?php include_once('../template/map/map.php'); ?></div>
				
				<div class="flex-container div-form">
					<label class="title" for="list_show"><?php echo $language_adm['temp_style_map_list_show']; ?></label>
					<div class="label">
						<input type="checkbox" id="list_show" name="list_show" value="1" <?php if(!empty($_POST['list_show'])) echo 'checked'; elseif(!isset($_POST['fillover']) && $cache_map['list_show'] == 1) echo 'checked'; ?> />
						<label for="list_show"></label>
					</div>
				</div>
				
				<div class="flex-container div-form">
					<label class="title" for="float_list"><?php echo $language_adm['temp_style_map_list_float']; ?></label>
					<div class="label">
						<input type="checkbox" id="float_list" name="float_list" value="1" <?php if(!empty($_POST['float_list'])) echo 'checked'; elseif(!isset($_POST['fillover']) && $cache_map['float_list'] == 1) echo 'checked'; ?> />
						<label for="float_list"></label>
					</div>
				</div>
				
				<div class="flex-container div-form">
					<p class="title"><?php echo $language_adm['temp_style_map_column']; ?></p>
					<div><input type="text" name="column_number" value="<?php if(isset($_POST['column_number'])) echo htmlspecialchars($_POST['column_number']); else echo $cache_map['column_number']; ?>" /></div>
				</div>
			
			</div>
			
			<div class="input-submit"><input type="submit" value="<?php echo $language_adm['bt_link_mod']; ?>" /></div>
		
			<?php else : ?>
			<div class="flex-container div-form">
				<p class="title normal"><?php echo $language_adm['temp_style_map_not']; ?></p>
				<div class="left"><a href="template.php?act=2&amp;menu=25"><?php echo $language_adm['temp_style_map_not_link']; ?></a></div>
			</div>
			<?php endif; ?>
			
		</form>
		
	</div>
</div>