sendcloud.html.php 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * The sendcloud view file of mail module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Chunsheng Wang <wwccss@cnezsoft.com>
  8. * @package mail
  9. * @version $Id$
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php include $this->app->getModuleRoot() . 'message/view/header.html.php';?>
  14. <div id='mainContent' class='main-content'>
  15. <div class='center-block mw-700px'>
  16. <div class='main-header'>
  17. <h2>
  18. <?php echo $lang->mail->common;?>
  19. <small class='text-muted'> <?php echo $lang->arrow . $lang->mail->edit;?></small>
  20. </h2>
  21. </div>
  22. <form method='post' target='hiddenwin' id='dataform'>
  23. <table class='table table-form'>
  24. <tr>
  25. <th class='rowhead w-120px'><?php echo $lang->mail->turnon; ?></th>
  26. <td><?php echo html::radio('turnon', $lang->mail->turnonList, isset($mailConfig->turnon) ? $mailConfig->turnon : 1);?></td>
  27. </tr>
  28. <?php if(!empty($config->global->cron)):?>
  29. <tr>
  30. <th class='text-top'><?php echo $lang->mail->async?></th>
  31. <td><?php echo html::radio('async', $lang->mail->asyncList, zget($config->mail, 'async', 0))?></td>
  32. </tr>
  33. <?php endif;?>
  34. <tr>
  35. <tr>
  36. <th><?php echo $lang->mail->domain?></th>
  37. <td><?php echo html::input('domain', zget($config->mail, 'domain', common::getSysURL()), "class='form-control'")?></td>
  38. </tr>
  39. <th><?php echo $lang->mail->accessKey; ?></th>
  40. <td>
  41. <div class='required required-wrapper'></div>
  42. <?php echo html::input('accessKey', isset($mailConfig->accessKey) ? $mailConfig->accessKey : '', "class='form-control'");?>
  43. </td>
  44. </tr>
  45. <tr>
  46. <th><?php echo $lang->mail->secretKey; ?></th>
  47. <td>
  48. <div class='required required-wrapper'></div>
  49. <?php echo html::input('secretKey', isset($mailConfig->secretKey) ? $mailConfig->secretKey : '', "class='form-control'");?>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td colspan='2' class='text-center'>
  54. <?php
  55. echo html::submitButton();
  56. if($config->mail->turnon and $mailExist) echo html::linkButton($lang->mail->test, inlink('test'));
  57. echo html::linkButton($lang->mail->closeSendCloud, inlink('reset'));
  58. if($config->mail->turnon and common::hasPriv('mail', 'sendcloudUser')) echo html::linkButton($lang->mail->sendcloudUser, inlink('sendcloudUser'));
  59. if(common::hasPriv('mail', 'browse') and !empty($config->mail->async) and !empty($config->global->cron)) echo html::linkButton($lang->mail->browse, inlink('browse'));
  60. ?>
  61. </td>
  62. </tr>
  63. </table>
  64. </form>
  65. <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>
  66. </div>
  67. </div>
  68. <?php include '../../common/view/footer.html.php';?>