Files
EasySoft-ZenTaoPMS/module/mail/view/edit.html.php
2016-11-25 15:32:28 +08:00

108 lines
4.5 KiB
PHP
Executable File

<?php
/**
* The edit view file of mail module of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv12.html)
* @author Chunsheng Wang <wwccss@cnezsoft.com>
* @package mail
* @version $Id$
* @link http://www.zentao.net
*/
include '../../common/view/header.html.php';
?>
<div class='container mw-800px'>
<div id='titlebar'>
<div class='heading'>
<span class='prefix'><?php echo html::icon($lang->icons['mail']);?></span>
<strong><?php echo $lang->mail->common;?></strong>
<small class='text-muted'> <?php echo $lang->mail->edit;?> <?php echo html::icon('pencil');?></small>
</div>
</div>
<form class='form-condensed' method='post' action='<?php echo inlink('save');?>' id='dataform'>
<table class='table table-form'>
<tr>
<th class='rowhead w-110px'><?php echo $lang->mail->turnon; ?></th>
<td class='w-p25-f'><?php echo html::radio('turnon', $lang->mail->turnonList, 1);?></td>
<td></td>
<td></td>
</tr>
<?php if(!empty($config->global->cron)):?>
<tr>
<th class='text-top'><?php echo $lang->mail->async?></th>
<td><?php echo html::radio('async', $lang->mail->asyncList, zget($config->mail, 'async', 0))?></td>
</tr>
<?php endif;?>
<tr>
<th><?php echo $lang->mail->fromAddress; ?></th>
<td><?php echo html::input('fromAddress', $mailConfig->fromAddress, "class='form-control'");?></td>
<td colspan='2'><?php echo $lang->mail->addressWhiteList?></td>
</tr>
<tr>
<th><?php echo $lang->mail->fromName; ?></th>
<td colspan='3'>
<div class='required required-wrapper'></div>
<?php echo html::input('fromName', $mailConfig->fromName, "class='form-control'");?>
</td>
</tr>
<tr>
<th><?php echo $lang->mail->domain; ?></th>
<td colspan='3'><?php echo html::input('domain', $mailConfig->domain, "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->mail->host; ?></th>
<td colspan='3'><?php echo html::input('host', $mailConfig->host, "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->mail->port; ?></th>
<td><?php echo html::input('port', $mailConfig->port, "class='form-control'");?></td>
<th class='w-70px'><?php echo $lang->mail->secure; ?></th>
<td>
<?php
if(!$openssl)
{
unset($lang->mail->secureList['ssl']);
unset($lang->mail->secureList['tls']);
$mailConfig->secure = '';
}
echo html::radio('secure', $lang->mail->secureList, $mailConfig->secure);
if(!$openssl) echo " &nbsp; <span class='text-warning'>" . $lang->mail->disableSecure . '</span>';
?>
</td>
</tr>
<tr>
<th><?php echo $lang->mail->auth; ?></th>
<td colspan='3'><?php echo html::radio('auth', $lang->mail->authList, $mailConfig->auth, 'onchange=setAuth(this.value)'); ?></td>
</tr>
<tr>
<th><?php echo $lang->mail->username; ?></th>
<td colspan='3'><?php echo html::input('username', $mailConfig->username, "class='form-control' autocomplete='off'") ?></td>
</tr>
<tr>
<th><?php echo $lang->mail->password; ?></th>
<td colspan='3'><?php echo html::password('password', $mailConfig->password, "class='form-control' autocomplete='off' placeholder='{$lang->mail->placeholder->password}'") ?></td>
</tr>
<tr>
<th><?php echo $lang->mail->debug; ?></th>
<td><?php echo html::radio('debug', $lang->mail->debugList, $mailConfig->debug);?></td>
</tr>
<tr>
<th><?php echo $lang->mail->charset; ?></th>
<td><?php echo html::radio('charset', $config->charsets[$this->cookie->lang], $mailConfig->charset);?></td>
</tr>
<tr>
<td colspan='2' class='text-center'>
<?php
echo html::submitButton();
if($this->config->mail->turnon and $mailExist) echo html::linkButton($lang->mail->test, inlink('test'));
echo html::linkButton($lang->mail->reset, inlink('reset'));
if(common::hasPriv('mail', 'browse') and !empty($config->mail->async) and !empty($config->global->cron)) echo html::linkButton($lang->mail->browse, inlink('browse'));
?>
</td>
</tr>
</table>
</form>
</div>
<?php include '../../common/view/footer.html.php';?>