PHP Classes

File: SERVER/AdminNotificationControlPanel.php

Recommend this page to a friend!
  Classes of Ettore Moretti   Xaja Notifier   SERVER/AdminNotificationControlPanel.php   Download  
File: SERVER/AdminNotificationControlPanel.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Xaja Notifier
Notify user browsing a site in real time with AJAX
Author: By
Last change: Update AdminNotificationControlPanel.php
Date: 8 years ago
Size: 3,129 bytes


Class file image Download
 * The administration frontEnd panel, Here we can control the connected users and send notifications
 * PHP version 5
 * @author Ettore Moretti <>
 * @version 1.0.0
$XS = new XajaAdminServer();
$UserData= $XS->getAllUser();
    <title>XajaNotification - Admin Example</title>
    <link href="" rel="stylesheet">
    <script src=""></script>
    <script src=""></script>
    <script src="js/dialog.js" type="text/javascript"></script>
    <script src="js/tablesorter.min.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
                $("#refresh").click(function () {

    <style type="text/css">
            /* tables */
        table.tablesorter {
            background-color: #CDCDCD;
            margin:10px 0pt 15px;
            font-size: 8pt;
            width: 100%;
            text-align: left;
        table.tablesorter thead tr th, table.tablesorter tfoot tr th {
            background-color: #e6EEEE;
            border: 1px solid #FFF;
            font-size: 8pt;
            padding: 4px;
        table.tablesorter thead tr .header {
            background-image: url(img/bg.gif);
            background-repeat: no-repeat;
            background-position: center right;
            cursor: pointer;
        table.tablesorter tbody td {
            color: #3D3D3D;
            padding: 4px;
            background-color: #FFF;
            vertical-align: top;
        table.tablesorter tbody tr.odd td {
        table.tablesorter thead tr .headerSortUp {
            background-image: url(img/asc.gif);
        table.tablesorter thead tr .headerSortDown {
            background-image: url(img/desc.gif);
        table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
        background-color: #8dbdd8;
    <H3>Xaja Notification Administration - Example</H3>
    <hr />
    <img id="refresh" style="width:40px; height:40px;" src="img/refresh.jpg" />
     <table id="myTable" class="tablesorter">
         <th>User last timestamp connection</th>
         <?php foreach ($UserData as $user): ?>
                 <td><?php echo $user['id']; ?></td>
                 <td><?php echo $user['last_client_timestamp'].' >>> <b>'.date('d/m/Y H:i:s',$user['last_client_timestamp']).'</b>'; ?></td>
                 <td><input id="button" type="button" value="Send a notification"></td>
         <?php endforeach;?>
     <input id="buttonToAll" type="button" value="Send to All">
     <div id="dialog" title="Notification sender" style="width: 1000px; height: auto;">
        <form action="" method="post">
                <textarea id="notification" name="notification" rows="10" cols="80" placeholder="Send..."></textarea>
        <div id="result"></div>