Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
eole-wol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
primtux-eole
Grenoble
eole-wol
Commits
49529794
Verified
Commit
49529794
authored
5 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Headers
parent
187eb600
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
wol/www/index.php
+29
-16
29 additions, 16 deletions
wol/www/index.php
with
29 additions
and
16 deletions
wol/www/index.php
+
29
−
16
View file @
49529794
...
@@ -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
Debian
</th>
<th
style=
"text-align:center;"
>
Version
Debian
</th>
<th>
Version
Primtux
</th>
<th
style=
"text-align:center;"
>
Version
Primtux
</th>
<th
>
Nombre de mises à jour en
attente
</th>
<th
style=
"text-align:center;"
>
Mises
à
jour apt
en
attente
</th>
<th>
État
git
</th>
<th
style=
"text-align:center;"
>
État
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=
"M
ettr
e à jour"
title=
"Mettre à jour"
>
<input
type=
"submit"
value=
"M
is
e à 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=
"M
ettr
e à jour + A
pt
"
title=
"Mettre à jour + apt"
>
<input
type=
"submit"
value=
"M
is
e à jour
config
+ A
PT
"
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment