Commit e97f84c7 authored by Alan Garcia's avatar Alan Garcia
Browse files

Nouvelle présentation de la page d'édition des domaines.

Nouvelle présentation de la page d'édition des parametres du compte.

Nouvelle présentation de l'aide des mails.

Utilisation de la CSS Redmond pour jquery_ui
parent 9da1f2fd
......@@ -110,7 +110,7 @@ $dom->unlock();
<?php } // foreach ?>
<tr class="trbtn">
<td colspan="2"><input type="submit" class="inb" name="add" onclick='return check_type_selected();' value="<?php
<td colspan="2"><input type="submit" class="inb ok" name="add" onclick='return check_type_selected();' value="<?php
if ($isedit) {
__("Edit this subdomain");
} else {
......
......@@ -87,8 +87,9 @@ function destruction_alert() {
}
}
</script>
<h3><?php printf(_("Editing subdomains of %s"),$domain); ?></h3>
<hr id="topbar"/>
<h3><img src="images/dom.png" alt="" />&nbsp;<?php printf(_("Manage %s"),$domain); ?></h3>
<?php
if ($r['dns_action']=='UPDATE') {?>
......@@ -108,10 +109,20 @@ if ($r['dns_action']=='UPDATE') {?>
}
?>
<br />
<!-- *****************************************
gestion des sous-domaines
-->
<div id="tabsdom">
<ul>
<li class="edit"><a href="#tabsdom-editsub"><?php __("Edit subdomains");?></a></li>
<li class="add"><a href="#tabsdom-addsub"><?php __("Add subdomains");?></a></li>
<li class="settings"><a href="#tabsdom-params"><?php __("Settings");?></a></li>
<li class="delete"><a href="#tabsdom-delete"><?php __("Delete");?></a></li>
</ul>
<div id="tabsdom-editsub">
<h3><?php printf(_("Editing subdomains of %s"),$domain); ?></h3>
<table class="tlist">
<tr><th colspan="2"> </th><th><?php __("Subdomain"); ?></th><th><?php __("Type");?></th><th><?php __("Status")?></th><th></th></tr>
<?php
......@@ -185,8 +196,11 @@ for($i=0;$i<$r["nsub"];$i++) {
</tr>
<?php } ?>
</table>
<br />
<hr/>
</div>
<div id="tabsdom-addsub">
<h3><?php printf(_("Add a subdomains to %s"),$domain); ?></h3>
<?php
$isedit=false;
require_once('dom_edit.inc.php');
......@@ -194,7 +208,6 @@ sub_domains_edit($domain);
?>
<br />
<?php $mem->show_help("edit_domain"); ?>
<p>&nbsp;</p>
<!-- *****************************************
modification des parametres dns
-->
......@@ -202,7 +215,8 @@ sub_domains_edit($domain);
if (!$r['noerase']) {
?>
<hr />
</div>
<div id="tabsdom-params">
<h3><?php __("DNS &amp; Email parameters"); ?></h3>
<form action="dom_editdns.php?domain=<?php echo urlencode($r["name"]) ?>" method="post" id="fdns" name="fdns" onSubmit="return destruction_alert();">
......@@ -242,22 +256,20 @@ if (!$r['noerase']) {
<input type="submit" class="inb ok" name="submit" value="<?php __("Submit the changes"); ?>" />
</form>
<p>&nbsp;</p>
<hr />
<h3><?php __("Domain removal"); ?></h3>
<br />
<?php printf(_("If you want to destroy the domain %s, click on the button below. Warning: this also deletes all FTP accounts, email, mailing lists associated with the domain and subdomains."),$domain); ?><br />
<form action="dom_dodel.php?domain=<?php echo urlencode($domain) ?>" method="post">
<p>
<input type="submit" class="inb delete" name="detruire" value="<?php printf(_("Delete %s from this server"),$domain); ?>" />
</p>
</form>
<br />
<hr />
</div>
<div id="tabsdom-delete">
<h3><?php __("Domain removal"); ?></h3>
<?php printf(_("If you want to destroy the domain %s, click on the button below. Warning: this also deletes all FTP accounts, email, mailing lists associated with the domain and subdomains."),$domain); ?><br />
<form action="dom_dodel.php?domain=<?php echo urlencode($domain) ?>" method="post">
<p>
<input type="submit" class="inb delete" name="detruire" value="<?php printf(_("Delete %s from this server"),$domain); ?>" />
</p>
</form>
</div> <!-- tabsdom-delete -->
</div> <!-- tabsdom -->
<?php } // noerase ?>
<script type="text/javascript">
document.forms['main'].sub.focus();
$(function() {$( "#tabsdom" ).tabs();});
</script>
<?php include_once("foot.php"); ?>
......@@ -31,8 +31,8 @@ if (!$charset) $charset="UTF-8";
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
<title><?php __("AlternC Control Panel"); ?></title>
<link rel="stylesheet" href="js/jquery_ui/css/redmond/jquery-ui-1.10.3.custom.min.css" type="text/css" />
<link rel="stylesheet" href="styles/style.css" type="text/css" />
<link rel="stylesheet" href="js/jquery_ui/css/smoothness/jquery-ui-1.10.3.custom.min.css" type="text/css" />
<link rel="stylesheet" href="styles/style-empty.css" type="text/css" title="Default - Desktop TNG"/>
<link rel="alternate stylesheet" href="styles/style-bluedesktop10.css" type="text/css" title="Blue Desktop 1.0" />
......
......@@ -189,31 +189,31 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
<br/>
<br/>
<table width='100%' class="tedit">
<tr>
<th width='50%'>
<b><?php __("Outgoing mail (SMTP)"); ?></b>
</th>
<th width='50%'>
<b><?php __("Incoming mails"); ?></b>
</th>
</tr>
<tr>
<td valign='top'>
<div id="tabs-mailhelp">
<ul>
<li class="help"><a href="#tabs-mailhelp-out"><?php __("Outgoing mail (SMTP)"); ?></a></li>
<li class="help"><a href="#tabs-mailhelp-in"><?php __("Incoming mails"); ?></a></li>
</ul>
<div id="tabs-mailhelp-out">
<?php __("Which protocol would you use?"); ?>
<ul>
<li><b><a href="javascript:;" onClick="$('#cfg-submission').toggle();"><?php __("Submission");?></a></b>
<ul id='cfg-submission'>
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_submission); ?></li>
<li><b><?php __("Username: ");?></b> <?php __("The mail address you want to access <i>(example : myuser@example.tld)</i>");?></li>
<li><b><?php __("Port: ");?></b> 587</li>
<li><b><?php __("Authentication: ");?></b><?php __("Yes")?></li>
<li><b><?php __("Authentication method: ");?></b><?php __("Normal password")?></li>
<li><b><?php __("Connection security:");?></b> STARTTLS</li>
<div id="accordion-mailout">
<h4><?php __("Submission");?></h4>
<div>
<ul>
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_submission); ?></li>
<li><b><?php __("Username: ");?></b> <?php __("The mail address you want to access <i>(example : myuser@example.tld)</i>");?></li>
<li><b><?php __("Port: ");?></b> 587</li>
<li><b><?php __("Authentication: ");?></b><?php __("Yes")?></li>
<li><b><?php __("Authentication method: ");?></b><?php __("Normal password")?></li>
<li><b><?php __("Connection security:");?></b> STARTTLS</li>
</ul>
</li>
<li><b><a href="javascript:;" onClick="$('#cfg-smtp').toggle();"><?php __("SMTP");?></a></b>
<ul id='cfg-smtp'>
</div>
<h4><?php __("SMTP");?></h4>
<div>
<ul>
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_smtp); ?></li>
<li><b><?php __("Username: ");?></b> <?php __("The mail address you want to access <i>(example : myuser@example.tld)</i>");?></li>
<li><b><?php __("Port: ");?></b> 25</li>
......@@ -221,9 +221,10 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
<li><b><?php __("Authentication method: ");?></b><?php __("Normal Password")?></li>
<li><b><?php __("Connection security:");?></b> STARTTLS</li>
</ul>
</li>
<li><b><a href="javascript:;" onClick="$('#cfg-smtps').toggle();"><?php __("SMTPS");?></a></b>
<ul id='cfg-smtps'>
</div>
<h4><?php __("SMTPS");?></h4>
<div>
<ul>
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_smtps); ?></li>
<li><b><?php __("Username: ");?></b> <?php __("The mail address you want to access <i>(example : myuser@example.tld)</i>");?></li>
<li><b><?php __("Port: ");?></b> 465</li>
......@@ -231,64 +232,80 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
<li><b><?php __("Authentication method: ");?></b><?php __("Normal Password")?></li>
<li><b><?php __("Connection security:");?></b> SSL</li>
</ul>
</li>
</ul>
</td>
<td valign='top'>
</div>
</div><!-- accordion-mailout -->
</div><!-- tabs-mailhelp-out -->
<div id="tabs-mailhelp-in">
<?php __("Which protocol would you use?"); ?>
<ul>
<li><b><a href="javascript:;" onClick="$('#cfg-imap').toggle();"><?php __("IMAP");?></a></b>
<ul id='cfg-imap'>
<div id="accordion-mailin">
<h4><?php __("IMAP");?></h4>
<div>
<ul>
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_imap); ?></li>
<li><b><?php __("Port: ");?></b> 143</li>
<li><b><?php __("Authentication: ");?></b><?php __("Yes")?></li>
<li><b><?php __("Authentication method: ");?></b><?php __("Normal password")?></li>
<li><b><?php __("Connection security:");?></b> STARTTLS</li>
</ul>
</li>
</div>
<li><b><a href="javascript:;" onClick="$('#cfg-imaps').toggle();"><?php __("IMAPS");?></a></b>
<ul id='cfg-imaps'>
<h4><?php __("IMAPS");?></h4>
<div>
<ul>
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_imaps); ?></li>
<li><b><?php __("Port: ");?></b> 993</li>
<li><b><?php __("Authentication: ");?></b><?php __("Yes")?></li>
<li><b><?php __("Authentication method: ")?></b><?php __("Normal password")?></li>
<li><b><?php __("Connection security:");?></b> SSL</li>
</ul>
</li>
</div>
<li><b><a href="javascript:;" onClick="$('#cfg-pop3').toggle();"><?php __("POP3");?></a></b>
<ul id='cfg-pop3'>
<h4><?php __("POP3");?></h4>
<div>
<ul>
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_pop3); ?></li>
<li><b><?php __("Port: ");?></b> 110</li>
<li><b><?php __("Authentication: ");?></b><?php __("Yes")?></li>
<li><b><?php __("Authentication method: ");?></b><?php __("Normal password")?></li>
<li><b><?php __("Connection security:");?></b> STARTTLS</li>
</ul>
</li>
</div>
<li><b><a href="javascript:;" onClick="$('#cfg-pop3s').toggle();"><?php __("POP3S");?></a></b>
<ul id='cfg-pop3s'>
<h4><?php __("POP3S");?></h4>
<div>
<ul>
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_pop3s); ?></li>
<li><b><?php __("Port: ");?></b> 995</li>
<li><b><?php __("Authentication: ");?></b><?php __("Yes")?></li>
<li><b><?php __("Authentication method: ");?></b><?php __("Normal password")?></li>
<li><b><?php __("Connection security:");?></b> SSL</li>
</ul>
</li>
</ul>
</td>
</tr>
</table>
</div>
</div>
</div><!-- tabs-mailhelp-in -->
</div><!-- tabs-mailhelp -->
<script type="text/javascript">
$('#cfg-submission').toggle();
$('#cfg-smtp').toggle();
$('#cfg-smtps').toggle();
$('#cfg-imap').toggle();
$('#cfg-imaps').toggle();
$('#cfg-pop3').toggle();
$('#cfg-pop3s').toggle();
$(function() {
$( "#accordion-mailout" ).accordion({
collapsible: true, active: false, header: "h4", heightStyle: "content"
});
});
$(function() {
$( "#accordion-mailin" ).accordion({
collapsible: true, active: false, header: "h4", heightStyle: "content"
});
});
$(function() {$( "#tabs-mailhelp" ).tabs();});
</script>
......
......@@ -52,17 +52,29 @@ if (!empty($help_setting)) {
exit();
}
?>
<hr id="topbar"/>
<p>
<?php __("Password change"); ?> : <br />
<div id="tabsmem">
<ul>
<li class="hta"><a href="#tabsmem-password"><?php __("Password"); ?></a></li>
<li class="mail"><a href="#tabsmem-mail"><?php __("Mail"); ?></a></li>
<li class="help"><a href="#tabsmem-help"><?php __("Help"); ?></a></li>
<?php
if ($mem->user["su"]) { ?>
<li class="admin"><a href="#tabsmem-admin"><?php __("Administrator"); ?></a></li> <?php
}
?>
</ul>
<div id="tabsmem-password">
<h3><?php __("Password change"); ?></h3>
<?php
if (!$mem->user["canpass"]) {
echo "<p>";
__("You cannot change your password");
echo "</p>";
} else {
echo "<p>";
__("help_chg_passwd"); ?>
</p>
<form method="post" action="mem_passwd.php" name="main" id="main">
......@@ -70,53 +82,55 @@ if (!$mem->user["canpass"]) {
<tr><th><?php __("Old password"); ?></th><td><input type="password" class="int" name="oldpass" value="<?php isset($oldpass) ? : $oldpass=""; echo $oldpass; ?>" size="20" maxlength="128" /></td></tr>
<tr><th><?php __("New password"); ?> (1)</th><td><input type="password" class="int" id="newpass" name="newpass" value="<?php isset($newpass) ? : $newpass=""; echo $newpass; ?>" size="20" maxlength="60" /><?php display_div_generate_password(DEFAULT_PASS_SIZE,"#newpass","#newpass2"); ?></td></tr>
<tr><th><?php __("New password"); ?> (2)</th><td><input type="password" class="int" id="newpass2" name="newpass2" value="<?php isset($newpass2) ? : $newpass2=""; echo $newpass2;?>" size="20" maxlength="61" /></td></tr>
<tr class="trbtn"><td colspan="3"><input type="submit" class="inb" name="submit" value="<?php __("Change my password"); ?>" /></td></tr>
<tr class="trbtn"><td colspan="3"><input type="submit" class="inb ok" name="submit" value="<?php __("Change my password"); ?>" /></td></tr>
</table>
</form>
<br />
<?php } ?>
<hr id="topbar2"/>
</div> <!-- tabsmem-password -->
<div id="tabsmem-mail">
<h3><?php __("Change the email of the account"); ?></h3>
<form method="post" action="mem_chgmail.php">
<table border="1" cellspacing="0" cellpadding="4" class="tedit">
<tr><td colspan="2"><?php __("Change the email of the account"); ?><br />
<?php __("help_chg_mail"); ?></td></tr>
<tr><td colspan="2"><?php __("help_chg_mail"); ?></td></tr>
<tr><th><?php __("Current mailbox"); ?></th><td><big><code><?php echo $mem->user["mail"]; ?></code></big></td></tr>
<tr><th><?php __("New mailbox"); ?></th><td><input type="text" class="int" name="newmail" value="<?php isset($newmail) ? : $newmail=""; echo $newmail;?>" size="40" maxlength="128" /></td></tr>
<tr class="trbtn"><td colspan="3"><input type="submit" class="inb" name="submit" value="<?php __("Change my email address"); ?>" /></td></tr>
<tr class="trbtn"><td colspan="3"><input type="submit" class="inb ok" name="submit" value="<?php __("Change my email address"); ?>" /></td></tr>
</table>
</form>
<br />
<hr id="topbar3"/>
</div> <!-- tabsmem-mail -->
<div id="tabsmem-help">
<h3><?php __("Online help settings"); ?></h3>
<form method="post" action="mem_param.php">
<table border="1" cellspacing="0" cellpadding="4" class="tedit">
<tr><td colspan="2"><?php __("Online help settings"); ?><br />
<?php __("help_help_settings"); ?></td></tr>
<tr><td colspan="2"><?php __("help_help_settings"); ?></td></tr>
<tr><th><label for="showhelp"><?php __("Do you want to see the help texts and links on each page?"); ?></label></th><td><input type="checkbox" class="inc" id="showhelp" name="showhelp" value="1" <?php if ($mem->get_help_param()) echo "checked=\"checked\""; ?> /></td></tr>
<tr class="trbtn"><td colspan="3"><input type="submit" class="inb" name="help_setting" value="<?php __("Change these settings"); ?>" /></td></tr>
<tr class="trbtn"><td colspan="3"><input type="submit" class="inb ok" name="help_setting" value="<?php __("Change these settings"); ?>" /></td></tr>
</table>
</form>
<br />
</div> <!-- tabsmem-help -->
<?php
if ($mem->user["su"]) {
?>
<hr id="topbar4"/>
<p>
<?php __("Admin preferences"); ?> :
</p>
<div id="tabsmem-admin">
<h3><?php __("Admin preferences"); ?></h3>
<form method="post" action="mem_admin.php">
<table border="1" cellspacing="0" cellpadding="4" class="tedit">
<tr><th><?php __("Members list view"); ?></th><td><select name="admlist" class="inl">
<option value="0"<?php if ($mem->user["admlist"]==0) echo " selected=\"selected\""; ?>><?php __("Large view"); ?></option>
<option value="1"<?php if ($mem->user["admlist"]==1) echo " selected=\"selected\""; ?>><?php __("Short view"); ?></option>
</select></td></tr>
<tr class="trbtn"><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Change my admin preferences"); ?>" /></td></tr>
<tr class="trbtn"><td colspan="2"><input type="submit" class="inb ok" name="submit" value="<?php __("Change my admin preferences"); ?>" /></td></tr>
</table>
</form>
<br />
</div> <!-- tabsmem-admin -->
<?php } ?>
<hr id="topbar5"/>
</div> <!-- tabsmem -->
<script type="text/javascript">
document.forms['main'].oldpass.focus();
$(function() {$( "#tabsmem" ).tabs();});
</script>
<?php include_once("foot.php"); ?>
......@@ -687,6 +687,13 @@ div.progress-bar div.txt {
padding-left: 30px;
}
.settings a, a.settings, input.settings {
background-image: url(../icon/settings.png);
background-repeat: no-repeat;
background-position: 8px 3px;
padding-left: 30px;
}
.ok a, a.ok, input.ok {
background-image: url(../icon/ok.png);
background-repeat: no-repeat;
......@@ -856,7 +863,7 @@ div.progress-bar div.txt {
}
.mem a, a.mem, input.mem, .mem-menu .menu-title {
background-image: url(../images/config.png);
background-image: url(../images/settings.png);
background-repeat: no-repeat;
background-position: 8px 3px;
padding-left: 30px;
......@@ -869,3 +876,46 @@ div.progress-bar div.txt {
padding-left: 30px;
}
body .ui-widget-content {
/* margin-top: 15px; */
}
body .ui-widget-header {
background: #CFE3F1;
}
body .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited {
color: #0D5689;
}
body .ui-state-default, body .ui-widget-content .ui-state-default, body .ui-widget-header .ui-state-default {
background: #F0F0F4;
}
body .ui-state-active, body .ui-widget-content, body .ui-state-active, body .ui-widget-header .ui-state-active {
background: #F0F0F4;
}
body .ui-state-active a, body .ui-state-active a:link {
color: black;
font-weight: none;
}
body .ui-tabs .ui-tabs-panel {
background: #F0F0F4;
}
body .ui-tabs .ui-tabs-nav li a {
padding: .5em 1em .5em 30px;
}
body .ui-state-active, body .ui-widget-content .ui-state-active, body .ui-widget-header .ui-state-active,
body ui-state-hover, body .ui-widget-content .ui-state-hover, body .ui-widget-header .ui-state-hover, body .ui-state-focus, body .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus,
body .ui-state-default, body .ui-widget-content .ui-state-default, body .ui-widget-header .ui-state-default {
font-weight: normal;
}
body .ui-dialog .ui-dialog-title {
color: black;
}
......@@ -656,7 +656,7 @@ function display_browser($dir="", $caller="main.dir", $width=350, $height=450) {
document.write('&nbsp;<input type=\"button\" id=\"bt".$bid."\" value=\""._("Choose a folder...")."\" class=\"ina\">');
document.write('<div id=\"".$bid."\" title=\""._("Choose a folder...")."\" style=\"display: none; bgcolor:red;\">');
document.write(' <iframe src=\"/browseforfolder2.php?caller=".$caller."&amp;file=".ehe($dir, 0)."&amp;bid=".$bid."\" width=\"".($width-25)."\" height=\"".($height-50)."\" frameborder=\"no\" id=\"browseiframe\"></iframe>');
document.write(' <iframe src=\"/browseforfolder2.php?caller=".$caller."&amp;file=".ehe($dir, 0)."&amp;bid=".$bid."\" width=\"".($width-40)."\" height=\"".($height-64)."\" frameborder=\"no\" id=\"browseiframe\"></iframe>');
document.write('</div>');
// -->
</script>
......
......@@ -61,7 +61,7 @@ class m_mem {
function hook_menu() {
$obj = array(
'title' => _("Settings"),
'ico' => 'images/config.png',
'ico' => 'images/settings.png',
'link' => 'mem_param.php',
'pos' => 160,
) ;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment