edit_server_dovecot.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. <?php print $v_config_path ?>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td>
  54. <textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
  55. </td>
  56. </tr>
  57. <?php if (!empty($v_config_path1)) {
  58. ?>
  59. <tr>
  60. <td class="vst-text step-top">
  61. <?php print $v_config_path1 ?>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td>
  66. <textarea class="vst-textinput console" name="v_config1"><?php echo $v_config1;?></textarea>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td class="vst-text step-top">
  71. <?php print $v_config_path2 ?>
  72. </td>
  73. </tr>
  74. <tr>
  75. <td>
  76. <textarea class="vst-textinput console" name="v_config2"><?php echo $v_config2;?></textarea>
  77. </td>
  78. </tr>
  79. <tr>
  80. <td class="vst-text step-top">
  81. <?php print $v_config_path3 ?>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td>
  86. <textarea class="vst-textinput console" name="v_config3"><?php echo $v_config3;?></textarea>
  87. </td>
  88. </tr>
  89. <tr>
  90. <td class="vst-text step-top">
  91. <?php print $v_config_path4 ?>
  92. </td>
  93. </tr>
  94. <tr>
  95. <td>
  96. <textarea class="vst-textinput console" name="v_config4"><?php echo $v_config4;?></textarea>
  97. </td>
  98. </tr>
  99. <tr>
  100. <td class="vst-text step-top">
  101. <?php print $v_config_path5 ?>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td>
  106. <textarea class="vst-textinput console" name="v_config5"><?php echo $v_config5;?></textarea>
  107. </td>
  108. </tr>
  109. <tr>
  110. <td class="vst-text step-top">
  111. <?php print $v_config_path6 ?>
  112. </td>
  113. </tr>
  114. <tr>
  115. <td>
  116. <textarea class="vst-textinput console" name="v_config6"><?php echo $v_config6;?></textarea>
  117. </td>
  118. </tr>
  119. <tr>
  120. <td class="vst-text step-top">
  121. <?php print $v_config_path7 ?>
  122. </td>
  123. </tr>
  124. <tr>
  125. <td>
  126. <textarea class="vst-textinput console" name="v_config7"><?php echo $v_config7;?></textarea>
  127. </td>
  128. </tr>
  129. <tr>
  130. <td class="vst-text step-top">
  131. <?php print $v_config_path8 ?>
  132. </td>
  133. </tr>
  134. <tr>
  135. <td>
  136. <textarea class="vst-textinput console" name="v_config8"><?php echo $v_config8;?></textarea>
  137. </td>
  138. </tr>
  139. <?php } ?>
  140. <td class="vst-text input-label" style="text-transform: capitalize;">
  141. <label><input type="checkbox" size="20" class="vst-checkbox" name="v_restart" checked="yes"> <?php print __('restart');?></label>
  142. </td>
  143. </table>
  144. <table class="data-col2">
  145. <tr>
  146. <td class="step-top" width="116px">
  147. <input type="submit" class="button" name="save" value="<?php print __('Save');?>">
  148. </td>
  149. <td class="step-top">
  150. <input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
  151. </td>
  152. </tr>
  153. </table>
  154. </td>
  155. </tr>
  156. </table>
  157. </form>
  158. </div>