list_mail_acc.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <table class="sub-menu" style="background: white;">
  2. <tr>
  3. <td style="padding: 12px 0 8px 6px">
  4. <div style="float:left">
  5. <button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/mail/?domain=<?php echo $_GET['domain'] ?>'"> <?php print _('Add Mail Account');?> </button>
  6. </div>
  7. <div style="text-align: right; float: right;">
  8. <form action="/search/" method="get">
  9. <input type="text" name="q" style="margin: 2px 2px 0px 0px; width: 250px; padding: 3px;" size="30">
  10. <input type="submit" value="<?php print _('Search');?>" class="button" style="font-size: 12px; height: 24px;">
  11. </form>
  12. </div>
  13. <div style="float:left; padding-left: 26px;">
  14. <form action="/bulk/mail/" method="post" id="objects">
  15. <a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("objects");'> <?php print _('toggle all');?> </a>
  16. <select style="margin:0 2px 0 0px;" name="action">
  17. <option><?php print _('apply to selected');?></option>
  18. <option><?php print _('suspend');?></option>
  19. <option><?php print _('unsuspend');?></option>
  20. <option><?php print _('delete');?></option>
  21. </select>
  22. <input type="submit" name="ok" value="›" class="button" style="width: 37px; font-size: 12px; height: 24px;">
  23. </div>
  24. </td>
  25. </tr>
  26. </table>
  27. </td>
  28. </tr>
  29. </table>
  30. <div id="vstobjects">
  31. <div style="height:10px; font-size:0;"></div>
  32. <table class="data" style="background: #ebe9dc;">
  33. <tr>
  34. <td style="padding: 8px 2px 8px 0;">
  35. <a class="name" style="color: #555; font-size: 10pt;"><b><?php print _('Listing');?> <?php echo $_GET['domain'] ?></b></a>
  36. </td>
  37. </tr>
  38. </table>
  39. <div style="height:10px; font-size:0;"></div>
  40. <table class="data">
  41. <?php
  42. foreach ($data as $key => $value) {
  43. ++$i;
  44. if ($data[$key]['SUSPENDED'] == 'yes') {
  45. $status = 'suspended';
  46. $spnd_action = 'unsuspend' ;
  47. } else {
  48. $status = 'active';
  49. $spnd_action = 'suspend';
  50. }
  51. ?>
  52. <tr class="data-row">
  53. <td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
  54. <table class="data-col1">
  55. <tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="account[]" value="<?php echo $key?>" ><input type="hidden" name="domain" value="<?php echo $_GET['domain'] ?>" ></td></tr>
  56. <tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo date("d M Y", strtotime($data[$key]['DATE'])) ?></td></tr>
  57. <tr><td class="data-<?php echo $status ?>"><b><?php echo _($status); ?></b></td></tr>
  58. </table>
  59. </td>
  60. <td class="data-dotted" width="830px" style="vertical-align:top;">
  61. <table width="830px">
  62. <tr>
  63. <td></td>
  64. <td class="data-controls" width="50px"><a href="/edit/mail/?domain=<?php echo $_GET['domain'] ?>&account=<?php echo $key ?>"><img src="/images/edit.png" width="8px" height="8px"> <?php print _('edit');?></a></td>
  65. <td class="data-controls do_<?php echo $spnd_action ?>" width="80px">
  66. <img src="/images/suspend.png" width="7px" height="8px" class="do_<?php echo $spnd_action ?>">
  67. <a id="<?php echo $spnd_action ?>_link_<?php echo $i ?>" class="do_<?php echo $spnd_action ?>"> <?php echo _($spnd_action); ?></a>
  68. <input type="hidden" name="<?php echo $spnd_action ?>_url" value="/<?php echo $spnd_action ?>/mail/?domain=<?php echo $_GET['domain'] ?>&account=<?php echo $key ?>" />
  69. <div id="<?php echo $spnd_action ?>_dialog_<?php echo $i ?>" class="confirmation-text-suspention hidden" title="<?php print _('Confirmation');?>">
  70. <p class="counter-value"><?php print _('MAIL_ACCOUNT_ACTION_CONFIRMATION',_($spnd_action),$key);?></p>
  71. </div>
  72. </td>
  73. <td class="data-controls do_delete" width="70px">
  74. <img src="/images/delete.png" width="7px" height="7px" class="do_delete">
  75. <a id="delete_link_<?php echo $i ?>" class="do_delete"> <?php print _('delete');?></a>
  76. <input type="hidden" name="delete_url" value="/delete/mail/?domain=<?php echo $_GET['domain'] ?>&account=<?php echo $key ?>" />
  77. <div id="delete_dialog_<?php echo $i ?>" class="confirmation-text-delete hidden" title="<?php print _('Confirmation');?>">
  78. <p class="counter-value"><?php print _('MAIL_ACCOUNT_ACTION_CONFIRMATION',_('delete'),$key);?></p>
  79. </div>
  80. </td>
  81. </tr>
  82. </table>
  83. <table class="data-col2" width="830px">
  84. <tr><td colspan=3 class="domain" style="padding: 0 0 0 4px;"><b><?php echo $key."@".$_GET['domain'] ?></b> <a class="aliases" style="padding: 0 20px 0 4px"><?php echo str_replace(',', ', ', $data[$key]['ALIAS']) ?></a></td></tr>
  85. <tr>
  86. <td style="vertical-align:top;" >
  87. <table>
  88. <tr>
  89. <td class="counter-name" style="padding: 4px 0 0 0;">
  90. <?php echo $data[$key]['IP'] ?>
  91. </td>
  92. <tr>
  93. <td class="chart1" style="padding: 0 0 2px 0">
  94. <?php print _('Disk');?>: <?php echo humanize_usage($data[$key]['U_DISK']) ?>
  95. <div style="width:160px; height:6px; font-size:0;background-color:#c7d5b3;">
  96. <div style="width:<?php echo get_percentage($data[$key]['U_DISK'],$data[$key]['QUOTA']) ?>%; height:6px; background-color:#9bbb62; border-right:1px #9bbb62 solid;"></div>
  97. </div>
  98. </td>
  99. </tr>
  100. </table>
  101. </td>
  102. <td style="vertical-align:top;" width="200">
  103. <table>
  104. <tr>
  105. <td class="counter-name">
  106. <?php print _('Quota');?>:
  107. </td>
  108. <td class="counter-value">
  109. <?php echo $data[$key]['QUOTA'] ?>
  110. </td>
  111. </tr>
  112. <tr>
  113. <td class="counter-name">
  114. <?php print _('Autoreply');?>:
  115. </td>
  116. <td class="counter-value">
  117. <?php echo $data[$key]['AUTOREPLY'] ?>
  118. </td>
  119. </tr>
  120. </table>
  121. </td>
  122. <td rowspan=4 style="vertical-align:top;" width="350">
  123. <table width="350">
  124. <tr>
  125. <td class="counter-name">
  126. <?php print _('Forward to');?>:
  127. </td>
  128. <td class="counter-value" style="padding: 0 0 0 8px;" >
  129. <?php echo str_replace(',', ', ', $data[$key]['FWD']) ?>
  130. </td>
  131. </tr>
  132. </table>
  133. </td>
  134. </tr>
  135. </table>
  136. </td>
  137. </tr>
  138. <?php
  139. }
  140. ?>
  141. </table>
  142. </form>
  143. <table class="data-count">
  144. <tr>
  145. <td width="160px"></td>
  146. <td>
  147. <?php
  148. if ( $i == 1) {
  149. echo _('one mail account');
  150. } else {
  151. echo _('%s mail accounts',$i);
  152. }
  153. ?>
  154. </td>
  155. </tr>
  156. </table>
  157. </div>