smtpview.html.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * The install SMTP view file of system 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 Jianhua Wang <wangjianhua@easycorp.ltd>
  8. * @package system
  9. * @version $Id$
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php include $this->app->getModuleRoot() . '/common/view/header.html.php';?>
  14. <?php js::set('instanceNotices', $lang->instance->notices);?>
  15. <?php js::set('instanceIdList', array($smtpInstance->id));?>
  16. <div id='mainMenu' class='clearfix'>
  17. <div class='btn-toolbar pull-left'>
  18. <?php echo html::a($this->createLink('system', 'index'), "<i class='icon icon-back icon-sm'></i>" . $lang->goback, '', "class='btn btn-secondary'");?>
  19. </div>
  20. </div>
  21. <div id='mainContent' class='main-row'>
  22. <div class='main-col main-content'>
  23. <div class='main-header'>
  24. <h2><?php echo $lang->system->SMTP->common;?></h2>
  25. <div class='smtp-button-group btn-toolbar pull-right'>
  26. <?php $this->system->printSMTPButtons($smtpInstance);?>
  27. </div>
  28. </div>
  29. <table class='table table-form instance-status' instance-id='<?php echo $smtpInstance->id;?>' data-status='<?php echo $smtpInstance->status;?>'>
  30. <tbody>
  31. <tr>
  32. <th><?php echo $lang->system->SMTP->account;?></th>
  33. <td><?php echo zget($smtpSettings, 'SMTP_USER', '');?></td>
  34. </tr>
  35. <tr>
  36. <th><?php echo $lang->system->SMTP->password;?></th>
  37. <td>
  38. <div class='w-250px input-group'>
  39. <?php echo html::password('smtp_password', zget($smtpSettings, 'SMTP_PASS', ''), "readonly class='form-control'");?>
  40. <span class='input-group-addon'><button id='smtpPassBtn'><i class='icon icon-eye-off'></i></button></span>
  41. </div>
  42. </td>
  43. </tr>
  44. <tr>
  45. <th><?php echo $lang->system->SMTP->host;?></th>
  46. <td><?php echo zget($smtpSettings, 'SMTP_HOST', '');?></td>
  47. </tr>
  48. <tr>
  49. <th><?php echo $lang->system->SMTP->port;?></th>
  50. <td><?php echo zget($smtpSettings, 'SMTP_PORT', '');?></td>
  51. </tr>
  52. <tr>
  53. <th><?php echo $lang->instance->status;?></th>
  54. <td><span><?php echo zget($lang->instance->statusList, $smtpInstance->status, '');?></span></td>
  55. </tr>
  56. </tbody>
  57. </table>
  58. </div>
  59. </div>
  60. <?php include $this->app->getModuleRoot() . '/common/view/footer.html.php';?>