list_updates.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <table class="submenu">
  2. <tr>
  3. <td style="padding: 2px 0 0 6px">
  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. </td>
  48. </tr>
  49. </table>
  50. <div id="vstobjects">
  51. <table class='data'>
  52. <?php
  53. foreach ($data as $key => $value) {
  54. ++$i;
  55. if ($data[$key]['UPDATED'] == 'yes') {
  56. $status = 'active';
  57. $upd_status = __('updated');
  58. } else {
  59. $status = 'suspended';
  60. $upd_status = __('outdated');
  61. }
  62. ?>
  63. <tr class="data-row">
  64. <td class="data-dotted" width="150">
  65. <table class="data-col1">
  66. <tr><td style="padding: 18 0 6 18;"><input type="checkbox" class="ch-toggle" name="pkg[]" value="<?php echo $key ?>" ></td></tr>
  67. <tr><td class="data-<?php echo $status ?>"><b><?php echo $upd_status ?></b></td></tr>
  68. </table>
  69. </td>
  70. <td class="data-dotted" width="830px">
  71. <?php
  72. if ($data[$key]['UPDATED'] == 'no') {
  73. ?>
  74. <a href="/update/vesta/?pkg=<?php echo $key ?>" class="data-controls">
  75. <span>
  76. <img src="/images/update.png" width="6px" height="7px">
  77. <?php print __('update') ?>
  78. </span>
  79. </a>
  80. <?php
  81. }
  82. ?>
  83. <div style="height:20px; width:20px; float:right;"></div>
  84. <table class="data-col2" width="830px">
  85. <tr>
  86. <td colspan=4 class="domain" style="padding: 0 0 0 4px;">
  87. <b><?php echo $key ?></b>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td style="vertical-align:top;" width="200px">
  92. <table>
  93. <tr>
  94. <td class="counter-name" style="padding: 2px 0 0 0">
  95. <?php echo __($data[$key]['DESCR']) ?>
  96. </td>
  97. </tr>
  98. </table>
  99. </td>
  100. <td style="vertical-align:top;" width="180px">
  101. <table>
  102. <tr>
  103. <td class="counter-name">
  104. <?php print __('Version') ?>:
  105. </td>
  106. <td>
  107. <a class="counter-value"> <?php echo $data[$key]['VERSION'] ?></a>
  108. </td>
  109. </tr>
  110. </table>
  111. </td>
  112. <td style="vertical-align:top;" width="170px">
  113. <table>
  114. <tr>
  115. <td class="counter-name">
  116. <?php print __('Release') ?>:
  117. </td>
  118. <td>
  119. <a class="counter-value"><?php echo $data[$key]['RELEASE'] ?></a>
  120. </td>
  121. </tr>
  122. </table>
  123. </td>
  124. <td style="vertical-align:top;" >
  125. <table>
  126. <tr>
  127. <td class="counter-name">
  128. <?php print __('Architecture') ?>:
  129. </td>
  130. <td>
  131. <a class="counter-value"><?php echo $data[$key]['ARCH'] ?> </a>
  132. </td>
  133. </tr>
  134. </table>
  135. </td>
  136. </tr>
  137. </table>
  138. </td>
  139. </tr>
  140. <?php
  141. }
  142. ?>
  143. </table>
  144. </form>
  145. </div>