Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux nl-srv-web1396.main-hosting.eu 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User : u107206879 ( 107206879)
PHP Version : 7.2.34
Disable Function : NONE
Directory :  /home/u107206879/domains/escort46.de/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u107206879/domains/escort46.de/public_html/editad.php
<?php
	include_once "db_connection.php";
	include_once "functions.php";
	require_once 'Mobile_Detect.php';
	$detect = new Mobile_Detect;	
	include "sessioncheck.php";
	
	$sql = "SELECT * FROM advertise WHERE em_id =".$_SESSION['id']." AND id =".$_REQUEST['profile_id'];
	$res = mysqli_query($connection,$sql);
	$list = mysqli_fetch_array($res);
	if(!empty($list['id'])){
	 
	}else{
?>								 	 
		<script type="text/javascript">
		window.location.href = "<?=SUB_URL?>/myaccount";
		</script>								
<?php 
	}
	
	$success="";
	if(isset($_POST['edit'])){
		$error="";
		$bsname=test_input($_POST['bsname']);
		$services=test_input($_POST['service']);
		$alder=test_input($_POST['alder']);
		$kon=test_input($_POST['kon']);
		$bryst=test_input($_POST['bryst']);
		$weight=test_input($_POST['weight']);
		$height=test_input($_POST['height']);
		$street=test_input($_POST['street']);
		$incall_postal= test_input($_POST['incall_postal']);
		if($services=='3'){
			$incall_postal= test_input($_POST['outcall_postal']);
		}
		$outcall_postal=test_input($_POST['outcall_postal']);
		$radius=test_input($_POST['radius']);
		$postal_code=test_input($_POST['postal_code']);
		$city=test_input($_POST['town']);
		$website=test_input($_POST['website']);
		$nationality=test_input($_POST['nationality']);
		$country_code=test_input($_POST['country_code']);
		$telephone=test_input($_POST['telephone']);
		$prof_title=test_input($_POST['prof_title']);
		$prof_beskrivelse=test_input($_POST['prof_beskrivelse']);
		#event code comes here
		if($list['category_id']=="5"){
			$prof_title=test_input($_POST['event_title']);
			$prof_beskrivelse=test_input($_POST['event_description']);
			$event_date=test_input($_POST['event_date']);
			$event_date = date('Y-m-d', strtotime($event_date));
			$event_time_from=test_input($_POST['time_from']);
			$event_time_to=test_input($_POST['time_to']);
			$event_place=test_input($_POST['event_place']);
			$street=test_input($_POST['event_street']);
			$postal_code=test_input($_POST['event_postal_code']);
			$sprice = test_input($_POST['price']);
			$price1 = test_input($_POST['custom_price']);
			if ($sprice == "") {
			 $event_price = $price1;
			} else {
			 $event_price = $sprice;
			}
			$event_register_type=test_input($_POST['event_register_type']);
			$event_reg_email=test_input($_POST['event_email']);
			$country_code=test_input($_POST['event_country_code']);
			$telephone=test_input($_POST['event_telephone']);	 		
		}		
		
		if($postal_code != ''){
			$postal_region=$postal_code;
		}elseif($outcall_postal != ''){
			$postal_region=$outcall_postal;
		}elseif($incall_postal != ''){
			$postal_region=$incall_postal;
		}
		
		if($postal_region!=''){
			$region_query=mysqli_query($connection,"SELECT ward, district, sub_country, region FROM area_code WHERE area_code='$postal_region'");
			$region_row = mysqli_fetch_array($region_query);
			$region = $region_row['region'];
			$sub_country = $region_row['sub_country'];
			$district = $region_row['district'];
			$ward = $region_row['ward'];
		}else{
			$ward='';
			$sub_country='';
			$district='';
			$region='';
		}
		$update_date = date("Y-m-d H:i:s");
		
		$que="UPDATE `advertise` SET `business_name`='".addslashes($bsname)."', `services`='".addslashes($services)."', `incall`='".addslashes($incall_postal)."', `outcall`='".addslashes($outcall_postal)."', `radius`='".addslashes($radius)."', `ward`='".addslashes($ward)."', `district`='".addslashes($district)."', `sub_country`='".addslashes($sub_country)."', `region`='".addslashes($region)."', `alder`='".addslashes($alder)."', `kon`='".addslashes($kon)."', `bryst`='".addslashes($bryst)."', `weight`='".addslashes($weight)."', `height`='".addslashes($height)."', `nationality`='".addslashes($nationality)."', `country_code`='".addslashes($country_code)."', `telephone_no`='".addslashes($telephone)."', `profile_tile`='".addslashes($prof_title)."', `profile_beskrivelse`='".addslashes($prof_beskrivelse)."', `street`='".addslashes($street)."', `post_code`='".addslashes($postal_code)."', `city`='".addslashes($city)."', `website`='".addslashes($website)."', `update_date`='".addslashes($update_date)."', `event_time_from`='".addslashes($event_time_from)."' ,	`event_time_to`='".addslashes($event_time_to)."' ,	`event_place`='".addslashes($event_place)."' ,	`event_price`='".addslashes($event_price)."', `event_register_type`='".addslashes($event_register_type)."', 	`event_reg_email`='".addslashes($event_reg_email)."' WHERE em_id =".$_SESSION['id']." AND id =".$_REQUEST['profile_id'];
		 
		$result=mysqli_query($connection,$que);
		if($result){
			$adid = $_REQUEST['profile_id'];
			if(isset($_POST['adservices_values']) && !empty($_POST['adservices_values'])){
				$userServices = array();
		    	$userServicesQry = mysqli_query($connection,"SELECT * FROM ads_adservices WHERE ad_id=$adid");
		    	while($userServicesRow=mysqli_fetch_assoc($userServicesQry)){
					$userServices[] = $userServicesRow['adservice_id'];
				}
				if($userServices !== $_POST['adservices_values']){
					mysqli_query($connection,"DELETE FROM `ads_adservices` WHERE ad_id=$adid");
					foreach($_POST['adservices_values'] as $adservice_id){
						mysqli_query($connection,"INSERT into `ads_adservices` (ad_id, adservice_id, updated_date) VALUES ('$adid', '$adservice_id', '$now')");
					}
				}
			}else{
				mysqli_query($connection,"DELETE FROM `ads_adservices` WHERE ad_id=$adid");
			}
			header("location: ".SUB_URL."/myaccount");
	  	}else{
		 	$success=
					"<div align='center' class='alert alert-danger alert-dismissable'>
						<a href='#' class='close' data-dismiss='alert' aria-label='close'>X</a>
						Fehler beim Aktualisieren von Daten. Bitte versuche es erneut!
					</div>";     	
	  	}		
	}
	//form validation function to prevent from hacker
	function test_input($data) {
		$data = trim($data);
		$data = stripslashes($data);
		$data = htmlspecialchars($data);
		return $data;
	}
?>
<!DOCTYPE html>
<html lang="<?= $language ?>">
<head>    
    <?php include_once "new_head.php"; ?>
