diff --git a/wol/www/index.php b/wol/www/index.php index 2145a463d6a780ffa114b5c179c9de771841b4ac..4c806522c90cdfff9272f12cc538e57416ee04be 100644 --- a/wol/www/index.php +++ b/wol/www/index.php @@ -54,26 +54,26 @@ if(!isset($action)){ <h2> Actions globables </h2> <form action="index.php" method="post"> <input type="hidden" name="action" value="upgradeAll"> - <input type="submit" value="Mettre à jour tous les postes" title="Mettre à jour tous les postes"> + <input type="submit" value="Mettre à jour tous les postes" title="Mettre à jour tous les postes (config)"> </form> <form action="index.php" method="post"> <input type="hidden" name="action" value="upgradeAllApt"> - <input type="submit" value="Mettre à jour tous les postes avec mises à jour APT" title="Mettre à jour tous les postes avec mises à jour APT"> + <input type="submit" value="Mettre à jour tous les postes avec mises à jour APT" title="Mettre à jour tous les postes (config + APT)"> </form> <h2> Gestion des postes </h2> <div class="table-responsive"> - <table class="table-striped table-bordered table-hover"> + <table class="table-striped table-bordered table-hover" style="text-align:center;"> <tr> - <th>Nom</th> - <th>IP(s)</th> - <th>MAC</th> - <th>Version Debian</th> - <th>Version Primtux</th> - <th>Nombre de mises à jour en attente</th> - <th>État git</th> - <th>Date dernier contact</th> - <th>Actions</th> + <th style="text-align:center;" >Nom</th> + <th style="text-align:center;" >IP(s)</th> + <th style="text-align:center;" >MAC</th> + <th style="text-align:center;" >Version Debian</th> + <th style="text-align:center;" >Version Primtux</th> + <th style="text-align:center;" >Mises à jour apt en attente</th> + <th style="text-align:center;" >État git</th> + <th style="text-align:center;" >Date dernier contact</th> + <th style="text-align:center;" >Actions</th> </tr> <?php $registry = array(); @@ -90,9 +90,9 @@ if(!isset($action)){ #echo "<td>".$entry[0]."</td>"; if($nb_infos > 4){ echo "<td>".$entry[4]."</td>"; - echo "<td>".$entry[5]."</td>"; + echo "<td>".str_replace('_', ' ', $entry[5])."</td>"; echo "<td>".$entry[3]."</td>"; - echo "<td> branche ".$entry[6].", ".$entry[7]." commits en retard</td>"; + echo "<td> branche ".$entry[6].", ".$entry[7]." commits en retard</td>"; }else{ echo "<td>NA</td>"; echo "<td>NA</td>"; @@ -112,12 +112,12 @@ if(!isset($action)){ <form action="index.php" method="post"> <input type="hidden" name="action" value="upgrade"> <input type="hidden" name="mac" value="<?php echo $entry[1]; ?>"> - <input type="submit" value="Mettre à jour" title="Mettre à jour"> + <input type="submit" value="Mise à jour config" title="Mettre à jour"> </form> <form action="index.php" method="post"> <input type="hidden" name="action" value="upgradeAPT"> <input type="hidden" name="mac" value="<?php echo $entry[1]?>;"> - <input type="submit" value="Mettre à jour + Apt" title="Mettre à jour + apt"> + <input type="submit" value="Mise à jour config + APT" title="Mettre à jour + apt"> </form> <?php echo "</td></tr>"; @@ -125,6 +125,19 @@ if(!isset($action)){ } ?> </table> + + <!-- Script to add titles to each td --> + <script language="javascript"> + $().ready(function(){ + titles=[]; + $('th').each(function(e,v){ + titles.push($(v).text()); + }); + $(' td').attr('title', function (index, attr) { + return titles[$(this).index()]; + }); + }); + </script> </div> <?php