[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 {*+********************************************************************************** 2 * The contents of this file are subject to the vtiger CRM Public License Version 1.1 3 * ("License"); You may not use this file except in compliance with the License 4 * The Original Code is: vtiger CRM Open Source 5 * The Initial Developer of the Original Code is vtiger. 6 * Portions created by vtiger are Copyright (C) vtiger. 7 * All Rights Reserved. 8 ************************************************************************************} 9 <div class="editViewContainer"> 10 <form action="javascript:void(0);" method="POST" id="EditView"> 11 <div class="widget_header row-fluid"> 12 <h3>{vtranslate('JSLBL_Settings',$MODULE)}</h3> 13 </div> 14 <hr> 15 <table class="table table-bordered blockContainer showInlineTable"> 16 <tbody> 17 <tr> 18 <th class="blockHeader" colspan="4"> 19 <span class="font-x-large">{vtranslate('LBL_CREATE_MAILBOX', $MODULE)}</span> 20 </th> 21 </tr> 22 <tr> 23 <td class="fieldLabel"> 24 <label class="muted pull-right marginRight10px">{vtranslate('LBL_SELECT_ACCOUNT_TYPE',$MODULE)}</label> 25 </td> 26 <td class="fieldValue narrowWidthType" style="width: 70%;"> 27 <select id="_mbox_helper" class="small" onchange="MailManager.handle_settings_confighelper(this);"> 28 <option value=''>{vtranslate('JSLBL_Choose_Server_Type',$MODULE)}</option> 29 <option value='gmail' {if $SERVERNAME eq 'gmail'} selected {/if}>{vtranslate('JSLBL_Gmail',$MODULE)}</option> 30 <option value='yahoo' {if $SERVERNAME eq 'yahoo'} selected {/if}>{vtranslate('JSLBL_Yahoo',$MODULE)}</option> 31 <option value='fastmail' {if $SERVERNAME eq 'fastmail'} selected {/if}>{vtranslate('JSLBL_Fastmail',$MODULE)}</option> 32 <option value='other' {if $SERVERNAME eq 'other'} selected {/if}>{vtranslate('JSLBL_Other',$MODULE)}</option> 33 </select> 34 </td> 35 </tr> 36 </tbody> 37 </table> 38 39 <div id="settings_details" {if $SERVERNAME neq ''} style="display:block;" {else} style="display:none;"{/if}> 40 <table class="table table-bordered blockContainer showInlineTable"> 41 <tbody> 42 <tr> 43 <td class="fieldLabel " nowrap> 44 <label class="muted pull-right marginRight10px"><font color="red">*</font>{vtranslate('LBL_Mail_Server',$MODULE)}</label> 45 </td> 46 <td class="fieldValue narrowWidthType" nowrap style="width: 70%;"> 47 <input name="_mbox_server" value="{$MAILBOX->server()}" data-validation-engine="validate[required]]" type="text" style="width: 60%" class="detailedViewTextBox" onblur="this.className='detailedViewTextBox'" onfocus="this.className='detailedViewTextBoxOn'"> 48 <span class="mm_blur">{vtranslate('LBL_Like',$MODULE)}, mail.company.com or 192.168.10.20</span> 49 </td> 50 </tr> 51 52 <tr> 53 <td class="fieldLabel " nowrap> 54 <label class="muted pull-right marginRight10px"><font color="red">*</font>{vtranslate('LBL_Username',$MODULE)}</label> 55 </td> 56 <td class="fieldValue narrowWidthType" nowrap> 57 <input name="_mbox_user" id="_mbox_user" value="{$MAILBOX->username()}" type="text" style="width: 60%" class="detailedViewTextBox" onblur="this.className='detailedViewTextBox'" onfocus="this.className='detailedViewTextBoxOn'"> 58 <span class="mm_blur">{vtranslate('LBL_Your_Mailbox_Account',$MODULE)}</span> 59 </td> 60 </tr> 61 62 <tr> 63 <td class="fieldLabel " nowrap> 64 <label class="muted pull-right marginRight10px"><font color="red">*</font>{vtranslate('LBL_Password',$MODULE)}</label> 65 </td> 66 <td class="fieldValue narrowWidthType" nowrap> 67 <input name="_mbox_pwd" id="_mbox_pwd" value="{$MAILBOX->password()}" type="password" style="width: 60%" class="detailedViewTextBox" onblur="this.className='detailedViewTextBox'" onfocus="this.className='detailedViewTextBoxOn'"> 68 <span class="mm_blur">{vtranslate('LBL_Account_Password',$MODULE)}</span> 69 </td> 70 </tr> 71 </tbody> 72 </table> 73 74 <div id="additional_settings" {if $SERVERNAME eq 'other'} style="display:block;"{else} style="display:none;" {/if}> 75 <table class="table table-bordered blockContainer showInlineTable"> 76 <tr> 77 <td class="fieldLabel " nowrap> 78 <label class="muted pull-right marginRight10px">{vtranslate('LBL_Protocol',$MODULE)}</label> 79 </td> 80 <td class="fieldValue narrowWidthType" nowrap style="width: 70%;">{$MAILBOX->protocol()} 81 {var_dump($MAILBOX->protocol())} 82 <input type="radio" name="_mbox_protocol" value="IMAP2" {if strcasecmp($MAILBOX->protocol(), 'imap2')===0}checked=true{/if}> {vtranslate('LBL_Imap2',$MODULE)} 83 <input type="radio" name="_mbox_protocol" value="IMAP4" {if strcasecmp($MAILBOX->protocol(), 'imap4')===0}checked=true{/if}> {vtranslate('LBL_Imap4',$MODULE)} 84 </td> 85 </tr> 86 87 <tr> 88 <td class="fieldLabel " nowrap> 89 <label class="muted pull-right marginRight10px">{vtranslate('LBL_SSL_Options',$MODULE)}</label> 90 </td> 91 <td class="fieldValue narrowWidthType" nowrap> 92 <input type="radio" name="_mbox_ssltype" value="notls" {if strcasecmp($MAILBOX->ssltype(), 'notls')===0}checked=true{/if}> {vtranslate('LBL_No_TLS',$MODULE)} 93 <input type="radio" name="_mbox_ssltype" value="tls" {if strcasecmp($MAILBOX->ssltype(), 'tls')===0}checked=true{/if}> {vtranslate('LBL_TLS',$MODULE)} 94 <input type="radio" name="_mbox_ssltype" value="ssl" {if strcasecmp($MAILBOX->ssltype(), 'ssl')===0}checked=true{/if}> {vtranslate('LBL_SSL',$MODULE)} 95 </td> 96 </tr> 97 98 <tr> 99 <td class="fieldLabel " nowrap> 100 <label class="muted pull-right marginRight10px">{vtranslate('LBL_Certificate_Validations',$MODULE)}</label> 101 </td> 102 <td class="fieldValue narrowWidthType" nowrap> 103 <input type="radio" name="_mbox_certvalidate" value="validate-cert" {if strcasecmp($MAILBOX->certvalidate(), 'validate-cert')===0}checked=true{/if} > {vtranslate('LBL_Validate_Cert',$MODULE)} 104 <input type="radio" name="_mbox_certvalidate" value="novalidate-cert" {if strcasecmp($MAILBOX->certvalidate(), 'novalidate-cert')===0}checked=true{/if}> {vtranslate('LBL_Do_Not_Validate_Cert',$MODULE)} 105 </td> 106 </tr> 107 </table> 108 </div> 109 110 <table class="table table-bordered blockContainer showInlineTable"> 111 <tr> 112 <td class="fieldLabel " nowrap> 113 <label class="muted pull-right marginRight10px">{vtranslate('LBL_REFRESH_TIME',$MODULE)}</label> 114 </td> 115 <td class="fieldValue narrowWidthType" nowrap style="width: 70%;"> 116 <select name="_mbox_refresh_timeout"> 117 <option value="" {if $MAILBOX->refreshTimeOut() eq ''}selected{/if}>{vtranslate('LBL_NONE',$MODULE)}</option> 118 <option value="300000" {if strcasecmp($MAILBOX->refreshTimeOut(), '300000')==0}selected{/if}>{vtranslate('LBL_5_MIN',$MODULE)}</option> 119 <option value="600000" {if strcasecmp($MAILBOX->refreshTimeOut(), '600000')==0}selected{/if}>{vtranslate('LBL_10_MIN',$MODULE)}</option> 120 </select> 121 </td> 122 </tr> 123 <tr> 124 <td width="15%"> </td> 125 <td colspan=3> 126 <button class="btn btn-success" onclick="MailManager.save_settings(this.form);">{vtranslate('LBL_SAVE_BUTTON_LABEL',$MODULE)}</button> 127 {if $MAILBOX && $MAILBOX->exists()} 128 <button class="btn btn-danger" onclick="MailManager.remove_settings(this.form);">{vtranslate('LBL_Remove',$MODULE)}</button> 129 <a href="javascript:;" class="cancelLink" onclick="MailManager.close_settings();">{vtranslate('LBL_CANCEL_BUTTON_LABEL',$MODULE)}</button> 130 {/if} 131 </td> 132 </tr> 133 </table> 134 </form> 135 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |