Clean up css for mail.php.
This commit is contained in:
parent
a2550cf865
commit
74ceb411ea
@ -1612,8 +1612,24 @@ table.overboard_results_table {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
/* config (user.php) */
|
||||
/* mail.php */
|
||||
.mail_post_page {
|
||||
color: var(--color-text);
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
.mail_results_table {
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
border: none;
|
||||
border-spacing: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
font-size: 0.7em;
|
||||
}
|
||||
|
||||
/* config (user.php) */
|
||||
.config_results_table {
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
|
@ -309,6 +309,7 @@ if (isset($_POST['command']) && $_POST['command'] == 'Send') {
|
||||
}
|
||||
$dbh = null;
|
||||
}
|
||||
echo '<div class = "mail_post_page">';
|
||||
echo '<h3>Send Message:</h3>';
|
||||
echo "<form action='mail.php' method='POST'>";
|
||||
echo '<table><tbody><tr>';
|
||||
@ -335,6 +336,7 @@ if (isset($_POST['command']) && $_POST['command'] == 'Send') {
|
||||
echo "<input type='hidden' name='username' value='" . $_POST['username'] . "' >";
|
||||
echo "<td></td><td><input type='submit' value='Send Mail' name='sendMessage' ></td>";
|
||||
echo '</tr></tbody></table></form>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
view_mailbox($user);
|
||||
@ -346,7 +348,7 @@ function view_mailbox($user)
|
||||
$database = $spooldir . '/mail.db3';
|
||||
$dbh = mail_db_open($database);
|
||||
echo '<hr><h1 class="np_thread_headline">My Messages:</h1>';
|
||||
echo '<table class="np_results_table">';
|
||||
echo '<table class="mail_results_table">';
|
||||
$query = $dbh->prepare('SELECT * FROM messages WHERE mail_from=:mail_from OR rcpt_to=:mail_from ORDER BY date DESC');
|
||||
$query->execute([
|
||||
'mail_from' => $user
|
||||
|
Loading…
x
Reference in New Issue
Block a user