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/en/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u107206879/domains/escort46.de/public_html/en/myprofile_eventsads_tabs.php
<?php								
		$ads = "SELECT * from advertise WHERE em_id=".$_SESSION['id']." AND adstatus!=2 and category_id=5 ORDER BY main_profile DESC, id";
		$ads_gallary = mysqli_query($connection,$ads);
		if(mysqli_num_rows($ads_gallary)>0){
?>
<h3><i class="fa fa-calendar mgr-10 profile-icon"></i> All Events </h3>
<h5>( To make changes in Event Click on " <button class="btn vd_btn btn-xs vd_bg-green" style="color: #fff"> Main </button> " and set it as the main profile )</h5>
<!--<h5>( To Buy Premium Plan for Ad Click on " <button class="btn menu-icon vd_bg-slateblue nopadding" style="color: #fff; width: 25px; height: 25px;"><i class="fa fa-cart-plus"></i></button> " )</h5>-->
<div class="mypro_table table-responsive">    
		<table class="beta table table-striped table-hover" id="adtbl" style="overflow:auto;" >
	  	<thead>
			<tr>
          	  	<th>ID</th>
				<?php if($detect->isMobile()){ ?>
				<th>Profile title</th>
				<?php } ?>
          	  	<th>Status</th>
          	  	<th>Boost</th>
          	  	<th>Repress <!--<a href="#"><i class="fa fa-exclamation-circle" aria-hidden="true"></i></a>-->
</th>
              	<th>Choice</th>
              	<th>Plan</th>
				<?php if($detect->isMobile()){ ?>
				<?php }else{ ?>
              	<th>Days left</th>
                <?php } ?>
                <th>Main profile</th>
				<?php if($detect->isMobile()){ ?>
				<th>Days left</th>
				<?php }else{ ?>
			  	<th>Profile title</th>
				<?php } ?>
			  	<th>Messages</th>
                <th>Start date</th>
		  	</tr>
	  	</thead>   
	  	<tbody>
        
  	<?php
		while($advrow=mysqli_fetch_array($ads_gallary)){
			$msgqry="SELECT count(*) as unread FROM off_messages WHERE receiver_id=".$advrow['id']." AND is_read=0";
			$unread = mysqli_fetch_array(mysqli_query($connection,$msgqry));
			$unread = $unread['unread'];
	?>
			<tr>
				
            	<td class="center" data-label="ID">
            		<a href="<?php echo SUB_URL; ?>/events/<?php echo $advrow["id"]."/".friendly_seo_string($advrow["profile_tile"]);?>" class="search_link" data-placement="top" data-toggle="tooltip" data-original-title="view" target="_blank" title="View Ad">
                   		<?php echo $advrow['id']; ?>
        			</a>
            	</td>
				<?php if($detect->isMobile()){ ?>
					<td class="center mob_center">
        			<a href="<?php echo SUB_URL; ?>/events/<?php echo $advrow["id"]."/".friendly_seo_string($advrow["profile_tile"]);?>" class="search_link" data-placement="top" data-toggle="tooltip" data-original-title="view" target="_blank" title="View Advert">
       				<?php echo substr($advrow['profile_tile'],0,50)."..."; ?>
        			</a>
        		</td>
				<?php } ?>
            	
            	<td class="center" data-label="Status">
          	<?php
				if($advrow['isApproved'] == 1){
					if($advrow['adstatus'] == 1){
						$status = 'Active';
						$class = 'label-success';
						$status_tooltip = 'Inactive this ad';
					}else {
						$status = 'Inactive';
						$class = 'label-danger';
						$status_tooltip = 'Active this ad';
					}
				?>
					<span id="status_change_<?php echo $advrow['id'] ?>" class="status_change label_status label <?php echo $class ?>" data-id="<?php echo $advrow['id'] ?>" data-status-id="<?php echo $advrow['adstatus'] ?>" data-placement="top" data-toggle="tooltip" data-original-title="<?php echo $status_tooltip ?>" title="<?php echo $status_tooltip ?>"><?php echo $status ?></span>
		<?php }else { ?>
					<span class="label_status label label-danger btn_purchase_quick" data-placement="top" data-toggle="tooltip" data-original-title="This ad is under review" title="This ad will appear after payment" data-id="<?php echo $advrow['id'] ?>">Awaiting Payment</span>
		<?php } ?>
				</td>
				
				<td class="center menu-action rounded-btn mob_right" data-label="Boost" align="right">
					<a id="boost_<?php echo $advrow['id'] ?>" class="boost_ad btn menu-icon vd_bg-slateblue" data-id="<?php echo $advrow['id'] ?>">
                   		<i class="fa fa-rocket" data-placement="top" data-toggle="tooltip" data-original-title="Boost" title="Boost Ad to the top on all pages"></i>
                	</a>
				</td>
				
				<td class="center menu-action rounded-btn mob_right" data-label="Repress">
					<a id="repress_<?php echo $advrow['id'] ?>" class="repress_ad btn menu-icon vd_bg-green" data-id="<?php echo $advrow['id'] ?>">
                   		<i class="fa fa-refresh" data-placement="top" data-toggle="tooltip" data-original-title="Repress" title="Repress Ad to the top"></i>
                	</a>
				</td>
				
				<td class="menu-action rounded-btn"  data-label="Choice">
					<button type="button" class="btn menu-icon vd_bg-slateblue btn_purchase" data-id="<?php echo $advrow['id'] ?>">
						<i class="fa fa-cart-plus" data-placement="top" data-toggle="tooltip" data-original-title="Upgrade" title="Upgrade"></i>
                	</button>
                	
					<button id='delete_ad_<?php echo $advrow["id"];?>' type="button" class="btn menu-icon vd_bg-red delete_ad" data-id="<?php echo $advrow["id"];?>" data-placement="top" data-toggle="modal" data-target="#confirmModal_<?php echo $advrow["id"];?>">
                   		<i class="fa fa-trash-o" data-placement="top" data-toggle="tooltip" data-original-title="delete" title="Delete ad"></i>
                	</button>

					<div class="modal fade" id="confirmModal_<?php echo $advrow["id"];?>" role="dialog">
						<div class="modal-dialog">
							<div class="modal-content modal-col-danger delete_modal">
								<div class="modal-header">
									<div class="icon-box">
										<i class="fa fa-times" aria-hidden="true"></i>
									</div>				
									<h4 class="modal-title">Are you sure?</h4>
								</div>
								<div class="modal-body">
									<p>Do you really want to delete this advert? <?php if($detect->isMobile()){?><br /> <?php } ?> This process cannot be undone!</p>
								</div>
								<div class="modal-footer modal_footer">
									<div class="modal_foot modal_foot_confirm">
										<button type="button" class="col-md-6 col-sm-6 col-xs-6 btn btn-default btn_modal btn-confirm-delete">Delete</button>
									</div>
									<div class="modal_foot modal_foot_close">
										<button type="button" class="col-md-6 col-sm-6 col-xs-6 btn btn-default btn_modal btn-confirm-close" data-dismiss="modal">Keep</button>
									</div>
								</div>
							</div>
						</div>
					</div>
					
					<a href="<?php echo SUB_URL; ?>/editad/<?php echo $advrow["id"];?>" class="btn menu-icon vd_bg-yellow">
                   		<i class="fa fa-pencil" data-placement="top" data-toggle="tooltip" data-original-title="edit" title="Edit Advert"></i>
                	</a>
				</td>
				
                <td class="center" data-label="Plan">
				<b>
            	<?php 
            		if($advrow['plan_id']==1){
						echo "BRONZE";
					}elseif($advrow['plan_id']==2){
						echo "SILVER";
					}elseif($advrow['plan_id']==3){
						echo "GOLD";
					}else{
						echo "FREE";
					}
            	?>	
            		</b>
            	</td>
            	<?php
            		if($advrow['plan_id']!=0){
						$datetime1 = new DateTime();
						$datetime2 = new DateTime($advrow['end_date']);
						$interval = $datetime1->diff($datetime2);
						$elapsed = $interval->format('%r%a Days');
					}else{
						$elapsed = 'Unlimited';
					}
            	?>
            		<?php if($detect->isMobile()){ ?>
				<?php }else{ ?>	
            	<td class="center" data-label="Days left"><a class="label_status btn vd_btn btn-xs vd_bg-slateblue" data-placement="top" data-toggle="tooltip" data-original-title="daysleft" title="Days Left"> <?php echo $elapsed ?> </a></td>
				<?php } ?>
            	<td class="center" data-label="Main profile">
			<?php	
				if($advrow["main_profile"] == 1){
			?>
            		<a href="#" class="label_status btn vd_btn btn-xs vd_bg-green disabled" data-placement="top" data-toggle="tooltip" data-original-title="main"> Main </a>
           	<?php
                }else{
			?>
                	<a href="mainprofile.php?profile_id=<?php echo $advrow["id"];?>" class="label_status btn vd_btn btn-xs vd_bg-green" data-placement="top" data-toggle="tooltip" data-original-title="main" title="Set as Main Profile"> Main </a>
           	<?php
                }
			?>
                </td>     
				
				<?php if($detect->isMobile()){ ?>
					<td class="center" data-label="Days left"><a class="label_status btn vd_btn btn-xs vd_bg-slateblue" data-placement="top" data-toggle="tooltip" data-original-title="daysleft" title="Days Left"> <?php echo $elapsed ?> </a></td>
				<?php }else{ ?>				
				<td class="center">
        			<a href="<?php echo SUB_URL; ?>/events/<?php echo $advrow["id"]."/".friendly_seo_string($advrow["profile_tile"]);?>" class="search_link" data-placement="top" data-toggle="tooltip" data-original-title="view" target="_blank" title="View Advert">
       				<?php echo substr($advrow['profile_tile'],0,50)."..."; ?>
        			</a>
        		</td>
				<?php } ?>
        		
				<td class="text-center mob_right" data-label="Messages"><b><?php echo $unread; ?></b></td>
				
            	<td class="center" data-label="Start date"><?php echo date("d-m-Y",strtotime($advrow['start_date'])); ?></td>
			</tr>	
  	<?php
		}
	?>                           
	  	</tbody>
	</table>
</div>
<div class="clearfix"></div>
<?php } ?>

Al-HUWAITI Shell