edit_mail_acc.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <div class="l-center edit">
  2. <div class="l-sort clearfix">
  3. <div class="l-sort-toolbar clearfix float-left">
  4. <span class="title edit"><b><?=__('Editing Mail Account')?></b></span>
  5. <?php
  6. if (!empty($_SESSION['error_msg'])) {
  7. echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
  8. } else {
  9. if (!empty($_SESSION['ok_msg'])) {
  10. echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
  11. }
  12. }
  13. ?>
  14. </div>
  15. </div>
  16. <? display_error_block() ?>
  17. </div>
  18. <div class="l-separator"></div>
  19. <!-- /.l-separator -->
  20. <div class="l-center">
  21. <?php
  22. $back = $_SESSION['back'];
  23. if (empty($back)) {
  24. $back = "location.href='/list/mail/?domain=".$_GET['domain']."'";
  25. } else {
  26. $back = "location.href='".$back."'";
  27. }
  28. ?>
  29. <form id="vstobjects" name="v_edit_mail_acc" method="post" class="<?=$v_status?>">
  30. <input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
  31. <input type="hidden" name="save" value="save" />
  32. <table class='data'>
  33. <tr class="data-add">
  34. <td class="data-dotted">
  35. <table class="data-col1">
  36. <tr>
  37. <td>
  38. <a class="data-date"><?=translate_date($v_date)?></a><br>
  39. <a class="data-date"><?=$v_time?></a>
  40. </td>
  41. </tr>
  42. <tr><td class="data-<?php echo $v_status ?>"><b><?php echo $v_status ?></b></td></tr>
  43. </table>
  44. </td>
  45. <td class="data-dotted">
  46. <table class="data-col2" width="600px">
  47. <tr>
  48. <td class="vst-text step-top input-label">
  49. <?php print __('Account');?>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td>
  54. <input type="text" size="20" class="vst-input" name="v_email" <?php if (!empty($v_account)) echo "value=".htmlentities($_GET['account'])."@".htmlentities($_GET['domain']); ?> disabled >
  55. <input type="hidden" name="v_domain" <?php echo "value=".htmlentities($v_domain); ?>>
  56. <input type="hidden" name="v_account" <?php if (!empty($v_account)) echo "value=".htmlentities($v_account); ?> >
  57. </td>
  58. </tr>
  59. <tr>
  60. <td class="vst-text input-type input-label">
  61. <?php print __('Password');?> / <a href="javascript:randomString();" class="generate"><?php print __('generate');?></a>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td>
  66. <input type="text" size="20" class="vst-input password" name="v_password" <?php if (!empty($v_password)) echo "value=".htmlentities($v_password); ?>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td class="vst-text input-type input-label">
  71. <?php print __('Quota');?> <span class="optional">(<?=__('in megabytes')?>)</span>
  72. </td>
  73. </tr>
  74. <tr>
  75. <td>
  76. <input type="text" size="20" class="vst-input" name="v_quota" <?php if (!empty($v_quota)) {echo "value=".htmlentities($v_quota);} else { echo "value=0";}; ?>>
  77. <img class="unlim-trigger" id="unlim-quota" src="/images/unlim.png" />
  78. </td>
  79. </tr>
  80. <tr>
  81. <td class="vst-text input-type input-label">
  82. <?php print __('Aliases');?> <span class="optional">(<?=__('use local-part')?>)</span>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td>
  87. <textarea size="20" class="vst-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo htmlentities($v_aliases); ?></textarea>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td class="vst-text input-type input-label">
  92. <?php print __('Forward to');?> <span class="optional">(<?=__('one or more email addresses')?>)</span>
  93. </td>
  94. </tr>
  95. <tr>
  96. <td>
  97. <textarea size="20" class="vst-textinput" name="v_fwd"><?php if (!empty($v_fwd)) echo htmlentities($v_fwd); ?></textarea>
  98. </td>
  99. </tr>
  100. <tr>
  101. <td class="vst-text input-type input-label">
  102. <label><input type="checkbox" size="20" class="vst-checkbox" name="v_fwd_only" <?php if ($v_fwd_only == 'yes') echo "checked=yes" ?>> <?php print __('Do not store forwarded mail');?></label>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td class="vst-text input-type input-label">
  107. <label><input type="checkbox" size="20" class="vst-checkbox" name="v_autoreply" <?php if ($v_autoreply == 'yes') echo "checked=yes" ?> onclick="javascript:elementHideShow('autoreplytable');"> <?php print __('Autoreply');?></label>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td class="step-left">
  112. <table style="display:<?php if ($v_autoreply == 'no') { echo 'none';} else {echo 'block';}?> ;" id="autoreplytable">
  113. <tr>
  114. <td class="vst-text" style="padding: 12px 0 0 0;">
  115. <?php print __('Message');?>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td>
  120. <textarea size="20" class="vst-textinput" name="v_autoreply_message"><?php if (!empty($v_autoreply_message)) echo htmlentities($v_autoreply_message); ?></textarea>
  121. </td>
  122. </tr>
  123. </table>
  124. </td>
  125. </tr>
  126. </table>
  127. <table class="data-col2">
  128. <tr>
  129. <td class="step-top" width="116px">
  130. <input type="submit" name="save" value="<?php print __('Save');?>" class="button">
  131. </td>
  132. <td class="step-top">
  133. <input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
  134. </td>
  135. </tr>
  136. </table>
  137. </td>
  138. </tr>
  139. </table>
  140. </form>
  141. </div>