stylisation du admin panel, suite

This commit is contained in:
Benjamin Sonntag 2010-06-02 22:42:03 +00:00
parent 2ad687caf2
commit d493dad2c0
10 changed files with 80 additions and 35 deletions

View File

@ -40,6 +40,8 @@ include_once ("head.php");
?> ?>
<h3><?php __("Change the default quotas"); ?></h3> <h3><?php __("Change the default quotas"); ?></h3>
<hr id="topbar"/>
<br />
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";

View File

@ -58,8 +58,8 @@ $c=$admin->dom_list(true,$forcecheck);
<p> <p>
<?php __("If you want to force the check of NS, MX, IP on domains, click the link"); ?> <a href="adm_doms.php?force=1"><?php __("Show domain list with refreshed checked NS, MX, IP information"); ?></a> <?php __("If you want to force the check of NS, MX, IP on domains, click the link"); ?> <a href="adm_doms.php?force=1"><?php __("Show domain list with refreshed checked NS, MX, IP information"); ?></a>
</p> </p>
<form method="post" action="adm_dodom.php"> <form method="post" action="adm_dodom.php" name="main" id="main">
<table border="0" cellpadding="4" cellspacing="0"> <table class="tlist">
<tr><th></th><th><?php __("Action"); ?></th><th><?php __("Domain"); ?></th><th><?php __("Creator"); ?></th><th><?php __("Connect as"); ?><th><?php __("OK?"); ?></th><th><?php __("Status"); ?></th></tr> <tr><th></th><th><?php __("Action"); ?></th><th><?php __("Domain"); ?></th><th><?php __("Creator"); ?></th><th><?php __("Connect as"); ?><th><?php __("OK?"); ?></th><th><?php __("Status"); ?></th></tr>
<?php <?php
$col=1; $col=1;
@ -71,14 +71,14 @@ for($i=0;$i<count($c);$i++) {
<td><?php if ($c[$i]["noerase"]) { <td><?php if ($c[$i]["noerase"]) {
echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Domain")."\" />"; echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Domain")."\" />";
} ?></td> } ?></td>
<td><a href="adm_domlock.php?domain=<?php echo urlencode($c[$i][domaine]); ?>"><?php <td><div class="ina"><a href="adm_domlock.php?domain=<?php echo urlencode($c[$i][domaine]); ?>"><?php
if ($c[$i]["noerase"]) __("Unlock"); else __("Lock"); ?></a></td> if ($c[$i]["noerase"]) __("Unlock"); else __("Lock"); ?></a></div></td>
<td><a href="http://<?php echo $c[$i][domaine]; ?>" target="_blank"><?php echo $c[$i]["domaine"]; ?></a></td> <td><a href="http://<?php echo $c[$i][domaine]; ?>" target="_blank"><?php echo $c[$i]["domaine"]; ?></a></td>
<td><?php echo $c[$i]["login"]; ?></td> <td><?php echo $c[$i]["login"]; ?></td>
<td> <td>
<?php if($admin->checkcreator($c[$i]['uid'])) { <?php if($admin->checkcreator($c[$i]['uid'])) {
?> ?>
<a href="adm_login.php?id=<?php echo $c[$i]["uid"];?>"><?php __("Connect as"); ?></a> <div class="ina"><a href="adm_login.php?id=<?php echo $c[$i]["uid"];?>"><?php __("Connect as"); ?></a></div>
<?php } ?> <?php } ?>
</td> </td>
<td style="background: <?php <td style="background: <?php

View File

@ -61,6 +61,8 @@ include_once("head.php");
</head> </head>
<body> <body>
<h3><?php __("Manage allowed accounts for secondary mx"); ?></h3> <h3><?php __("Manage allowed accounts for secondary mx"); ?></h3>
<hr id="topbar"/>
<br />
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";
@ -84,7 +86,7 @@ for($i=0;$i<count($c);$i++) {
?> ?>
<tr class="lst<?php echo $col; ?>"> <tr class="lst<?php echo $col; ?>">
<td class="center"><a href="adm_mxaccount.php?delaccount=<?php echo urlencode($c[$i]["login"]); ?>"><img src="images/delete.png" alt="<?php __("Delete"); ?>" /></a></td> <td class="center"><div class="ina"><a href="adm_mxaccount.php?delaccount=<?php echo urlencode($c[$i]["login"]); ?>"><img src="images/delete.png" alt="<?php __("Delete"); ?>" /><?php __("Delete"); ?></a></div></td>
<td><?php echo $c[$i]["login"]; ?></td> <td><?php echo $c[$i]["login"]; ?></td>
<td><?php echo $c[$i]["pass"]; ?></td> <td><?php echo $c[$i]["pass"]; ?></td>
</tr> </tr>
@ -94,16 +96,21 @@ for($i=0;$i<count($c);$i++) {
</table> </table>
<?php } ?> <?php } ?>
<p><?php __("If you want to allow a new server to access your mx-hosted domain list, give him an account."); ?></p> <p><?php __("If you want to allow a new server to access your mx-hosted domain list, give him an account."); ?></p>
<form method="post" action="adm_mxaccount.php"> <form method="post" action="adm_mxaccount.php" name="main" id="main">
<table border="0" cellpadding="4" cellspacing="0"> <table class="tedit">
<tr><th><label for="newlogin"><?php __("Login"); ?></label></th><th><label for="newpass"><?php __("Password"); ?></label></th></tr> <tr><th><label for="newlogin"><?php __("Login"); ?></label></th><th><label for="newpass"><?php __("Password"); ?></label></th></tr>
<tr> <tr>
<td><input type="text" class="int" value="<?php ehe($newlogin); ?>" id="newlogin" name="newlogin" maxlength="64" size="32" /> / </td> <td><input type="text" class="int" value="<?php ehe($newlogin); ?>" id="newlogin" name="newlogin" maxlength="64" size="32" /></td>
<td><input type="password" class="int" value="<?php ehe($newpass); ?>" id="newpass" name="newpass" maxlength="64" size="32" /></td> <td><input type="password" class="int" value="<?php ehe($newpass); ?>" id="newpass" name="newpass" maxlength="64" size="32" /></td>
</tr> </tr>
<tr><td colspan="2"> <tr class="trbtn"><td colspan="2">
<input type="submit" value="<?php __("Add this account to the allowed list"); ?>" class="inb" /> <input type="submit" value="<?php __("Add this account to the allowed list"); ?>" class="inb" />
</table> </table>
</form> </form>
<script type="text/javascript">
document.forms['main'].newlogin.focus();
document.forms['main'].setAttribute('autocomplete', 'off');
</script>
<?php include_once("foot.php"); ?> <?php include_once("foot.php"); ?>

View File

@ -47,6 +47,8 @@ include_once("head.php");
?> ?>
<h3><?php __("Manage Password Policy"); ?></h3> <h3><?php __("Manage Password Policy"); ?></h3>
<hr id="topbar"/>
<br />
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";

View File

@ -60,6 +60,8 @@ include_once ("head.php");
?> ?>
<h3><?php __("Manage allowed accounts for slave zone transfers"); ?></h3> <h3><?php __("Manage allowed accounts for slave zone transfers"); ?></h3>
<hr id="topbar"/>
<br />
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";
@ -74,7 +76,7 @@ if (is_array($c)) {
<?php __("Here is the list of the allowed accounts for slave dns synchronization. You can configure the alternc-slavedns package on your slave server and give him the login/pass that will grant him access to your server's domain list. "); ?> <?php __("Here is the list of the allowed accounts for slave dns synchronization. You can configure the alternc-slavedns package on your slave server and give him the login/pass that will grant him access to your server's domain list. "); ?>
</p> </p>
<table border="0" cellpadding="4" cellspacing="0"> <table class="tlist">
<tr><th><?php __("Action"); ?></th><th><?php __("Login"); ?></th><th><?php __("Password"); ?></th></tr> <tr><th><?php __("Action"); ?></th><th><?php __("Login"); ?></th><th><?php __("Password"); ?></th></tr>
<?php <?php
$col=1; $col=1;
@ -83,9 +85,9 @@ for($i=0;$i<count($c);$i++) {
?> ?>
<tr class="lst<?php echo $col; ?>"> <tr class="lst<?php echo $col; ?>">
<td class="center"><a href="adm_slaveaccount.php?delaccount=<?php echo urlencode($c[$i]["login"]); ?>"><img src="images/delete.png" alt="<?php __("Delete"); ?>" /></a></td> <td class="center"><div class="ina"><a href="adm_slaveaccount.php?delaccount=<?php echo urlencode($c[$i]["login"]); ?>"><img src="images/delete.png" alt="<?php __("Delete"); ?>" /><?php __("Delete"); ?></a></div></td>
<td><?php echo $c[$i]["login"]; ?></td> <td><?php ehe($c[$i]["login"]); ?></td>
<td><?php echo $c[$i]["pass"]; ?></td> <td><?php ehe($c[$i]["pass"]); ?></td>
</tr> </tr>
<?php <?php
} }
@ -93,16 +95,20 @@ for($i=0;$i<count($c);$i++) {
</table> </table>
<?php } ?> <?php } ?>
<p><?php __("If you want to allow a new server to access your domain list, give him an account."); ?></p> <p><?php __("If you want to allow a new server to access your domain list, give him an account."); ?></p>
<form method="post" action="adm_slaveaccount.php"> <form method="post" action="adm_slaveaccount.php" name="main" id="main">
<table border="0" cellpadding="4" cellspacing="0"> <table class="tedit">
<tr><th><label for="newlogin"><?php __("Login"); ?></label></th><th><label for="newpass"><?php __("Password"); ?></label></th></tr> <tr><th><label for="newlogin"><?php __("Login"); ?></label></th><th><label for="newpass"><?php __("Password"); ?></label></th></tr>
<tr> <tr>
<td><input type="text" class="int" value="<?php ehe($newlogin); ?>" id="newlogin" name="newlogin" maxlength="64" size="32" /> / </td> <td><input type="text" class="int" value="<?php ehe($newlogin); ?>" id="newlogin" name="newlogin" maxlength="64" size="32" /></td>
<td><input type="password" class="int" value="<?php ehe($newpass); ?>" id="newpass" name="newpass" maxlength="64" size="32" /></td> <td><input type="password" class="int" value="<?php ehe($newpass); ?>" id="newpass" name="newpass" maxlength="64" size="32" /></td>
</tr> </tr>
<tr><td colspan="2"> <tr class="trbtn"><td colspan="2">
<input type="submit" value="<?php __("Add this account to the allowed list"); ?>" class="inb" /> <input type="submit" value="<?php __("Add this account to the allowed list"); ?>" class="inb" />
</table> </table>
<script type="text/javascript">
document.forms['main'].newlogin.focus();
document.forms['main'].setAttribute('autocomplete', 'off');
</script>
</form> </form>
<?php include_once("foot.php"); ?> <?php include_once("foot.php"); ?>

