ztcloud.html.php 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /**
  3. * The ztcloud 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 Yidong Wang <yidong@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-800px'>
  16. <?php if($step == 'license'):?>
  17. <div class='main-header'>
  18. <h2><?php echo $lang->mail->license;?></h2>
  19. </div>
  20. <div class='content' style='padding:20px;'>
  21. <div class='license'><?php echo$lang->mail->ztCloudNotice;?></div>
  22. <p>
  23. <?php echo html::a("javascript:agreeLicense()", $lang->mail->agreeLicense, '', "class='btn'");?>
  24. <?php echo html::a(inlink('index'), $lang->mail->disagree, '', "class='btn'");?>
  25. </p>
  26. </div>
  27. <?php else:?>
  28. <div class='main-header'>
  29. <h2>
  30. <?php echo $lang->mail->common;?>
  31. <small class='text-muted'> <?php echo $lang->arrow . $lang->mail->edit;?></small>
  32. </h2>
  33. </div>
  34. <form method='post' target='hiddenwin' id='dataform'>
  35. <table class='table table-form'>
  36. <tr>
  37. <th class='w-80px'><?php echo $lang->mail->turnon; ?></th>
  38. <td class='w-250px'><?php echo html::radio('turnon', $lang->mail->turnonList, isset($mailConfig->turnon) ? $mailConfig->turnon : 1);?></td>
  39. </tr>
  40. <?php if(!empty($config->global->cron)):?>
  41. <tr>
  42. <th class='text-top'><?php echo $lang->mail->async?></th>
  43. <td><?php echo html::radio('async', $lang->mail->asyncList, zget($config->mail, 'async', 0))?></td>
  44. </tr>
  45. <?php endif;?>
  46. <tr>
  47. <th><?php echo $lang->mail->domain?></th>
  48. <td><?php echo html::input('domain', zget($config->mail, 'domain', common::getSysURL()), "class='form-control'")?></td>
  49. </tr>
  50. <tr>
  51. <th><?php echo $lang->mail->fromAddress; ?></th>
  52. <td><?php echo html::input('fromAddress', $mailConfig->fromAddress, "class='form-control'");?></td>
  53. <td><?php echo $lang->mail->addressWhiteList?></td>
  54. </tr>
  55. <tr>
  56. <th><?php echo $lang->mail->fromName; ?></th>
  57. <td>
  58. <div class='required'></div>
  59. <?php echo html::input('fromName', $mailConfig->fromName, "class='form-control'");?>
  60. </td>
  61. </tr>
  62. <tr>
  63. <td colspan='3' class='text-center form-actions'>
  64. <?php echo html::submitButton();?>
  65. <?php
  66. if($config->mail->turnon and $mailExist) echo html::a(inlink('test'), $lang->mail->test, '', "class='btn btn-wide'");
  67. echo html::a(inlink('reset'), $lang->mail->reset, '', "class='btn btn-wide'");
  68. if(common::hasPriv('mail', 'browse') and !empty($config->mail->async) and !empty($config->global->cron)) echo html::a(inlink('browse'), $lang->mail->browse, '', "class='btn btn-wide'");
  69. ?>
  70. </td>
  71. </tr>
  72. </table>
  73. </form>
  74. <?php endif;?>
  75. </div>
  76. </div>
  77. <?php include '../../common/view/footer.html.php';?>