| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <div class="l-center edit">
- <div class="l-sort clearfix">
- <div class="l-unit-toolbar__buttonstrip">
- <a class="ui-button cancel" id="btn-back" href="/list/mail/"><i class="fas fa-arrow-left status-icon blue"></i> <?=_('Back')?></a>
- </div>
- <div class="l-unit-toolbar__buttonstrip float-right">
- <a href="#" class="ui-button" data-action="submit" data-id="vstobjects"><i class="fas fa-save status-icon purple"></i> <?=_('Save')?></a>
- </div>
- </div>
- </div>
- <div class="l-separator"></div>
- <!-- /.l-separator -->
- <div class="l-center animated fadeIn">
- <?php
- $back = $_SESSION['back'];
- if (empty($back)) {
- $back = "location.href='/list/mail/'";
- } else {
- $back = "location.href='".$back."'";
- }
- ?>
- <form id="vstobjects" name="v_add_mail" method="post">
- <input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
- <input type="hidden" name="ok" value="Add" />
- <table class="data mode-add">
- <tr class="data-add">
- <td class="data-dotted">
- <table class="data-col1">
- <tr><td></td></tr>
- </table>
- </td>
- <td class="data-dotted">
- <table class="data-col2" width="600px">
- <tr>
- <td class="step-top">
- <span class="page-title"><?=_('Adding Mail Domain')?></span>
- </td>
- </tr>
- <tr>
- <td>
- <?php
- if (!empty($_SESSION['error_msg'])) {
- echo "<span class=\"vst-error\"> <i class=\"fas fa-exclamation-circle status-icon red\"></i> ".htmlentities($_SESSION['error_msg'])."</span>";
- } else {
- if (!empty($_SESSION['ok_msg'])) {
- echo "<span class=\"vst-ok\"> <i class=\"fas fa-check-circle status-icon green\"></i> ".$_SESSION['ok_msg']."</span>";
- }
- }
- ?>
- </td>
- </tr>
- <tr>
- <td class="vst-text step-top">
- <?php print _('Domain');?>
- </td>
- </tr>
- <tr>
- <td>
- <input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
- </td>
- </tr>
- <?php if($_SESSION['IMAP_SYSTEM']){?>
- <tr>
- <td class="vst-text step-top">
- <?php print _('Webmail Client');?>
- </td>
- </tr>
- <tr>
- <td>
- <select class="vst-list" name="v_webmail" tabindex="6" >
- <?php foreach ($webmail_clients as $client){
- echo "\t\t\t\t<option value=\"".htmlentities($client)."\"";
- if ((!empty($v_webmail)) && ( $v_webmail == $client )) {
- echo ' selected' ;
- }
- echo ">".htmlentities(ucfirst($client))."</option>\n";
- }
- ?>
- <option value="" <?php if(empty($v_webmail)){ echo "selected";}?>><?php print _('Disabled');?></option>
- </select>
- </td>
- </tr>
- <?php } ?>
- <tr>
- <td class="vst-text input-label">
- <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>
- </td>
- </tr>
- <tr>
- <td class="vst-text input-label">
- <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>
- </td>
- </tr>
- <tr>
- <td class="vst-text input-label">
- <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>
- </td>
- </tr>
- <tr>
- <td class="vst-text step-top">
- <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>
- </td>
- </tr>
- <tr>
- <td class="step-left">
- <table style="display:<?php if ($v_smtp_relay == 'true'){echo 'block';} else {echo 'none';} ?>;" id="smtp_relay_table">
- <tr>
- <td class="input-label vst-text">
- <?php print _('Host');?>
- </td>
- </tr>
- <tr>
- <td>
- <input type="text" size="20" class="vst-input" name="v_smtp_relay_host" value="<?=htmlentities(trim($v_smtp_relay_host, "'"))?>">
- </td>
- </tr>
- <tr>
- <td class="input-label vst-text">
- <?php print _('Port');?>
- </td>
- </tr>
- <tr>
- <td>
- <input type="text" size="20" class="vst-input" name="v_smtp_relay_port" value="<?=htmlentities(trim($v_smtp_relay_port, "'"))?>">
- </td>
- </tr>
- <tr>
- <td class="input-label vst-text">
- <?php print _('Username');?>
- </td>
- </tr>
- <tr>
- <td>
- <input type="text" size="20" class="vst-input" name="v_smtp_relay_user" value="<?=htmlentities(trim($v_smtp_relay_user, "'"))?>">
- </td>
- </tr>
- <tr>
- <td class="input-label vst-text">
- <?php print _('Password');?>
- </td>
- </tr>
- <tr>
- <td>
- <input type="text" size="20" class="vst-input" name="v_smtp_relay_pass">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <br>
- </td>
- </tr>
- </table>
- <table class="data-col2"></table>
- </td>
- </tr>
- </table>
- </form>
- </div>
|