file:///home/developper/svn/phpcompta/branches/rel530 ........ r3887 | danydb | 2010-12-27 22:48:49 +0100 (Mon, 27 Dec 2010) | 2 lines remove useless tags ........ r3888 | danydb | 2010-12-27 23:35:12 +0100 (Mon, 27 Dec 2010) | 2 lines Date in doc to generate ........ r3889 | danydb | 2010-12-28 00:13:19 +0100 (Tue, 28 Dec 2010) | 1 line Fix date problème in customer/supplier follow up ........ r3890 | danydb | 2010-12-28 01:09:39 +0100 (Tue, 28 Dec 2010) | 2 lines size align to right ........ r3891 | danydb | 2010-12-28 01:49:26 +0100 (Tue, 28 Dec 2010) | 2 lines order the attribute to add by name ........ r3892 | danydb | 2010-12-29 15:00:09 +0100 (Wed, 29 Dec 2010) | 2 lines Bug cannot clone forecast ........ r3893 | danydb | 2011-01-03 17:45:34 +0100 (Mon, 03 Jan 2011) | 1 line Order properly the audit ........
84 lines
1.8 KiB
PHP
84 lines
1.8 KiB
PHP
<?php
|
|
/*
|
|
* This file is part of PhpCompta.
|
|
*
|
|
* PhpCompta is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* PhpCompta is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with PhpCompta; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
/* $Revision$ */
|
|
|
|
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
|
|
|
/*!\file
|
|
* \brief let you see the list of the connexion
|
|
*/
|
|
|
|
?>
|
|
<DIV class="content" style="width:80%;margin-left:10%">
|
|
<?php
|
|
|
|
$cn=new Database();
|
|
$cn->exec_sql("select ac_user,ac_ip,to_char(ac_date,'DD.MM.YYYY HH24:MI') as fmt_date,ac_state,ac_module from audit_connect order by ac_datedesc ");
|
|
?>
|
|
<TABLE CLASS="result" style="border-collapse:separate;border-spacing:2">
|
|
<tr>
|
|
<th>Utilisateur </th>
|
|
<th>Date </th>
|
|
<th>Adresse </th>
|
|
<th>Module</th>
|
|
<th> Résultat</th>
|
|
</tr>
|
|
<TR>
|
|
<?php
|
|
$max=$cn->count();
|
|
for ($i=0;$i < $max ;$i++):
|
|
$r=$cn->fetch($i);
|
|
?>
|
|
<td>
|
|
<?=h($r['ac_user']);?>
|
|
</td>
|
|
|
|
<td>
|
|
<?=$r['fmt_date'];?>
|
|
</td>
|
|
|
|
<td>
|
|
<?=$r['ac_ip'];?>
|
|
</td>
|
|
|
|
<td>
|
|
<?=$r['ac_module'];?>
|
|
</td>
|
|
|
|
|
|
<?
|
|
switch ( $r['ac_state'] )
|
|
{
|
|
case 'FAIL';
|
|
echo '<td style="background-color:red;color:white">';
|
|
break;
|
|
case 'SUCCESS';
|
|
echo '<td style="background-color:green;color:white">';
|
|
break;
|
|
|
|
}
|
|
?>
|
|
<?=$r['ac_state']?>
|
|
</td>
|
|
|
|
</TR>
|
|
<?
|
|
endfor;
|
|
?>
|
|
</DIV>
|