| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- /**
- * The sendcloud view file of mail module of ZenTaoPMS.
- *
- * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
- * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
- * @author Chunsheng Wang <wwccss@cnezsoft.com>
- * @package mail
- * @version $Id$
- * @link https://www.zentao.net
- */
- ?>
- <?php include $this->app->getModuleRoot() . 'message/view/header.html.php';?>
- <div id='mainContent' class='main-content'>
- <div class='center-block mw-700px'>
- <div class='main-header'>
- <h2>
- <?php echo $lang->mail->common;?>
- <small class='text-muted'> <?php echo $lang->arrow . $lang->mail->edit;?></small>
- </h2>
- </div>
- <form method='post' target='hiddenwin' id='dataform'>
- <table class='table table-form'>
- <tr>
- <th class='rowhead w-120px'><?php echo $lang->mail->turnon; ?></th>
- <td><?php echo html::radio('turnon', $lang->mail->turnonList, isset($mailConfig->turnon) ? $mailConfig->turnon : 1);?></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>
- <tr>
- <th><?php echo $lang->mail->domain?></th>
- <td><?php echo html::input('domain', zget($config->mail, 'domain', common::getSysURL()), "class='form-control'")?></td>
- </tr>
- <th><?php echo $lang->mail->accessKey; ?></th>
- <td>
- <div class='required required-wrapper'></div>
- <?php echo html::input('accessKey', isset($mailConfig->accessKey) ? $mailConfig->accessKey : '', "class='form-control'");?>
- </td>
- </tr>
- <tr>
- <th><?php echo $lang->mail->secretKey; ?></th>
- <td>
- <div class='required required-wrapper'></div>
- <?php echo html::input('secretKey', isset($mailConfig->secretKey) ? $mailConfig->secretKey : '', "class='form-control'");?>
- </td>
- </tr>
- <tr>
- <td colspan='2' class='text-center'>
- <?php
- echo html::submitButton();
- if($config->mail->turnon and $mailExist) echo html::linkButton($lang->mail->test, inlink('test'));
- echo html::linkButton($lang->mail->closeSendCloud, inlink('reset'));
- if($config->mail->turnon and common::hasPriv('mail', 'sendcloudUser')) echo html::linkButton($lang->mail->sendcloudUser, inlink('sendcloudUser'));
- 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 class='alert alert-info alert-block' style='border-top:1px solid #ddd'><?php printf($lang->mail->sendCloudHelp, common::hasPriv('mail', 'sendcloudUser') ? inlink('sendcloudUser') : '#')?></div>
- </div>
- </div>
- <?php include '../../common/view/footer.html.php';?>
|