</head>
<body id="myPage">
    <div id="mobile-indicator"></div>
    <div id="page-wrapper">
    	<?php include_once "header.php"; ?>
	    <section id="content" class="<?= $container.' '.$cont_fluid_bg_class ?> container-fluid">
			<div class="col-sm-12 col-md-12 col-xs-12 col-lg-12 no-padding">
		<?php
			if($page_ad_active == 1 || $page_top_ad_active == 1 || $page_left_ad_active == 1 || $page_right_ad_active == 1 || WEBSITE_PAGE_LAYOUT=="small"){
		?>
			    <div class="col-sm-12 col-md-1 col-xs-12 col-lg-1"><?=$left_side_banner?></div>
		<?php
			}
		?>
				<div class="<?= $page_ad_bs_class ?>">
				  	<div class=" col-sm-12 col-md-12 col-xs-12 col-lg-12 nopadding">
				   		<div id="registar_section">
				  			<div class="registar_section">
				  				<div class="panel-btn" style="margin:0px;">
				                	<div class="">
										<div class="section-title" id="section-form-title">
				                    		<?php 
				                    			if($success != ""){
													echo $success;
												} 
											?>
				                            <center class="description">
				                            	<h1>Anzeigen bearbeitung</h1>
						                        <hr class="hr_lines">
						                        <p class="mb-40">Bearbeiten Sie Ihre Anzeige hier</p>
				                            </center>
										</div>
									</div>
				                    
									<div class="panel-body signUpPanel">
										<div class="col-md-12 col-sm-12">
										 <?php if($list['category_id']=="5"){ 
										 
										 ?>
										 			<!--Edit event code -->
													 
													
												 
														<form id="signupForm" action="" method="post" enctype="multipart/form-data">
																<div class="row">														 
																	<div class="form-group col-md-6 col-md-offset-3 col-sm-6 mb-0">
																		<!--Place-->
				                                        <label for="website">Place</label> 
				                                        <input type="text" class="form-control input_border_radius input-sm" id="event_place" placeholder="Event Place" name="event_place" value="<?php echo $list['event_place']; ?>">
				                                        <span class="below-text"></span>
				                                        <div class="mb-20"></div>									
														 
														<!--Area-->
				                                    		<label for="postal_code">Postal code<span class="input_compulsory">*</span></label> 
															<input type="text" class="form-control input_border_radius input-sm typeahead tt-query" spellcheck="false"  placeholder="Select Postal Code" name="event_postal_code" value="<?php echo $list['post_code']; ?>" autocomplete="auto-off">
															<span id="event_postal_code-error" class="error" for="event_postal_code"></span>
															<span class="below-text"></span>
															<div class="mb-20"></div>
				                                            
				                                            <!--Street-->
					                                        <label for="street">Street<span class="input_compulsory">*</span></label>
					                                        <input type="text" name="event_street" class="form-control input_border_radius input-sm" id="event_street" placeholder="Street" value="<?php echo $list['street']; ?>">
															<span class="below-text"></span>
															<div class="mb-20"></div>
															
															<!--Town-->
					                                        <!--<label for="town">City<span class="input_compulsory">*</span></label>
					                                        <input type="text" name="event_town" class="form-control input_border_radius input-sm" id="event_town" placeholder="City" value="<?php echo $list['town']; ?>">
															<span class="below-text"></span>
															<div class="mb-20"></div>-->
															
															<!--Registration Type-->
					                                        <label for="town">Registration Type<span class="input_compulsory">*</span></label>
					                                        <select class="form-control input_border_radius input-sm" id="event_register_type" name="event_register_type" >
                                    		<option value="" > Select Registration With </option>
                                          	<option value="Email" <?php if($list['event_register_type']=="Email") echo 'selected="selected"'; ?>>Email</option>
											<option value="Phone" <?php if($list['event_register_type']=="Phone") echo 'selected="selected"'; ?>>Phone</option>
											<option value="No Registration" <?php if($list['event_register_type']=="No Registration") echo 'selected="selected"'; ?>>No registration needed</option>
                                      	</select>
															<span class="below-text"></span>
															<div class="mb-20"></div>
															
															<div class="event_phone" <?php if($list['event_register_type']=="Phone"){?>style="display:block;"<?php }else{ ?> style="display:none;" <?php } ?>>
																 <!--Telephone-->
																<label for="telephone">Telephone Number</label>
																<div class="form-group row mb-0">
																	<div class="form-group col-md-4 col-sm-5 col-xs-5 mb-0">
																	<?php
																		$countryCodeQRY = mysqli_query($connection,"SELECT country_code, $country_column FROM nationalities ORDER BY $country_column ASC");
																	?>
																		<select class="form-control input_border_radius input-sm" name="event_country_code" id="event_country_code">
																			<option value="">Country Code</option>
																	<?php
																		while($countryCodeRow=mysqli_fetch_assoc($countryCodeQRY)){
																	?>
																			<option value="<?= $countryCodeRow['country_code'] ?>" <?= ($list['country_code'] == $countryCodeRow['country_code']) ? 'selected' : '' ?> ><?= $countryCodeRow[$country_column].' (+'.$countryCodeRow['country_code'].')' ?></option>
																	<?php
																		}
																	?>
																		</select>
																	</div>
																	<div class="form-group col-md-8 col-sm-7 col-xs-7 mb-0">
																		<input type="text" class="form-control input_border_radius input-sm" id="event_telephone" placeholder="Telephone Number" name="event_telephone" value="<?php echo $list['telephone_no']; ?>">
																	</div>
																</div>
																<span class="below-text"></span>
																<div class="mb-20"></div>
															</div>
															
															<div class="event_email" <?php if($list['event_register_type']=="Email"){?>style="display:block;"<?php }else{ ?> style="display:none;" <?php } ?>>
																<!--Title-->
																<label for="town">Email<span class="input_compulsory">*</span></label>
																<input type="text" name="event_email" class="form-control input_border_radius input-sm" id="event_email" placeholder="Email" value="<?php echo $list['event_reg_email']; ?>">
																<span class="below-text"></span>
																<div class="mb-20"></div>
															</div>
															
															<!--Title-->
					                                        <label for="town">Title<span class="input_compulsory">*</span></label>
					                                        <input type="text" name="event_title" class="form-control input_border_radius input-sm" id="event_title" placeholder="Event Title" value="<?php echo $list['profile_tile']; ?>">
															<span class="below-text"></span>
															<div class="mb-20"></div>
															
															<!--Description-->
					                                        <label for="town">Description<span class="input_compulsory">*</span></label>
					                                       <textarea class="form-control input_border_radius input-sm" id="event_description" rows="4" name="event_description" placeholder="Event Description"><?php echo $list['profile_beskrivelse']; ?></textarea>
															<span class="below-text"></span>
															<div class="mb-20"></div>
															
															<!--Date-->
					                                        <label for="town">Date<span class="input_compulsory">*</span></label>
					                                        <input type="text" name="event_date" class="form-control input_border_radius input-sm" id="event_date" value="<?php echo date("d-m-Y", strtotime($list["event_date"])); ?>">
															<span class="below-text"></span>
															<div class="mb-20"></div>	
															 
															
															<!--Time-->
															<label for="telephone">Time<span class="input_compulsory">*</span><span style="font-size: 12px; width: 100%;">(Choose Event Time)</span></label>
															<div class="form-group row mb-0">
															<div class="form-group col-md-6 col-sm-6 col-xs-6">																	
															<select class="form-control input_border_radius input-sm" name="time_from" id="time_from">
																<option value="">From</option>	
																<option value="00:00" <?php if($list["event_time_from"]=='00:00') echo 'selected="selected"'; ?>>00:00</option>
																<option value="00:30" <?php if($list["event_time_from"]=='00:30') echo 'selected="selected"'; ?>>00:30</option>
																<option value="01:00" <?php if($list["event_time_from"]=='01:00') echo 'selected="selected"'; ?>>01:00</option>
																<option value="01:30" <?php if($list["event_time_from"]=='01:30') echo 'selected="selected"'; ?>>01:30</option>
																<option value="02:00" <?php if($list["event_time_from"]=='02:00') echo 'selected="selected"'; ?>>02:00</option>
																<option value="02:30" <?php if($list["event_time_from"]=='02:30') echo 'selected="selected"'; ?>>02:30</option>
																<option value="03:00" <?php if($list["event_time_from"]=='03:00') echo 'selected="selected"'; ?>>03:00</option>
																<option value="03:30" <?php if($list["event_time_from"]=='03:30') echo 'selected="selected"'; ?>>03:30</option>
																<option value="04:00" <?php if($list["event_time_from"]=='04:00') echo 'selected="selected"'; ?>>04:00</option>
																<option value="04:30" <?php if($list["event_time_from"]=='04:30') echo 'selected="selected"'; ?>>04:30</option>
																<option value="05:00" <?php if($list["event_time_from"]=='05:00') echo 'selected="selected"'; ?>>05:00</option>
																<option value="05:30" <?php if($list["event_time_from"]=='05:30') echo 'selected="selected"'; ?>>05:30</option>
																<option value="06:00" <?php if($list["event_time_from"]=='06:00') echo 'selected="selected"'; ?>>06:00</option>
																<option value="06:30" <?php if($list["event_time_from"]=='06:30') echo 'selected="selected"'; ?>>06:30</option>
																<option value="07:00" <?php if($list["event_time_from"]=='07:00') echo 'selected="selected"'; ?>>07:00</option>
																<option value="07:30" <?php if($list["event_time_from"]=='07:30') echo 'selected="selected"'; ?>>07:30</option>
																<option value="08:00" <?php if($list["event_time_from"]=='08:00') echo 'selected="selected"'; ?>>08:00</option>
																<option value="08:30" <?php if($list["event_time_from"]=='08:30') echo 'selected="selected"'; ?>>08:30</option>
																<option value="09:00" <?php if($list["event_time_from"]=='09:00') echo 'selected="selected"'; ?>>09:00</option>
																<option value="09:30" <?php if($list["event_time_from"]=='09:30') echo 'selected="selected"'; ?>>09:30</option>
																<option value="10:00" <?php if($list["event_time_from"]=='10:00') echo 'selected="selected"'; ?>>10:00</option>
																<option value="10:30" <?php if($list["event_time_from"]=='10:30') echo 'selected="selected"'; ?>>10:30</option>
																<option value="11:00" <?php if($list["event_time_from"]=='11:00') echo 'selected="selected"'; ?>>11:00</option>
																<option value="11:30" <?php if($list["event_time_from"]=='11:30') echo 'selected="selected"'; ?>>11:30</option>
																<option value="12:00" <?php if($list["event_time_from"]=='12:00') echo 'selected="selected"'; ?>>12:00</option>
																<option value="12:30" <?php if($list["event_time_from"]=='12:30') echo 'selected="selected"'; ?>>12:30</option>
																<option value="13:00" <?php if($list["event_time_from"]=='13:00') echo 'selected="selected"'; ?>>13:00</option>
																<option value="13:30" <?php if($list["event_time_from"]=='13:30') echo 'selected="selected"'; ?>>13:30</option>
																<option value="14:00" <?php if($list["event_time_from"]=='14:00') echo 'selected="selected"'; ?>>14:00</option>
																<option value="14:30" <?php if($list["event_time_from"]=='14:30') echo 'selected="selected"'; ?>>14:30</option>
																<option value="15:00" <?php if($list["event_time_from"]=='15:00') echo 'selected="selected"'; ?>>15:00</option>
																<option value="15:30" <?php if($list["event_time_from"]=='15:30') echo 'selected="selected"'; ?>>15:30</option>
																<option value="16:00" <?php if($list["event_time_from"]=='16:00') echo 'selected="selected"'; ?>>16:00</option>
																<option value="16:30" <?php if($list["event_time_from"]=='16:30') echo 'selected="selected"'; ?>>16:30</option>
																<option value="17:00" <?php if($list["event_time_from"]=='17:00') echo 'selected="selected"'; ?>>17:00</option>
																<option value="17:30" <?php if($list["event_time_from"]=='17:30') echo 'selected="selected"'; ?>>17:30</option>
																<option value="18:00" <?php if($list["event_time_from"]=='18:00') echo 'selected="selected"'; ?>>18:00</option>
																<option value="18:30" <?php if($list["event_time_from"]=='18:30') echo 'selected="selected"'; ?>>18:30</option>
																<option value="19:00" <?php if($list["event_time_from"]=='19:00') echo 'selected="selected"'; ?>>19:00</option>
																<option value="19:30" <?php if($list["event_time_from"]=='19:30') echo 'selected="selected"'; ?>>19:30</option>
																<option value="20:00" <?php if($list["event_time_from"]=='20:00') echo 'selected="selected"'; ?>>20:00</option>
																<option value="20:30" <?php if($list["event_time_from"]=='20:30') echo 'selected="selected"'; ?>>20:30</option>
																<option value="21:00" <?php if($list["event_time_from"]=='21:00') echo 'selected="selected"'; ?>>21:00</option>
																<option value="21:30" <?php if($list["event_time_from"]=='21:30') echo 'selected="selected"'; ?>>21:30</option>
																<option value="22:00" <?php if($list["event_time_from"]=='22:00') echo 'selected="selected"'; ?>>22:00</option>
																<option value="22:30" <?php if($list["event_time_from"]=='22:30') echo 'selected="selected"'; ?>>22:30</option>
																<option value="23:00" <?php if($list["event_time_from"]=='23:00') echo 'selected="selected"'; ?>>23:00</option>
																<option value="23:30" <?php if($list["event_time_from"]=='23:30') echo 'selected="selected"'; ?>>23:30</option>			 
															</select>
															</div>
															<div class="form-group col-md-6 col-sm-6 col-xs-6">
															<select class="form-control input_border_radius input-sm" name="time_to" id="time_to">
																<option value="">To</option>	
																<option value="00:00" <?php if($list["event_time_to"]=='00:00') echo 'selected="selected"'; ?>>00:00</option>
																<option value="00:30" <?php if($list["event_time_to"]=='00:30') echo 'selected="selected"'; ?>>00:30</option>
																<option value="01:00" <?php if($list["event_time_to"]=='01:00') echo 'selected="selected"'; ?>>01:00</option>
																<option value="01:30" <?php if($list["event_time_to"]=='01:30') echo 'selected="selected"'; ?>>01:30</option>
																<option value="02:00" <?php if($list["event_time_to"]=='02:00') echo 'selected="selected"'; ?>>02:00</option>
																<option value="02:30" <?php if($list["event_time_to"]=='02:30') echo 'selected="selected"'; ?>>02:30</option>
																<option value="03:00" <?php if($list["event_time_to"]=='03:00') echo 'selected="selected"'; ?>>03:00</option>
																<option value="03:30" <?php if($list["event_time_to"]=='03:30') echo 'selected="selected"'; ?>>03:30</option>
																<option value="04:00" <?php if($list["event_time_to"]=='04:00') echo 'selected="selected"'; ?>>04:00</option>
																<option value="04:30" <?php if($list["event_time_to"]=='04:30') echo 'selected="selected"'; ?>>04:30</option>
																<option value="05:00" <?php if($list["event_time_to"]=='05:00') echo 'selected="selected"'; ?>>05:00</option>
																<option value="05:30" <?php if($list["event_time_to"]=='05:30') echo 'selected="selected"'; ?>>05:30</option>
																<option value="06:00" <?php if($list["event_time_to"]=='06:00') echo 'selected="selected"'; ?>>06:00</option>
																<option value="06:30" <?php if($list["event_time_to"]=='06:30') echo 'selected="selected"'; ?>>06:30</option>
																<option value="07:00" <?php if($list["event_time_to"]=='07:00') echo 'selected="selected"'; ?>>07:00</option>
																<option value="07:30" <?php if($list["event_time_to"]=='07:30') echo 'selected="selected"'; ?>>07:30</option>
																<option value="08:00" <?php if($list["event_time_to"]=='08:00') echo 'selected="selected"'; ?>>08:00</option>
																<option value="08:30" <?php if($list["event_time_to"]=='08:30') echo 'selected="selected"'; ?>>08:30</option>
																<option value="09:00" <?php if($list["event_time_to"]=='09:00') echo 'selected="selected"'; ?>>09:00</option>
																<option value="09:30" <?php if($list["event_time_to"]=='09:30') echo 'selected="selected"'; ?>>09:30</option>
																<option value="10:00" <?php if($list["event_time_to"]=='10:00') echo 'selected="selected"'; ?>>10:00</option>
																<option value="10:30" <?php if($list["event_time_to"]=='10:30') echo 'selected="selected"'; ?>>10:30</option>
																<option value="11:00" <?php if($list["event_time_to"]=='11:00') echo 'selected="selected"'; ?>>11:00</option>
																<option value="11:30" <?php if($list["event_time_to"]=='11:30') echo 'selected="selected"'; ?>>11:30</option>
																<option value="12:00" <?php if($list["event_time_to"]=='12:00') echo 'selected="selected"'; ?>>12:00</option>
																<option value="12:30" <?php if($list["event_time_to"]=='12:30') echo 'selected="selected"'; ?>>12:30</option>
																<option value="13:00" <?php if($list["event_time_to"]=='13:00') echo 'selected="selected"'; ?>>13:00</option>
																<option value="13:30" <?php if($list["event_time_to"]=='13:30') echo 'selected="selected"'; ?>>13:30</option>
																<option value="14:00" <?php if($list["event_time_to"]=='14:00') echo 'selected="selected"'; ?>>14:00</option>
																<option value="14:30" <?php if($list["event_time_to"]=='14:30') echo 'selected="selected"'; ?>>14:30</option>
																<option value="15:00" <?php if($list["event_time_to"]=='15:00') echo 'selected="selected"'; ?>>15:00</option>
																<option value="15:30" <?php if($list["event_time_to"]=='15:30') echo 'selected="selected"'; ?>>15:30</option>
																<option value="16:00" <?php if($list["event_time_to"]=='16:00') echo 'selected="selected"'; ?>>16:00</option>
																<option value="16:30" <?php if($list["event_time_to"]=='16:30') echo 'selected="selected"'; ?>>16:30</option>
																<option value="17:00" <?php if($list["event_time_to"]=='17:00') echo 'selected="selected"'; ?>>17:00</option>
																<option value="17:30" <?php if($list["event_time_to"]=='17:30') echo 'selected="selected"'; ?>>17:30</option>
																<option value="18:00" <?php if($list["event_time_to"]=='18:00') echo 'selected="selected"'; ?>>18:00</option>
																<option value="18:30" <?php if($list["event_time_to"]=='18:30') echo 'selected="selected"'; ?>>18:30</option>
																<option value="19:00" <?php if($list["event_time_to"]=='19:00') echo 'selected="selected"'; ?>>19:00</option>
																<option value="19:30" <?php if($list["event_time_to"]=='19:30') echo 'selected="selected"'; ?>>19:30</option>
																<option value="20:00" <?php if($list["event_time_to"]=='20:00') echo 'selected="selected"'; ?>>20:00</option>
																<option value="20:30" <?php if($list["event_time_to"]=='20:30') echo 'selected="selected"'; ?>>20:30</option>
																<option value="21:00" <?php if($list["event_time_to"]=='21:00') echo 'selected="selected"'; ?>>21:00</option>
																<option value="21:30" <?php if($list["event_time_to"]=='21:30') echo 'selected="selected"'; ?>>21:30</option>
																<option value="22:00" <?php if($list["event_time_to"]=='22:00') echo 'selected="selected"'; ?>>22:00</option>
																<option value="22:30" <?php if($list["event_time_to"]=='22:30') echo 'selected="selected"'; ?>>22:30</option>
																<option value="23:00" <?php if($list["event_time_to"]=='23:00') echo 'selected="selected"'; ?>>23:00</option>
																<option value="23:30" <?php if($list["event_time_to"]=='23:30') echo 'selected="selected"'; ?>>23:30</option>									 
															</select>
															</div>
															</div>
															<span class="below-text"></span>
															<div class="mb-20"></div>																
															
														<!--Entry price-->
																<label class="">Entry price<span class="input_compulsory">*</span></label>
																<div class="paymentBtnGroup no-padding-mob nopadding nomargin" data-toggle="buttons">
																<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 btn  no-padding-mob nopadding nomargin">
																<input class="radio" type="radio" name="price" id="price_1" value="Free Access"  <?php if($list["event_price"]=='Free Access') echo 'checked="checked"'; ?>>
																<label class="radio__label" for="price_1" style="padding:14px;padding-left:30px;color :#838383;">Free entry</label>
																</div>
																<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 btn  no-padding-mob nopadding nomargin">
																<input class="radio" type="radio" name="price" id="price_2" value="Unknown" <?php if($list["event_price"]=='Unknown') echo 'checked="checked"'; ?>>
																<label class="radio__label" for="price_2" style="padding:14px;padding-left:30px;color :#838383;">Unkwown</label>
																</div>
																<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 btn  no-padding-mob nopadding nomargin">
																<input class="radio float-left" type="radio" name="price" id="price_3" value="" <?php if($list["event_price"]!='Free Access' && $list["event_price"]!='Unknown') echo 'checked="checked"'; ?> >
																<label  class="radio__label  float-right" for="price_3" >
																<input type="text" class="form-control input_border_radius input-sm"  placeholder="Ex: € 100" name="custom_price" id="custom_price" value="<?php if($list["event_price"]!='Free Access' && $list["event_price"]!='Unknown'){echo $list['event_price'];} ?>" style="margin-left:10px;width:80px;">
																</label>
															  </div>
															</div>				
														 
																		 
																	</div>																	 
																</div>
																<div align="center">
																	<div>
																		<input type="submit" name="edit" class="btn btn-ad" value="Save" style="margin-bottom: 10px;">
																	</div>
																</div>
															</form>
														
													
													 
										 
										 <?php }else { ?>
										 		 
													
													
															<form id="signupForm" action="" method="post" enctype="multipart/form-data">
																<div class="row">
														<?php
															if($list['category_id']=="1"){
														?>
																	<div class="form-group col-md-6 col-md-offset-3 col-sm-6 mb-0">
																		<!--service-->
																		<label for="service">Service <span class="input_compulsory">*</span></label>
																		<select class="form-control input_border_radius input-sm" id="services" name="service">
																			<option value="">-- Select Services --</option>
																			<option value="1" <?php if($list['services']==1) echo 'selected="selected"'; ?>> Incall </option>
																			<option value="2" <?php if($list['services']==2) echo 'selected="selected"'; ?>> Outcall </option>
																			<option value="3" <?php if($list['services']==3) echo 'selected="selected"'; ?>> Incall/Outcall (Both) </option>
																		</select>
																		<span class="below-text"></span>
																		<div class="mb-20"></div>
																		
																		<!--area-->
																		<div style='display:none;' id='business'>
																			<!--Postal-->
																			<label for="telephone"> Postal code <span class="input_compulsory">*</span></label> 
																			<input type="text" class="form-control input_border_radius input-sm incall_postal typeahead tt-query" spellcheck="false"  placeholder="Select postal code" name="incall_postal" value="<?php echo $list['incall']; ?>" autocomplete="auto-off">
																			<span id="incall_postal-error" class="error" for="incall_postal"></span>
																			<span class="below-text"></span>
																			<div class="mb-20"></div>
																		</div>
				
																		<div style='display:none;' id='business1' class="col-md-12 col-sm-12 col-xs-12 nopadding nomargin" style="width: 100%">
																			<div class="form-group row mb-0">
																				<div class="form-group postalcat3 col-md-7 col-sm-12 col-xs-12 mb-0">
																					<!--Postal-->
																					<label for="outcall_postal"> Postal Code <span class="input_compulsory">*</span></label>
																					<input type="text" class="form-control input_border_radius input-sm outcall_postal typeahead tt-query" spellcheck="false"  placeholder="Select postal code" name="outcall_postal" value="<?php echo $list['outcall']; ?>" autocomplete="auto-off">
																					<span id="outcall_postal-error" class="error" for="outcall_postal"></span>
																					<div class="mb-20"></div>
																				</div>
																				<div class="form-group col-md-5 col-sm-12 col-xs-12 mb-0">
																					<label for="Omrade">Radius<span class="input_compulsory">*</span></label>
																					<select class="form-control input_border_radius input-sm omrade1 radius" name="radius" >
																						<option value=""> Within </option>
																						<option value="1" <?php if($list['radius']=="1") echo 'selected="selected"'; ?>> 1 Mile(s) </option>
																						<option value="2" <?php if($list['radius']=="2") echo 'selected="selected"'; ?>> 2 Mile(s) </option>
																						<option value="3" <?php if($list['radius']=="3") echo 'selected="selected"'; ?>> 3 Mile(s) </option>
																						<option value="4" <?php if($list['radius']=="4") echo 'selected="selected"'; ?>> 4 Mile(s) </option>
																						<option value="5" <?php if($list['radius']=="5") echo 'selected="selected"'; ?>> 5 Mile(s) </option>
																						<option value="10" <?php if($list['radius']=="10") echo 'selected="selected"'; ?>> 10 Mile(s) </option>
																						<option value="25" <?php if($list['radius']=="25") echo 'selected="selected"'; ?>> 25 Mile(s) </option>
																						<option value="50" <?php if($list['radius']=="50") echo 'selected="selected"'; ?>> 50 Mile(s) </option>
																						<option value="100" <?php if($list['radius']=="100") echo 'selected="selected"'; ?>> 100 Mile(s) </option>
																						<option value="200" <?php if($list['radius']=="200") echo 'selected="selected"'; ?>> 200 Mile(s) </option>
																						<option value="500" <?php if($list['radius']=="500") echo 'selected="selected"'; ?>> 500 Mile(s) </option>
																					</select>
																					<div class="mb-20"></div>
																				</div>
																			</div>
																		</div>
				
																		<div class="form-group row mb-0">
																			<div class="form-group col-md-3 col-sm-6 col-xs-6 mb-0">
																				<!--kon(Gender)-->
																				<label for="Kon">Gender <span class="input_compulsory">*</span></label>
																				<select class="form-control input_border_radius input-sm" name="kon" id="Kon">
																					<option value=""> Select Gender </option>
																					<option value="1" <?php if($list['kon']=="1") echo 'selected="selected"'; ?>> Female </option>
																					<option value="2" <?php if($list['kon']=="2") echo 'selected="selected"'; ?>> Male </option>
																					<option value="3" <?php if($list['kon']=="3") echo 'selected="selected"'; ?>> Trans </option>
																				</select>
																				<span class="below-text"></span>
																				<div class="mb-20"></div>
																			</div>
																			<div class="form-group col-md-3 col-sm-6 col-xs-6 mb-0">
																				<!--alder-->
																				<label for="alder">Age <span class="input_compulsory">*</span></label>
																				<select class="form-control input_border_radius input-sm" id="alder" name="alder">
																					<option value=""> Select Age </option>
																			<?php
																				for($i=21;$i<=89;$i++){
																			?>
																					<option value="<?php echo $i;?>" <?php if($list['alder'] == $i) echo 'selected="selected"'; ?>> 
																						<?php echo $i;?> 
																					</option>
																			<?php
																				}
																			?>
																				</select>
																				<span class="below-text"></span>
																				<div class="mb-20"></div>
																			</div>
																			<div class="form-group col-md-3 col-sm-6 col-xs-6 mb-0">
																				<!--height-->
																				<label for="Height">Height <span class="input_compulsory">*</span></label>
																				<select class="form-control input_border_radius input-sm" id="Height" name="height">
																					<option value=""> Select Height </option>
																			<?php
																				for($i=140;$i<=200;$i++){
																			?>
																					<option value="<?php echo $i;?>" <?php if($list['height'] == $i) echo 'selected="selected"'; ?>> 
																						<?php echo $i;?> 
																					</option>
																			<?php
																				}
																			?>
																				</select>
															<span class="below-text"></span>
																				<div class="mb-20"></div>
																			</div>
																			<div class="form-group col-md-3 col-sm-6 col-xs-6 mb-0">
																				<!--weight-->
																				<label for="Weight">Weight <span class="input_compulsory">*</span></label>
																				<select class="form-control input_border_radius input-sm" id="Weight" name="weight">
																					<option value=""> Select Weight </option>
																			<?php
																				for($i=40;$i<=120;$i++){
																			?>
																					<option value="<?php echo $i;?>" <?php if($list['weight'] == $i) echo 'selected="selected"'; ?>> 
																						<?php echo $i;?> 
																					</option>
																			<?php
																				}
																			?>
																				</select>
															<span class="below-text"></span>
															<div class="mb-20"></div>
																			</div>
																		</div>
																		
																		<!--bryst-->
																		<div style='display:none;' id='Bryst-dropdown'>
																			<label for="Bryst">Breast Measure <span class="input_compulsory">*</span></label>
																			<select class="form-control input_border_radius input-sm" name="bryst" id="Bryst" >
																				<option value=""> Select Breast Measure (1: Small) - (10: Big) </option>
																		<?php 
																			for($i=1;$i<=10;$i++){
																		?>
																				<option value="<?php echo $i;?>" <?php if($list['bryst'] == $i) echo 'selected="selected"'; ?>> 
																					<?php echo $i;?> 
																				</option>
																		<?php 
																			}
																		?>
																			</select>
																			<span class="below-text"></span>
																			<div class="mb-20"></div>
																		</div>
																		
																		<!--Nationalitet-->
																	<?php
																		$nationalityQRY = mysqli_query($connection,"SELECT id, $nationality_column AS nationality FROM nationalities WHERE $nationality_column!='' GROUP BY $nationality_column ORDER BY $nationality_column ASC");
																	?>
																		<label for="nationality">Nationality <span class="input_compulsory">*</span></label>
																		<select class="form-control input_border_radius input-sm" name="nationality" id="nationality">
																			<option value="">Select Nationality</option>
																	<?php
																		while($nationalityRow=mysqli_fetch_assoc($nationalityQRY)){
																	?>
																		   <option value="<?= $nationalityRow['id'] ?>" title="<?= htmlspecialchars($nationalityRow['nationality']) ?>" <?= ($list['nationality'] == $nationalityRow['id']) ? 'selected' : '' ?>><?= htmlspecialchars($nationalityRow['nationality']) ?></option>
																	<?php
																		}
																	?>
																		</select>
																		<div class="mb-20"></div>
																	</div>
																	
																	<div class="form-group col-md-6 col-md-offset-3 col-sm-6 mb-0">
																		<!--Website-->
																		<label for="website">Website</label> 
																		<input type="text" class="form-control input_border_radius input-sm" id="website" placeholder="http://www.example.com" name="website" value="<?php echo $list['website']; ?>">
																		<span class="below-text"></span>
																		<div class="mb-20"></div>
																		
																		<!--Telephone-->
																		<label for="telephone">Telephone number</label>
																		<div class="form-group row mb-0">
																			<div class="form-group col-md-4 col-sm-5 col-xs-5 mb-0">
																			<?php
																				$countryCodeQRY = mysqli_query($connection,"SELECT country_code, $country_column FROM nationalities ORDER BY $country_column ASC");
																			?>
																				<select class="form-control input_border_radius input-sm" name="country_code" id="country_code">
																					<option value="">Country Code</option>
																			<?php
																				while($countryCodeRow=mysqli_fetch_assoc($countryCodeQRY)){
																			?>
																					<option value="<?= $countryCodeRow['country_code'] ?>" <?= ($list['country_code'] == $countryCodeRow['country_code']) ? 'selected' : '' ?> ><?= $countryCodeRow[$country_column].' (+'.$countryCodeRow['country_code'].')' ?></option>
																			<?php
																				}
																			?>
																				</select>
																			</div>
																			<div class="form-group col-md-8 col-sm-7 col-xs-7 mb-0">
																				<input type="text" class="form-control input_border_radius input-sm" id="telephone" placeholder="Telephone Number" value="<?php echo $list['telephone_no']; ?>" name="telephone">
																			</div>
																		</div>
																		<span class="below-text"></span>
																		<div class="mb-20"></div>
																		
																		<!--Profile-->
																		<label for="profile">Profile Title <span class="input_compulsory">*</span></label>
																		<input type="text" class="form-control input_border_radius input-sm" id="profile" placeholder="Profil Titel" value="<?php echo $list['profile_tile']; ?>" name="prof_title">
																		<span class="below-text"></span>
																		<div class="mb-20"></div>
																		
																		<!--Profil Beskrivelse-->
																		<label for="pro-descrp">Profile Description <span class="input_compulsory">*</span></label>
																		<textarea class="form-control input_border_radius input-sm" id="pro-descrp" rows="4" name="prof_beskrivelse" placeholder="Description"><?php echo $list['profile_beskrivelse']; ?></textarea>
																		<span class="below-text"></span>
																		<div class="mb-20"></div>
																	</div>
														<?php
															}else if($list['category_id']=="2" || $list['category_id']=="4"){
														?>
																	<div class="form-group col-md-6 col-md-offset-3 col-sm-6 mb-0">
																		<!--Business Name-->
																		<label for="street">Name of massage place <span class="input_compulsory">*</span></label>
																		<input type="text" name="bsname" class="form-control input_border_radius input-sm" id="bsname" placeholder="Company name" value="<?php echo $list['business_name']; ?>">
																		<div class="mb-20"></div>
																	
																		<!--Street-->
																		<label for="street">Street <span class="input_compulsory">*</span></label>
																		<input type="text" name="street" class="form-control input_border_radius input-sm" id="street" placeholder="Street" value="<?php echo $list['street']; ?>">
																		<div class="mb-20"></div>
																		
																		<!--Area-->
																		<label for="telephone">Postal Code <span class="input_compulsory">*</span></label> 
																		<input type="text" class="form-control input_border_radius input-sm typeahead tt-query" spellcheck="false"  placeholder="Postal Code" name="postal_code" value="<?php echo $list['post_code']; ?>" autocomplete="auto-off">
																		<span id="postal_code-error" class="error" for="postal_code"></span>
																		<span class="below-text"></span>
																		<div class="mb-20"></div>
																		
																		<!--Town-->
																		<label for="town">Town <span class="input_compulsory">*</span></label>
																		<input type="text" name="town" class="form-control input_border_radius input-sm" id="town" placeholder="City" value="<?php echo $list['city']; ?>">
																		<div class="mb-20"></div>
																		
																		<!--Website-->
																		<label for="website">Website</label> 
																		<input type="text" class="form-control input_border_radius input-sm" id="website" placeholder="http://www.example.com" name="website" value="<?php echo $list['website']; ?>">
																		<span class="below-text"></span>
																		<div class="mb-20"></div>
																	</div>
																	
																	<div class="form-group col-md-6 col-md-offset-3 col-sm-6 mb-0">
																		<!--Telephone-->
																		<label for="telephone">Telephone number</label>
																		<div class="form-group row mb-0">
																			<div class="form-group col-md-4 col-sm-5 col-xs-5 mb-0">
																			<?php
																				$countryCodeQRY = mysqli_query($connection,"SELECT country_code, $country_column FROM nationalities ORDER BY $country_column ASC");
																			?>
																				<select class="form-control input_border_radius input-sm" name="country_code" id="country_code">
																					<option value="">Country Code</option>
																			<?php
																				while($countryCodeRow=mysqli_fetch_assoc($countryCodeQRY)){
																			?>
																					<option value="<?= $countryCodeRow['country_code'] ?>" <?= ($list['country_code'] == $countryCodeRow['country_code']) ? 'selected' : '' ?> ><?= $countryCodeRow[$country_column].' (+'.$countryCodeRow['country_code'].')' ?></option>
																			<?php
																				}
																			?>
																				</select>
																			</div>
																			<div class="form-group col-md-8 col-sm-7 col-xs-7 mb-0">
																				<input type="text" class="form-control input_border_radius input-sm" id="telephone" placeholder="Telephone Number" value="<?php echo $list['telephone_no']; ?>" name="telephone">
																			</div>
																		</div>
																		<span class="below-text"></span>
																		<div class="mb-20"></div>
																		
																		<!--Profile-->
																		<label for="profile">Profile Title <span class="input_compulsory">*</span></label>
																		<input type="text" class="form-control input_border_radius input-sm" id="profile" placeholder="Profil Titel" value="<?php echo $list['profile_tile']; ?>" name="prof_title">
																		<span class="below-text"></span>
																		<div class="mb-20"></div>
																		
																		<!--Profil Beskrivelse-->
																		<label for="pro-descrp">Profile Description<span class="input_compulsory">*</span></label>
																		<textarea class="form-control input_border_radius input-sm" id="pro-descrp" rows="4" name="prof_beskrivelse" placeholder="Profile Description"><?php echo $list['profile_beskrivelse']; ?></textarea>
																		<span class="below-text"></span>
																		<div class="mb-20"></div>
				
																	</div>
														<?php
															}else if($list['category_id']=="3"){
														?>
																	<div class="form-group catg3">
																		
																		<!--Website-->
																		<label for="website">Website</label> 
																		<input type="text" class="form-control input_border_radius input-sm" id="website" placeholder="http://www.example.com" name="website" value="<?php echo $list['website']; ?>">
																		<span class="below-text"></span>
																		<div class="mb-20"></div>
																		
																		<!--Telephone-->
																		<label for="telephone">Telephone number</label>
																		<div class="form-group row mb-0">
																			<div class="form-group col-md-4 col-sm-5 col-xs-5 mb-0">
																			<?php
																				$countryCodeQRY = mysqli_query($connection,"SELECT country_code, $country_column FROM nationalities ORDER BY $country_column ASC");
																			?>
																				<select class="form-control input_border_radius input-sm" name="country_code" id="country_code">
																					<option value="">Country Code</option>
																			<?php
																				while($countryCodeRow=mysqli_fetch_assoc($countryCodeQRY)){
																			?>
																					<option value="<?= $countryCodeRow['country_code'] ?>" <?= ($list['country_code'] == $countryCodeRow['country_code']) ? 'selected' : '' ?> ><?= $countryCodeRow[$country_column].' (+'.$countryCodeRow['country_code'].')' ?></option>
																			<?php
																				}
																			?>
																				</select>
																			</div>
																			<div class="form-group col-md-8 col-sm-7 col-xs-7 mb-0">
																				<input type="text" class="form-control input_border_radius input-sm" id="telephone" placeholder="Telephone Number" value="<?php echo $list['telephone_no']; ?>" name="telephone">
																			</div>
																		</div>
																		<span class="below-text"></span>
																		<div class="mb-20"></div>
																		
																		<!--Profile-->
																		<label for="profile">Profile Title <span class="input_compulsory">*</span></label>
																		<input type="text" class="form-control input_border_radius input-sm" id="profile" placeholder="Profil Titel" value="<?php echo $list['profile_tile']; ?>" name="prof_title">
																		<span class="below-text"></span>
																		<div class="mb-20"></div>
																		
																		<!--Profil Beskrivelse-->
																		<label for="pro-descrp">Profile Description <span class="input_compulsory">*</span></label>
																		<textarea class="form-control input_border_radius input-sm" id="pro-descrp" rows="4" name="prof_beskrivelse" placeholder="Profile Description"><?php echo $list['profile_beskrivelse']; ?></textarea>
																		<span class="below-text"></span>
																		<div class="mb-20"></div>
				
																	</div>
														<?php
															}
														?>
																	<div class="form-group col-md-6 col-md-offset-3 col-sm-12">
																		<label class="mb-15">Services Offered</label>
																		<?php
																			$more_ads_services_collapse = false;
																			$adservicesQRY = mysqli_query($connection,"SELECT id, $adservice_column FROM adservices ORDER BY $adservice_column ASC");
																			$adservicesRowCount = mysqli_num_rows($adservicesQRY);
																			if($adservicesRowCount > 14){
																		?>
																				<a class="more_ads_services" id="more_ads_services" data-toggle="collapse" data-parent="#more_ads_services_accordion" href="#more_ads_services_collapse"><i class="fa fa-angle-double-down mr-5" aria-hidden="true"></i><label> More</label></a>
																		<?php
																			}
																		?>
																		<div class="form-group mb-0">
																	<?php
																		$adservicesRowCount = 1;
																		$user_adservice = array();
																		$adServicesUserQRY = mysqli_query($connection,"SELECT * FROM ads_adservices WHERE ad_id=".$list['id']);
																		while($adServicesUserRow=mysqli_fetch_assoc($adServicesUserQRY)){
																			$user_adservice[] = $adServicesUserRow['adservice_id'];
																		}
																		
																		$adservicesQRY = mysqli_query($connection,"SELECT id, $adservice_column FROM adservices ORDER BY $adservice_column ASC");
																		while($adservicesRow=mysqli_fetch_assoc($adservicesQRY)){
																			if($adservicesRowCount == 15 && !$more_ads_services_collapse){
																				$more_ads_services_collapse = true;
																				echo '<div id="more_ads_services_collapse" class="panel-collapse collapse out">';
																			}
																	?>
																			<div class="form-group col-lg-6 col-md-6 col-sm-6 col-xs-12">
																				<input class="adserviceCheckbox" type="checkbox" name="adservices_values[]" id="adservices_values_<?= $adservicesRow['id'] ?>" value="<?= $adservicesRow['id'] ?>" <?= (in_array($adservicesRow['id'], $user_adservice)) ? 'checked' : '' ?>>
																				<label class="adserviceLabel" for="adservices_values_<?= $adservicesRow['id'] ?>"><?= $adservicesRow[$adservice_column] ?></label>
																			</div>
																	<?php
																			$adservicesRowCount++;
																		}
																		if($more_ads_services_collapse){
																			echo '</div>';
																		}
																	?>
																		</div>
																		<span class="below-text"></span>
																		<div class="mb-20"></div>
																	</div>
																</div>
																<div align="center">
																	<div>
																		<input type="submit" name="edit" class="btn btn-ad" value="Save" style="margin-bottom: 10px;">
																	</div>
																</div>
															</form>
															
												
										 
										 <?php }?>									
							  
									
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
		<?php
			if($page_ad_active == 1 || $page_top_ad_active == 1 || $page_left_ad_active == 1 || $page_right_ad_active == 1 || WEBSITE_PAGE_LAYOUT=="small"){
		?>
			    <div class="col-sm-12 col-md-1 col-xs-12 col-lg-1"><?=$right_side_banner?></div>
		<?php
			}
		?>
			</div>
        </section>
        
        <footer id="footer">
            <div class="footer-wrapper">
                <?php include_once 'footer.php';  ?>
            </div>
        </footer>
    </div>

