This commit is contained in:
Alan Garcia 2014-01-26 16:45:50 +00:00
parent 1140927f05
commit 1bab3b48e4
2 changed files with 29 additions and 20 deletions

View File

@ -31,13 +31,13 @@ require_once("../class/config.php");
include_once("head.php"); include_once("head.php");
$fields = array ( $fields = array (
"sub_domain_id" => array ("request", "integer", ""), "sub_domain_id" => array ("request", "integer", ""),
); );
getFields($fields); getFields($fields);
$dom->lock(); $dom->lock();
if (!$r=$dom->get_sub_domain_all($sub_domain_id)) { if (!$r=$dom->get_sub_domain_all($sub_domain_id)) {
$error=$err->errstr(); $error=$err->errstr();
} }
$dom->unlock(); $dom->unlock();
@ -48,27 +48,36 @@ if (!$isinvited && $dt[strtolower($r['type'])]["enable"] != "ALL" ) {
} }
?> ?>
<h3><?php printf(_("Deleting subdomain %s"),"http://".ife($r['name'],$r['name'].".").$r['domain']); ?> : </h3> <h3><?php printf(_("Deleting subdomain %s"),ife($r['name'],$r['name'].".").$r['domain']); ?> : </h3>
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"alert alert-danger\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
include_once("foot.php"); include_once("foot.php");
exit(); exit();
} }
?> ?>
<hr id="topbar"/> <hr id="topbar"/>
<br /> <br />
<!-- *****************************************
gestion du sous-domaine
-->
<form action="dom_subdodel.php" method="post"> <form action="dom_subdodel.php" method="post">
<p class="alert alert-warning"> <p class="alert alert-warning">
<input type="hidden" name="sub_domain_id" value="<?php echo $sub_domain_id ?>" /> <input type="hidden" name="sub_domain_id" value="<?php echo $sub_domain_id ?>" />
<?php __("WARNING : Confirm the deletion of the subdomain"); ?> : </p> <?php __("WARNING : You are going to delete a sub-domain."); ?></p>
<p><?php ecif($r['name'],$r['name']."."); echo $r['domain']; ?></p> <p><?php
<blockquote> __("Informations about the subdomain you're going to delete:");
<input type="submit" class="inb" name="confirm" value="<?php __("Yes"); ?>" />&nbsp;&nbsp; echo "<ul>";
<input type="button" class="inb" name="cancel" value="<?php __("No"); ?>" onclick="history.back();" /> echo "<li>"._("Entry:")." ".( empty($r['name'])?'':$r['name'].".").$r['domain']."</li>";
</blockquote> echo "<li>"._("Type:")." "._($r['type_desc'])."</li>";
if (!empty($r['dest'])) {
echo "<li>"._("Value:")." "._($r['dest'])."</li>";
}
echo "</ul>";
echo "<br/>";
__("Do you really want to delete it?");
?>
</p>
<blockquote>
<input type="submit" class="inb" name="confirm" value="<?php __("Yes"); ?>" />&nbsp;&nbsp;
<input type="button" class="inb" name="cancel" value="<?php __("No"); ?>" onclick="history.back();" />
</blockquote>
</form> </form>
<?php include_once("foot.php"); ?> <?php include_once("foot.php"); ?>

View File

@ -61,7 +61,7 @@ if (!$dom->del_sub_domain($sub_domain_id)) {
$dom->unlock(); $dom->unlock();
?> ?>
<h3><?php echo sprintf(_("Deleting the subdomain %s:"),"http://".(($r['name'])?$r['name'].".":$r['name']).$r['domain']); ?></h3> <h3><?php echo sprintf(_("Deleting the subdomain %s:"),(($r['name'])?$r['name'].".":$r['name']).$r['domain']); ?></h3>
<hr id="topbar"/> <hr id="topbar"/>
<br /> <br />
<?php <?php