* adjust code for task #569 and #555.

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-10-23 01:31:26 +00:00
parent 3568359288
commit 682dbbb6a0
6 changed files with 12 additions and 14 deletions
+3 -1
View File
@@ -12,6 +12,7 @@
include '../../common/view/header.html.php';
include '../../common/view/tablesorter.html.php';?>
<?php
$mta = 'smtp';
$gmailUsername = '';
$gmailPassword = '';
$smtpUsername = '';
@@ -20,6 +21,7 @@ $smtpHost = '';
$smtpSecure = '';
$smtpAuth = '';
$smtpPort = '';
if(!empty($mailConfig->mta)) $mta = $mailConfig->mta;
if(!empty($mailConfig->gmail->username)) $gmailUsername = $mailConfig->gmail->username;
if(!empty($mailConfig->gmail->password)) $gmailPassword = $mailConfig->gmail->password;
if(!empty($mailConfig->smtp->username)) $smtpUsername = $mailConfig->smtp->username;
@@ -38,7 +40,7 @@ if(!empty($mailConfig->smtp->port)) $smtpPort = $mailConfig->smtp->por
</tr>
<tr>
<th class='rowhead'><?php echo $lang->mail->mta; ?></th>
<td><?php echo html::select('mta', $lang->mail->mtaList, $mailConfig->mta, 'class=select-3 onchange=setMtaType(this.value)'); ?></td>
<td><?php echo html::select('mta', $lang->mail->mtaList, $mta, 'class=select-3 onchange=setMtaType(this.value)'); ?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->mail->fromAddress; ?></th>