<?php include_once 'js_zone.php'; ?>
<!--Core js-->
<script>	
	$(document).ready(function(){
		$('#event_register_type').on('change', function() {		 
		  	if (this.value == 'Email'){
				$(".event_email").show();
				$(".event_phone").hide();
		  	}else if (this.value == 'Phone'){
				$(".event_email").hide();
				$(".event_phone").show();
		  	}else{
				$(".event_email").hide();
				$(".event_phone").hide();
			}		     
		});	
		
		if ( $('#services').val() == '1'){
			$("#business").show();
		}
		else{
			$("#business").hide();
		}
		
		if ( $('#services').val() == '2'){
			$("#business1").show();
		}
		else{
			$("#business1").hide();
		}
		
		if ( $('#services').val() == '3'){
			$("#business1").show();
		}
		
		$('#services').on('change', function() {
		    $('.radius').val('');
			$('.incall_postal').val('');
			$('.outcall_postal').val('');
		  	if ( this.value == '1'){
				$("#business").show();
			}
			else{
				$("#business").hide();
			}
			
			if ( this.value == '2'){
				$("#business1").show();
			}
			else{
				$("#business1").hide();
			}
			
			if ( this.value == '3'){
				$("#business1").show();
			}
		});
	});
	
	$(document).ready(function(){
		if ( $('#Kon').val() == '1' || $('#Kon').val() == '3'){
			$("#Bryst-dropdown").show();
		}
		else{
			$("#Bryst-dropdown").hide();
		}
		$('#Kon').on('change', function() {
			$('#Bryst').val('');
			if ( this.value == '1' || this.value == '3'){
				$("#Bryst-dropdown").show();
			}
			else{
				$("#Bryst-dropdown").hide();
			}
		});
	});