View File

@ -60,6 +60,8 @@ include_once("head.php");
?> ?>
<h3><?php __("Manage allowed ip for slave zone transfers"); ?></h3> <h3><?php __("Manage allowed ip for slave zone transfers"); ?></h3>
<hr id="topbar" />
<br />
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";
@ -83,7 +85,7 @@ for($i=0;$i<count($c);$i++) {
?> ?>
<tr class="lst<?php echo $col; ?>"> <tr class="lst<?php echo $col; ?>">
<td class="center"><a href="adm_slaveip.php?delip=<?php echo urlencode($c[$i][ip]); ?>"><img src="images/delete.png" alt="<?php __("Delete"); ?>" /></a></td> <td class="center"><div class="ina"><a href="adm_slaveip.php?delip=<?php echo urlencode($c[$i][ip]); ?>"><img src="images/delete.png" alt="<?php __("Delete"); ?>" /><?php __("Delete"); ?></a></div></td>
<td><?php echo $c[$i]["ip"]."/".$c[$i]["class"]; ?></td> <td><?php echo $c[$i]["ip"]."/".$c[$i]["class"]; ?></td>
</tr> </tr>
<?php <?php
@ -92,15 +94,19 @@ for($i=0;$i<count($c);$i++) {
</table> </table>
<?php } ?> <?php } ?>
<p><?php __("If you want to allow an ip address or class to connect to your dns server, enter it here. Choose 32 as a prefix for single ip address."); ?></p> <p><?php __("If you want to allow an ip address or class to connect to your dns server, enter it here. Choose 32 as a prefix for single ip address."); ?></p>
<form method="post" action="adm_slaveip.php"> <form method="post" action="adm_slaveip.php" name="main" id="main">
<table border="0" cellpadding="4" cellspacing="0"> <table class="tedit">
<tr><th><label for="newip"><?php __("IP Address"); ?></label></th><th><label for="newclass"><?php __("Prefix"); ?></label></th></tr> <tr><th><label for="newip"><?php __("IP Address"); ?></label></th><th><label for="newclass"><?php __("Prefix"); ?></label></th></tr>
<tr> <tr>
<td style="text-align: right"><input type="text" class="int" value="<?php ehe(newip); ?>" id="newip" name="newip" maxlength="15" size="20" style="text-align:right" /> / </td> <td style="text-align: right"><input type="text" class="int" value="<?php ehe($newip); ?>" id="newip" name="newip" maxlength="15" size="20" style="text-align:right" /> / </td>
<td><input type="text" class="int" value="<?php echo urlencode($newclass); ?>" id="newclass" name="newclass" maxlength="2" size="3" /></td> <td><input type="text" class="int" value="<?php ehe($newclass); ?>" id="newclass" name="newclass" maxlength="2" size="3" /></td>
</tr> </tr>
<tr><td colspan="2"> <tr><td colspan="2">
<input type="submit" value="<?php __("Add this ip to the slave list"); ?>" class="inb" /> <input type="submit" value="<?php __("Add this ip to the slave list"); ?>" class="inb" />
</table> </table>
</form> </form>
<script type="text/javascript">
document.forms['main'].newip.focus();
</script>
<?php include_once("foot.php"); ?> <?php include_once("foot.php"); ?>

