sendclouduser.html.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. /**
  3. * The sendcloud user 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='mainMenu' class='clearfix'>
  15. <div class='btn-toolbar pull-left'>
  16. <div class='btn btn-link btn-active-text'><span class='text'><?php echo $lang->mail->sendcloudUser?></span></div>
  17. </div>
  18. </div>
  19. <div id='mainContent' class='main-row'>
  20. <div class='col-md-6'>
  21. <form class='main-table' method='post' target='hiddenwin' data-ride='table'>
  22. <div class='panel'>
  23. <div class='panel-heading'><strong><?php echo $lang->mail->unsyncUser?></strong></div>
  24. <table class='table table-fixed'>
  25. <thead>
  26. <tr>
  27. <th class='w-80px'>
  28. <div class="checkbox-primary check-all" title="<?php echo $lang->selectAll?>">
  29. <label></label>
  30. </div>
  31. <?php echo $lang->user->account;?>
  32. </th>
  33. <th class='w-150px'> <?php echo $lang->user->realname;?></th>
  34. <th class='w-150px'> <?php echo $lang->user->email;?></th>
  35. </tr>
  36. </thead>
  37. <tbody class='text-left'>
  38. <?php foreach($users as $key => $user):?>
  39. <?php if($user->email and isset($members[$user->email])) continue;?>
  40. <tr>
  41. <td class='c-id'>
  42. <div class="checkbox-primary">
  43. <input type='checkbox' name='unsyncList[]' value='<?php echo $user->account;?>'/>
  44. <label></label>
  45. <?php echo $user->account?>
  46. </div>
  47. </td>
  48. <td><?php echo $user->realname?></td>
  49. <td><?php echo $user->email?></td>
  50. </tr>
  51. <?php unset($users[$key]);?>
  52. <?php endforeach;?>
  53. </tbody>
  54. </table>
  55. <div class='table-footer'>
  56. <div class="checkbox-primary check-all"><label><?php echo $lang->selectAll?></label></div>
  57. <div class="table-actions btn-toolbar">
  58. <?php
  59. echo html::submitButton($lang->mail->sync);
  60. echo html::hidden('action', 'sync');
  61. ?>
  62. </div>
  63. </div>
  64. </div>
  65. </form>
  66. </div>
  67. <div class='col-md-6'>
  68. <form class='main-table' method='post' target='hiddenwin'>
  69. <div class='panel'>
  70. <div class='panel-heading'><strong><?php echo $lang->mail->syncedUser?></strong></div>
  71. <table class='table table-fixed'>
  72. <thead>
  73. <tr>
  74. <th class='w-80px'>
  75. <div class="checkbox-primary check-all" title="<?php echo $lang->selectAll?>">
  76. <label></label>
  77. </div>
  78. <?php echo $lang->user->account;?>
  79. </th>
  80. <th class='w-150px'> <?php echo $lang->user->realname;?></th>
  81. <th class='w-150px'> <?php echo $lang->user->email;?></th>
  82. </tr>
  83. </thead>
  84. <tbody class='text-left'>
  85. <?php foreach($users as $key => $user):?>
  86. <?php if(empty($user->email) or !isset($members[$user->email])) continue;?>
  87. <tr>
  88. <td class='c-id'>
  89. <div class="checkbox-primary">
  90. <input type='checkbox' name='syncedList[]' value='<?php echo $user->account;?>'/>
  91. <label></label>
  92. <?php echo $user->account?>
  93. </div>
  94. </td>
  95. <td><?php echo $user->realname?></td>
  96. <td><?php echo $user->email?></td>
  97. </tr>
  98. <?php endforeach;?>
  99. </tbody>
  100. </table>
  101. <div class='table-footer'>
  102. <div class="checkbox-primary check-all"><label><?php echo $lang->selectAll?></label></div>
  103. <div class="table-actions btn-toolbar">
  104. <?php
  105. echo html::submitButton($lang->mail->remove);
  106. echo html::hidden('action', 'delete');
  107. ?>
  108. </div>
  109. </div>
  110. </div>
  111. </form>
  112. </div>
  113. </div>
  114. <?php include '../../common/view/footer.html.php';?>