2019-03-21 10:02:23 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Edition d'un domaine
|
|
|
|
*
|
|
|
|
* Copyright (c) 2009 Evolix - Tous droits reserves
|
|
|
|
*
|
|
|
|
* vim: expandtab softtabstop=4 tabstop=4 shiftwidth=4 showtabline=2
|
|
|
|
*
|
|
|
|
* @author Thomas Martin <tmartin@evolix.fr>
|
|
|
|
* @version 1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
2019-05-16 11:19:43 +02:00
|
|
|
<h2>Servername</h2>
|
2019-03-21 10:02:23 +01:00
|
|
|
|
|
|
|
<?php
|
|
|
|
|
2019-05-16 14:40:30 +02:00
|
|
|
if(!empty($servername)) { ?>
|
2019-03-21 10:02:23 +01:00
|
|
|
|
|
|
|
<table id="tab-list">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2019-05-16 10:57:05 +02:00
|
|
|
<th>Servername</th>
|
2019-03-21 10:02:23 +01:00
|
|
|
<?php if (is_superadmin()) {
|
|
|
|
print '<th>Action</th>';
|
|
|
|
} ?>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
2019-05-16 14:40:30 +02:00
|
|
|
print '<tr>';
|
|
|
|
printf('<td>%s</td>',
|
|
|
|
$servername);
|
|
|
|
if (is_superadmin())
|
2019-06-05 17:20:34 +02:00
|
|
|
printf('<td><a href="/webadmin/%s/domain/edit/%s/">Modifier</a></td>',
|
2019-05-16 14:40:30 +02:00
|
|
|
$domain, $servername);
|
|
|
|
print '</tr>';
|
|
|
|
?>
|
2019-03-21 10:02:23 +01:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<?php
|
|
|
|
} else {
|
2019-05-16 10:57:05 +02:00
|
|
|
print "<p>Aucun Servername existant pour le domaine $domain !</p>";
|
2019-03-21 10:02:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
?>
|