Subversion Repositories ALCASAR

Rev

Rev 925 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log

<?php

echo <<<EOM
<title>Informations de l'utilisateur  $cn</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr><th>Gestion des usagers</th></tr>
        <tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
height="2"></td></tr>
</TABLE>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
        <tr bgcolor="#666666"><td>
        <TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
                <tr><td valign="middle" align="left">
<link rel="stylesheet" href="/css/style.css">
EOM;
if ($logged_now)
        print <<<EOM
<script Language="JavaScript">
<!--
        var start;
        var our_time;
        
        function startcounter() 
        {
                var start_date = new Date();
                start = start_date.getTime();
                our_time = $lastlog_session_time_jvs;
                showcounter();
        }

        function showcounter ()
        {
                var now_date = new Date();
                var diff = now_date.getTime() - start + our_time;
                        
                var hours = parseInt(diff / 3600000);
                if(isNaN(hours)) hours = 0;
                        
                var minutes = parseInt((diff % 3600000) / 60000);
                if(isNaN(minutes)) minutes = 0;
                        
                var seconds = parseInt(((diff % 3600000) % 60000) / 1000);
                if(isNaN(seconds)) seconds = 0;
                        
                var timeValue = " " ;
                timeValue += ((hours < 10) ? "0" : "") + hours;
                timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
                timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
                
                document.online.status.value = timeValue;
                setTimeout("showcounter()", 1000);
        }
        //-->
</script>
EOM;

print <<<EOM
<center>
<table border=0 width=550 cellpadding=0 cellspacing=0>
<tr valign=top>
<!--<td align=center><img src="images/title2.gif"></td>-->
</tr>
</table>
<table border=0 width=400 cellpadding=0 cellspacing=2>
EOM;

include("../html/user_toolbar.html.php");

print <<<EOM
</table>
<br>
<table border=0 width=540 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<table border=0 width=540 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=250>
        <table border=0 width=100% cellpadding=2 cellspacing=0>
        <tr bgcolor="#907030" align=right valign=top><th>
        <font color="white">Etat des connexions pour $login ($cn)</font>&nbsp;
        </th></tr>
        </table>
</td></tr>
<tr bgcolor="black" valign=top><td colspan=2>
        <table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
        <tr><td>
        <table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>

EOM;
if ($logged_now){
        print <<<EOM
        <form name="online" onSubmit="return(false);">
        <tr><td align=center bgcolor="#d0ddb0">
        L'utilisateur est <b>en ligne</b> depuis
        </td><td>
        $lastlog_time
        </td></tr>
        <tr><td align=center bgcolor="#d0ddb0">
        Dur&eacute;e des connexions
        </td><td>       
        <input type="text" name="status" size=10 value="$lastlog_session_time">
        </form>
        </td></tr>
EOM;
        require('../html/user_admin_userinfo.html.php');

}else if ($not_known)  print <<<EOM
        <tr><td align=center bgcolor="#d0ddb0">
        Cet utilisateur ne s'est <b>jamais</b> connect&eacute;
        </td><td>-
        </td></tr>
EOM;
else{
        print <<<EOM
        <tr><td align=center bgcolor="#d0ddb0">
        L'utilisateur <b>n'est pas connect&eacute;</b> actuellement<br>
        </td><td>-
        </td></tr>
        <tr><td align=center bgcolor="#d0ddb0">
        Derni&egrave;re connexion
        </td><td>
        $lastlog_time
        </td></tr>
        <tr><td align=center bgcolor="#d0ddb0">
        Dur&eacute;e de la connexion
        </td><td>
        $lastlog_session_time
        </td></tr>
EOM;
        require('../html/user_admin_userinfo.html.php');
}

print <<<EOM
        <tr><td align=center bgcolor="#d0ddb0">
        Sessions autoris&eacute;es
        </td><td>
        $msg
        </td></tr>
        <tr><td align=center bgcolor="#d0ddb0">
        Description compl&egrave;te de l'utilisateur
        </td><td>
        $descr
        </td></tr>
        </table>
        </table>
</table>

EOM;

