list_packages.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <table class="submenu">
  2. <tr>
  3. <td style="padding: 12px 8px">
  4. <div class="submenu-button-block">
  5. <button class="submenu-button" onclick="location.href='/add/package/'"> <?php print __('Add Package');?> </button>
  6. </div>
  7. <div class="submenu-search-block">
  8. <form action="/search/" method="get">
  9. <input type="text" name="q" class="submenu-search-field">
  10. <input type="submit" value="<?php print __('Search');?>" class="submenu-button" style="width: 96px;">
  11. </form>
  12. </div>
  13. <div class="submenu-select-block">
  14. <form action="/bulk/package/" method="post" id="objects">
  15. <a class="submenu-select-link" href='javascript:checkedAll("objects");'> <?php print __('toggle all');?> </a>
  16. <select class="submenu-select-dropdown" name="action">
  17. <option value=""><?php print __('apply to selected');?></option>
  18. <option value="delete"><?php print __('delete');?></option>
  19. </select>
  20. <input type="submit" name="ok" value="›" class="submenu-button" style="width: 36px;">
  21. </div>
  22. </td>
  23. </tr>
  24. </table>
  25. </div>
  26. <div id="vstobjects">
  27. <table class='data'>
  28. <?php
  29. foreach ($data as $key => $value) {
  30. ++$i;
  31. ?>
  32. <tr class="data-row">
  33. <td class="data-dotted" width="150">
  34. <table class="data-col1">
  35. <tr><td><input type="checkbox" class="ch-toggle" name="package[]" value="<?php echo $key ?>"></td></tr>
  36. <tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo strftime("%d %b %Y", strtotime($data[$key]['DATE'])) ?></a></td></tr>
  37. </table>
  38. </td>
  39. <td class="data-dotted" width="830px">
  40. <a id="delete_link_<?php echo $i ?>" class="data-controls do_delete">
  41. <span class="do_delete">
  42. <img src="/images/delete.png" width="7px" height="7px" >
  43. <?php print __('delete');?>
  44. <input type="hidden" name="delete_url" value="/delete/package/?package=<?php echo "$key" ?>" />
  45. <div id="delete_dialog_<?php echo $i ?>" class="confirmation-text-delete hidden" title="<?php print __('Confirmation');?>">
  46. <p class="counter-value"><?php print __('DELETE_PACKAGE_CONFIRMATION',$key);?></p>
  47. </div>
  48. </span>
  49. </a>
  50. <a href="/edit/package/?package=<?php echo $key ?>" class="data-controls">
  51. <span>
  52. <img src="/images/edit.png" width="8px" height="8px">
  53. <?php print __('edit');?>
  54. </span>
  55. </a>
  56. <table class="data-col2" width="830px">
  57. <tr>
  58. <td colspan=3 class="username" style="padding: 10px 0 0 4px;">
  59. <b><?php echo $key?></b>
  60. </td>
  61. </tr>
  62. <tr>
  63. <td style="vertical-align:top;" >
  64. <table>
  65. <tr>
  66. <td class="counter-name"><?php print __('Web Template');?>:</td>
  67. <td class="counter-value"><?php echo $data[$key]['WEB_TEMPLATE'] ?> </td>
  68. </tr>
  69. <tr>
  70. <td class="counter-name"><?php print __('Proxy Template');?>:</td>
  71. <td class="counter-value"><?php echo $data[$key]['PROXY_TEMPLATE'] ?> </td>
  72. </tr>
  73. <tr>
  74. <td class="counter-name"><?php print __('DNS Template');?>:</td>
  75. <td class="counter-value"><?php echo $data[$key]['DNS_TEMPLATE'] ?> </td>
  76. </tr>
  77. <tr>
  78. <td class="chart1" colspan=2 style="padding: 8px 0 0 2px;">
  79. <?php print __('Bandwidth');?>: <?php echo humanize_usage($data[$key]['BANDWIDTH']) ?>
  80. <div style="width:160px; height:5px; font-size:0;background-color:#c7d5b3;">
  81. <div style="width:0%; height:5px; background-color:#9bbb62; border-right:1px #9bbb62 solid;"></div>
  82. </div>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td class="chart1" colspan=2 style="padding: 0 0 0 2px;">
  87. <?php print __('Disk');?>: <?php echo humanize_usage($data[$key]['DISK_QUOTA']) ?>
  88. <div style="width:160px; height:5px; font-size:0;background-color:#c7d5b3;">
  89. <div style="width:0%; height:5px; background-color:#9bbb62; border-right:1px #9bbb62 solid;"></div>
  90. </div>
  91. </td>
  92. </tr>
  93. </table>
  94. </td>
  95. <td style="vertical-align:top;" width="300">
  96. <table width="300">
  97. <tr>
  98. <td class="counter-name" width="37%"><?php print __('Web Domains');?>:</td>
  99. <td class="counter-value"><?php echo $data[$key]['WEB_DOMAINS'] ?> </td>
  100. </tr>
  101. <tr>
  102. <td class="counter-name"><?php print __('Web Aliases');?>:</td>
  103. <td class="counter-value"><?php echo $data[$key]['WEB_ALIASES'] ?> <?php print __('per domain');?> </td>
  104. </tr>
  105. <tr>
  106. <td class="counter-name"><?php print __('DNS domains');?>:</td>
  107. <td class="counter-value"><?php echo $data[$key]['DNS_DOMAINS'] ?> </td>
  108. </tr>
  109. <tr>
  110. <td class="counter-name"><?php print __('DNS records');?>:</td>
  111. <td class="counter-value"><?php echo $data[$key]['DNS_RECORDS'] ?> <?php print __('per domain');?> </td>
  112. </tr>
  113. <tr>
  114. <td class="counter-name"><?php print __('Name Servers');?>:</td>
  115. <td class="counter-value"><?php echo str_replace(',', ', ',$data[$key]['NS']) ?> </td>
  116. </tr>
  117. </table>
  118. </td>
  119. <td style="vertical-align:top;" width="280">
  120. <table class="data-col4" width="280">
  121. <tr>
  122. <td class="counter-name" width="48%"><?php print __('Mail Domains');?>:</td>
  123. <td class="counter-value"><?php echo $data[$key]['MAIL_DOMAINS'] ?> </td>
  124. </tr>
  125. <tr>
  126. <td class="counter-name"><?php print __('Mail Accounts');?>:</td>
  127. <td class="counter-value"><?php echo $data[$key]['MAIL_ACCOUNTS'] ?> <?php print __('per domain');?> </td>
  128. </tr>
  129. <tr>
  130. <td class="counter-name"><?php print __('Databases');?>:</td>
  131. <td class="counter-value"><?php echo $data[$key]['DATABASES'] ?> </td>
  132. </tr>
  133. <tr>
  134. <td class="counter-name"><?php print __('Cron Jobs');?>:</td>
  135. <td class="counter-value"><?php echo $data[$key]['CRON_JOBS'] ?> </td>
  136. </tr>
  137. <td class="counter-name"><?php print __('SSH Access');?>:</td>
  138. <td class="counter-value"><?php echo $data[$key]['SHELL'] ?></td>
  139. </tr>
  140. <tr>
  141. <td class="counter-name"><?php print __('Backups');?>:</td>
  142. <td class="counter-value"><?php echo $data[$key]['BACKUPS'] ?></td>
  143. </tr>
  144. </table>
  145. </td>
  146. </tr>
  147. </table>
  148. </td>
  149. </tr>
  150. <?php
  151. }
  152. ?>
  153. </table>
  154. </form>
  155. <table class="data-count">
  156. <tr>
  157. <td width="168px"></td>
  158. <td>
  159. <?php
  160. if ( $i == 1) {
  161. echo __('1 package');
  162. } else {
  163. echo __('%s packages',$i);
  164. }
  165. ?>
  166. </td>
  167. </tr>
  168. </table>
  169. </div>