evoadmin-web/tpl/webadmin-servername.tpl.php

51 lines
1.1 KiB
PHP
Raw Normal View History

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
if(count($servername_list) > 0) { ?>
<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
for ( $i=0; $i < count($servername_list); ++$i ) {
print '<tr>';
printf('<td>%s</td>',
$servername_list[$i]);
if (is_superadmin())
2019-04-01 15:13:28 +02:00
printf('<td><a href="/webadmin/%s/domain/edit/%s/">Modifier</a></td>',
2019-03-21 10:02:23 +01:00
$domain, $servername_list[$i]);
print '</tr>';
} ?>
</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
}
?>