list_packages.html 13 KB

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