if (is_file("../lib/$config[general_lib_type]/password_check.php"))
        include("../lib/$config[general_lib_type]/password_check.php");

echo <<<EOM
<br>
<table border=0 width=540 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=250>
        <table border=0 width=100% cellpadding=2 cellspacing=0>
        <tr bgcolor="#907030" align=right valign=top><th>
        <font color="white">Analyse</font>&nbsp;
        </th></tr>
        </table>
</td></tr>
<tr bgcolor="black" valign=top><td colspan=2>
        <table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
        <tr><td>
        <table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
        <tr><td align=center bgcolor="#d0ddb0">-</td><td align=center bgcolor="#d0ddb0"><b>mensuel</b></td><td align=center bgcolor="#d0ddb0"><b>hebdomadaire</b></td><td align=center bgcolor="#d0ddb0"><b>journalier</b></td><td align=center bgcolor="#d0ddb0"><b>par  session</b></td></tr>
        <tr><td align=center bgcolor="#d0ddb0"><b>limite</b></td><td>$monthly_limit</td><td>$weekly_limit</td><td>$daily_limit</td><td>$session_limit</td></tr>
        <tr><td align=center bgcolor="#d0ddb0"><b>dur&eacute;e utilis&eacute;e</b></td><td>$monthly_used</td><td>$weekly_used</td><td>$daily_used</td><td>$lastlog_session_time</td></tr>
        </table>
        <table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" va
lign=top>
        <tr><td align=center bgcolor="#d0ddb0"><b>Jour</b></td><td align=center bgcolor="#d0ddb0"><b>limite journali&egrave;re</b></td><td align=center bgcolor="#d0ddb0"><b>dur&eacute;e utilis&eacute;e</b></td><tr>
        <tr><td align=center bgcolor="#d0ddb0">dimanche</td><td>$daily_limit</td><td>$used[0]</td></tr>
        <tr><td align=center bgcolor="#d0ddb0">lundi</td><td>$daily_limit</td><td>$used[1]</td></tr>
        <tr><td align=center bgcolor="#d0ddb0">mardi</td><td>$daily_limit</td><td>$used[2]</td></tr>
        <tr><td align=center bgcolor="#d0ddb0">mercredi</td><td>$daily_limit</td><td>$used[3]</td></tr>
        <tr><td align=center bgcolor="#d0ddb0">jeudi</td><td>$daily_limit</td><td>$used[4]</td></tr>
        <tr><td align=center bgcolor="#d0ddb0">vendredi</td><td>$daily_limit</td><td>$used[5]</td></tr>
        <tr><td align=center bgcolor="#d0ddb0">samedi</td><td>$daily_limit</td><td>$used[6]</td></tr>
        </table></table>
</table>
<br>
<table border=0 width=540 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=200>
        <table border=0 width=100% cellpadding=2 cellspacing=0>
        <tr bgcolor="#907030" align=right valign=top><th>
        <font color="white">&Eacute;tat sur les 7 derniers jours</font>&nbsp;
        </th></tr>
        </table>
</td></tr>
<tr bgcolor="black" valign=top><td colspan=2>
        <table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
        <tr><td>
        <table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
        <tr><td align=center bgcolor="#d0ddb0">Nombre de connexions</td><td>
        <b><font color="darkblue">$tot_conns</font></b></td></tr>
        <tr><td align=center bgcolor="#d0ddb0">Dur&eacute;e cumul&eacute;e des connexions</td><td>
        <b><font color="darkblue">$tot_time</td></tr></td></tr>
        <tr><td align=center bgcolor="#d0ddb0">Identifications d&eacute;fectueuses</td><td>
        <b><font color="darkblue">$tot_badlogins</td></tr></td></tr>
        <tr><td align=center bgcolor="#d0ddb0">Upload</td><td>
        $tot_input</td></tr></td></tr>
        <tr><td align=center bgcolor="#d0ddb0">Download</td><td>
        $tot_output</td></tr></td></tr>
        <tr><td align=center bgcolor="#d0ddb0">Dur&eacute; moyenne</td><td>
        $avg_time</td></tr></td></tr>
        <tr><td align=center bgcolor="#d0ddb0">Upload moyen</td><td>
        $avg_input</td></tr></td></tr>
        <tr><td align=center bgcolor="#d0ddb0">Download moyen</td><td>
        $avg_output</td></tr></td></tr> 
        </table>
        </table>
