Commit 49d2ebc5 authored by Laurent Joly's avatar Laurent Joly
Browse files

Correctif : conservation des variable lors d'un tri

parent c46d9b28
...@@ -164,33 +164,33 @@ if ($liste_poste) { ...@@ -164,33 +164,33 @@ if ($liste_poste) {
echo "<table cellspadding='2' cellspacing='1' border='0' align='center' bgcolor='black'>\n"; echo "<table cellspadding='2' cellspacing='1' border='0' align='center' bgcolor='black'>\n";
echo "<tr style='color:white'>\n"; echo "<tr style='color:white'>\n";
echo "<th width='120' rowspan='2'><a href='?tri="; echo "<th width='120' rowspan='2'><a href='?flag=".$get_flag."&uuid=".$get_uuid."&tri=";
if ($tri == 0) if ($tri == 0)
echo "1"; echo "1";
else else
echo "0"; echo "0";
echo "' style='color:" . $regular_lnk . "'>Nom du poste</a></th>\n"; echo "' style='color:" . $regular_lnk . "'>Nom du poste</a></th>\n";
echo "<th width='50' rowspan='2'>OS</th>\n"; echo "<th width='50' rowspan='2'>OS</th>\n";
echo "<th width='120'><a href='?tri="; echo "<th width='120'><a href='?flag=".$get_flag."&uuid=".$get_uuid."&tri=";
if ($tri == 2) if ($tri == 2)
echo "3"; echo "3";
else else
echo "2"; echo "2";
echo "' style='color:" . $regular_lnk . "'>Statut</a></th>\n"; echo "' style='color:" . $regular_lnk . "'>Statut</a></th>\n";
echo "<th width='180' colspan='2'>Nombre d'applications</th>\n"; echo "<th width='180' colspan='2'>Nombre d'applications</th>\n";
echo "<th width='200' rowspan='2'><a href='?tri="; echo "<th width='200' rowspan='2'><a href='?flag=".$get_flag."&uuid=".$get_uuid."&tri=";
if ($tri == 6) if ($tri == 6)
echo "7"; echo "7";
else else
echo "6"; echo "6";
echo "' style='color:" . $regular_lnk . "'>Date du dernier rapport</a></th>\n"; echo "' style='color:" . $regular_lnk . "'>Date du dernier rapport</a></th>\n";
echo "<th width='120' rowspan='2'><a href='?tri="; echo "<th width='120' rowspan='2'><a href='?flag=".$get_flag."&uuid=".$get_uuid."&tri=";
if ($tri == 8) if ($tri == 8)
echo "9"; echo "9";
else else
echo "8"; echo "8";
echo "' style='color:" . $regular_lnk . "'>Adresse IP</a></th>\n"; echo "' style='color:" . $regular_lnk . "'>Adresse IP</a></th>\n";
echo "<th width='160' rowspan='2'><a href='?tri="; echo "<th width='160' rowspan='2'><a href='?flag=".$get_flag."&uuid=".$get_uuid."&tri=";
if ($tri == 10) if ($tri == 10)
echo "11"; echo "11";
else else
...@@ -223,7 +223,7 @@ echo ">Autre</option>"; ...@@ -223,7 +223,7 @@ echo ">Autre</option>";
echo " </select>"; echo " </select>";
echo "</th>\n"; echo "</th>\n";
echo "<th width='90'>Total</th>\n"; echo "<th width='90'>Total</th>\n";
echo "<th width='90'><a href='?tri="; echo "<th width='90'><a href='?flag=".$get_flag."&uuid=".$get_uuid."&tri=";
if ($tri == 4) if ($tri == 4)
echo "5"; echo "5";
else else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment