Location: PHPKode > projects > MembersGear > membersgear/templates/admin_configuration_email.tpl
{$ADMIN_HEADER}
{literal}
<script language="JavaScript" type="text/javascript" >                  
       var $n = jQuery.noConflict(); 
       
                  function Change(value,element)
                  {
                        
                         elems = document.getElementsByTagName('TR');
                         for (j=0;j<elems.length;j++)
                         {
                             if (element == elems[j].getAttribute("element"))
                             {
                                 elems[j].style.display = (value == 'false')?"none":"";
                             }
                         }
                        //alert('here from '+ value + 'element is ' + element);
                  }
                  function setEmailFieldValue(id,subject,hdnField,txtField)
                  {
                        //alert('Email ID: '+id+'\r\n'+'Subject: '+subject+'\r\n'+'Hidden Field: '+hdnField+'\r\n'+'Text Field: '+txtField);
                        var HiddenField = document.getElementById(hdnField);
                        var TextField   = document.getElementById(txtField);
                        
                        HiddenField.value = id;
                        TextField.value   = subject;
                  }
                  
                  
                 function checkSpecialChar()
                {                  
                 var error=""
                 var altfiled="";    
                 var foc=1;
                var emailfromname=document.getElementById('emailfromname').value;
                if(!checkSpecialChar_error(emailfromname))
                 {
                  error="only alphabates and space is alllow in email from name." ;
                  if(foc==1)
                   {  
                      focus='emailfromname'; 
                      foc=0;
                    }
                 } 
                 
                if(error=="")
                {
                 return true;
                }
               else
                {
                  alert(error);
                   var FocusControl = document.getElementById(focus);
                   FocusControl.focus();
                   return false;
                                                                                     

                } 
             } 
             
             function checkSpecialChar_error(data)
             {                   
                  
               var sts=true;
               var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?~_"; 

               for (var i = 0; i < data.length; i++) {
                  if (iChars.indexOf(data.charAt(i)) != -1) {
                    sts=false;
                 
                  }
              }
               return sts;  
             } 
              
    
    function validate_Test_Email_email_form()
    {
            var finalresult=true; 
            var error="";
            var focus=''; 
            var foc=1;
            
           if($n("#smtpRdo").is(':checked')){
            
            if(trim($n("#host").val())!='')
             { 
                 finalresult=true;
                  
             }
            else
              { 
                 finalresult=false;
                 error +='Please enter Mail System Host Address.' +'\r\n';  
                 
                 if(foc==1)
                  {
                    focus='host'; 
                     foc=0;
                  }          
               }   
            if($n("#chkAuth").is(':checked')){  
            
                    if(trim($n("#authusername").val())!='')
                     { 
                         finalresult=true;
                          
                     }
                    else
                      { 
                         finalresult=false;
                         error +='Please enter Mail System Username.' +'\r\n';  
                         
                         if(foc==1)
                          {
                            focus='authusername'; 
                             foc=0;
                          }          
                       } 
                    
                    if(trim($n("#authupassword").val())!='')
                     { 
                         finalresult=true;
                          
                     }
                    else
                      { 
                         finalresult=false;
                         error +='Please enter Mail System Password.' +'\r\n';  
                         
                         if(foc==1)
                          {
                            focus='authupassword'; 
                             foc=0;
                          }          
                     } 
             }
     
            if(trim($n("#port").val())!='')
             { 
                 finalresult=true;
                  
             }
            else
              { 
                 finalresult=false;
                 error +='Please enter Mail System Port.' +'\r\n';  
                 
                 if(foc==1)
                  {
                    focus='port'; 
                     foc=0;
                  }          
             } 
            
           }
             
            if(trim($n("#emailfrom").val())!='')
             { 
                 finalresult=true;
                  
             }
            else
              { 
                 finalresult=false;
                 error +='Please enter Email From.' +'\r\n';  
                 
                 if(foc==1)
                  {
                    focus='emailfrom'; 
                     foc=0;
                  }          
             }    
             
             if(trim($n("#emailfromname").val())!='')
             { 
                 finalresult=true;
                  
             }
            else
              { 
                 finalresult=false;
                 error +='Please enter Email From Name.' +'\r\n';  
                 
                 if(foc==1)
                  {
                    focus='emailfromname'; 
                     foc=0;
                  }          
             }    
             
             if(trim($n("#txt-admin-email").val())!='')
             { 
                 finalresult=true;
                  
             }
            else
              { 
                 finalresult=false;
                 error +='Please enter Administrator Email Addres.' +'\r\n';  
                 
                 if(foc==1)
                  {
                    focus='txt-admin-email'; 
                     foc=0;
                  }          
             } 
             
    
          if(error!='')
          {
                alert(error);
                var FocusControl = document.getElementById(focus);
                 FocusControl.focus();
                 return false;
          }
          else 
            return true;
    }                   
    
       $n(document).ready(function(){ 
       $n("#testemail").click(function() {
             
               if(validate_Test_Email_email_form())
               {  
                          var str = $n('#frmConfigureEmailSystem').serialize();
                          var web_url='{/literal}{$WEB_URL}{literal}';    

                               $n.ajax({
                               type: "POST",                   
                               url:  web_url+"/includes/send_test_email.php",
                               data: str,
                               success: function(msg){
                               
                                
                                 if(msg==trim("Test email sent sucessfully."))
                                 {
                                   
                                   $n("#testemaildiv").html('<font color="green" >' + msg + '</font>' );
                                 }
                                 else
                                  {
                                    $n("#testemaildiv").html('<font color="red" >' + msg + '</font>' );
                                  }
                              }
                      });
               }    
         
          });
       
    
 });   
 $n(document).ajaxStart($n.blockUI).ajaxStop($n.unblockUI);           
