connect info on edit page

This commit is contained in:
Serghey Rodin 2016-10-06 11:25:32 +03:00
parent 4186ea0617
commit e05e01d007
3 changed files with 71 additions and 2 deletions

View file

@ -2808,7 +2808,7 @@ a.button.cancel {
vertical-align: top; vertical-align: top;
} }
.mail-infoblock { .mail-infoblock {
padding-top: 76px; padding-top: 80px;
margin-left: -100px; margin-left: -100px;
font-size: 12px; font-size: 12px;
color: #777; color: #777;
@ -2816,11 +2816,26 @@ a.button.cancel {
.mail-infoblock td { .mail-infoblock td {
color: #777; color: #777;
font-size: 14px; font-size: 14px;
height: 20px; height: 18px;
padding-right: 25px; padding-right: 25px;
font-weight: normal; font-weight: normal;
} }
.additional-info {
margin-left: 30px;
margin-top: 30px;
width: 547px;
}
.additional-info td {
font-size: 12px;
height: 22px;
font-weight: normal;
}
.additional-info td.details {
padding-left: 20px;
}
:focus {outline:none;} :focus {outline:none;}
::-moz-focus-inner {border:0;} ::-moz-focus-inner {border:0;}

View file

@ -86,6 +86,11 @@ randomString = function() {
randomstring += chars.substr(rnum, 1); randomstring += chars.substr(rnum, 1);
} }
document.v_edit_mail_acc.v_password.value = randomstring; document.v_edit_mail_acc.v_password.value = randomstring;
if($('input[name=v_password]').attr('type') == 'text')
$('#v_password').text(randomstring);
else
$('#v_password').text(Array(randomstring.length+1).join('*'));
} }
$(document).ready(function() { $(document).ready(function() {

View file

@ -137,6 +137,55 @@
</tr> </tr>
</table> </table>
</td> </td>
<td class="mail-infoblock-td">
<div class="mail-infoblock">
<table>
<?php $uname_arr=posix_uname(); $hostname=$uname_arr['nodename']; ?>
<tr>
<td><?=__('Username')?>:</td>
<td><span id="v_account">william.cage</span>@<?=htmlentities($v_domain)?></td>
</tr>
<tr>
<td><?=__('Password')?>:</td>
<td id="v_password">******</td>
</tr>
<tr>
<td><?=__('IMAP hostname')?>:</td>
<td><?=$hostname?></td>
</tr>
<tr>
<td><?=__('IMAP port')?>:</td>
<td>143</td>
</tr>
<tr>
<td><?=__('IMAP security')?>:</td>
<td><?=__('STARTTLS')?></td>
</tr>
<tr>
<td><?=__('IMAP auth method')?>:</td>
<td><?=__('Normal password')?></td>
</tr>
<tr>
<td><?=__('SMTP hostname')?></td>
<td><?=$hostname?></td>
</tr>
<tr>
<td><?=__('SMTP port')?>:</td>
<td>587</td>
</tr>
<tr>
<td><?=__('SMTP security')?>:</td>
<td><?=__('STARTTLS')?></td>
</tr>
<tr>
<td><?=__('SMTP auth method')?>:</td>
<td><?=__('Normal password')?></td>
</tr>
</table>
</div>
</td>
</tr> </tr>
</table> </table>
</form> </form>