Skip to content
Snippets Groups Projects
Verified Commit 49529794 authored by David Beniamine's avatar David Beniamine
Browse files

Headers

parent 187eb600
Branches
Tags
No related merge requests found
...@@ -54,26 +54,26 @@ if(!isset($action)){ ...@@ -54,26 +54,26 @@ if(!isset($action)){
<h2> Actions globables </h2> <h2> Actions globables </h2>
<form action="index.php" method="post"> <form action="index.php" method="post">
<input type="hidden" name="action" value="upgradeAll"> <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>
<form action="index.php" method="post"> <form action="index.php" method="post">
<input type="hidden" name="action" value="upgradeAllApt"> <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> </form>
<h2> Gestion des postes </h2> <h2> Gestion des postes </h2>
<div class="table-responsive"> <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> <tr>
<th>Nom</th> <th style="text-align:center;" >Nom</th>
<th>IP(s)</th> <th style="text-align:center;" >IP(s)</th>
<th>MAC</th> <th style="text-align:center;" >MAC</th>
<th>Version&nbsp;Debian</th> <th style="text-align:center;" >Version Debian</th>
<th>Version&nbsp;Primtux</th> <th style="text-align:center;" >Version Primtux</th>
<th>Nombre de mises à jour en attente</th> <th style="text-align:center;" >Mises&nbsp;à&nbsp;jour apt&nbsp;en&nbsp;attente</th>
<th>État&nbsp;git</th> <th style="text-align:center;" >État&nbsp;git</th>
<th>Date dernier contact</th> <th style="text-align:center;" >Date dernier contact</th>
<th>Actions</th> <th style="text-align:center;" >Actions</th>
</tr> </tr>
<?php <?php
$registry = array(); $registry = array();
...@@ -90,9 +90,9 @@ if(!isset($action)){ ...@@ -90,9 +90,9 @@ if(!isset($action)){
#echo "<td>".$entry[0]."</td>"; #echo "<td>".$entry[0]."</td>";
if($nb_infos > 4){ if($nb_infos > 4){
echo "<td>".$entry[4]."</td>"; echo "<td>".$entry[4]."</td>";
echo "<td>".$entry[5]."</td>"; echo "<td>".str_replace('_', ' ', $entry[5])."</td>";
echo "<td>".$entry[3]."</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{ }else{
echo "<td>NA</td>"; echo "<td>NA</td>";
echo "<td>NA</td>"; echo "<td>NA</td>";
...@@ -112,12 +112,12 @@ if(!isset($action)){ ...@@ -112,12 +112,12 @@ if(!isset($action)){
<form action="index.php" method="post"> <form action="index.php" method="post">
<input type="hidden" name="action" value="upgrade"> <input type="hidden" name="action" value="upgrade">
<input type="hidden" name="mac" value="<?php echo $entry[1]; ?>"> <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>
<form action="index.php" method="post"> <form action="index.php" method="post">
<input type="hidden" name="action" value="upgradeAPT"> <input type="hidden" name="action" value="upgradeAPT">
<input type="hidden" name="mac" value="<?php echo $entry[1]?>;"> <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> </form>
<?php <?php
echo "</td></tr>"; echo "</td></tr>";
...@@ -125,6 +125,19 @@ if(!isset($action)){ ...@@ -125,6 +125,19 @@ if(!isset($action)){
} }
?> ?>
</table> </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> </div>
<?php <?php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment