PHP Classes

File: adminChat.php

Recommend this page to a friend!
  Classes of Igor Herson Aquino de França   HelpDesk Chat   adminChat.php   Download  
File: adminChat.php
Role: Example script
Content type: text/plain
Description: admin to see on-line custumers
Class: HelpDesk Chat
Manage chat dialog sessions
Author: By
Last change:
Date: 15 years ago
Size: 633 bytes
 

Contents

Class file image Download
<?php
include('chat.class.php');
$chat = new chat();
?>
<html>
<head>
<META HTTP-EQUIV="Refresh" CONTENT="10 ; URL=<?=$_SERVER['PHP_SELF']?>">
    <title>Chat Admin</title>
    <script>
    function janela(session, admin){
     window.open('chatFrame.php?session='+session+'&admin='+admin,'page','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=360,height=370');
    }
       </script>
</head>
<body>
<?php
foreach($chat->showUsers() as $row){
    echo
"<a href=\"javascript: janela('$row[sessao]', '$chat->adminNick')\">".$row['email']."</a><br />";
}
?>
</body>
</html>
<?php
$chat
->clearStatus();
?>