edit_server_pgsql.html 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <div class="l-center edit">
  2. <div class="l-sort clearfix">
  3. <div class="l-sort-toolbar clearfix float-left subtitle">
  4. <table class="width-100p">
  5. <tbody><tr>
  6. <td>
  7. <span class="vst selected"><?=__('Configuring Server')?> / <?php print $v_service_name ?></span>
  8. </td>
  9. <?php
  10. if (!empty($_SESSION['error_msg'])) {
  11. echo "<td><span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span></td>";
  12. } else {
  13. if (!empty($_SESSION['ok_msg'])) {
  14. echo "<td><span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span></td>";
  15. }
  16. }
  17. ?>
  18. </tr>
  19. </tbody>
  20. </table>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="l-separator"></div>
  25. <!-- /.l-separator -->
  26. <div class="l-center">
  27. <?php
  28. $back = $_SESSION['back'];
  29. if (empty($back)) {
  30. $back = "location.href='/list/server/'";
  31. } else {
  32. $back = "location.href='".$back."'";
  33. }
  34. ?>
  35. <form id="vstobjects" name="v_configure_server" method="post">
  36. <input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
  37. <input type="hidden" name="save" value="save" />
  38. <table class="data mode-add">
  39. <tr class="data-add">
  40. <td class="data-dotted">
  41. <table class="data-col1">
  42. <tr><td></td></tr>
  43. </table>
  44. </td>
  45. <td>
  46. <table class="data-col2" width="600px">
  47. <tr>
  48. <td class="vst-text step-top">
  49. <?=$v_options_path ?>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td>
  54. <textarea class="vst-textinput console" name="v_options"><?=$v_options?></textarea>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td class="vst-text step-top">
  59. <?=$v_config_path ?>
  60. </td>
  61. </tr>
  62. <tr>
  63. <td>
  64. <textarea class="vst-textinput console" name="v_config"><?=$v_config?></textarea>
  65. </td>
  66. </tr>
  67. <td class="vst-text input-label" style="text-transform: capitalize;">
  68. <label><input type="checkbox" size="20" class="vst-checkbox" name="v_restart" checked="yes"> <?php print __('restart');?></label>
  69. </td>
  70. </table>
  71. <table class="data-col2">
  72. <tr>
  73. <td class="step-top" width="116px">
  74. <input type="submit" class="button" name="save" value="<?=__('Save')?>">
  75. </td>
  76. <td class="step-top">
  77. <input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
  78. </td>
  79. </tr>
  80. </table>
  81. </td>
  82. </tr>
  83. </table>
  84. </form>
  85. </div>