Skip to content

Commit fbfdd51

Browse files
WEB/MAIL. Added webmail url to the mail configuration helper
1 parent e6a3aac commit fbfdd51

File tree

3 files changed

+39
-5
lines changed

3 files changed

+39
-5
lines changed

web/css/styles.min.css

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,6 +1285,10 @@ div.l-content > div.l-separator:nth-of-type(4) {
12851285
height: 28px;
12861286
min-width: 208px;
12871287
padding-left: 4px;
1288+
appearance:none;
1289+
-moz-appearance:none;
1290+
-webkit-appearance:none;
1291+
padding-left: 10px;
12881292
}
12891293
.l-select select:focus {
12901294
border: 0;
@@ -2465,6 +2469,7 @@ label {
24652469
font-size: 19px;
24662470
font-weight: normal;
24672471
height: 43px;
2472+
cursor: pointer;
24682473
margin: 2px 6px 0 0;
24692474
min-width: 138px;
24702475
padding: 8px 1px 6px 10px;
@@ -2475,7 +2480,6 @@ label {
24752480
-moz-appearance:none;
24762481
-webkit-appearance:none;
24772482
text-shadow: 0 0 0 #555;
2478-
cursor: pointer;
24792483
}
24802484

24812485
.vst-list.long-2 {
@@ -2503,6 +2507,9 @@ label {
25032507
background-position: -210px -604px;
25042508
text-shadow: none !important;
25052509
}
2510+
.vst-list.flat:hover {
2511+
color: #ff6701;
2512+
}
25062513

25072514
a.vst-text,
25082515
a.vst-text b{
@@ -2548,6 +2555,9 @@ a.vst-text:active b{
25482555
font-family:"Lucida Console", Monaco, monospace;
25492556
white-space: pre;
25502557
}
2558+
.vst-textinput.short {
2559+
width: 360px;
2560+
}
25512561
#advanced-options .console{
25522562
width: 833px;
25532563
height: 600px;
@@ -2823,8 +2833,8 @@ a.button.cancel {
28232833
font-size: 12px;
28242834
color: #777;
28252835
border: 1px solid #d9d9d9;
2826-
padding: 7px 5px 12px 20px;
2827-
margin-top: 17px;
2836+
padding: 0px 5px 12px 20px;
2837+
margin-top: 64px;
28282838
width: 334px;
28292839
overflow: hidden;
28302840
}
@@ -2844,6 +2854,12 @@ a.button.cancel {
28442854
width: 190px;
28452855
white-space: nowrap;
28462856
}
2857+
.mail-infoblock a {
2858+
color: #2c9491;
2859+
}
2860+
.mail-infoblock a:hover {
2861+
color: #ff6701;
2862+
}
28472863

28482864
.additional-info {
28492865
margin-left: 30px;

web/templates/admin/add_mail_acc.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,15 @@
184184
<td><?=__('SMTP auth method')?>:</td>
185185
<td><div><?=__('Normal password')?></div></td>
186186
</tr>
187+
<?
188+
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
189+
$webmail = "http://".$http_host."/webmail/";
190+
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
191+
?>
192+
<tr>
193+
<td><?=__('Webmail URL')?>:</td>
194+
<td><div><a class="vst" href="<?=$webmail?>" target="_blank"><?=$webmail?> <i></i></a></div></td>
195+
</tr>
187196
</table>
188197
</div>
189198
</td>

web/templates/admin/edit_mail_acc.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
</tr>
8787
<tr>
8888
<td>
89-
<textarea size="20" class="vst-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo htmlentities($v_aliases); ?></textarea>
89+
<textarea size="20" class="vst-textinput short" name="v_aliases"><?php if (!empty($v_aliases)) echo htmlentities($v_aliases); ?></textarea>
9090
</td>
9191
</tr>
9292
<tr>
@@ -193,10 +193,19 @@
193193
<td><?=__('SMTP auth method')?>:</td>
194194
<td><div><?=__('Normal password')?></div></td>
195195
</tr>
196+
<?
197+
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
198+
$webmail = "http://".$http_host."/webmail/";
199+
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
200+
?>
201+
<tr>
202+
<td><?=__('Webmail URL')?>:</td>
203+
<td><div><a class="vst" href="<?=$webmail?>" target="_blank"><?=$webmail?> <i></i></a></div></td>
204+
</tr>
196205
</table>
197206
</div>
198207
</td>
199208
</tr>
200209
</table>
201210
</form>
202-
</div>
211+
</div>

0 commit comments

Comments
 (0)