![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/www/ondjoweb/admin/ |
<?php session_start(); include('includes/config.php'); error_reporting(0); if(strlen($_SESSION['login'])==0) { header('location:index.php'); } else{ // Code for Forever deletionparmdel if($_GET['action']=='del' && $_GET['rid']) { $id=intval($_GET['rid']); $query=mysqli_query($con,"delete from carro_anunciado where id='$id'"); $delmsg="Dado eliminado permanentemente"; } if($_GET['action']=='ative' && $_GET['rid']) { $id=intval($_GET['rid']); $query=mysqli_query($con,"update carro_anunciado set estado='ativo' where id='$id'"); $ativemsg="Dado foi Ativado"; } ?> <!DOCTYPE html> <html lang="pt"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title> OndjoWEB| CMS</title> <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/core.css" rel="stylesheet" type="text/css" /> <link href="assets/css/components.css" rel="stylesheet" type="text/css" /> <link href="assets/css/icons.css" rel="stylesheet" type="text/css" /> <link href="assets/css/pages.css" rel="stylesheet" type="text/css" /> <link href="assets/css/menu.css" rel="stylesheet" type="text/css" /> <link href="assets/css/responsive.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="../plugins/switchery/switchery.min.css"> <script src="assets/js/modernizr.min.js"></script> </head> <body class="fixed-left"> <!-- Begin page --> <div id="wrapper"> <!-- Top Bar Start --> <?php include('includes/topheader.php');?> <!-- ========== Left Sidebar Start ========== --> <?php include('includes/leftsidebar.php');?> <!-- Left Sidebar End --> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <div class="content-page"> <!-- Start content --> <div class="content"> <div class="container"> <div class="row"> <div class="col-xs-12"> <div class="page-title-box"> <h4 class="page-title">Anúncios expirados</h4> <ol class="breadcrumb p-0 m-0"> <li> <a href="#">Anúncios </a> </li> </ol> <div class="clearfix"></div> </div> </div> </div> <!-- end row --> <div class="row"> <div class="col-sm-6"> <?php if($msg){ ?> <div class="alert alert-success" role="alert"> <strong>Sucesso! </strong> <?php echo htmlentities($msg);?> </div> <?php } ?> <?php if($ativemsg){ ?> <div class="alert alert-success" role="alert"> <strong>Boas! </strong> <?php echo htmlentities($ativemsg);?></div> <?php } ?> <?php if($delmsg){ ?> <div class="alert alert-danger" role="alert"> <strong>Oh pá! </strong> <?php echo htmlentities($delmsg);?></div> <?php } ?> </div> <div class="row"> <div class="col-md-12"> <div class="demo-box m-t-20"> <div class="table-responsive"> <table class="table m-0 table-colored-bordered table-bordered-danger"> <thead> <tr> <th> Id</th> <th>Marca</th> <th>Modelo</th> <th>Acção</th> </tr> </thead> <tbody> <?php $query=mysqli_query($con,"Select id,marca,modelo from carro_anunciado where estado='expirado' order by marca asc"); $cnt=1; while($row=mysqli_fetch_array($query)) { ?> <tr> <td><?php echo htmlentities($row['id']);?></td> <td><?php echo htmlentities($row['marca']);?></td> <td><?php echo htmlentities($row['modelo']);?></td> <td> <a href="manage-anuncio-e.php?rid=<?php echo htmlentities($row['id']);?>&&action=ative"> <i class="fa fa-thumbs-up" style="color: #047F03"></i></a> <a href="manage-anuncio-e.php?rid=<?php echo htmlentities($row['id']);?>&&action=del"> <i class="fa fa-trash-o" style="color: #000000"></i></a> </td> </tr> <?php $cnt++; } ?> </tbody> </table> </div> </div> </div> </div> <!--- end row --> </div> <!-- container --> </div> <!-- content --> <?php include('includes/footer.php');?> </div> </div> <!-- END wrapper --> <script> var resizefunc = []; </script> <!-- jQuery --> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/bootstrap.min.js"></script> <script src="assets/js/detect.js"></script> <script src="assets/js/fastclick.js"></script> <script src="assets/js/jquery.blockUI.js"></script> <script src="assets/js/waves.js"></script> <script src="assets/js/jquery.slimscroll.js"></script> <script src="assets/js/jquery.scrollTo.min.js"></script> <script src="../plugins/switchery/switchery.min.js"></script> <!-- App js --> <script src="assets/js/jquery.core.js"></script> <script src="assets/js/jquery.app.js"></script> </body> </html> <?php } ?>