add_mail.html 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <div class="l-center edit">
  2. <div class="l-sort clearfix">
  3. <div class="l-unit-toolbar__buttonstrip">
  4. <a class="ui-button cancel" id="btn-back" href="/list/mail/"><i class="fas fa-arrow-left status-icon blue"></i> <?=_('Back')?></a>
  5. </div>
  6. <div class="l-unit-toolbar__buttonstrip float-right">
  7. <a href="#" class="ui-button" data-action="submit" data-id="vstobjects"><i class="fas fa-save status-icon purple"></i> <?=_('Save')?></a>
  8. </div>
  9. </div>
  10. </div>
  11. <div class="l-separator"></div>
  12. <!-- /.l-separator -->
  13. <div class="l-center animated fadeIn">
  14. <?php
  15. $back = $_SESSION['back'];
  16. if (empty($back)) {
  17. $back = "location.href='/list/mail/'";
  18. } else {
  19. $back = "location.href='".$back."'";
  20. }
  21. ?>
  22. <form id="vstobjects" name="v_add_mail" method="post">
  23. <input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
  24. <input type="hidden" name="ok" value="Add" />
  25. <table class="data mode-add">
  26. <tr class="data-add">
  27. <td class="data-dotted">
  28. <table class="data-col1">
  29. <tr><td></td></tr>
  30. </table>
  31. </td>
  32. <td class="data-dotted">
  33. <table class="data-col2" width="600px">
  34. <tr>
  35. <td class="step-top">
  36. <span class="page-title"><?=_('Adding Mail Domain')?></span>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td>
  41. <?php
  42. if (!empty($_SESSION['error_msg'])) {
  43. echo "<span class=\"vst-error\"> <i class=\"fas fa-exclamation-circle status-icon red\"></i> ".htmlentities($_SESSION['error_msg'])."</span>";
  44. } else {
  45. if (!empty($_SESSION['ok_msg'])) {
  46. echo "<span class=\"vst-ok\"> <i class=\"fas fa-check-circle status-icon green\"></i> ".$_SESSION['ok_msg']."</span>";
  47. }
  48. }
  49. ?>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td class="vst-text step-top">
  54. <?php print _('Domain');?>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td>
  59. <input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
  60. </td>
  61. </tr>
  62. <?php if($_SESSION['IMAP_SYSTEM']){?>
  63. <tr>
  64. <td class="vst-text step-top">
  65. <?php print _('Webmail Client');?>
  66. </td>
  67. </tr>
  68. <tr>
  69. <td>
  70. <select class="vst-list" name="v_webmail" tabindex="6" >
  71. <?php foreach ($webmail_clients as $client){
  72. echo "\t\t\t\t<option value=\"".htmlentities($client)."\"";
  73. if ((!empty($v_webmail)) && ( $v_webmail == $client )) {
  74. echo ' selected' ;
  75. }
  76. echo ">".htmlentities(ucfirst($client))."</option>\n";
  77. }
  78. ?>
  79. <option value="" <?php if(empty($v_webmail)){ echo "selected";}?>><?php print _('Disabled');?></option>
  80. </select>
  81. </td>
  82. </tr>
  83. <?php } ?>
  84. <tr>
  85. <td class="vst-text input-label">
  86. <label><input type="checkbox" size="20" class="vst-checkbox" name="v_antispam" <?php if ((empty($v_antispam)) || ($v_antispam == 'yes')) echo "checked=yes"; ?>><?php print _('AntiSpam Support');?></label>
  87. </td>
  88. </tr>
  89. <tr>
  90. <td class="vst-text input-label">
  91. <label><input type="checkbox" size="20" class="vst-checkbox" name="v_antivirus" <?php if ((empty($v_antivirus)) || ($v_antivirus == 'yes')) echo "checked=yes"; ?>><?php print _('AntiVirus Support');?></label>
  92. </td>
  93. </tr>
  94. <tr>
  95. <td class="vst-text input-label">
  96. <label><input type="checkbox" size="20" class="vst-checkbox" name="v_dkim" <?php if (isset($v_dkim)&&$v_dkim == 'yes') echo "checked=yes"; ?>><?php print _('DKIM Support');?></label>
  97. </td>
  98. </tr>
  99. <tr>
  100. <td class="vst-text step-top">
  101. <label><input type="checkbox" size="20" class="vst-checkbox" name="v_smtp_relay" <?php if ($v_smtp_relay == 'true') echo "checked=yes"; ?> onclick="javascript:elementHideShow('smtp_relay_table');"><?php print _('SMTP Relay');?></label>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td class="step-left">
  106. <table style="display:<?php if ($v_smtp_relay == 'true'){echo 'block';} else {echo 'none';} ?>;" id="smtp_relay_table">
  107. <tr>
  108. <td class="input-label vst-text">
  109. <?php print _('Host');?>
  110. </td>
  111. </tr>
  112. <tr>
  113. <td>
  114. <input type="text" size="20" class="vst-input" name="v_smtp_relay_host" value="<?=htmlentities(trim($v_smtp_relay_host, "'"))?>">
  115. </td>
  116. </tr>
  117. <tr>
  118. <td class="input-label vst-text">
  119. <?php print _('Port');?>
  120. </td>
  121. </tr>
  122. <tr>
  123. <td>
  124. <input type="text" size="20" class="vst-input" name="v_smtp_relay_port" value="<?=htmlentities(trim($v_smtp_relay_port, "'"))?>">
  125. </td>
  126. </tr>
  127. <tr>
  128. <td class="input-label vst-text">
  129. <?php print _('Username');?>
  130. </td>
  131. </tr>
  132. <tr>
  133. <td>
  134. <input type="text" size="20" class="vst-input" name="v_smtp_relay_user" value="<?=htmlentities(trim($v_smtp_relay_user, "'"))?>">
  135. </td>
  136. </tr>
  137. <tr>
  138. <td class="input-label vst-text">
  139. <?php print _('Password');?>
  140. </td>
  141. </tr>
  142. <tr>
  143. <td>
  144. <input type="text" size="20" class="vst-input" name="v_smtp_relay_pass">
  145. </td>
  146. </tr>
  147. </table>
  148. </td>
  149. </tr>
  150. <tr>
  151. <td>
  152. <br>
  153. </td>
  154. </tr>
  155. </table>
  156. <table class="data-col2"></table>
  157. </td>
  158. </tr>
  159. </table>
  160. </form>
  161. </div>