File manager - Edit - /home/familylifersmpc/htdocs/www.familylifersmpc.com/notifs.php
Back
<?php session_start(); error_reporting(0); include('includes/config.php'); $sid = $_SESSION['alogin']; if (strlen($_SESSION['alogin']) == "") { header("Location: login.php"); echo $_SESSION["uname"]; echo '<a href="login.php"><span>Logout</span></a></li>'; } else { $con = "update tblnotif set CLICKED=1 where USERID='" . $sid . "'"; $chngpwd1 = $dbh->prepare($con); $chngpwd1->execute(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" href="favicon.ico" type="image/icon type"> <?php $sql = "SELECT * FROM tblsettings"; $query = $dbh->prepare($sql); $query->execute(); $results = $query->fetchAll(PDO::FETCH_OBJ); $cnt = 1; if ($query->rowCount() > 0) { foreach ($results as $result) { ?> <?php $BGCOLOR = $result->BGCOLOR; $COLOR1 = $result->COLOR1; $COLOR2 = $result->COLOR2; ?> <?php $cnt = $cnt + 1; } } ?> <meta name="theme-color" content="<?php echo htmlentities($BGCOLOR); ?>" /> <title>Notifications</title> <link rel="stylesheet" href="css/bootstrap.min.css" media="screen"> <link rel="stylesheet" href="css/font-awesome.min.css" media="screen"> <link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen"> <link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen"> <link rel="stylesheet" href="css/toastr/toastr.min.css" media="screen"> <link rel="stylesheet" href="css/icheck/skins/line/blue.css"> <link rel="stylesheet" href="css/icheck/skins/line/red.css"> <link rel="stylesheet" href="css/icheck/skins/line/green.css"> <link rel="stylesheet" href="css/main.css" media="screen"> <script src="js/modernizr/modernizr.min.js"></script> </head> <body class="top-navbar-fixed f" onload="myFunction()"> <div class="main-wrapper"> <?php include('includes/topbar.php'); ?> <div class="content-wrapper"> <div class="content-container"> <?php include('includes/leftbar.php'); ?> <div class="main-page"> <div class="container-fluid"> <div class="row breadcrumb-div"> <div class="col-md-0"> <ul class="breadcrumb"> <li><a href="dashboard.php"><i class="fa fa-home"></i><strong> Home</strong></a></li> <li class="active"> <a> Notifications</a></li> </ul> </div> </div> <br> <table id="example2" class="display table table-striped" cellspacing="0" width="100%"> <div class="container-fluid"> <thead> <tr> <th>Notifications</th> </tr> </thead> <tbody> <?php $sql = "SELECT * FROM tblnotif WHERE USERID='" . $sid . "' ORDER BY ID DESC"; $query = $dbh->prepare($sql); $query->execute(); $results = $query->fetchAll(PDO::FETCH_OBJ); $cnt = 1; if ($query->rowCount() > 0) { foreach ($results as $result) { ?> <tr> <td><strong style="font-size:20px"><?php echo htmlentities($result->TITLE); ?></strong><br> <?php echo htmlentities($result->DESCRIPTION); ?> <br><br> <p style="text-align: right"> <strong> <?php echo htmlentities($result->DDATE); ?></strong></p> </td> </tr> <?php $cnt = $cnt + 1; } } ?> </tbody> </table> </div> </div> <!-- /.content-container --> </div> <!-- /.content-wrapper --> </div> <!-- /.main-wrapper --> <script src="js/jquery/jquery-2.2.4.min.js"></script> <script src="js/jquery-ui/jquery-ui.min.js"></script> <script src="js/bootstrap/bootstrap.min.js"></script> <script src="js/pace/pace.min.js"></script> <script src="js/lobipanel/lobipanel.min.js"></script> <script src="js/iscroll/iscroll.js"></script> <script src="js/prism/prism.js"></script> <script src="js/waypoint/waypoints.min.js"></script> <script src="js/counterUp/jquery.counterup.min.js"></script> <script src="js/amcharts/amcharts.js"></script> <script src="js/amcharts/serial.js"></script> <script src="js/amcharts/plugins/export/export.min.js"></script> <link rel="stylesheet" href="js/amcharts/plugins/export/export.css" type="text/css" media="all" /> <script src="js/amcharts/themes/light.js"></script> <script src="js/toastr/toastr.min.js"></script> <script src="js/icheck/icheck.min.js"></script> <script src="js/main.js"></script> <script src="js/task-list.js"></script> <script src="js/DataTables/datatables.min.js"></script> <script> $(function($) { $('#example').DataTable(); $('#example2').DataTable({ //"scrollY": "400px", "scrollCollapse": false, "paging": true, "searching": true, "Paginate": true, "bLengthChange": false, "bFilter": false, "bInfo": true, "bSort": false, "pageLength": 5, "language": { "emptyTable": "You have no notifications yet." } }); $('#example3').DataTable(); }); </script> </body> </html> <?php } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.17 |
proxy
|
phpinfo
|
Settings