</script>
	
<script>
	var abc = 0;      // Declaring and defining global increment variable.
	$(document).ready(function() {
		//  To add new input file field dynamically, on click of "Add More Files" button below function will be executed.
		$('#add_more').click(function() {
			$(this).before($("<div/>", {
				/*id: 'filediv'*/
			}).fadeIn('slow').append($("<input/>", {
				name: 'image[]',
				type: 'file',
				/*id: 'file'*/
			}), $("")));
		});
		// Following function will executes on change event of file input to select different file.
	
	});
</script>

<style type="text/css">
   .mobileShow { 
   		display: none;
	}
   /* Smartphone Portrait and Landscape */
   @media only screen
   and (min-device-width : 320px)
   and (max-device-width : 480px){ .mobileShow { display: inline;padding-left:160px;}}
</style>

<script>
	$().ready(function() {
		jQuery.validator.addMethod("numbersonly", function(value, element) {
			return this.optional(element) || /^[0-9]+$/i.test(value);
		}, "Es sind nur numerische Werte zulässig"); 

		// validate signup form on keyup and submit
		$("#signupForm").validate({
			rules: {
				bsname: "required",
				service: "required",
				incall_postal: "required",
				outcall_postal: "required",
				postal_code: "required",
				alder: "required",
				kon: "required",
				bryst: "required",
				height: "required",
				weight: "required",
				street: "required",
				radius: "required",
				town: "required",
				nationality: "required",
				website: {
					required: false,
					 url: true
				},
				telephone: {
					maxlength: 15,
					numbersonly: true
				},
				country_code: {
					required: function(element){
						return $("#telephone").val().length > 0;
					}
    				},
				prof_title: {
					required: true,
					maxlength: 130
				},			
				prof_beskrivelse: {
					required: true,
					minlength: 100
				},
				event_place: "required",
				event_postal_code: "required",
				event_street: "required",
				/*event_town: "required",*/
				event_register_type: "required",
				event_email: {
					required: true,
					email: true
				},
				event_telephone: {
					required: true,
					maxlength: 15,
					numbersonly: true
				},
				event_country_code: {
					required: function(element){
						return $("#event_telephone").val().length > 0;
					}
    			},
				event_title: {
					required: true,
					maxlength: 130
				},
				
				event_description: {
					required: true,
					minlength: 100
				},
				event_date: {
					required: true					 
				},
				time_from: {
					required: true					 
				},
				time_to: {
					required: true					 
				}
			},
			messages: {
				bsname: "Bitte geben Sie den Firmennamen an",
				service: "Bitte wählen Sie den Service aus",
				incall_postal: "Bitte geben Sie die Postleitzahl ein",
				outcall_postal: "Bitte geben Sie die Postleitzahl ein",
				postal_code: "Bitte geben Sie die Postleitzahl ein",
				alder: "Bitte Alter auswählen",
				kon: "Bitte wähle ein Geschlecht",
				bryst: "Bitte wählen Sie die Brustgröße",
				height: "Bitte wählen Sie die Höhe",
				weight: "Bitte wähle Gewicht",
				street: "Bitte geben Sie eine Straße ein",
				radius: "Bitte wähle den Radius",
				town: "Bitte geben Sie die Stadt ein",
				nationality: "Bitte wählen Sie die Nationalität",
				website: {
					url: "Bitte geben Sie eine gültige URL ein, einschließlich http:// oder https://",
				},
				telephone: {
					maxlength: "Geben Sie eine gültige Telefonnummer ein"
				},
				country_code: "Ländercode auswählen",
				prof_title: {
					required: "Bitte geben Sie den Profiltitel ein",
					maxlength: "Es sind maximal 130 Zeichen zulässig"
				},
				prof_beskrivelse: {
					required: "Bitte geben Sie eine Beschreibung ein",
					minlength: "Bitte geben Sie min. 100 Zeichen ein"
				},
				event_place: "Please enter place",
				event_postal_code: "Please enter postal code",
				event_street: "Please enter street",
				/*event_town: "Please enter city",*/
				event_register_type: "Please select registration type",	
				event_telephone: {
					maxlength: "Enter valid telephone number 10 digit without 0 in the front",
				},
				event_country_code: "Please select country code",		
				event_title: {
					required: "Please enter a event title",
					maxlength: "Maximum 130 characters are allowed"
				},
				event_description: {
					required: "Please enter description",
					minlength: "Please enter min 100 characters"
				},
				event_date: {
					required: "Please enter date"					 
				},
				time_from: {
					required: "Please select time from"					 
				},
				time_to: {
					required: "Please select time to"					 
				},
			
			}
		});

		$('.incall_postal').on('focus keyup blur', function() {
	    	var val = $(this).val();
			$.ajax({
		        url:'<?= SUB_URL ?>/services/search/search_postal',
		        type:'post',
		        data:{trans:'1',key:val},
		        success:function (data) {
		        	if(data == 0){
		        		document.getElementById('incall_postal-error').innerHTML = 'Bitte wählen Sie die richtige Postleitzahl';
					}else{
						document.getElementById('incall_postal-error').innerHTML = '';
					}
		        }
		    });
		});
		$('.outcall_postal').on('focus keyup blur', function() {
	    	var val = $(this).val();
			$.ajax({
		        url:'<?= SUB_URL ?>/services/search/search_postal',
		        type:'post',
		        data:{trans:'1',key:val},
		        success:function (data) {
		        	if(data == 0){
		        		document.getElementById('outcall_postal-error').innerHTML = 'Bitte wählen Sie die richtige Postleitzahl';
					}else{
						document.getElementById('outcall_postal-error').innerHTML = '';
					}
		        }
		    });
		});
		$('.postal_code').on('focus keyup blur', function() {
	    	var val = $(this).val();
			$.ajax({
		        url:'<?= SUB_URL ?>/services/search/search_postal',
		        type:'post',
		        data:{trans:'1',key:val},
		        success:function (data) {
		        	if(data == 0){
		        		document.getElementById('postal_code-error').innerHTML = 'Bitte wählen Sie die richtige Postleitzahl';
					}else{
						document.getElementById('postal_code-error').innerHTML = '';
					}
		        }
		    });
		});
		
		$('#more_ads_services').click(function(event){
	    	event.preventDefault();
	    	if($(this).find("i").hasClass("fa-angle-double-down")){
	    		$(this).find("i").removeClass("fa-angle-double-down");
				$(this).find("i").addClass("fa-angle-double-up");	
	    	}else{
	    		$(this).find("i").removeClass("fa-angle-double-up");
	    		$(this).find("i").addClass("fa-angle-double-down");
	    	}
	    });
	});
</script>

</body>
</html>

Al-HUWAITI Shell