Location: PHPKode > projects > MembersGear > membersgear/templates/admin_configuration_generate.tpl
{$ADMIN_HEADER}
<div id="content" class="setdiv">
    {if $msg neq ''}
            <div {if $errmsg eq 'true'}class="errormsg" {else}class="succmsg"{/if} style="width:350px">{$msg}</div>
           {/if} 
    <div id="full-contentdiv">
          <div class="righttop">
                <h2><center>
                    Configure Site Settings</h2>                                      
            </center></div>
         <div class="whole-page clear">
        
            <!-- Place your content here -->
              <form method="post" name="configureMessages">
              <div class="formformat">      
                 <table    width="100%"  cellpadding="0" cellspacing="0" >    
                  <tbody>
                  
                        <tr>
                            <td valign="top" style="padding-top: 5px;" colspan="2">

                                <p style="text-align: center"><b>Signup Form Configuration</b>   
                            </td>
                        </tr>
                        <tr>
                           <td class="right-side-text" width="50%"><label>Generate Username</label><div class="FieldLabelNote" >Select if you wish MembersGear to generate a username for the customer</div></td>
                            
                            <td class="left-side-text" width="50%">
                             {if $MEMBER_GENERATE_USERNAME eq 'false' or $MEMBER_GENERATE_USERNAME eq '' }
                                  <input type="checkbox" value="true" class="chkcss" name="generate_login" id="generate_login" style="border-width: 0px;"/>    
                             {else}
                                <input type="checkbox" value="true"class="chkcss" name="generate_login"  id="generate_login" checked style="border-width: 0px;"/>
                                
                              {/if}       
                            </td>
                        </tr>
                         <tr>
                            <td class="right-side-text" width="50%"><label>Generate Username Prefix <label class="star">*</label><div class="FieldLabelNote" >Enter 'user_' if you are unsure what to enter here.</div></td>
                           <td class="left-side-text" width="50%">
                                <input type="text" maxlength="255" size="10"  class="txtcss" name="generate_login_prefix"  id="generate_login_prefix" value="{$MEMBER_GENERATE_USERNAME_PREFIX}"/>
                            </td>

                        </tr>
                         <tr>
                          <td class="right-side-text" width="50%"><label>Username Minimum Length <label class="star">*</label></label></td>
                           <td class="left-side-text" width="50%">
                                <input type="text" maxlength="44"  class="txtcss" size="5"  name="login_min_length" id="login_min_length" value="{$MEMBER_LOGIN_MIN_LENGTH}"/>
                            </td>

                        </tr>
                         <tr>
                             <td class="right-side-text" width="50%"><label>Username Maximum Length <label class="star">*</label></label></td>
                             <td class="left-side-text" width="50%">
                                <input type="text" maxlength="44"  class="txtcss" size="5"  name="login_max_length"  id="login_max_length" value="{$MEMBER_LOGIN_MAX_LENGTH}"/>
                            </td>
                        </tr>

                         <tr>
                            <td class="right-side-text" width="50%"><label>Generate Password</label><div class="FieldLabelNote" >Select if you wish MembersGear to generate a password for the customer</div></td>
                           <td class="left-side-text" width="50%">
                              {if $MEMBER_GENERATE_PASSWORD eq 'false' or $MEMBER_GENERATE_PASSWORD eq ''  }
                                 <input type="checkbox" value="true" class="chkcss" name="generate_password"  id="generate_password" style="border-width: 0px;"/>   
                              {else}
                                   <input type="checkbox" value="true" class="chkcss" name="generate_password"  id="generate_password" checked style="border-width: 0px;"/>
                              {/if}
                            </td>
                        </tr>
                                <tr>

                            <td class="right-side-text" width="50%"><label>Password Minimum Length <label class="star">*</label></label></td>
                            <td class="left-side-text" width="50%">
                                <input type="text" maxlength="44"   class="txtcss" size="5"  name="pass_min_length" id="pass_min_length" value="{$MEMBER_PASSWORD_MIN_LENGTH}"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="right-side-text" width="50%"><label>Password Maximum Length <label class="star">*</label></label></td>

                            <td class="left-side-text" width="50%">
                                <input type="text" maxlength="44" size="5"   class="txtcss" name="pass_max_length"  id="pass_max_length" value="{$MEMBER_PASSWORD_MAX_LENGTH}"/>
                            </td>
                        </tr>
                        <tr>
                             <td class="right-side-text" width="50%"><label>Require Unique Email</label><div class="FieldLabelNote" >Require a Unique Email for each customer</div></td>
                            <td class="left-side-text" width="50%">
                            {if $MEMBER_UNIQUE_EMAIL eq 'false' or $MEMBER_UNIQUE_EMAIL eq '' }
                              <input type="checkbox" value="true" class="chkcss" name="unique_email"  id="unique_email" style="border-width: 0px;"/>
                            {else}
                               <input type="checkbox" value="true"  class="chkcss" name="unique_email"  id="unique_email" checked style="border-width: 0px;"/>
                             {/if}  
                            </td>
                        </tr>
                        
                         
                        <tr>
                            <td class="right-side-text" width="50%"><label>Use Address Info</label><div class="FieldLabelNote" >Display Personal and Shipping address fields in the admin add member forms.
                            if "Visible and Required" is set then country,state,zipcode is validated for Personal and Shipping address  </div></td>
                           <td class="left-side-text" width="50%"> 
                                <select size="1" class="selectcss"  name="use_address_info" id="use_address_info">
                                  {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'}
                                     <option value="invisible" selected>Invisible</option>
                                  {else}
                                      <option value="invisible">Invisible</option> 
                                   {/if}
                                   {if $MEMBER_USE_ADDRESS_INFO eq 'visible_required'}   
                                     <option  value="visible_required" selected >Visible and Required</option>
                                   {else}
                                      <option  value="visible_required"  >Visible and Required</option>  
                                   {/if}
                                   {if $MEMBER_USE_ADDRESS_INFO eq 'visible_optional'}
                                      <option value="visible_optional" selected>Visible but Optional</option>
                                   {else}
                                      <option value="visible_optional">Visible but Optional</option> 
                                  {/if}        
                                </select>

                            </td>
                        </tr>

                          <tr>
                            <td class="right-side-text" width="50%"><label>Validate User</label> <label class="star">*</label><div class="FieldLabelNote" >Activation  Email will be sent if this option is set to "yes"</div></td>
                           <td class="left-side-text" width="50%"> 
                                <select size="1" class="selectcss"  name="ddluservalidate" id="ddluservalidate">
                                   <option value="0">Select.</option>
                                  {if $MEMBER_USE_VALIDATE_INFO eq 'true'}
                                     <option value="true" selected>Yes</option>
                                  {else}
                                      <option value="true">Yes</option> 
                                   {/if}
                                   {if $MEMBER_USE_VALIDATE_INFO eq 'false'}   
                                     <option  value="false" selected >No</option>
                                   {else}
                                      <option  value="false">No</option>  
                                   {/if}
                                     
                                </select>

                            </td>
                        </tr>
                         <tr>
                            <td class="right-side-text" width="50%"><label>Show Product Price on Signup Page</label></td>
                           <td class="left-side-text" width="50%"> 
                          
                                <select size="1" class="selectcss"  name="ddlpricesignup" id="ddlpricesignup" style='width:73px'>
                                  {* <option value="0">Select.</option>*}
                                  
                                  {if $MEMBER_SHOWPRICE_SIGNUP_PAGE eq 'true'}
                                     <option value="true" selected>Yes</option>
                                  {else}
                                      <option value="true">Yes</option> 
                                   {/if}
                                   {if $MEMBER_SHOWPRICE_SIGNUP_PAGE eq 'false' or $MEMBER_SHOWPRICE_SIGNUP_PAGE eq '' }   
                                     <option  value="false" selected >No</option>
                                   {else}
                                      <option  value="false">No</option>  
                                   {/if}
                                     
                                </select>

                            </td>
                        </tr>
                        
                        
                          <tr style="display:none;">
                            <td class="right-side-text" width="50%"><label>Show Subscribe Link</label> <label class="star">*</label><div class="FieldLabelNote" >Show Subscribe to Messaging Link on signup form</div></td>
                           <td class="left-side-text" width="50%"> 
                                <select size="1" class="selectcss"  name="ddlusersubscribelink" id="ddlusersubscribelink">
                                       <option value="0">Select.</option>
                                       <option value="true" >Yes</option>
                                      <option  value="false" selected="selected">No</option>  
                                </select>

                            </td>
                        </tr>
                        <tr>
                            <td valign="top" style="padding-top: 5px;" colspan="2">

                                <p style="text-align: center"><b>Global Configuration</b>   
                            </td>
                        </tr>
                       <tr style="display:none;">
                            <td class="right-side-text" width="50%"><label>Livemode</label></td>
                              <td class="left-side-text" width="50%">
                                 {if $LIVE_MODE eq 'false' or $LIVE_MODE eq '' }
                              <input type="checkbox" value="true" class="chkcss"  name="live_mode"  id="live_mode" style="border-width: 0px;"/>
                            {else}
                               <input type="checkbox" value="true" class="chkcss" name="live_mode" id="live_mode" checked style="border-width: 0px;"/>
                             {/if}  
                            </td>
                        </tr>
                        <tr>
                            <td class="right-side-text" width="50%"><label>Web URL<label class="star">*</label></label><div class="FieldLabelNote" >Do not change this URL unless it is different from your domain or you wish to do so. After installation, changing back this url will require to reinstall MembersGear.</div></td>
                             <td class="left-side-text" width="50%"> 
                                <input type="text" maxlength="255" class="txtcss" size="75" name="wbe_url" id="wbe_url"  value="{$WEB_URL}"/>
                            </td>
                        </tr>
                        <tr>
                             <td class="right-side-text" width="50%"><label>Site Title <label class="star">*</label></label></td>
                            <td class="left-side-text" width="50%"> 
                                <input type="text" maxlength="255" size="25" class="txtcss"  name="site_title" id="site_title" value="{$WEB_TITLE}"/>
                            </td>
                        </tr>
                        <tr>
                             <td class="right-side-text" width="50%"><label>Site Visit Url <label class="star">*</label></label></td>
                            <td class="left-side-text" width="50%"> 
                                <input type="text" maxlength="255" size="75" class="txtcss"  name="site_visit_url" id="site_visit_url" value="{$SITE_VISIT_URL}"/>
                            </td>
                        </tr>
                         <tr>
                              <td class="right-side-text" width="50%"><label>Captcha enabled on Administrator's Login Page</label></td>
                              <td class="left-side-text" width="50%">
                                        <input type="checkbox" value="true" class="chkcss"  name="captcha_on_admin_login_page"  id="captcha_on_admin_login_page" {if $CAPTCHA_ENABLE_ON_ADMINSTRATOR_LOGIN_PAGE neq 'false' and $CAPTCHA_ENABLE_ON_ADMINSTRATOR_LOGIN_PAGE neq ''}checked=""{/if} style="border-width: 0px;"/>
                            </td>
                        </tr>
                        <tr>
                              <td class="right-side-text" width="50%"><label>Captcha enabled on User's Login Page</label></td>
                              <td class="left-side-text" width="50%">  
                                <input type="checkbox" value="true" class="chkcss" name="captcha_on_user_login_page" id="captcha_on_user_login_page" {if $CAPTCHA_ENABLE_ON_USER_LOGIN_PAGE neq 'false' and $CAPTCHA_ENABLE_ON_USER_LOGIN_PAGE neq ''}checked=""{/if} style="border-width: 0px;"/> 
                            </td>
                        </tr>
                        <tr>
                              <td class="right-side-text" width="50%"><label>Maximum Login Attempt <label class="star">*</label></label></td>
                              <td class="left-side-text" width="50%">  
                                <input type="text" maxlength="44"  name="max_login_attemp"  id="max_login_attemp"  class="txtcss" size="5" maxlength="255"  value="{$USER_MAX_LOGIN_ATTAMPT}"/>
                            </td>
                        </tr>
                         <tr>
                            <td class="right-side-text" width="50%"><label>Show Support Email Page<label class="star">*</label></label></td>
                           <td class="left-side-text" width="50%"> 
                                <select size="1" class="selectcss"  id="show_support_email" name="show_support_email">
                                  <option value="0" selected>Select.</option>
                                  {if $IS_USER_SUPPORT_LINK_VISIBLE eq 'true'}
                                     <option value="true" selected>Yes</option>
                                  {else}
                                      <option value="true">Yes</option> 
                                   {/if}
                                   {if $IS_USER_SUPPORT_LINK_VISIBLE eq 'false'}   
                                     <option  value="no" selected >No</option>
                                   {else}
                                      <option  value="no">No</option>  
                                   {/if}
                                </select>

                            </td>
                        </tr>
                            <tr>
                            <td class="right-side-text" width="50%"><label>Enable Rotating Login Pages<label class="star">*</label></label><div class="FieldLabelNote">
                            Upload pages into /member/rotating_login_pages and membersite will randomly choose one of pages to redirect user to randomly Chosen page after login into membersite. To enable to functionality, select 'Yes'. To Disable this functionality, select 'No'
                            <div></td>
                           <td class="left-side-text" width="50%"> 
                                <select size="1" class="selectcss"  id="Enabled_Rotating_Login_Pages" name="Enabled_Rotating_Login_Pages">
                                  <option value="0" selected>Select.</option>
                                  {if $IS_ROTATING_LOGIN_PAGES_ENABLED eq 'true'}
                                     <option value="true" selected>Yes</option>
                                  {else}
                                      <option value="true">Yes</option> 
                                   {/if}
                                   {if $IS_ROTATING_LOGIN_PAGES_ENABLED eq 'false'}   
                                     <option  value="false" selected >No</option>
                                   {else}
                                      <option  value="false">No</option>  
                                   {/if}
                                </select>

                            </td>
                        </tr>
                            <tr>
                            <td class="right-side-text" width="50%"><label>Enable Rotating Logout Pages<label class="star">*</label></label><div class="FieldLabelNote">
                              Upload pages into /member/rotating_logout_pages and membersite will randomly choose one of pages to redirect user to randomly Chosen page after completely logged out from membersite. To enable to functionality, select 'Yes'. To Disable this functionality, select 'No'
                             </div>
                            </td>
                           <td class="left-side-text" width="50%"> 
                                <select size="1" class="selectcss"  id="Enabled_Rotating_Logout_Pages" name="Enabled_Rotating_Logout_Pages">
                                  <option value="0" selected>Select.</option>
                                  {if $IS_ROTATING_LOGOUT_PAGES_ENABLED eq 'true'}
                                     <option value="true" selected>Yes</option>
                                  {else}
                                      <option value="true">Yes</option> 
                                   {/if}
                                   {if $IS_ROTATING_LOGOUT_PAGES_ENABLED eq 'false'}   
                                     <option  value="false" selected >No</option>
                                   {else}
                                      <option  value="false">No</option>  
                                   {/if}
                                </select>

                            </td>
                        </tr>
                         <tr>
                            <td class="right-side-text" width="50%"><label>Show Delete Account Button</label> <label class="star">*</label><div class="FieldLabelNote">The button named (Delete Account) will appear in user's profile if checked and will allow users to delete their account</div></td>
                           <td class="left-side-text" width="50%"> 
                                <select size="1" class="selectcss"  name="ddldelaccbut" id="ddldelaccbut">
                                   <option value="0">Select.</option>
                                  {if $IS_USER_DELETE_BUTTON_VISIBLE eq 'true'}
                                     <option value="true" selected>Yes</option>
                                  {else}
                                      <option value="true">Yes</option> 
                                   {/if}
                                   {if $IS_USER_DELETE_BUTTON_VISIBLE eq 'false'}   
                                     <option  value="false" selected >No</option>
                                   {else}
                                      <option  value="false">No</option>  
                                   {/if}
                                     
                                </select>

                            </td>
                        </tr>
                          <tr>
                          
                          <!--<tr style="display:none">
                            <td class="right-side-text" width="50%"><label>Enable One-Time-Offer</label> <label class="star">*</label><div class="FieldLabelNote">This option will enable/disable "One-Time-Offer"  Signup into membersite. On Manage Product, you  can find 'Set as "One-Time-Offer" Product' option to set product as One Time Offer product.</div></td>
                           <td class="left-side-text" width="50%"> 
                                <select size="1" class="selectcss"  name="ddlenableonetimeoffer" id="ddlenableonetimeoffer">
                                   <option value="0">Select.</option>
                                   <option value="true" >Yes</option>
                                   <option value="false" selected="selected">No</option>
                                </select>

                            </td>
                        </tr>-->
                        <tr>
                            <td class="right-side-text" width="50%"><label>Enable One-Time-Offer</label> <label class="star">*</label><div class="FieldLabelNote">This option will enable/disable "One-Time-Offer" Signup into MembersGear products. Only use this feature when original product is free, otherwise use the One-Click-Upsell" tool.</div></td>
                           <td class="left-side-text" width="50%"> 
                                <select size="1" class="selectcss"  name="ddlenableonetimeoffer" id="ddlenableonetimeoffer">
                                   <option value="0">Select.</option>
                                   <option value="true" {if $IS_ENABLE_ONE_TIME_OFFER eq 'true'}selected{/if}>Yes</option>
                                   <option value="false" {if $IS_ENABLE_ONE_TIME_OFFER eq 'false'}selected{/if}>No</option>
                                </select>

                            </td>
                        </tr>  
                         <!--<tr>
                            <td class="right-side-text" width="50%"><label>ListMailPRO (Plugin)</label> <label class="star">*</label><div class="FieldLabelNote">ListMailPRO Plugin enables you to manage and publish ALL of your e-zines, newsletters, update lists and more from the comfort of your web site.</div></td>
                           <td class="left-side-text" width="50%"> 
                               <input type="checkbox" value="true" class="chkcss"  name="list_mail_pro_plugin"  id="list_mail_pro_plugin" {if $LIST_MAIL_PRO neq 'false' and $LIST_MAIL_PRO neq ''}checked=""{/if} style="border-width: 0px;"/>
                            </td>
                        </tr>  -->
                            <tr>
                            <td class="right-side-text" width="50%"><label>Show Affilate Link <label class="star">*</label></label><div class="FieldLabelNote" >Become Affiliate Link will be displayed on user default page</div></td>
                           <td class="left-side-text" width="50%"> 
                                <select size="1" class="selectcss"  id="show_affiliate" name="show_affiliate">
                                  <option value="0" selected>Select.</option>
                                  {if $MEMBER_SHOW_AFFILIATE eq 'true'}
                                     <option value="true" selected>Yes</option>
                                  {else}
                                      <option value="true">Yes</option> 
                                   {/if}
                                   {if $MEMBER_SHOW_AFFILIATE eq 'false'}   
                                     <option  value="false" selected >No</option>
                                   {else}
                                      <option  value="false">No</option>  
                                   {/if}
                                </select>

                            </td>
                         </tr>
                         <tr>
                            <td class="right-side-text" width="50%"><label>Show Product Price on Member's Default Page</label></td>
                           <td class="left-side-text" width="50%"> 
                           
                                <select size="1" class="selectcss"  name="ddlpricedefault" id="ddlpricedefault" style='width:73px'>
                                  {* <option value="0">Select.</option>*}
                                  {if $MEMBER_SHOWPRICE_MEMBERDEFAULT_PAGE eq 'true' or $MEMBER_SHOWPRICE_MEMBERDEFAULT_PAGE eq ''}
                                     <option value="true" selected>Yes</option>
                                  {else}
                                      <option value="true">Yes</option> 
                                   {/if}
                                   {if $MEMBER_SHOWPRICE_MEMBERDEFAULT_PAGE eq 'false'}   
                                     <option  value="false" selected >No</option>
                                   {else}
                                      <option  value="false">No</option>  
                                   {/if}
                                     
                                </select>

                            </td>
                        </tr>
                        
                          <tr>
                             <td class="right-side-text" width="50%"> &nbsp;</td>
                           <td class="buttontd" width="50%">
                                <input  type="submit" value="Update Configuration"  class="btncss" align="middle">&nbsp;&nbsp;&nbsp;
                                <input  class="btncss" type="button" name="btnBack" value="Cancel" onclick="javascript:location.href='./index.php';">

                            </td>
                        </tr>
                        
                                                                                                                                                                                                                                                                                                                                  
                </tbody>
           </table>
           </div>
        </form>
    </div>
</div>
        {literal}
          <script language="JavaScript" type="text/javascript">
              var frmvalidator  = new Validator("configureMessages");
              frmvalidator.EnableMsgsTogether();

              frmvalidator.addValidation("login_min_length","req","Please enter value of Username Minimum Length.");
               frmvalidator.addValidation("generate_login_prefix","req","Please enter value of Generate Login Prefix.");
              frmvalidator.addValidation("login_min_length","numeric","Please enter only numeric value in Username Minimum Length.");   
                     
              frmvalidator.addValidation("login_min_length","maxlen=255","Max length for Username Minimum Length is 255.");
              frmvalidator.addValidation("login_max_length","req","Please value of Username Maximum Length."); 
              frmvalidator.addValidation("login_max_length","numeric","Please enter only numeric value in Username Maximum Length."); 
               frmvalidator.addValidation("login_max_length","maxlen=255","Max length for Username Maximum Length is 255.");         
               frmvalidator.addValidation("pass_min_length","req","Please enter value of Password Minimum Length.");
               frmvalidator.addValidation("pass_min_length","numeric","Please enter only numeric value in Password Minimum Length.");
              frmvalidator.addValidation("pass_min_length","maxlen=255","Max length for Password Minimum Length is 255.");
              
              frmvalidator.addValidation("pass_max_length","req","Please enter value of Password Maximum Length.");
              frmvalidator.addValidation("pass_max_length","numeric","Please enter only numeric value in Password Maximum Length.");
              frmvalidator.addValidation("pass_max_length","maxlen=255","Max length for Password Maximum Length is 255.");
              
             // frmvalidator.addValidation("currency","req","Please enter value of Currency."); 
              
              frmvalidator.addValidation("ddluservalidate","dontselect=0","Please select Validate User."); 
              frmvalidator.addValidation("ddlusersubscribelink","dontselect=0","Please select Show Subscribe Link.");
              
           
                                                                                                                      
              frmvalidator.addValidation("wbe_url","req","Please enter value of Web URL."); 
              
              frmvalidator.addValidation("site_title","req","Please enter value of Site Title."); 
              frmvalidator.addValidation("site_visit_url","req","Please enter site visit url."); 
              //frmvalidator.addValidation("logout_url","req","Please enter value of Logout Url."); 
              frmvalidator.addValidation("max_login_attemp","req","Please enter value Maximum Login Attempt.");  
              frmvalidator.addValidation("max_login_attemp","maxlen=255","Max length for Maximum Login Attempt is 255.");   
              frmvalidator.addValidation("max_login_attemp","numeric","Please enter only numeric value in Maximum Login Attempt."); 
              frmvalidator.addValidation("show_support_email","dontselect=0","Please select Show Support Email page option."); 
              frmvalidator.addValidation("Enabled_Rotating_Login_Pages","dontselect=0","Please select whether you want to \"Enable Rotating Login Pages\"."); 
              frmvalidator.addValidation("Enabled_Rotating_Logout_Pages","dontselect=0","Please select whether you want to \"Enable Rotating Logout Pages\".");
              frmvalidator.addValidation("ddldelaccbut","dontselect=0","Please select whether you want to \"Show Delete Account Button\"."); 
              frmvalidator.addValidation("ddlenableonetimeoffer","dontselect=0","Please select whether you want to \"Enable One-Time-Offer\"."); 
              frmvalidator.addValidation("show_affiliate","dontselect=0","Please select whether you want to \"Show Affiliate Link in member page\".");
             frmvalidator.setAddnlValidationFunction("weburlValidation"); 
             //frmvalidator.setAddnlValidationFunction("weburlsecurevalidation"); 
             //frmvalidator.setAddnlValidationFunction("logouturlvalidation");
             function weburlValidation()
                {
                  var frm = document.forms["configureMessages"];
                  if(!is_valid_URL(frm.wbe_url.value))
                  {
                    
                    alert('Please enter valid Web URL.');
                     document.getElementById('wbe_url').focus(); 
                    return false;
                  }
                  
                  else if(!visiturlValidation())
                   {
                     alert('Please enter valid visit Web URL.');
                     document.getElementById('site_visit_url').focus(); 
                     return false;
                   } 
                   
                   
                  /* else if(!logouturlvalidation())
                    {
                     
                    alert('Please enter valid Logout Url.');
                    document.getElementById('logout_url').focus();
                    return false;
                    }   */
                     else if(checkvaluepassusername("1")==false)
                     {
                         alert("Username Minimum Length should not 0."); 
                         document.getElementById('login_min_length').focus();   
                         return false;  
                     
                     }
                      else if(checkvaluepassusername("2")==false)
                     {
                         alert('Username Maximum Length should not 0.'); 
                         document.getElementById('login_max_length').focus();   
                         return false;  
                     
                     }
                     else if(checkLoginlength()==false)
                     {
                        alert('Username Minimum Length should not greater than Username Maximum Length.');
                         document.getElementById('login_min_length').focus();
                         return false;  
                     }
                       else if(checkvaluepassusername("3")==false)
                     {
                         alert('Password Minimum Length should not 0.'); 
                         document.getElementById('pass_min_length').focus();   
                         return false;  
                     
                     }
                       else if(checkvaluepassusername("4")==false)
                     {
                         alert('Password Maximum Length should not 0.'); 
                         document.getElementById('pass_max_length').focus();   
                         return false;  
                     
                     }
                    else if(checkpasswordlength()==false)
                     {
                     
                        alert('Password Minimum Length should not greater than Password Maximum Length.'); 
                         document.getElementById('pass_min_length').focus();   
                         return false;  
                     }
                     else if(checkvaluepassusername("5")==false)
                     {
                         alert('Login Maximum Attempt should not 0.'); 
                         document.getElementById('max_login_attemp').focus();   
                         return false;  
                     
                     }
                     
                     else
                     {
                        return true;
                     
                     }
                   
                  
                }
                function checkLoginlength()
                {
                     var frm = document.forms["configureMessages"];  
                     if(parseInt(frm.login_min_length.value)<=parseInt(frm.login_max_length.value))
                     {
                   
                       return true;
                     
                     }
                     else
                     {
                      
                      return false;
                     }
                }
                function checkpasswordlength()
                {
                     var frm = document.forms["configureMessages"];  
                     if(parseInt(frm.pass_min_length.value)<=parseInt(frm.pass_max_length.value))
                     {
                           
                       return true;
                     
                     }
                     else
                     {
                      
                      return false;
                     }
                }
                function checkvaluepassusername(order)
                {
                   var frm = document.forms["configureMessages"];
                  // var ans=parseInt(value);
                   var order=parseInt(order);
                   switch (order)
                   {
                            case 1:
                               if(frm.login_min_length.value=="0")
                                {
                                   return false;
                                 
                                }
                                else
                                {
                                    return true;
                                    
                                }
                                break;
                                
                            case 2:
                                if(frm.login_max_length.value=="0")
                                {
                                   return false;
                                   break;
                                }
                                else
                                {
                                return true;
                                }
                                break;
                            case 3:
                               if(frm.pass_min_length.value=="0")
                                {
                                   return false;
                                   break;
                                }
                                else
                                {
                                return true;
                                }
                                break;
                              break;
                            case 4:
                             if(frm.pass_max_length.value=="0")
                                {
                                   return false;
                                   break;
                                }
                                else
                                {
                                return true;
                                }
                                break;
                             case 5:
                             if(frm.max_login_attemp.value=="0")
                                {
                                   return false;
                                   break;
                                }
                                else
                                {
                                return true;
                                }
                                break;
                             default:  
                           
                   }
                
                }
                
                
                function weburlsecurevalidation()
                {
                  var frm = document.forms["configureMessages"];
                  if(!is_valid_URL(frm.web_url_secure.value))
                  {
                    
                    
                    return false;
                  }
                  else
                  {
                    return true;
                  }
                }
                
              function logouturlvalidation()
                {
                  var frm = document.forms["configureMessages"];
                  if(!is_valid_URL(frm.logout_url.value))
                  {
                    
                    return false;
                  }
                  else
                  {
                    return true;
                  }
                } 
                
              function visiturlValidation()
                {
                  var frm = document.forms["configureMessages"];
                  if(!is_valid_URL(frm.site_visit_url.value))
                  {
                    
                    return false;
                  }
                  else
                  {
                    return true;
                  }
                }
                
             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));
                   }
   
                                                            
            </script>
 
        {/literal}
 
 </div>
{$ADMIN_FOOTER}
Return current item: MembersGear