</table>
<br>
EOM;

if ($user_info){
        echo <<<EOM
<table border=0 width=540 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=250>
        <table border=0 width=100% cellpadding=2 cellspacing=0>
        <tr bgcolor="#907030" align=right valign=top><th>
        <font color="white">Informations personnelles</font>
        </th></tr>
        </table>
</td></tr>
<tr bgcolor="black" valign=top><td colspan=2>
        <table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
        <tr><td>
        <table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>nom</b>
        </td>
        <td>
        $cn
        </td>
        </tr>
EOM;
        if ($config[general_prefered_lang] != 'en'){
                echo <<<EOM
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>nom ($config[general_prefered_lang_name])</b>
        </td>
        <td>
        $cn_lang
        </td>
        </tr>
EOM;
        }
        echo <<<EOM
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>service</b>
        </td>
        <td>
        $ou
        </td>
        </tr>
EOM;
        if ($config[general_prefered_lang] != 'en'){
                echo <<<EOM
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>service ($config[general_prefered_lang_name])</b>
        </td>
        <td>
        $ou_lang
        </td>
        </tr>
EOM;
        }
        echo <<<EOM
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>titre</b>
        </td>
        <td>
        $title
        </td>
        </tr>
EOM;
        if ($config[general_prefered_lang] != 'en'){
                echo <<<EOM
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>title ($config[general_prefered_lang_name])</b>
        </td>
        <td>
        $title_lang
        </td>
        </tr>
EOM;
        }
        echo <<<EOM
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>adresse</b>
        </td>
        <td>
        $address
        </td>
        </tr>
EOM;
        if ($config[general_prefered_lang] != 'en'){
                echo <<<EOM
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>adresse ($config[general_prefered_lang_name])</b>
        </td>
        <td>
        $address_lang
        </td>
        </tr>
EOM;
        }
        echo <<<EOM
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>adresse personnelle</b>
        </td>
        <td>
        $homeaddress
        </td>
        </tr>
EOM;
        if ($config[general_prefered_lang] != 'en'){
                echo <<<EOM
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>adresse personnelle ($config[general_prefered_lang_name])</b>
        </td>
        <td>
        $homeaddress_lang
        </td>
        </tr>
EOM;
        }
        echo <<<EOM
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>t&eacute;l&eacute;phone</b>
        </td>
        <td>
        $telephonenumber
        </td>
        </tr>
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>t&eacute;l&eacute;phone personnel</b>
        </td>
        <td>
        $homephone
        </td>
        </tr>
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>mobile</b>
        </td>
        <td>
        $mobile
        </td>
        </tr>
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>fax</b>
        </td>
        <td>
        $fax
        </td>
        </tr>
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>home page</b>
        </td>
        <td>
        <a href="$url" target=userpage onclick=window.open("$url","userpage","width=1000,height=550,toolbar=no,scrollbars=yes,resizable=yes") title="Aller à&agrave; la page d'accueil de l'utilisateur">$url</a>
        </td>
        </tr>
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>e-mail</b>
        </td>
        <td>
        <a href="mailto: $mail" title="Envoyer un email">$mail</a>
        </td>
        </tr>
        <tr>
        <td align=center bgcolor="#d0ddb0">
        <b>e-mail alias</b>
        </td>
        <td>
        <a href="mailto: $mailalt" title="Envoyer un email">$mailalt</a>
        </td>
        </tr>
        </table>
        </table>
</table>

EOM;
}
?>
        <tr>    <td colspan=3 height=1></td></tr>
        <tr>    <td colspan=3>
        </table>
<?php
if ($logged_now)
        print <<<EOM
<script Language="JavaScript">
        startcounter();
</script>
EOM;
?>
                </TD></TR>
        </TABLE>
        </td></tr>
</TABLE>

</body>
</html>