1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
| <?
require('../../_conf/ouvre_base.php');
function affichage($log,$image)
{
echo '<li>'.$log.'</li>';
if ($log=='log1')
{$nomlog='';}
elseif($log=='log2')
{$nomlog='pac';}
else
{$nomlog=$log;}
$sql='SHOW TABLES FROM test LIKE \'tlistedossier'.$nomlog.'controle\'';
$Rssqlcont=mysql_query($sql,$oConn) or die(mysql_error());
if (mysql_num_rows($Rssqlcont)==1)
{
echo '<br>';
echo '<img src="../../internet/images/logos/'.$image.'" width="50" height="50" style="border:5px solid orange"> ';
echo 'Attention! Une opération de controle est déjà en cours sur les listings de ce logiciel.';
echo 'Lancer archivage';
echo '<br>';
}
else
{
echo '<br>';
echo '<img src="../../internet/images/logos/'.$image.'" width="50" height="50" style="border:5px solid green"> ';
echo 'lancer Controle des listings pour les techniciens';
echo '<br>';
}
?> <br>Liste des tables déjà archivées <br><br><?
$sqlliste='SHOW TABLES FROM test LIKE \'tlistedossier'.$nomlog.'2%\'';
$Rssql = mysql_query($sqlliste, $oConn);
while ($archive=mysql_fetch_array($Rssql))
{
echo $archive[0].'<br>';
}
}
?>
<html>
<head>
<title>Sans titre</title>
<link rel="STYLESHEET" type="text/css" href="../../_conf/admin.css">
<script src="../../_conf/functions.js" type="text/javascript"></script>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
</SCRIPT>
</head>
<body>
<ul>
<?
affichage('log1','log1.jpg');
affichage('log2','log2.jpg');
affichage('log3','log3.jpg');
?>
</ul>
</body>
</html>
<?
require('../../_conf/ferme_base.php');
?> |