![]() 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 tblclubes where id='$id'"); $delmsg="Dado eliminado permanentemente"; } if($_GET['action']=='deative' && $_GET['rid']) { $id=intval($_GET['rid']); $query=mysqli_query($con,"update tblclubes set estado='expirado' where id='$id'"); $ativemsg="Dado foi Desativado"; } if($_GET['action']=='ativo' && $_GET['rid']) { $id=intval($_GET['rid']); $query=mysqli_query($con,"update tblclubes set estado='ativo' where id='$id'"); $activemsg="Dado ativo agora!"; } ?> <!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">Clubes ativos</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 } ?> <?php if($activemsg){ ?> <div class="alert alert-success" role="alert"> <strong>Boas! </strong> <?php echo htmlentities($pendmsg);?></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-primary"> <thead> <tr> <th>Logo</th> <th>Clube</th> <th>Presidente</th> <th>Treinador</th> <th>Acção</th> </tr> </thead> <tbody> <?php $getStaff = $_SESSION['staff']; if ($_SESSION['profile'] == "clube") { $query=mysqli_query($con,"Select * from tblclubes where estado='ativo' AND apelido_clube='$getStaff' order by nome_clube asc"); } if ($_SESSION['profile'] != "clube") { $query=mysqli_query($con,"Select * from tblclubes where estado='ativo' order by nome_clube asc"); } $cnt=1; while($row=mysqli_fetch_array($query)) { ?> <tr> <td><img width="22" height="22" class="imgPub" src="<?php echo "galeriafotos/logos/".$logotipo_clube.htmlentities($row['logotipo_clube']);?>" alt="Clube<?php echo htmlentities($row['apelido_clube']);?>"></td> <td><?php echo htmlentities($row['apelido_clube']);?></td> <td><?php echo htmlentities($row['presidente_clube']);?></td> <td><?php echo htmlentities($row['treinador']);?></td> <td> <a title="Desativar" href="lista-clube.php?rid=<?php echo htmlentities($row['id']);?>&action=deative"> <i class="fa fa-coffee" style="color: black"></i></a> <a title="Atualizar Clube Ativo" href="update-clube.php?rid=<?php echo htmlentities($row['id']);?>"> <i class="fa fa-pencil-square" style="color: orange"></i></a> <?php if($_SESSION['profile'] == "clube"){?> <a title="Eliminar" href="#"> <i class="fa fa-trash-o" style="color: #cccccc; cursor: not-allowed"></i></a> <?php }?> <?php if($_SESSION['profile'] != "clube"){?> <a title="Eliminar" href="lista-clube.php?rid=<?php echo htmlentities($row['id']);?>&action=del"> <i class="fa fa-trash-o" style="color: red"></i></a> <?php }?> </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 } ?>