[enh] Adds more granular alert messages

This commit is contained in:
alban 2013-10-18 09:12:41 +00:00
parent 013c6e739b
commit d5b60a9665
15 changed files with 23 additions and 23 deletions

View File

@ -33,10 +33,10 @@ $list_ip = $authip->list_ip_whitelist();
<br />
<?php if (isset($error) && $error) { ?>
<p class="error"><?php echo $error ?></p>
<p class="alert alert-danger"><?php echo $error ?></p>
<?php } ?>
<center>
<p class="error"><?php __("Warning"); echo "<br/>"; __("The IP and subnet you have here are allowed for ALL users and ALL usages"); ?></p>
<p class="alert alert-warning"><?php __("Warning"); echo "<br/>"; __("The IP and subnet you have here are allowed for ALL users and ALL usages"); ?></p>
</center>
<br/>

View File

@ -74,7 +74,7 @@ if($del_confirm == "y"){
<form action="adm_dodel.php" method="post">
<input type="hidden" name="action" value="delete" />
<input type="hidden" name="del_confirm" value="y" />
<p class="error"><?php __("WARNING : Confirm the deletion of the users"); ?></p>
<p class="alert alert-warning"><?php __("WARNING : Confirm the deletion of the users"); ?></p>
<p>
<?php
foreach($d as $userid){

View File

@ -90,7 +90,7 @@ closedir($d);
</ul>
<?php if ($cuid == 2000) { ?>
<p class="error">
<p class="alert alert-info">
<?php if (panel_islocked()) { ?>
<a href="adm_lockpanel.php?action=unlock"><?php __("Click here to unlock the panel and allow user to login.");?></a>
<?php } else { ?>

View File

@ -23,7 +23,7 @@ $lst_cron = $cron->lst_cron();
<br />
<?php if (isset($error) && $error) { ?>
<p class="error"><?php echo $error ?></p>
<p class="alert alert-danger"><?php echo $error ?></p>
<?php } ?>
<form method="post" action="cron.php" id="main" name="cron" >

View File

@ -46,7 +46,7 @@ if (!isset($dns)) $dns="1";
<hr />
<?php
if (!$quota->cancreate("dom")) { ?>
<p class="error"><?php echo _("You cannot add any new domain, your quota is over.")." "._("Contact your administrator for more information."); ?></p>
<p class="alert alert-danger"><?php echo _("You cannot add any new domain, your quota is over.")." "._("Contact your administrator for more information."); ?></p>
<?php
exit();
}
@ -87,7 +87,7 @@ $dl=$dom->get_domain_list($cuid);
<input type="submit" class="inb ok" name="submit" value="<?php __("Add this domain"); ?>" />
</p>
<p class="error">
<p class="alert alert-info">
<?php __("If you don't want to host in our server the DNS of your domain, don't check the box 'host my dns here'. If you don't know what it mean, leave it checked."); ?></p>
<?php $mem->show_help("add_domain"); ?>
</form>

View File

@ -64,7 +64,7 @@ if ($del_confirm!="y") {
<h3><?php printf(_("Confirm the deletion of domain %s"),$domain); ?></h3>
<hr id="topbar"/>
<br />
<p class="error"><?php __("WARNING"); ?><br /><?php printf(_("Confirm the deletion of domain %s"),$domain); ?><br />
<p class="alert alert-warning"><?php __("WARNING"); ?><br /><?php printf(_("Confirm the deletion of domain %s"),$domain); ?><br />
<?php __("This will delete the related sub-domains too."); ?></p>
<form method="post" action="dom_dodel.php" id="main">

View File

@ -93,10 +93,10 @@ function destruction_alert() {
<?php
if ($r['dns_action']=='UPDATE') {?>
<p class="error"><?php __("This domain have some DNS change pending. Please wait."); ?></p>
<p class="alert alert-info"><?php __("This domain have some DNS change pending. Please wait."); ?></p>
<?php
} elseif ($r['dns_action']=='DELETE') {?>
<p class="error"><?php printf(_("You requested deletion of domain %s."), $domain);?></p>
<p class="alert alert-warning"><?php printf(_("You requested deletion of domain %s."), $domain);?></p>
<?php
/*
// Link hidden as long as the del_domain_cancel function is not complete
@ -255,7 +255,7 @@ if (!$r['noerase']) {
</td>
</tr>
</table>
<p class="error"> <?php __("Warning: If you set this to 'no', all your email accounts and aliases on this domain will be immediately deleted."); ?></p>
<p class="alert alert-warning"> <?php __("Warning: If you set this to 'no', all your email accounts and aliases on this domain will be immediately deleted."); ?></p>
<input type="submit" class="inb ok" name="submit" value="<?php __("Submit the changes"); ?>" />
</form>

View File

@ -46,13 +46,13 @@ $domain=trim($domain);
<?php
if (!empty($error)) {
echo '<p class="error">'.$error.'</p>';
echo '<p class="alert alert-danger">'.$error.'</p>';
}
?>
<?php if ( !empty($zone) ) {
if ( empty($domain) ) {
echo '<p class="error">'._("The domain field seems to be empty").'</p>';
echo '<p class="alert alert-danger">'._("The domain field seems to be empty").'</p>';
} else { ?>
<?php __("Here is my proposition. Modify your zone until my proposition seems good to you"); ?>
<table class="tlist">

View File

@ -62,7 +62,7 @@ if (!$isinvited && $dt[strtolower($r['type'])]["enable"] != "ALL" ) {
gestion du sous-domaine
-->
<form action="dom_subdodel.php" method="post">
<p class="error">
<p class="alert alert-warning">
<input type="hidden" name="sub_domain_id" value="<?php echo $sub_domain_id ?>" />
<?php __("WARNING : Confirm the deletion of the subdomain"); ?> : </p>
<p><?php ecif($r['name'],$r['name']."."); echo $r['domain']; ?></p>

View File

@ -49,7 +49,7 @@ if (!$r=$ftp->get_list($domain)) {
<?php
if (isset($error) && $error && !$noftp) {
?>
<p class="error"><?php echo $error ?></p>
<p class="alert alert-danger"><?php echo $error ?></p>
<?php } ?>
<?php if ($quota->cancreate("ftp")) { ?>

View File

@ -52,7 +52,7 @@ $lac = $authip->list_affected();
<br />
<?php if (isset($error) && $error) { ?>
<p class="error"><?php echo $error ; $error=''; ?></p>
<p class="alert alert-danger"><?php echo $error ; $error=''; ?></p>
<?php } ?>
<p><?php __("Here you can add rules to restrict access to AlternC's services, filtered by IP. First, add trusted IPs in the 'Known IP and networks' list. Then, add rules to grant access on services to the chosen IPs from this list.") ?></p>

View File

@ -82,7 +82,7 @@ if (isset($error)) {
<p><?php printf(_('This mailbox is currently using %1$s / %2$s'),format_size($used),format_size($quotabytes)); ?></p>
<?php } ?>
<?php if ($mailbox_action=="DELETE") { ?>
<p class="error"><?php __("This mailbox is pending deletion. You can recover its mails by setting it to 'Yes' NOW!"); ?></p>
<p class="alert alert-warning"><?php __("This mailbox is pending deletion. You can recover its mails by setting it to 'Yes' NOW!"); ?></p>
<?php } ?>
</td>
<td>
@ -100,7 +100,7 @@ if (isset($error)) {
</div>
</td></tr>
<?php if ($islocal) { ?>
<tr id="turnoff"><td colspan="2" class="error"><?php __("WARNING: turning POP/IMAP off will DELETE the stored messages in this email address."); ?></td></tr>
<tr id="turnoff"><td colspan="2" class="alert alert-warning"><?php __("WARNING: turning POP/IMAP off will DELETE the stored messages in this email address."); ?></td></tr>
<?php } ?>
<tr><th colspan="2"><b><?php __("Is it a redirection to other email addresses?"); ?></b></th></tr>

View File

@ -72,7 +72,7 @@ if (!$found) {
<h3><?php __("MySQL Databases"); ?></h3>
<hr id="topbar"/>
<br />
<p class="error"><?php __("WARNING"); ?></big><br /><?php __("Confirm the deletion of the following SQL databases"); ?><br />
<p class="alert alert-warning"><?php __("WARNING"); ?></big><br /><?php __("Confirm the deletion of the following SQL databases"); ?><br />
<?php __("This will delete all the tables currently in those db."); ?></p>
<form method="post" action="sql_del.php" id="main">
<p>

View File

@ -58,7 +58,7 @@ include_once("head.php");
<h3><?php __("MySQL users"); ?></h3>
<hr id="topbar"/>
<br />
<p class="error"><?php __("WARNING"); ?></big><br /><?php __("Confirm the deletion of the following MySQL users"); ?><br />
<p class="alert alert-warning"><?php __("WARNING"); ?></big><br /><?php __("Confirm the deletion of the following MySQL users"); ?><br />
</p>
<form method="post" action="sql_users_del.php" id="main">
<p>

View File

@ -52,7 +52,7 @@ include_once("head.php");
<?php if (!empty($error)) { ?>
<div>
<span class="error">
<span class="alert alert-danger">
<?php echo implode(" - ", array_unique($error)); ?>
</span>
@ -63,7 +63,7 @@ include_once("head.php");
<div>
<?php if (empty($infos)) {
?>
<p class="error"><?php __("You can start a virtual machine."); ?></p>
<p class="alert alert-info"><?php __("You can start a virtual machine."); ?></p>
<form method="post" action="vm.php">
<input type="hidden" name="action" value="start" />
<input type="submit" class="inb" name="go" value="<?php __("Click here to start a virtual machine."); ?>" />
@ -80,7 +80,7 @@ include_once("head.php");
echo "</pre></td></tr>";
echo "</table>";
?>
<p class="error"><?php __("You can stop your virtual machine."); ?></p>
<p class="alert alert-info"><?php __("You can stop your virtual machine."); ?></p>
<form method="post" action="vm.php">
<input type="hidden" name="action" value="stop" />
<input type="submit" class="inb" name="go" value="<?php __("Click here to stop your running virtual machine."); ?>" />