</script>
{/literal}
  <div id="content" class="setdiv">
    
    {if $msg neq ''}
        <div {if $err eq 'true'}class="errormsg" {else} class="succmsg"{/if} style="width:350px">
            {$msg}
        </div>
    {/if}
    
    <div id="full-contentdiv">
        <div class="righttop">
            <h2 align="center">
                Configure Email System
            </h2>
        </div>
        <div class="whole-page clear">
                        
           <form name="frmConfigureEmailSystem" id="frmConfigureEmailSystem" action="admin_configuration_email.php" method="post">  
              
              <div class="borderless borderless-1">
                
            
              <table border="0" cellpadding="0" cellspacing="0" style="width:800px" align="center">
                    <tr>
                            <td colspan="2">
                                    <div class="horizontal-line">
                                    </div>
                            </td>
                    </tr>
                                        
                    <tr>
                            <td class="right-side-text-borderless space" valign="top" style="width:300px;"><label>
                             Send Email Method 
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                <input type="radio" id="smtpRdo" name="mailMethod" value="smtp" class="chkcss" {if $SEND_EMAIL_METHOD eq 'smtp'} checked="" {elseif $SEND_EMAIL_METHOD eq ''}checked="" {/if} >SMTP
                                <input type="radio" id="sandmailrdo" name="mailMethod" value="sendmail" {if $SEND_EMAIL_METHOD eq 'sendmail'} checked="" {/if}  class="chkcss">Send Mail
                               
                            </td>
                    </tr>
                    
                     <tr id='host_tr' style="display:none">
                            <td class="right-side-text-borderless space" valign="top" style="width:300px;"><label>
                             Mail System Host Address <label class="star">*</label> 
                            </label><div class="FieldLabelNote" >In most cases localhost.</div> 
                            </td>
                            <td class="left-side-text-borderless">
                                <input type="text" class="txtcss" id="host" name="host" style="width: 554px ! important;" value="{$PHPMAILER_HOST}">
                            </td>
                    </tr>
                    
                     <tr id='auth_tr' style="display:none">
                            <td class="right-side-text-borderless space" valign="top" style="width:300px;"><label>
                             Mail System Authentication <label class="star"></label>
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                {if PHPMAILER_SMTPAUTH eq 'false' or PHPMAILER_SMTPAUTH eq '' }
                                  <input  id="chkAuth" type="checkbox" value="true" class="chkcss" name="auth" style="border-width: 0px;"/>    
                               {else}
                                <input id="chkAuth" type="checkbox" value="true" class="chkcss" name="auth" checked style="border-width: 0px;"/>
                                
                              {/if}       
                            </td>
                    </tr>
                    
                    <tr id='user_tr' style="display:none">
                            <td class="right-side-text-borderless space" valign="top" style="width:300px;"><label>
                             Mail System Username <label class="star">*</label>
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                <input type="text" class="txtcss" id="authusername" name="authusername" style="width: 554px ! important;" value="{$PHPMAILER_USERNAME}">
                            </td>
                    </tr>
                    
                    <tr id='pass_tr' style="display:none">
                            <td class="right-side-text-borderless space" valign="top" style="width:300px;"><label>
                             Mail System Password <label class="star">*</label>
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                <input type="password" class="txtcss" id="authupassword" name="authupassword" style="width: 554px ! important;" value="{$PHPMAILER_PASSWORD}">
                            </td>
                    </tr>
                    
                    <tr id="port_tr" style="display:none">
                            <td class="right-side-text-borderless space" valign="top" style="width:300px;"><label>
                             Mail System Port <label class="star">*</label>
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                <input type="text" class="txtcss" id="port" name="port" style="width: 50px ! important;" value="{$PHPMAILER_PORT}">
                            </td>
                    </tr>
                    
                    <tr>
                            <td class="right-side-text-borderless space" valign="top" style="width:300px;"><label>
                             Email From <label class="star">*</label>
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                <input type="text" class="txtcss" id="emailfrom" name="emailfrom" style="width: 554px ! important;" value="{$PHPMAILER_EMAIL_FROM}">
                            </td>
                    </tr>
                    
                    <tr>
                            <td class="right-side-text-borderless space" valign="top" style="width:300px;"><label>
                             Email From Name <label class="star">*</label>
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                <input type="text" class="txtcss" id="emailfromname" name="emailfromname" style="width: 554px ! important;" value="{$PHPMAILER_EMAIL_FROM_NAME}">
                            </td>
                    </tr>
                    
                    <tr>
                            <td class="right-side-text-borderless space" valign="top" style="width:300px;"><label>
                                Administrator Email Address <label class="star">*</label>
                            </label>
                                    <input type="hidden" id="hdn-admin-email" name="hdn-admin-email" value="">
                            </td>
                            <td class="left-side-text-borderless">
                                <input type="text" class="txtcss" id="txt-admin-email" name="txt-admin-email" style="width: 554px ! important;" value="{$ADMINISTRATOR_EMAIL_ADDRESS}">
                            </td>
                    </tr>

                    <tr>
                     <td>&nbsp;</td>
                     <td>&nbsp;</td>
                    </tr>
                    <tr>
                          <td class="right-side-text-borderless space" valign="top" style="width:300px;"><label>
                             Test email settings 
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                              <input type="button" value="Send Test Email" id="testemail" name="testemail" class="btncss">&nbsp;&nbsp;<span id="testemaildiv" name="testemaildiv"></span> 
                            </td>
                    </tr>
                             
                    <tr>
                            <td colspan="2">
                                    <div class="horizontal-line">
                                    </div>
                            </td>
                    </tr>
             {*------------------ Account Locked  --------------------------------*}       
                    <tr>
                            
                            <td class="right-side-text-borderless space" valign="top" style=""><label>
                                Send Email when user account gets locked : 
                            </label>
                                    <input type="hidden" id="hdn-acc-locked" name="hdn-acc-locked" value="{$EMAIL_ACCOUNT_LOCKED_TEMPLATE_ID}">
                            </td>
                            <td class="left-side-text-borderless">
                                <select class="" style="width: 562px ! important;" id="ddl-acc-locked" name="ddl-acc-locked" onchange="Change(this.value,'account-locked');">
                                         <option value="false" {if $EMAIL_ACCOUNT_LOCKED eq 'false'}selected=""{/if}>Disable</option>
                                         <option value="true" {if $EMAIL_ACCOUNT_LOCKED eq 'true'}selected=""{/if}>Enable</option>
                                </select>
                                <div class="comment-div">
                                           Send this Email when a user has exceeded the maximum login attempts.
                                </div>
                            </td>
                    </tr>
                    
                     <tr element="account-locked" style="display:none">
                            <td class="right-side-text-borderless space" valign="top" style=""><label>
                                Email Template :
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                 <input type="text" class="txtcss" id="txt-acc-locked-email" readonly name="txt-acc-locked-email" value="{$EMAIL_ACCOUNT_LOCKED_TEMPLATE_NAME}" style="width: 400px ! important;">
                                 <input type="button" class="btncss" onclick="window.open('admin_email_uploader.php?{encryptUrl enstring='hdn=hdn-acc-locked&box=txt-acc-locked-email&enc=true'}','','dependent=1,scrollbars=1,directories=0,height=600,width=1000,location=0');" value="Browse" name="acc-locked-email"/>
                                <div class="comment-div">
                                          Use browser to select Email template
                                </div>
                            </td>
                    </tr>
                    
                    {if $EMAIL_ACCOUNT_LOCKED eq 'true'}
                        {php}
                             echo "<script language=javaScript>";
                             echo "Change('true','account-locked');";
                             echo "</script>";
                        {/php}
                    {/if}
                    
                    <tr>
                        <td colspan="2">
                             <div class="horizontal-line">
                                    </div>   
                        </td>
                    </tr>
                 {*------------------ Account Locked End --------------------------------*}   
                  
                 {*------------------ Payment Receive ---------------------------------  *} 
                     <tr>
                            
                            <td class="right-side-text-borderless space" valign="top" style=""><label>
                                Send Email when payment received successfully : 
                            </label>
                                    <input type="hidden" id="hdn-payment-complete" name="hdn-payment-complete" value="{$EMAIL_PAYMENT_COMPLETED_TEMPLATE_ID}">
                            </td>
                            <td class="left-side-text-borderless" style="width: 554px ! important;">
                                <select class="" style="width: 562px ! important;" id="ddl-payment-complete" name="ddl-payment-complete" onchange="Change(this.value,'payment-complete');">
                                         <option value="false" {if $EMAIL_PAYMENT_COMPLETED eq 'false'}selected=""{/if}>Disable</option>
                                         <option value="true" {if $EMAIL_PAYMENT_COMPLETED eq 'true'}selected=""{/if}>Enable</option>
                                </select>
                                <div class="comment-div">
                                          Send Email to your customers as soon as payment has been successfully processed.
                                </div>
                            </td>
                    </tr>
                    
                     <tr element="payment-complete" style="display:none">
                            <td class="right-side-text-borderless space" valign="top" style=""><label>
                                Email Template :
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                 <input type="text" class="txtcss" id="txt-payment-complete-email" name="txt-payment-complete-email" value="{$EMAIL_PAYMENT_COMPLETED_TEMPLATE_NAME}" readonly style="width: 400px ! important;">
                                 <input type="button" class="btncss" onclick="window.open('admin_email_uploader.php?{encryptUrl enstring='hdn=hdn-payment-complete&box=txt-payment-complete-email&enc=true'}','','dependent=1,scrollbars=1,directories=0,height=600,width=1000,location=0');" value="Browse" name="payment-complete-email"/>
                                 <div class="comment-div">
                                          Use browser to select Email template
                                </div>
                            </td>
                    </tr>
                    
                    {if $EMAIL_PAYMENT_COMPLETED eq 'true'}
                        {php}
                             echo "<script language=javaScript>";
                             echo "Change('true','payment-complete');";
                             echo "</script>";
                        {/php}
                    {/if}
                    
                    <tr>
                            <td colspan="2">
                                    <div class="horizontal-line">
                                    </div>
                            </td>
                    </tr>
                {*------------------ Payment Receive End ------------------------------  *}   
                    
                {*------------------ Product Signup Complete --------------------------  *}  
                    <tr>
                            
                            <td class="right-side-text-borderless space" valign="top"><label>
                                Send Email when product signup completed:
                            </label>
                                    <input type="hidden" id="hdn-subscription-signup" name="hdn-subscription-signup" value="{$EMAIL_PRODUCT_SIGNUP_TEMPLATE_ID}">
                            </td>
                            <td class="left-side-text-borderless">
                                <select class="" style="width: 562px ! important;" id="ddl-subscription-signup" name="ddl-subscription-signup" onchange="Change(this.value,'subscription-signup');">
                                         <option value="false" {if $EMAIL_PRODUCT_SIGNUP eq 'false'}selected=""{/if}>Disable</option>
                                         <option value="true" {if $EMAIL_PRODUCT_SIGNUP eq 'true'}selected=""{/if}>Enable</option>
                                </select>
                                <div class="comment-div">
                                       Send Email when user subscribed new product.<br/>
                                       TIP: Use this Email to instruct product subscription
                                </div>
                            </td>
                    </tr>
                    {*
                    <tr element="subscription-signup" name="subscription-signup" style="display:none">
                            <td class="right-side-text-borderless space" valign="top" id=""><label>
                                Notification Days :
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                <input type="text" class="txtcss" id="txt-sub-signup-notification" name="txt-sub-signup-notification" style="width: 554px ! important;" value="{$EMAIL_PRODUCT_SIGNUP_DAYS}">
                                <div class="comment-div">
                                        Number of days (before or after expiration) the member should be notified. Use positive values 
                                        (ex: 5) to advise before expiration
                                </div>
                            </td>
                    </tr>
                     *}
                    <tr element="subscription-signup" style="display:none">
                            <td class="right-side-text-borderless space" valign="top"><label>
                                Email Template :
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                 <input type="text" class="txtcss" id="txt-sub-signup-email" name="txt-sub-signup-email" value="{$EMAIL_PRODUCT_SIGNUP_TEMPLATE_NAME}" readonly="" style="width: 400px ! important;">
                                 <input type="button" class="btncss" onclick="window.open('admin_email_uploader.php?{encryptUrl enstring='hdn=hdn-subscription-signup&box=txt-sub-signup-email&enc=true'}','','dependent=1,scrollbars=1,directories=0,height=600,width=1000,location=0');" value="Browse" name="sub-expired-email"/>
                                <div class="comment-div">
                                         Use browser to select Email template
                                </div>
                            </td>
                    </tr>
                    
                    {if $EMAIL_PRODUCT_SIGNUP eq 'true'}
                        {php}
                             echo "<script language=javaScript>";
                             echo "Change('true','subscription-signup');";
                             echo "</script>";
                        {/php}
                    {/if}
                    
                    <tr>
                        <td colspan="2">
                             <div class="horizontal-line">
                                    </div>   
                        </td>
                    </tr>
                
                {*------------------ Product Signup Complete End --------------------------*}      
                
                {*------------------ Profile Update --------------------------*}   
                    <tr>
                            <td class="right-side-text-borderless space" valign="top" style=""><label>
                                Notification when profile updated : 
                            </label>
                                    <input type="hidden" id="hdn-change-profile" name="hdn-change-profile" value="{$EMAIL_CHANGE_PROFILE_TEMPLATE_ID}">
                            </td>
                            <td class="left-side-text-borderless">
                                <select class="" style="width: 562px ! important;" id="ddl-change-profile" name="ddl-change-profile" onchange="Change(this.value,'change-profile');">
                                         <option value="false" {if $EMAIL_CHANGE_PROFILE eq 'false'}selected=""{/if}>Disable</option>
                                         <option value="true" {if $EMAIL_CHANGE_PROFILE eq 'true'}selected=""{/if}>Enable</option>
                                </select>
                                <div class="comment-div">
                                      Send Email when user successful update its profile.   
                                </div>
                            </td>
                    </tr>
                    
                     <tr element="change-profile" style="display:none">
                            <td class="right-side-text-borderless space" valign="top" style=""><label>
                                Email Template :
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                 <input type="text" class="txtcss" id="txt-change-profile-email" name="txt-change-profile-email" value="{$EMAIL_CHANGE_PROFILE_TEMPLATE_NAME}" readonly="" style="width: 400px ! important;">
                                 <input type="button" class="btncss" onclick="window.open('admin_email_uploader.php?{encryptUrl enstring='hdn=hdn-change-profile&box=txt-change-profile-email&enc=true'}','','dependent=1,scrollbars=1,directories=0,height=600,width=1000,location=0');" value="Browse" name="change-profile-email"/>
                                <div class="comment-div">
                                          Use browser to select Email template
                                </div>
                            </td>
                    </tr>
                   
                    {if $EMAIL_CHANGE_PROFILE eq 'true'}
                        {php}
                             echo "<script language=javaScript>";
                             echo "Change('true','change-profile');";
                             echo "</script>";
                        {/php}
                    {/if}
                    
                    <tr>
                            <td colspan="2">
                                    <div class="horizontal-line">
                                    </div>
                            </td>
                    </tr>
                  
                  {*------------------ Profile Update End --------------------------*}   
                  
                  {*------------------ Subscription About To Expire ------------------------*}     
                    <tr>
                            
                            <td class="right-side-text-borderless space" valign="top"><label>
                                Send Email when subscription about to expire :
                            </label>
                                    <input type="hidden" id="hdn-subscription-expires" name="hdn-subscription-expires" value="{$EMAIL_SUBSCRIPTION_ABOUT_TO_EXPIRED_TEMPLATE_ID}">
                            </td>
                            <td class="left-side-text-borderless">
                                <select class="" style="width: 562px ! important;" id="ddl-subscription-expires" name="ddl-subscription-expires" onchange="Change(this.value,'subscription-expire');">
                                         <option value="false" {if $EMAIL_SUBSCRIPTION_ABOUT_TO_EXPIRED eq 'false'}selected=""{/if}>Disable</option>
                                         <option value="true" {if $EMAIL_SUBSCRIPTION_ABOUT_TO_EXPIRED eq 'true'}selected=""{/if}>Enable</option>
                                </select>
                                <div class="comment-div">
                                       Send Email when user subscription about to expires.<br/>
                                       TIP: Use this Email to instruct customers on subscriptions about to expired
                                </div>
                            </td>
                    </tr>
                    
                    <tr element="subscription-expire" name="subscription-expire" style="display:none">
                            <td class="right-side-text-borderless space" valign="top" id=""><label>
                                Notification Days :
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                <input type="text" class="txtcss" id="txt-sub-expire-notification" name="txt-sub-expire-notification" style="width: 554px ! important;" value="{$EMAIL_SUBSCRIPTION_ABOUT_TO_EXPIRED_DAYS}">
                                <div class="comment-div">
                                        Number of days (before or after expiration) the member should be notified. Use positive values 
                                        (ex: 5) to advise after expiration, negative values (ex: -5) to advise before notification
                                </div>
                            </td>
                    </tr>
                    
                    <tr element="subscription-expire" style="display:none">
                            <td class="right-side-text-borderless space" valign="top"><label>
                                Email Template :
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                 <input type="text" class="txtcss" id="txt-sub-expire-email" name="txt-sub-expire-email" value="{$EMAIL_SUBSCRIPTION_ABOUT_TO_EXPIRED_TEMPLATE_NAME}" readonly="" style="width: 400px ! important;">
                                 <input type="button" class="btncss" onclick="window.open('admin_email_uploader.php?{encryptUrl enstring='hdn=hdn-subscription-expires&box=txt-sub-expire-email&enc=true'}','','dependent=1,scrollbars=1,directories=0,height=600,width=1000,location=0');" value="Browse" name="sub-expire-email"/>
                                <div class="comment-div">
                                         Use browser to select Email template
                                </div>
                            </td>
                    </tr>
                    
                    {if $EMAIL_SUBSCRIPTION_ABOUT_TO_EXPIRED eq 'true'}
                        {php}
                             echo "<script language=javaScript>";
                             echo "Change('true','subscription-expire');";
                             echo "</script>";
                        {/php}
                    {/if}  
                      
                    <tr>
                            <td colspan="2">
                                    <div class="horizontal-line">
                                    </div>
                            </td>
                    </tr>

                    {*------------------ Subscription About To Expire End ------------------------*}     
                    
                    {*------------------ Forgot Password ----------------------------*}     
                      <tr>
                            
                            <td class="right-side-text-borderless space" valign="top" style=""><label>
                                Send Email when user forgot password : 
                            </label>
                                    <input type="hidden" id="hdn-forgot-password" name="hdn-forgot-password" value="{$EMAIL_FORGOT_PASSWORD_TEMPLATE_ID}">
                            </td>
                            <td class="left-side-text-borderless">
                                <select class="" style="width: 562px ! important;" id="ddl-forgot-password" name="ddl-forgot-password" onchange="Change(this.value,'forgot-password');">
                                         <option value="false" {if $EMAIL_FORGOT_PASSWORD eq 'false'}selected=""{/if}>Disable</option>
                                         <option value="true" {if $EMAIL_FORGOT_PASSWORD eq 'true'}selected=""{/if}>Enable</option>
                                </select>
                                <div class="comment-div">
                                           Send this Email when a user has forgot its login password.
                                </div>
                            </td>
                    </tr>
                    
                     <tr element="forgot-password" style="display:none">
                            <td class="right-side-text-borderless space" valign="top" style=""><label>
                                Email Template :
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                 <input type="text" class="txtcss" id="txt-forgot-password-email" readonly name="txt-forgot-password-email" value="{$EMAIL_FORGOT_PASSWORD_TEMPLATE_NAME}" style="width: 400px ! important;">
                                 <input type="button" class="btncss" onclick="window.open('admin_email_uploader.php?{encryptUrl enstring='hdn=hdn-forgot-password&box=txt-forgot-password-email&enc=true'}','','dependent=1,scrollbars=1,directories=0,height=600,width=1000,location=0');" value="Browse" name="forgot-password-email"/>
                                <div class="comment-div">
                                          Use browser to select Email template
                                </div>
                            </td>
                    </tr>
                    
                    {if $EMAIL_FORGOT_PASSWORD eq 'true'}
                        {php}
                             echo "<script language=javaScript>";
                             echo "Change('true','forgot-password');";
                             echo "</script>";
                        {/php}
                    {/if}
                    
                    <tr>
                        <td colspan="2">
                             <div class="horizontal-line">
                                    </div>   
                        </td>
                    </tr>
                    
                    {*------------------ Forgot Password End ------------------------*}     
                    
                    {*------------------ Subscription Expired ------------------------*}                             
                    <tr>
                            
                            <td class="right-side-text-borderless space" valign="top"><label>
                                Send Email when subscription expired :
                            </label>
                                    <input type="hidden" id="hdn-subscription-expired" name="hdn-subscription-expired" value="{$EMAIL_SUBSCRIPTION_IS_EXPIRED_TEMPLATE_ID}">
                            </td>
                            <td class="left-side-text-borderless">
                                <select class="" style="width: 562px ! important;" id="ddl-subscription-expired" name="ddl-subscription-expired" onchange="Change(this.value,'subscription-expired');">
                                         <option value="false" {if $EMAIL_SUBSCRIPTION_IS_EXPIRED eq 'false'}selected=""{/if}>Disable</option>
                                         <option value="true" {if $EMAIL_SUBSCRIPTION_IS_EXPIRED eq 'true'}selected=""{/if}>Enable</option>
                                </select>
                                <div class="comment-div">
                                       Send Email when user subscription expired.<br/>
                                       TIP: Use this Email to instruct customers on subscriptions is expired
                                </div>
                            </td>
                    </tr>
                    
                    <tr element="subscription-expired" name="subscription-expired" style="display:none">
                            <td class="right-side-text-borderless space" valign="top" id=""><label>
                                Notification Days :
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                <input type="text" class="txtcss" id="txt-sub-expired-notification" name="txt-sub-expired-notification" style="width: 554px ! important;" value="{$EMAIL_SUBSCRIPTION_IS_EXPIRED_DAYS}">
                                <div class="comment-div">
                                        Number of days (after expiration) the member should be notified. Use positive values 
                                        (ex: 5) to advise after expiration
                                </div>
                            </td>
                    </tr>
                    
                    <tr element="subscription-expired" style="display:none">
                            <td class="right-side-text-borderless space" valign="top"><label>
                                Email Template :
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                 <input type="text" class="txtcss" id="txt-sub-expired-email" name="txt-sub-expired-email" value="{$EMAIL_SUBSCRIPTION_IS_EXPIRED_TEMPLATE_NAME}" readonly="" style="width: 400px ! important;">
                                 <input type="button" class="btncss" onclick="window.open('admin_email_uploader.php?{encryptUrl enstring='hdn=hdn-subscription-expired&box=txt-sub-expired-email&enc=true'}','','dependent=1,scrollbars=1,directories=0,height=600,width=1000,location=0');" value="Browse" name="sub-expired-email"/>
                                <div class="comment-div">
                                         Use browser to select Email template
                                </div>
                            </td>
                    </tr>
                    
                    {if $EMAIL_SUBSCRIPTION_IS_EXPIRED eq 'true'}
                        {php}
                             echo "<script language=javaScript>";
                             echo "Change('true','subscription-expired');";
                             echo "</script>";
                        {/php}
                    {/if} 
               
                    <tr>     
                        <td colspan="2">
                             <div class="horizontal-line">
                                    </div>   
                        </td>
                    </tr>
                    
                    {*------------------ Subscription Expired End ------------------------*}                             
                    
                    {*------------------ Product Payment Pending ------------------------*}                             
                    <tr>
                            
                            <td class="right-side-text-borderless space" valign="top"><label>
                                Send Email when product payment pending :
                            </label>
                                    <input type="hidden" id="hdn-payment-pending" name="hdn-payment-pending" value="{$EMAIL_PRODUCT_PAYMENT_PENDING_TEMPLATE_ID}">
                            </td>
                            <td class="left-side-text-borderless">
                                <select class="" style="width: 562px ! important;" id="ddl-payment-pending" name="ddl-payment-pending" onchange="Change(this.value,'payment-pending');">
                                         <option value="false" {if $EMAIL_PRODUCT_PAYMENT_PENDING eq 'false'}selected=""{/if}>Disable</option>
                                         <option value="true" {if $EMAIL_PRODUCT_PAYMENT_PENDING eq 'true'}selected=""{/if}>Enable</option>
                                </select>
                                <div class="comment-div">
                                       Send Email when user product payment is pending.<br/>
                                </div>
                            </td>
                    </tr>
                    {*
                    <tr element="payment-pending" name="payment-pending" style="display:none">
                            <td class="right-side-text-borderless space" valign="top" id=""><label>
                                Notification Days :
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                <input type="text" class="txtcss" id="txt-payment-pending-notify" name="txt-payment-pending-notify" style="width: 554px ! important;" value="{$EMAIL_PRODUCT_PAYMENT_PENDING_DAYS}">
                                <div class="comment-div">
                                        Number of days (before or after expiration) the member should be notified. Use positive values 
                                        (ex: 5) to advise before expiration, negative values (ex: -5) to advise after notification
                                </div>
                            </td>
                    </tr>
                     *}
                    <tr element="payment-pending" style="display:none">
                            <td class="right-side-text-borderless space" valign="top"><label>
                                Email Template :
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                 <input type="text" class="txtcss" id="txt-payment-pending-email" name="txt-payment-pending-email" value="{$EMAIL_PRODUCT_PAYMENT_PENDING_TEMPLATE_NAME}" readonly="" style="width: 400px ! important;">
                                 <input type="button" class="btncss" onclick="window.open('admin_email_uploader.php?{encryptUrl enstring='hdn=hdn-payment-pending&box=txt-payment-pending-email&enc=true'}','','dependent=1,scrollbars=1,directories=0,height=600,width=1000,location=0');" value="Browse" name="payment-pending"/>
                                <div class="comment-div">
                                         Use browser to select Email template
                                </div>
                            </td>
                    </tr>
                    
                    {if $EMAIL_PRODUCT_PAYMENT_PENDING eq 'true'}
                        {php}
                             echo "<script language=javaScript>";
                             echo "Change('true','payment-pending');";
                             echo "</script>";
                        {/php}
                    {/if} 
               
                    <tr>     
                        <td colspan="2">
                             <div class="horizontal-line">
                                    </div>   
                        </td>
                    </tr>
                    
                    {*------------------ Product Payment Pending End ------------------------*}                             
                    
                    {*------------------ Product Payment Failed ------------------------*}                             
                    <tr>
                            
                            <td class="right-side-text-borderless space" valign="top"><label>
                                Send Email when product payment failed :
                            </label>
                                    <input type="hidden" id="hdn-payment-failed" name="hdn-payment-failed" value="{$EMAIL_PRODUCT_PAYMENT_FAILED_TEMPLATE_ID}">
                            </td>
                            <td class="left-side-text-borderless">
                                <select class="" style="width: 562px ! important;" id="ddl-payment-failed" name="ddl-payment-failed" onchange="Change(this.value,'payment-failed');">
                                         <option value="false" {if $EMAIL_PRODUCT_PAYMENT_FAILED eq 'false'}selected=""{/if}>Disable</option>
                                         <option value="true" {if $EMAIL_PRODUCT_PAYMENT_FAILED eq 'true'}selected=""{/if}>Enable</option>
                                </select>
                                <div class="comment-div">
                                       Send Email when user product payment is failed.<br/>
                                </div>
                            </td>
                    </tr>
                    {*
                    <tr element="payment-failed" name="payment-failed" style="display:none">
                            <td class="right-side-text-borderless space" valign="top" id=""><label>
                                Notification Days :
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                <input type="text" class="txtcss" id="txt-payment-failed-notify" name="txt-payment-failed-notify" style="width: 554px ! important;" value="{$EMAIL_PRODUCT_PAYMENT_FAILED_DAYS}">
                                <div class="comment-div">
                                        Number of days (before or after expiration) the member should be notified. Use positive values 
                                        (ex: 5) to advise before expiration, negative values (ex: -5) to advise after notification
                                </div>
                            </td>
                    </tr>
                    *}
                    <tr element="payment-failed" style="display:none">
                            <td class="right-side-text-borderless space" valign="top"><label>
                                Email Template :
                            </label>
                            </td>
                            <td class="left-side-text-borderless">
                                 <input type="text" class="txtcss" id="txt-payment-failed-email" name="txt-payment-failed-email" value="{$EMAIL_PRODUCT_PAYMENT_FAILED_TEMPLATE_NAME}" readonly="" style="width: 400px ! important;">
                                 <input type="button" class="btncss" onclick="window.open('admin_email_uploader.php?{encryptUrl enstring='hdn=hdn-payment-failed&box=txt-payment-failed-email&enc=true'}','','dependent=1,scrollbars=1,directories=0,height=600,width=1000,location=0');" value="Browse" name="payment-failed"/>
                                <div class="comment-div">
                                         Use browser to select Email template
                                </div>
                            </td>
                    </tr>
                    
                    {if $EMAIL_PRODUCT_PAYMENT_FAILED eq 'true'}
                        {php}
                             echo "<script language=javaScript>";
                             echo "Change('true','payment-failed');";
                             echo "</script>";
                        {/php}
                    {/if} 
               
                    <tr>     
                        <td colspan="2">
                             <div class="horizontal-line">
                                    </div>   
                        </td>
                    </tr>
                    
                    {*------------------ Product Payment Failed End ------------------------*}                             
                    
                    <tr>
                         <td/>
                         <td class="buttontd">
                                <input type="submit" class="btncss" name="submit" {if $IsEdit eq 'yes'}value="Save"{else}value="Update Now"{/if}>&nbsp;&nbsp;&nbsp;
                                <input type="button" class="btncss" name="btnBack" value="Cancel" onclick="javascript:location.href='index.php';">
                         </td>
                    </tr>
              
              </table>
            
        </div>
           </form>
         {literal}
           <script language="JavaScript" type="text/javascript">
           
                var $n = jQuery.noConflict();  
                $n(document).ready(function(){  
                
                     $n("#smtpRdo").click(function() {
                        showHideOptions();
                     });
                     
                     $n("#sandmailrdo").click(function() {
                        showHideOptions();
                     });
                     
                   showHideOptions();  
                
                });
                
                  $n("#chkAuth").click(function() {
                        showHideAuthCredentials();
                  });
                
                function showHideOptions(){
                  
                      if($n("#smtpRdo").is(':checked')){
                      
                            $n("#host_tr").show();
                            $n("#auth_tr").show();
                            $n("#port_tr").show();
                            showHideAuthCredentials();
                      
                        }
                      else if($n("#sandmailrdo").is(':checked')){
                      
                              $n("#host_tr").hide();
                              $n("#auth_tr").hide();
                              $n("#port_tr").hide();
                              $n("#user_tr").hide();
                              $n("#pass_tr").hide();
                            
                              
                      
                      }   
                  }
                
               function showHideAuthCredentials(){
               
               
                      if($n("#chkAuth").is(':checked')){ 
                      
                             $n("#user_tr").show();
                             $n("#pass_tr").show();
                      }
                     else{
                            $n("#user_tr").hide();
                            $n("#pass_tr").hide();
                       } 
               
               }  
               
                //You should create the validator only after the definition of the HTML form
                  var frmvalidator  = new Validator("frmConfigureEmailSystem");

                  frmvalidator.EnableMsgsTogether();
                  frmvalidator.addValidation("txt-admin-email","req","Please enter Administrator Email address.");
                  frmvalidator.addValidation("txt-admin-email","email","Please enter valid Email address.");
                   frmvalidator.addValidation("host","req","Please enter Hostname.","is_host_validationRequired()=='yes'");
                  frmvalidator.addValidation("authusername","req","Please enter Mail system Username.","is_username_validationRequired()=='yes'");
                  frmvalidator.addValidation("authupassword","req","Please enter Mail system Password.","is_password_validationRequired()=='yes'");
                  frmvalidator.addValidation("port","req","Please enter Mail system Port Number.","is_port_validationRequired()=='yes'");
                  frmvalidator.addValidation("port","numeric","Please enter only numeric value in Php Mailer Port Number.");
                  frmvalidator.addValidation("emailfrom","req","Please enter from Email address.");
                  frmvalidator.addValidation("emailfrom","email","Please enter valid Email address.");  
                  frmvalidator.addValidation("emailfromname","req","Please enter from Email name.");
                  //frmvalidator.addValidation("emailfromname","alpaha","only Alphabetic characters allow in  from email name.");     

                  frmvalidator.setAddnlValidationFunction("checkSpecialChar");
                  
                  frmvalidator.addValidation("hdn-acc-locked","req","Please select Email template for account locked.","document.getElementById('ddl-acc-locked').options[document.getElementById('ddl-acc-locked').selectedIndex].value == 'true'");
                  
                  frmvalidator.addValidation("hdn-payment-complete","req","Please select Email template for payment complete.","document.getElementById('ddl-payment-complete').options[document.getElementById('ddl-payment-complete').selectedIndex].value == 'true'");
                  
                  frmvalidator.addValidation("hdn-subscription-signup","req","Please select Email template for product signup complete.","document.getElementById('ddl-subscription-signup').options[document.getElementById('ddl-subscription-signup').selectedIndex].value == 'true'");
                  //frmvalidator.addValidation("txt-sub-signup-notification","regexp=^[0-9]{1,2}$","Please enter only numeric value for product signup complete notification.","document.getElementById('ddl-subscription-signup').options[document.getElementById('ddl-subscription-signup').selectedIndex].value == 'true'");
                  //frmvalidator.addValidation("txt-sub-signup-notification","lt=31","Maximum notification days for product signup complete is 30 days.","document.getElementById('ddl-subscription-signup').options[document.getElementById('ddl-subscription-signup').selectedIndex].value == 'true'");
                  //frmvalidator.addValidation("txt-sub-signup-notification","gt=-31","Maximum notification days for product signup complete is 30 days.","document.getElementById('ddl-subscription-signup').options[document.getElementById('ddl-subscription-signup').selectedIndex].value == 'true'");
                  
                  frmvalidator.addValidation("hdn-change-profile","req","Please select Email template for profile update.","document.getElementById('ddl-change-profile').options[document.getElementById('ddl-change-profile').selectedIndex].value == 'true'");
                  
                  frmvalidator.addValidation("hdn-subscription-expires","req","Please select Email template for subcription about to expire.","document.getElementById('ddl-subscription-expires').options[document.getElementById('ddl-subscription-expires').selectedIndex].value == 'true'");
                  frmvalidator.addValidation("txt-sub-expire-notification","regexp=^(-|)[0-9]{1,2}$","Please enter only numeric value for subcription about to expire notification.","document.getElementById('ddl-subscription-expires').options[document.getElementById('ddl-subscription-expires').selectedIndex].value == 'true'");
                  frmvalidator.addValidation("txt-sub-expire-notification","lt=31","Maximum notification days for subcription about to expire is 30 days.","document.getElementById('ddl-subscription-expires').options[document.getElementById('ddl-subscription-expires').selectedIndex].value == 'true'");
                  frmvalidator.addValidation("txt-sub-expire-notification","gt=-31","Maximum notification days for subcription about to expire is 30 days.","document.getElementById('ddl-subscription-expires').options[document.getElementById('ddl-subscription-expires').selectedIndex].value == 'true'");
                  
                  frmvalidator.addValidation("hdn-forgot-password","req","Please select Email template for forgot password.","document.getElementById('ddl-forgot-password').options[document.getElementById('ddl-forgot-password').selectedIndex].value == 'true'");
                  
                  frmvalidator.addValidation("hdn-subscription-expired","req","Please select Email template for subcription expired.","document.getElementById('ddl-subscription-expired').options[document.getElementById('ddl-subscription-expired').selectedIndex].value == 'true'");
                  frmvalidator.addValidation("txt-sub-expired-notification","regexp=^[0-9]{1,2}$","Please enter only numeric value for subcription expired notification.","document.getElementById('ddl-subscription-expired').options[document.getElementById('ddl-subscription-expired').selectedIndex].value == 'true'");
                  frmvalidator.addValidation("txt-sub-expired-notification","lt=31","Maximum notification days for subcription expired is 30 days.","document.getElementById('ddl-subscription-expired').options[document.getElementById('ddl-subscription-expired').selectedIndex].value == 'true'");
                  //frmvalidator.addValidation("txt-sub-expired-notification","gt=-31","Maximum notification days for subcription expired is 30 days.","document.getElementById('ddl-subscription-expired').options[document.getElementById('ddl-subscription-expired').selectedIndex].value == 'true'");
                  
                  frmvalidator.addValidation("hdn-payment-pending","req","Please select Email template for product payment pending.","document.getElementById('ddl-payment-pending').options[document.getElementById('ddl-payment-pending').selectedIndex].value == 'true'");
                  //frmvalidator.addValidation("txt-payment-pending-notify","regexp=^(-|)[0-9]{1,2}$","Please enter only numeric value for product payment pending notification.","document.getElementById('ddl-payment-pending').options[document.getElementById('ddl-payment-pending').selectedIndex].value == 'true'");
                  //frmvalidator.addValidation("txt-payment-pending-notify","lt=31","Maximum notification days for product payment pending is 30 days.","document.getElementById('ddl-payment-pending').options[document.getElementById('ddl-payment-pending').selectedIndex].value == 'true'");
                  //frmvalidator.addValidation("txt-payment-pending-notify","gt=-31","Maximum notification days for product payment pending is 30 days.","document.getElementById('ddl-payment-pending').options[document.getElementById('ddl-payment-pending').selectedIndex].value == 'true'");
                  
                  frmvalidator.addValidation("hdn-payment-failed","req","Please select Email template for product payment failed.","document.getElementById('ddl-payment-failed').options[document.getElementById('ddl-payment-failed').selectedIndex].value == 'true'");
                  //frmvalidator.addValidation("txt-payment-failed-notify","regexp=^(-|)[0-9]{1,2}$","Please enter only numeric value for product payment failed notification.","document.getElementById('ddl-payment-failed').options[document.getElementById('ddl-payment-failed').selectedIndex].value == 'true'");
                 // frmvalidator.addValidation("txt-payment-failed-notify","lt=31","Maximum notification days for product payment failed is 30 days.","document.getElementById('ddl-payment-failed').options[document.getElementById('ddl-payment-failed').selectedIndex].value == 'true'");
                 // frmvalidator.addValidation("txt-payment-failed-notify","gt=-31","Maximum notification days for product payment failed is 30 days.","document.getElementById('ddl-payment-failed').options[document.getElementById('ddl-payment-failed').selectedIndex].value == 'true'");
                  
                  
                  function hostValidation()
                  {
                    var hostname=document.frmConfigureEmailSystem.host.value;
                    if(!validateIP(hostname))
                     {
                       if(!is_valid_URL(hostname))
                         {
                            alert('Please enter valid Host.');
                            document.getElementById('host').focus(); 
                            return false;
                         }   

                     } 
                     else
                      {
                        return true;
                      }
                  } 
                  //frmvalidator.EnableOnPageErrorDisplaySingleBox();
                  /*
                  frmvalidator.addValidation("txtFieldName","req","Please enter field name.");
                  frmvalidator.addValidation("txtFieldName","maxlen=25",    "Max length for field name is 25 character.");
                  frmvalidator.addValidation("txtFieldName","alpha","Alphabetic chars only");
                  
                  frmvalidator.addValidation("txtFieldTitle","req","Please enter field title.");
                  frmvalidator.addValidation("txtFieldTitle","maxlen=45","Max length for field title is 45 character.");
                  frmvalidator.addValidation("txtFieldTitle","alpha","Alphabetic chars only.");
                  
                  
                  frmvalidator.addValidation("txtFieldDescription","req","Please enter field description.");
                  frmvalidator.addValidation("txtFieldDescription","maxlen=100","Max length for field description is 100 character.");
                  
                  frmvalidator.addValidation("ddlSQLFieldType","dontselect=''","Please select  SQL field type.");
                  
                  
                  frmvalidator.addValidation("txtFieldSize","req","Please enter field size.");
                  frmvalidator.addValidation("txtFieldSize","maxlen=20",    "Max length for field name is 20 character.");
                  frmvalidator.addValidation("txtFieldSize","num","Enter only digits in field size.");
                  
                  
                  frmvalidator.addValidation("txtDefaultValue","req","Please enter field default value.");
                  
                  frmvalidator.addValidation("ddlDisplaySignup","dontselect=''","Please select display in signup form.");
                  
                  frmvalidator.addValidation("ddlDisplayProfile","dontselect=''","Please select display in profile form.");
                  
                  frmvalidator.addValidation("ddlValidateFunction","dontselect=''","Please select validate function.");
                  */

                   function is_valid_URL(url) {
                    //var regexp = "/^(((ht|f)tp(s?))\:\/\/)?(www.|[a-zA-Z].)[a-zA-Z0-9\-\.]+\.(com|edu|gov|mil|net|org|biz|info|name|museum|us|ca|uk)(\/:[0-9]+)*(/($|[a-zA-Z0-9\.\,\;\?\'\\\+&%\$#\=~_\-]+))*$/";
                    var regexp=/https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?/;
                    // var regexp = /^(http[s]?:\/\/|ftp:\/\/)?(www\.)?[a-zA-Z0-9-\.]+\.(com|net|org|edu|mil|gov|arpa|biz|aero|name|coop|info|pro|museum|tv|([a-z]{2}))$/;
                     return(regexp.test(url));
                   }

                  function validateIP(url) {
                    if (url.search(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/) != -1) {
                        var myArray = url.split(/\./);
                        if (myArray[0] >= 255 || myArray[1] >= 255 || myArray[2] >= 255 || myArray[3] >= 255)
                            return false;
                        if (myArray[0] == 0 && myArray[1] == 0 && myArray[2] == 0 && myArray[3] == 0)
                            return false;
                        return true;
                    }
                    else
                        return false;
                 }
                 
                                  function is_host_validationRequired(){
                 
                    if($n("#smtpRdo").is(':checked')){
                    
                    return 'yes';
                    }
                   else return 'no'; 
                 
                 }
                 
                function is_username_validationRequired(){
                     if($n("#smtpRdo").is(':checked')){ 
                      
                        if($n("#chkAuth").is(':checked')){ 
                          return 'yes';
                        }
                       else
                        return 'no'; 
                     
                     }
                   else
                     return 'no';  
               
                } 
               
             function is_password_validationRequired(){
            
                if($n("#smtpRdo").is(':checked')){ 

                    if($n("#chkAuth").is(':checked')){ 
                       return 'yes';
                    }
                   else
                     return 'no';  

                }
                else
                  return 'no';  
            
             }
           function is_port_validationRequired(){
           
                if($n("#smtpRdo").is(':checked')){
                
                  return 'yes';
                }
                else return 'no'; 
           
           
            }   
           </script>
          {/literal}
    </div>
</div>
</div>
{$ADMIN_FOOTER}
Return current item: MembersGear