<input name="intDomainId" type="hidden" value="<?php $this->data->PrintInputValue('intDomainId'); ?>" />
<input name="intAccountId" type="hidden" value="<?php $this->data->PrintInputValue('intAccountId'); ?>" />
<input name="intMailProtocol" type="hidden" value="<?php echo WM_MAILPROTOCOL_POP3; ?>" />
<input name="uid" type="hidden" value="<?php $this->data->PrintInputValue('uid'); ?>" />
<script type="text/javascript">
var useredittabs = new Array();
useredittabs.push("content_custom_tab_1");
useredittabs.push("content_custom_tab_2");
function SetAllOf()
{
$('custom_tab_1').className = 'wm_settings_switcher_item';
$('custom_tab_2').className = 'wm_settings_switcher_item';
}
</script>
<table>
<tr>
<td align="left">
<span style="font-size: large;"><?php $this->data->PrintValue('TopText'); ?></span>
</td>
</tr>
</table>
<div class="wm_settings_accounts_info" style="width: 100%; margin: 15px 0px">
<div class="wm_settings_switcher_indent"></div>
<div id="custom_tab_2" class="wm_settings_switcher_item" onclick="SwitchItem(useredittabs, 'content_custom_tab_2'); SetAllOf(); this.className = 'wm_settings_switcher_select_item';">
<a href="javascript:void(0)">Webmail Settings</a>
</div>
<div id="custom_tab_1" class="wm_settings_switcher_select_item" onclick="SwitchItem(useredittabs, 'content_custom_tab_1'); SetAllOf(); this.className = 'wm_settings_switcher_select_item';">
<a href="javascript:void(0)">Basic Settings</a>
</div>
</div>
<div id="content_custom_tab_1" style="padding-top: 10px;">
<table class="wm_contacts_view_new">
<tr>
<td align="right">
<nobr>* Login:</nobr>
</td>
<td align="left" colspan="2">
<input name="txtIncomingLogin" type="text" id="txtIncomingLogin" class="wm_input" style="width: 350px" maxlength="100" value="<?php $this->data->PrintInputValue('txtIncomingLogin'); ?>" />
</td>
</tr>
<tr>
<td align="right">
<nobr>* Password:</nobr>
</td>
<td align="left" colspan="2">
<input name="txtIncomingPassword" type="password" maxlength="100" id="txtIncomingPassword" class="wm_input" style="width: 350px;" value="<?php $this->data->PrintInputValue('txtIncomingPassword'); ?>" />
</td>
</tr>
<tr>
<td align="right">
<nobr>Mailbox Limit:</nobr>
</td>
<td align="left" colspan="2">
<input name="intLimitMailbox" type="text" id="intLimitMailbox" class="wm_input" size="17" value="<?php $this->data->PrintIntValue('intLimitMailbox'); ?>" maxlength="7" />
KB
</td>
</tr>
<tr>
<td align="right">
<nobr>Name:</nobr>
</td>
<td align="left" colspan="2">
<input name="txtFriendlyName" type="text" id="txtFriendlyName" class="wm_input" style="width: 350px" maxlength="100" value="<?php $this->data->PrintInputValue('txtFriendlyName'); ?>" />
</td>
</tr>
<tr>
<td align="right">
<nobr>* Email:</nobr>
</td>
<td align="left" colspan="2">
<input name="txtEmail" type="text" id="txtEmail" class="wm_input" style="width: 350px" maxlength="100" value="<?php $this->data->PrintInputValue('txtEmail'); ?>" />
</td>
</tr>
<tr>
<td align="right">
<nobr>SMTP login:</nobr>
</td>
<td align="left" colspan="2">
<input name="txtSmtpLogin" type="text" id="txtSmtpLogin" class="wm_input" style="width: 350px" maxlength="100" value="<?php $this->data->PrintInputValue('txtSmtpLogin'); ?>" />
</td>
</tr>
<tr>
<td align="right">
<nobr>SMTP password:</nobr>
</td>
<td align="left" colspan="2">
<input name="txtSmtpPassword" type="password" maxlength="100" id="txtSmtpPassword" class="wm_input" style="width: 350px;" value="<?php $this->data->PrintInputValue('txtSmtpPassword'); ?>"/>
</td>
</tr>
<tr>
<td align="left" colspan="3">
<input name="chkUseFriendlyName" type="checkbox" id="chkUseFriendlyName" class="wm_checkbox" style="VERTICAL-ALIGN: middle" <?php $this->data->PrintCheckedValue('chkUseFriendlyName'); ?> value="1" />
<label for="chkUseFriendlyName">
Use Friendly Name in "From:" field (Your name <hide@address.com>)
</label>
</td>
</tr>
<tr>
<td align="left" colspan="3">
<input name="chkGetMailAtLogin" type="checkbox" id="chkGetMailAtLogin" class="wm_checkbox" style="VERTICAL-ALIGN: middle" <?php $this->data->PrintCheckedValue('chkGetMailAtLogin'); ?> value="1"/>
<label for="chkGetMailAtLogin">
Get/Synchronize Mails at login
</label>
</td>
</tr>
<tr id="tr_0">
<td align="left" colspan="3">
<input value="1" name="mailMode" type="radio" id="radioDelRecvMsgs" style="VERTICAL-ALIGN: middle" <?php $this->data->PrintCheckedValue('radioDelRecvMsgs'); ?> />
<label for="radioDelRecvMsgs">
Delete received messages from server
</label>
<br />
<input value="2" name="mailMode" type="radio" id="radioLeaveMsgs" style="VERTICAL-ALIGN: middle" <?php $this->data->PrintCheckedValue('radioLeaveMsgs'); ?> />
<label for="radioLeaveMsgs">
Leave messages on server
</label>
</td>
</tr>
<tr id="tr_1">
<td align="left" colspan="3">
<input name="chkKeepMsgs" type="checkbox" id="chkKeepMsgs" class="wm_checkbox" style="VERTICAL-ALIGN: middle" <?php $this->data->PrintCheckedValue('chkKeepMsgs'); ?> value="1" />
<label for="chkKeepMsgs">
Keep messages on server for
</label>
<input name="txtKeepMsgsDays" type="text" id="txtKeepMsgsDays" class="wm_input" size="2" value="<?php $this->data->PrintIntValue('txtKeepMsgsDays'); ?>" maxlength="2" />
day(s)
<br />
<input name="chkDelMsgsSrv" type="checkbox" id="chkDelMsgsSrv" class="wm_checkbox" style="VERTICAL-ALIGN: middle" <?php $this->data->PrintCheckedValue('chkDelMsgsSrv'); ?> value="1"/>
<label for="chkDelMsgsSrv">
Delete message from server when it is removed from Trash
</label>
</td>
</tr>
<tr id="tr_2">
<td align="left" colspan="3">
<span class="wm_addmargin"> Type of Inbox Synchronization:</span>
<select name="synchronizeSelect" id="synchronizeSelect" class="wm_input wm_addmargin">
<option value="1" <?php $this->data->PrintSelectedValue('synchronizeSelect1'); ?> >Headers Only</option>
<option value="3" <?php $this->data->PrintSelectedValue('synchronizeSelect3'); ?> >Entire Messages</option>
<option value="5" <?php $this->data->PrintSelectedValue('synchronizeSelect5'); ?> >Direct Mode</option>
</select>
</td>
</tr>
<tr id="tr_3">
<td align="left" colspan="3">
<input name="chkDelMsgsDB" type="checkbox" id="chkDelMsgsDB" class="wm_checkbox" style="VERTICAL-ALIGN: middle" <?php $this->data->PrintCheckedValue('chkDelMsgsDB'); ?> value="1" />
<label for="chkDelMsgsDB">
Delete message from database if it no longer exists on mail server
</label>
</td>
</tr>
<tr id="tr_4">
<td align="left" colspan="3">
<input name="chkAllowDM" type="checkbox" id="chkAllowDM" class="wm_checkbox" style="VERTICAL-ALIGN: middle" <?php $this->data->PrintCheckedValue('chkAllowDM'); ?> value="1" />
<label for="chkAllowDM">
Allow Direct Mode
</label>
</td>
</tr>
<tr>
<td align="left" colspan="3">
<input name="chkAllowChangeEmail" type="checkbox" id="chkAllowChangeEmail" class="wm_checkbox" style="VERTICAL-ALIGN: middle" <?php $this->data->PrintCheckedValue('chkAllowChangeEmail'); ?> value="1" />
<label for="chkAllowChangeEmail">
Allow user to change email settings
</label>
</td>
</tr>
</table>
</div>
<div id="content_custom_tab_2" style="padding-top: 10px;">
<table class="wm_contacts_view_new">
<?php
$path = $this->data->GetIncludeConrolPath('edit-user-advanced-control');
if (false !== $path)
{
include $path;
}
?>
</table>
</div>
<script type="text/javascript">
<?php $this->data->PrintValue('StartWmJs'); ?>
Validator.RegisterAllowNum($('intLimitMailbox'));
Validator.RegisterAllowNum($('txtKeepMsgsDays'));
var Pop3Form = {
_radioDelete: document.getElementById("radioDelRecvMsgs"),
_radioLeave: document.getElementById("radioLeaveMsgs"),
_chKeep: document.getElementById("chkKeepMsgs"),
_inpKeep: document.getElementById("txtKeepMsgsDays"),
_chDeleteFromTrach: document.getElementById("chkDelMsgsSrv"),
_selectSync: document.getElementById("synchronizeSelect"),
_chDeleteFromDb: document.getElementById("chkDelMsgsDB"),
Init: function () {
var obj = this;
if (this._radioDelete && this._radioLeave && this._chKeep && this._inpKeep
&& this._chDeleteFromTrach && this._selectSync && this._chDeleteFromDb)
{
this._radioDelete.onchange = function() { obj.Set(); };
this._radioLeave.onchange = function() { obj.Set(); };
this._chKeep.onchange = function() { obj.Set(); };
this._chDeleteFromTrach.onchange = function() { obj.Set(); };
this._selectSync.onchange = function() { obj.Set(); };
this._chDeleteFromDb.onchange = function() { obj.Set(); };
this.Set();
}
},
Set: function () {
switch (this._selectSync.value) {
case "1":
this._radioLeave.checked = true;
SetDisabled(this._radioDelete, true);
SetDisabled(this._radioLeave, false);
SetDisabled(this._chKeep, false);
SetDisabled(this._chDeleteFromTrach, false);
SetDisabled(this._chDeleteFromDb, false);
break;
case "3":
SetDisabled(this._radioDelete, false);
SetDisabled(this._radioLeave, false);
SetDisabled(this._chDeleteFromDb, false);
SetDisabled(this._chKeep, (this._radioLeave.disabled || !this._radioLeave.checked));
SetDisabled(this._chDeleteFromTrach, (this._radioLeave.disabled || !this._radioLeave.checked));
break;
case "5":
this._radioLeave.checked = true;
SetDisabled(this._radioDelete, true);
SetDisabled(this._radioLeave, true);
SetDisabled(this._chKeep, true);
SetDisabled(this._chDeleteFromTrach, true);
SetDisabled(this._chDeleteFromDb, true);
break;
}
SetDisabled(this._inpKeep, (this._chKeep.disabled || !this._chKeep.checked));
}
};
Pop3Form.Init();
</script>
<br />
<hr />
<div align="right">
<span class="wm_secondary_info" style="float: left;">* required fields</span>
<input type="submit" class="wm_button" style="width: 100px;" value="Save">
</div>