list_updates.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <table class="submenu">
  2. <tr>
  3. <td style="padding: 12px 8px">
  4. <div class="submenu-search-block">
  5. <form action="/search/" method="get">
  6. <input type="text" name="q" class="submenu-search-field">
  7. <input type="submit" value="<?php print __('Search');?>" class="submenu-button" style="width: 96px;">
  8. </form>
  9. </div>
  10. <div class="submenu-button-block">
  11. <form action="/bulk/vesta/" method="post" id="objects">
  12. <a class="submenu-select-link" href='javascript:checkedAll("objects");'> <?php print __('toggle all');?> </a>
  13. <select class="submenu-select-dropdown" name="action">
  14. <option value=""><?php print __('apply to selected') ?></option>
  15. <option value="update"><?php print __('update') ?></option>
  16. </select>
  17. <input type="submit" name="ok" value="›" class="submenu-button" style="width: 36px;">
  18. </div>
  19. <?php
  20. if (!empty($_SESSION['error_upd'])) {
  21. ?>
  22. <div>
  23. <script type="text/javascript">
  24. $(function() {
  25. $( "#dialog:ui-dialog" ).dialog( "destroy" );
  26. $( "#dialog-message" ).dialog({
  27. modal: true,
  28. buttons: {
  29. Ok: function() {
  30. $( this ).dialog( "close" );
  31. }
  32. }
  33. });
  34. });
  35. </script>
  36. <div id="dialog-message" title="Error">
  37. <p><?php echo $_SESSION['error_upd'] ?></p>
  38. </div>
  39. </div>
  40. <?php
  41. unset($_SESSION['error_upd']);
  42. }
  43. ?>
  44. </td>
  45. </tr>
  46. </table>
  47. </div>
  48. <div id="vstobjects">
  49. <table class='data'>
  50. <?php
  51. foreach ($data as $key => $value) {
  52. ++$i;
  53. if ($data[$key]['UPDATED'] == 'yes') {
  54. $status = 'active';
  55. $upd_status = __('updated');
  56. } else {
  57. $status = 'suspended';
  58. $upd_status = __('outdated');
  59. }
  60. ?>
  61. <tr class="data-row">
  62. <td class="data-dotted" width="150">
  63. <table class="data-col1">
  64. <tr><td style="padding: 18 0 6 18;"><input type="checkbox" class="ch-toggle" name="pkg[]" value="<?php echo $key ?>" ></td></tr>
  65. <tr><td class="data-<?php echo $status ?>"><b><?php echo $upd_status ?></b></td></tr>
  66. </table>
  67. </td>
  68. <td class="data-dotted" width="830px">
  69. <?php
  70. if ($data[$key]['UPDATED'] == 'no') {
  71. ?>
  72. <a href="/update/vesta/?pkg=<?php echo $key ?>" class="data-controls">
  73. <span>
  74. <img src="/images/update.png" width="6px" height="7px">
  75. <?php print __('update') ?>
  76. </span>
  77. </a>
  78. <?php
  79. }
  80. ?>
  81. <div style="height:20px; width:20px; float:right;"></div>
  82. <table class="data-col2" width="830px">
  83. <tr>
  84. <td colspan=4 class="domain" style="padding: 0 0 0 4px;">
  85. <b><?php echo $key ?></b>
  86. </td>
  87. </tr>
  88. <tr>
  89. <td style="vertical-align:top;" width="200px">
  90. <table>
  91. <tr>
  92. <td class="counter-name" style="padding: 2px 0 0 0">
  93. <?php echo __($data[$key]['DESCR']) ?>
  94. </td>
  95. </tr>
  96. </table>
  97. </td>
  98. <td style="vertical-align:top;" width="180px">
  99. <table>
  100. <tr>
  101. <td class="counter-name">
  102. <?php print __('Version') ?>:
  103. </td>
  104. <td>
  105. <a class="counter-value"> <?php echo $data[$key]['VERSION'] ?></a>
  106. </td>
  107. </tr>
  108. </table>
  109. </td>
  110. <td style="vertical-align:top;" width="170px">
  111. <table>
  112. <tr>
  113. <td class="counter-name">
  114. <?php print __('Release') ?>:
  115. </td>
  116. <td>
  117. <a class="counter-value"><?php echo $data[$key]['RELEASE'] ?></a>
  118. </td>
  119. </tr>
  120. </table>
  121. </td>
  122. <td style="vertical-align:top;" >
  123. <table>
  124. <tr>
  125. <td class="counter-name">
  126. <?php print __('Architecture') ?>:
  127. </td>
  128. <td>
  129. <a class="counter-value"><?php echo $data[$key]['ARCH'] ?> </a>
  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. </div>