<!--
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
 * ("License"); You may not use this file except in compliance with the License
 * The Original Code is:  vtiger CRM Open Source
 * The Initial Developer of the Original Code is vtiger.
 * Portions created by vtiger are Copyright (C) vtiger.
 * All Rights Reserved.
*
 ********************************************************************************/

-->
<!-- BEGIN: main -->
<table width="100%" cellpadding="1" cellspacing="0" border="0"><tr> 
	<td align="left"></td>
	<td>
	</td>
	<td></td>
	<td align="right" nowrap><font class="required">{APP.LBL_REQUIRED_SYMBOL}</font>{APP.NTC_REQUIRED}</td>
</tr>
</table> 

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="formOuterBorder">
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="1" border="0">
  <tbody><form action="index.php" method="post" name="EditView" id="form">
  <input type="hidden" name="module" value="Settings">
  <input type="hidden" name="action">
  <input type="hidden" name="server_type" value="email">
  <input type="hidden" name="record" value="{RECORD_ID}">
  <input type="hidden" name="edit" value="{EDIT}">
  <input type="hidden" name="return_module" value="Settings">
  <input type="hidden" name="return_action" value="index">
  <tr><td colspan="2" class="formSecHeader">{MOD.LBL_GENERAL_INFO}</td></tr>
  <tr> 
    <td width="30%" nowrap class="dataLabel">{MOD.LBL_DISPLAY_NAME}:</td>
    <td align="left"> <input class="dataInput" type="text" name="displayname" value="{DISPLAYNAME}" size="30" /> 
    </td>
  </tr>
  <tr>
    <td nowrap class="dataLabel"><FONT class="required">{APP.LBL_REQUIRED_SYMBOL}</FONT> {MOD.LBL_EMAIL_ADDRESS}:</td>
    <td align="left"> <input class="dataInput" type="text" name="email" value="{EMAIL}" size="30" /> 
    </td>
  </tr>
  <tr>
    <td nowrap class="dataLabel">{APP.LBL_LIST_ACCOUNT_NAME}:</td>
    <td align="left"><input class="dataInput" name="account_name" value="{ACCOUNTNAME}" size="30" /> 
    </td>
  </tr>
</table>
</td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="formOuterBorder">
<tr><td>
<table width="100%" cellpadding="0" cellspacing="1" border="0">
  <tbody> 
	<tr><td colspan="2" class="formSecHeader">{MOD.LBL_MAIL_SERVER_INFO}</td></tr>
  <tr> 
    <td width="30%" nowrap class="dataLabel">{MOD.LBL_MAIL_PROTOCOL}:</td>
    <td align="left"> <input class="dataInput" type="radio" name="mailprotocol" value="POP" {POP_SELECT} {POP}/>&nbsp;{MOD.LBL_POP}<input class="dataInput" type="radio" name="mailprotocol" value="IMAP" {IMAP}/>&nbsp;{MOD.LBL_IMAP} 
    </td>
  </tr>
  <tr>
    <td nowrap class="dataLabel"><FONT class="required">{APP.LBL_REQUIRED_SYMBOL}</FONT> {APP.LBL_LIST_USER_NAME}:</td>
    <td align="left"> <input class="dataInput" type="text" name="server_username" value="{SERVERUSERNAME}" size="30" /> 
    </td>
  </tr>
  <tr>
    <td nowrap class="dataLabel"><FONT class="required">{APP.LBL_REQUIRED_SYMBOL}</FONT> {MOD.LBL_LIST_PASSWORD}:</td>
    <td align="left"><input class="dataInput" type="password" name="server_password" value="{SERVERPASSWORD}" size="30" /> 
    </td>
  </tr>
  <tr>
    <td nowrap class="dataLabel"><FONT class="required">{APP.LBL_REQUIRED_SYMBOL}</FONT> {MOD.LBL_MAIL_SERVER_NAME}:</td>
    <td align="left"><input class="dataInput" name="mail_servername" value="{SERVERNAME}" size="30" /> 
    </td>
  </tr>

</table>
</td>
</tr>
</table>
<br>
<!--table width="50%" border="0" cellspacing="0" cellpadding="0">
<tr><td>
<table width="100%" cellpadding="0" cellspacing="1" border="0">
  <tbody> 
	<tr><td><input type="checkbox" name="accounttest">&nbsp;&nbsp;{MOD.LBL_TEST_SETTINGS}</td>
	</tr>
 </table>
 </td>
</tr>
</table-->
<br>
<table width="65%" cellpadding="0" cellspacing="0" border="0" align="center"><tbody>
	<tr>
	         <td align="center">
			<input title="{APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="this.form.action.value='SaveMailAccount'; return verify_data(EditView)" type="submit" name="button" value=" {APP.LBL_SAVE_BUTTON_LABEL} " >
	                <input title="{APP.LBL_CANCEL_BUTTON_LABEL}>" accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='index'; this.form.module.value='Settings'; this.form.return_action.value='index'; this.form.return_module.value='Settings';" type="submit" name="button" value="{APP.LBL_CANCEL_BUTTON_LABEL}"></td>
	</tr>
	</form>
</table>
{JAVASCRIPT}
<a href=index.php?module=Settings&action=ListMailAccount>{MOD.LBL_LIST_MAIL_ACCOUNT}</a>

<!-- END: main -->