diff options
author | Aleksander Machniak <alec@alec.pl> | 2017-11-18 17:55:48 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2017-11-18 18:32:06 +0300 |
commit | bb65c9d4448b973e00f71fec0f293ae133dddca9 (patch) | |
tree | 97dbb260b8370c0a377aa3947c7c61e8a816be58 /installer | |
parent | 025adb4a62af75f362b29a2d2b1a075963f25074 (diff) |
Small visual improvement
Diffstat (limited to 'installer')
-rw-r--r-- | installer/styles.css | 5 | ||||
-rw-r--r-- | installer/test.php | 60 |
2 files changed, 39 insertions, 26 deletions
diff --git a/installer/styles.css b/installer/styles.css index 06f49e370..339b6b583 100644 --- a/installer/styles.css +++ b/installer/styles.css @@ -141,6 +141,11 @@ th { text-align: left; } +td > label { + min-width: 6em; + display: inline-block; +} + ul li { margin: 0.3em 0 0.4em -1em; } diff --git a/installer/test.php b/installer/test.php index a79adc170..f3f36c85e 100644 --- a/installer/test.php +++ b/installer/test.php @@ -240,42 +240,50 @@ else { echo "<br/>"; } -?> - - -<h3>Test SMTP config</h3> - -<p> -Server: <?php echo rcube_utils::parse_host($RCI->getprop('smtp_server', 'localhost')); ?><br /> -Port: <?php echo $RCI->getprop('smtp_port'); ?><br /> - -<?php - -if ($RCI->getprop('smtp_server')) { - $user = $RCI->getprop('smtp_user', '(none)'); - $pass = $RCI->getprop('smtp_pass', '(none)'); +$user = $RCI->getprop('smtp_user', '(none)'); +$pass = $RCI->getprop('smtp_pass', '(none)'); - if ($user == '%u') { - $user_field = new html_inputfield(array('name' => '_smtp_user')); +if ($user == '%u') { + $user_field = new html_inputfield(array('name' => '_smtp_user', 'id' => 'smtp_user')); $user = $user_field->show($_POST['_smtp_user']); - } - if ($pass == '%p') { - $pass_field = new html_passwordfield(array('name' => '_smtp_pass')); +} +if ($pass == '%p') { + $pass_field = new html_passwordfield(array('name' => '_smtp_pass', 'id' => 'smtp_pass')); $pass = $pass_field->show(); - } - - echo "User: $user<br />"; - echo "Password: $pass<br />"; } -$from_field = new html_inputfield(array('name' => '_from', 'id' => 'sendmailfrom')); -$to_field = new html_inputfield(array('name' => '_to', 'id' => 'sendmailto')); - ?> + +<h3>Test SMTP config</h3> + +<p> +<table> +<tbody> + <tr> + <td><label for="smtp_server">Server</label></td> + <td><?php echo rcube_utils::parse_host($RCI->getprop('smtp_server', 'localhost')); ?></td> + </tr> + <tr> + <td><label for="smtp_port">Port</label></td> + <td><?php echo $RCI->getprop('smtp_port'); ?></td> + </tr> + <tr> + <td><label for="smtp_user">Sender</label></td> + <td><?php echo $user; ?></td> + </tr> + <tr> + <td><label for="smtp_pass">Recipient</label></td> + <td><?php echo $pass; ?></td> + </tr> +</tbody> +</table> </p> <?php +$from_field = new html_inputfield(array('name' => '_from', 'id' => 'sendmailfrom')); +$to_field = new html_inputfield(array('name' => '_to', 'id' => 'sendmailto')); + if (isset($_POST['sendmail'])) { echo '<p>Trying to send email...<br />'; |