Location: PHPKode > projects > MembersGear > membersgear/templates/installation_generate_configuration.tpl
{$INSTALLATION_HEADER}
<div id="content" class="setdiv">    
    {if $msg neq ''}
            <div class="errormsg" style="width:320px">{$msg}</div>
           {/if} 
    <div id="full-contentdiv">
          <div class="righttop">
                <h2><center>
                    Step 2. Site Configuration</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 $generate_username eq 'false' or $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="45" size="10"  class="txtcss" name="generate_login_prefix"  id="generate_login_prefix" value="{$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="45"  class="txtcss" size="5"  name="login_min_length" id="login_min_length" value="{$login_minimum_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="45"   class="txtcss" size="5"  name="login_max_length"  id="login_max_length" value="{$login_maximum_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 $generate_password eq 'false' or $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="45"   class="txtcss" size="5"  name="pass_min_length" id="pass_min_length" value="{$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="45" size="5"   class="txtcss" name="pass_max_length"  id="pass_max_length" value="{$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 $unique_email eq 'false' or $unique_email eq '' }
                              <input type="checkbox" value="true" class="chkcss" name="unique_email"  id="unique_email" checked="checked" style="border-width: 0px;"/>
                            {else}
                               <input type="checkbox" value="true"  class="chkcss" name="unique_email"  id="unique_email"  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 $use_address_info eq 'invisible'}
                                     <option value="invisible" selected>Invisible</option>
                                  {else}
                                      <option value="invisible">Invisible</option> 
                                   {/if}
                                   {if $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 $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 $use_validate_info eq 'true'}
                                     <option value="true" selected>Yes</option>
                                  {else}
                                      <option value="true">Yes</option> 
                                   {/if}
                                   {if $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"  checked class="chkcss"  name="live_mode"  id="live_mode" style="border-width: 0px;"/>
                            {else}
                               <input type="checkbox" value="true" checked class="txtcss" 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" 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"  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_administrator_login_page neq 'false' and $captcha_enable_on_administrator_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="45"  name="max_login_attemp"  id="max_login_attemp"  class="txtcss" size="5"  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="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 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 choosen 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 choosen 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>
                            <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" >Yes</option>
                                   <option value="false" selected="selected">No</option>
                                </select>

                            </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>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" {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 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="Save Configuration"  class="btncss" align="middle">&nbsp;&nbsp;&nbsp;
                            
                            </td>
                        </tr>
                        
                        
                </tbody>
           </table>
           <div>&nbsp;</div>
           <center>
                
                  <div class="comment-div" style="margin: 0px 0px 5px 5px ! important; width: 805px ! important;">
                            <table class="formformat_comment">
                                  <tr>
                                     <td><strong> Note: </strong></td>
                                     <td>
                                       You can change global configuration and signup configuration later on by by going to Admin's Control Panel->Configure Site Settings.
                                     </td>
                                  </tr>
                                </table>
                                
                          </div>       
                
           </center>
           </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("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(!weburlsecurevalidation())
                   {
                    alert('Please enter valid Secure Web URL.');
                   document.getElementById('web_url_secure').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 Login 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 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>
{$INSTALLATION_FOOTER}
Return current item: MembersGear