View File

@ -48,6 +48,8 @@ include_once("head.php");
?> ?>
<h3><?php __("Manage allowed domains (TLD)"); ?></h3> <h3><?php __("Manage allowed domains (TLD)"); ?></h3>
<hr id="topbar" />
<br />
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";
@ -59,10 +61,10 @@ $c=$admin->listtld();
<p> <p>
<?php __("Here is the list of the TLD allowed on this server. Each TLD can be allowed or denied after some checks (whois, ns, domain exists...)"); ?> <?php __("Here is the list of the TLD allowed on this server. Each TLD can be allowed or denied after some checks (whois, ns, domain exists...)"); ?>
</p> </p>
<p><a href="adm_tldadd.php"><?php __("Add a new TLD"); ?></a></p> <p><span class="ina"><a href="adm_tldadd.php"><?php __("Add a new TLD"); ?></a></span></p>
<form method="post" action="adm_tld.php"> <form method="post" action="adm_tld.php" name="main" id="main">
<table border="0" cellpadding="4" cellspacing="0"> <table class="tlist">
<tr><th><?php __("Action"); ?></th><th><?php __("TLD"); ?></th><th><?php __("Allowed Mode"); ?></th></tr> <tr><th colspan="2"><?php __("Actions"); ?></th><th><?php __("TLD"); ?></th><th><?php __("Allowed Mode"); ?></th></tr>
<?php <?php
$col=1; $col=1;
for($i=0;$i<count($c);$i++) { for($i=0;$i<count($c);$i++) {
@ -70,15 +72,17 @@ for($i=0;$i<count($c);$i++) {
?> ?>
<tr class="lst<?php echo $col; ?>"> <tr class="lst<?php echo $col; ?>">
<td><input id="sel<?php echo $i; ?>" type="checkbox" name="sel[]" class="inc" value="<?php echo $c[$i]["tld"]; ?>" />&nbsp;<a href="adm_tldedit.php?tld=<?php echo urlencode($c[$i]["tld"]); ?>"><img style="padding-bottom: 5px" src="images/edit.png" alt="<?php __("Edit"); ?>" /></a></td> <td><input id="sel<?php echo $i; ?>" type="checkbox" name="sel[]" class="inc" value="<?php echo $c[$i]["tld"]; ?>" /></td>
<td><div class="ina"><a href="adm_tldedit.php?tld=<?php echo urlencode($c[$i]["tld"]); ?>"><img style="padding-bottom: 5px" src="images/edit.png" alt="<?php __("Edit"); ?>" /><?php __("Edit"); ?></a></div></td>
<td><label for="sel<?php echo $i; ?>"><?php echo $c[$i]["tld"]; ?></label></td> <td><label for="sel<?php echo $i; ?>"><?php echo $c[$i]["tld"]; ?></label></td>
<td><?php __($admin->tldmode[$c[$i]["mode"]]); ?></td></tr> <td><?php __($admin->tldmode[$c[$i]["mode"]]); ?></td></tr>
<?php <?php
} }
?> ?>
<tr><td colspan="3"><input type="submit" class="inb" value="<?php __("Delete the checked TLD"); ?>" /></td></tr> <tr class="trbtn"><td colspan="3"><input type="submit" class="inb" value="<?php __("Delete the checked TLD"); ?>" /></td></tr>
</table> </table>
</form> </form>
<p><a href="adm_tldadd.php"><?php __("Add a new TLD"); ?></a></p>
<p><span class="ina"><a href="adm_tldadd.php"><?php __("Add a new TLD"); ?></a></span></p>
<?php include_once("foot.php"); ?> <?php include_once("foot.php"); ?>

View File

@ -38,6 +38,8 @@ include_once ("head.php");
?> ?>
<h3><?php __("Manage allowed domains (TLD)"); ?></h3> <h3><?php __("Manage allowed domains (TLD)"); ?></h3>
<hr id="topbar"/>
<br />
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";
@ -51,14 +53,22 @@ include_once ("head.php");
<small><?php __("Warning : only some final tld are known in the whois function of AlternC, please check m_dom.php accordingly."); ?></small> <small><?php __("Warning : only some final tld are known in the whois function of AlternC, please check m_dom.php accordingly."); ?></small>
</p> </p>
<form method="post" action="adm_tlddoadd.php"> <form method="post" action="adm_tlddoadd.php" name="main" id="main">
<table border="0" cellpadding="4" cellspacing="0"> <table class="tedit">
<tr><th><label for="tld"><?php __("TLD"); ?></label></th><td><input type="text" id="tld" name="tld" class="int" value="<?php ehe($tld); ?>" size="20" maxlength="64" /></td></tr> <tr><th><label for="tld"><?php __("TLD"); ?></label></th><td><input type="text" id="tld" name="tld" class="int" value="<?php ehe($tld); ?>" size="20" maxlength="64" /></td></tr>
<tr><th><label for="mode"><?php __("Allowed Mode"); ?></label></th><td><select name="mode" id="mode" class="inl"> <tr><th><label for="mode"><?php __("Allowed Mode"); ?></label></th><td><select name="mode" id="mode" class="inl">
<?php $admin->selecttldmode($mode); ?> <?php $admin->selecttldmode($mode); ?>
</select></td></tr> </select></td></tr>
<tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Add a new TLD"); ?>" /></td></tr> <tr class="trbtn"><td colspan="2">
<input type="submit" class="inb" value="<?php __("Add a new TLD"); ?>" />
<input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='adm_tld.php'"/>
</td></tr>
</table> </table>
</form> </form>
<script type="text/javascript">
document.forms['main'].tld.focus();
</script>
<?php include_once("foot.php"); ?> <?php include_once("foot.php"); ?>

View File

@ -50,6 +50,8 @@ include_once("head.php");
?> ?>
<h3><?php __("Manage allowed domains (TLD)"); ?></h3> <h3><?php __("Manage allowed domains (TLD)"); ?></h3>
<hr id="topbar"/>
<br />
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";
@ -58,12 +60,16 @@ include_once("head.php");
<h3><?php __("Edit a TLD"); ?></h3> <h3><?php __("Edit a TLD"); ?></h3>
<form method="post" action="adm_tlddoedit.php"> <form method="post" action="adm_tlddoedit.php">
<table border="0" cellpadding="4" cellspacing="0"> <table name="main" id="main" class="tedit">
<tr><th><label for="tld"><?php __("TLD"); ?></label></th><td><code><?php echo $tld; ?></code><input type="hidden" name="tld" id="tld" value="<?php echo $tld; ?>" /></td></tr> <tr><th><label for="tld"><?php __("TLD"); ?></label></th><td><code><?php echo $tld; ?></code><input type="hidden" name="tld" id="tld" value="<?php echo $tld; ?>" /></td></tr>
<tr><th><label for="mode"><?php __("Allowed Mode"); ?></label></th><td><select name="mode" class="inl" id="mode"> <tr><th><label for="mode"><?php __("Allowed Mode"); ?></label></th><td><select name="mode" class="inl" id="mode">
<?php $admin->selecttldmode($mode); ?> <?php $admin->selecttldmode($mode); ?>
</select></td></tr> </select></td></tr>
<tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Edit this TLD"); ?>" /></td></tr> <tr class="trbtn"><td colspan="2">
<input type="submit" class="inb" value="<?php __("Edit this TLD"); ?>" />
<input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='adm_tld.php'"/>
</td></tr>
</table> </table>
</form> </form>
<?php include_once("foot.php"); ?> <?php include_once("foot.php"); ?>

View File

@ -45,6 +45,8 @@ include_once ("head.php");
?> ?>
<h3><?php __("Configure AlternC variables"); ?></h3> <h3><?php __("Configure AlternC variables"); ?></h3>
<hr id="topbar"/>
<br />
<p> <p>
<?php __("Here are the internal AlternC variables that are currently being used."); ?> <?php __("Here are the internal AlternC variables that are currently being used."); ?>