Location: PHPKode > projects > MembersGear > membersgear/templates/admin_users_m.tpl
{$ADMIN_HEADER}
{literal}     
   <script language="JavaScript" type="text/javascript">                                       
   var $rn = jQuery.noConflict();  
   
           
 function spnstate_billing()
 {
      var dataString = 'billing_country='+ $rn('#billing_country').val();
       var billing_country=$rn('#billing_country').val();
       var MEMBER_USE_ADDRESS_INFO='{/literal}{$MEMBER_USE_ADDRESS_INFO}{literal}';
       var web_url='{/literal}{$WEB_URL}{literal}';    
       $rn.ajax({
           type: "POST",
           url: web_url+"/includes/fill_states.php",
           datatype: 'html',
           data: dataString,
           success: function(msg){

               $rn('#spnstate_billing').html(msg); 
                    
                var state = document.getElementById("state");

                var selectedstate;
                    
                if(state)
                    selectedstate = state.options[state.selectedIndex].text; 
                    
                 selectdropdownoption(document.getElementById("bllling_state"),selectedstate);
                      
                 
                   if(MEMBER_USE_ADDRESS_INFO=='visible_required')
                    {  
                         frmvalidator.addValidation('bllling_state','dontselect=0','Please select Shipping State.');
                     }    
               
             }
       
       });  

 
 }
         
    $rn(document).ready(function() {

        $rn('#btnuser').click(function(){usernamevalidation()});
        $rn('#btnEmail').click(function(){Emailvalidation()});
    
        $rn('#username').blur(function(){
           var dataString = 'username='+ $rn('#username').val();
           var username=$rn('#username').val();
           var generate_user='{/literal}{$MEMBER_GENERATE_USERNAME}{literal}';      
           var mem_login_min_length='{/literal}{$MEMBER_LOGIN_MIN_LENGTH}{literal}';
           var mem_login_max_length='{/literal}{$MEMBER_LOGIN_MAX_LENGTH}{literal}';
           var web_url='{/literal}{$WEB_URL}{literal}';
           
           var user_exist='{/literal}{$MESSAGE_USER_EXIST}{literal}';
            if(generate_user!='true' || $rn('#gen_username').attr('checked')==false)
            {
                 var chkUser=$rn("#usercheck").val();
                   var chkattUser=$rn("#username").attr("readonly");
                   if(chkattUser==false &&  ltrim(rtrim(username))!="")
                    {
                       $rn.ajax({
                           type: "POST",
                           url: web_url+"/includes/ctl_isusernameavailable.php",
                           datatype: 'html',
                           data: dataString,
                           success: function(msg){
                               msg=ltrim(rtrim(msg));
                               if(msg=='yes') 
                                {
                                   $rn('#usercheck').val('true');
                                   $rn('#btnuser').css('display','');
                                   $rn('#username').attr('readonly','true');
                                   $rn('#spnusernameavailablelink').show();
                                   $rn('#spnusernameavailablelink').html('Congratulations!! <b>'+ ltrim(rtrim(username)) + '</b> is available');
                               }
                               else if(msg=='user_exist')
                               {
                                   $rn('#usercheck').val('false');   
                                   $rn('#spnusernameavailablelink').show();
                                   $rn('#spnusernameavailablelink').html('<font color=red><b>'+ ltrim(rtrim(username)) + '</b> '+ user_exist + '</font>');
                                   $rn('#btnuser').css('display','none');  
                       
                               
                               } 
                               else if(msg=='not_in_length')
                                {
                                
                                   $rn('#usercheck').val('false');   
                                   $rn('#spnusernameavailablelink').show(); 
                                   $rn('#spnusernameavailablelink').html('<font color=red>Username length must in between ' + mem_login_min_length + ' to ' + mem_login_max_length +' character</font>');
                                   $rn('#btnuser').css('display','none');
                  
                                         
                                
                                }
                              else if(msg=='invalid_username')
                               {
                                  $rn('#usercheck').val('false');    
                                  $rn('#spnusernameavailablelink').html('<font color=red><b>' + username + '</b> is invalid username.</font>');
                                  $rn('#btnuser').css('display','none');
                               
                               
                               }
                              else
                               {
                                   $rn('#btnuser').css('display','none');  
                                   $rn('#usercheck').val('false'); 
                                   $rn('#spnusernameavailablelink').html('');
                               
                               }    
                             
                           }
                       }); 
                }   
            }     
            
        });
        
        
       
          $rn('#email').blur(function(){
           var dataString = 'email='+ $rn('#email').val() + '&uid=' + $rn('#uid').val() ;
           var email=$rn('#email').val();
           var web_url='{/literal}{$WEB_URL}{literal}';
           var email_exist='{/literal}{$MESSAGE_DUPLICATE_EMAIL}{literal}';
           var unique_email='{/literal}{$MEMBER_UNIQUE_EMAIL}{literal}';     
            if (unique_email=='true')
            {    
            
                   var chkemail=$rn("#emailcheck").val();
                   var chkAttr=$rn("#email").attr("readonly");
                   if( chkAttr==false && ltrim(rtrim(email))!='')
                    {
                       $rn.ajax({
                           type: "POST",
                           url: web_url+"/includes/ctl_isemailavailable.php",
                           datatype: 'html',
                           data: dataString,
                           success: function(msg){
                               msg=ltrim(rtrim(msg));
                               if(msg=='yes') 
                                {
                                   $rn('#emailcheck').val('true');
                                   $rn('#btnEmail').css('display','');
                                   $rn('#email').attr('readonly','true');
                                   $rn('#spnemailavailablelink').html('Congratulations!! <b>'+ ltrim(rtrim(email)) + '</b> is available');
                               }
                               else if(msg=='already_exist')
                               {
                                   $rn('#emailcheck').val('false');   
                                   $rn('#spnemailavailablelink').html('<font color=red><b>'+ ltrim(rtrim(email)) + '</b> '+ email_exist + '</font>');
                                   $rn('#btnEmail').css('display','none');
                                        
                               
                               } 
                              else if(msg=='invalid_email')
                               {
                                  $rn('#emailcheck').val('false');  
                                  $rn('#spnemailavailablelink').html('<font color=red><b>' + ltrim(rtrim(email)) + '</b> is invalid Email address.</font>');
                                  $rn('#btnEmail').css('display','none'); 
                                   
                               
                               }
                              else
                               {
                                    $rn('#btnEmail').css('display','none'); 
                                    $rn('#emailcheck').val('false');  
                                    $rn('#spnemailavailablelink').html('');
                               
                               }    
                             
                           }
                       }); 
                  
                   }   
              }     
            
        }); 
        
        
        
           $rn('#country').change(function(){
           var dataString = 'country='+ $rn('#country').val() + '&ajexvalidation=' + $rn('#ajexvalidation').val() ;
           var country=$rn('#country').val();
           var MEMBER_USE_ADDRESS_INFO='{/literal}{$MEMBER_USE_ADDRESS_INFO}{literal}';
           var web_url='{/literal}{$WEB_URL}{literal}';    
           $rn.ajax({
               type: "POST",
               url: web_url+"/includes/fill_states.php",
               datatype: 'html',
               data: dataString,
               success: function(msg){
                    var alldata=msg;   
                    var array_val=alldata.split("[|||]");   
                    var returnVal1=array_val[0]; 
                    var returnVal12=array_val[1];  
                    returnVal1=rtrim(ltrim(returnVal1));
                    returnVal12=rtrim(ltrim(returnVal12));
                    if(returnVal1=='usersignup') 
                     {
                     
                         var ispersonalinfo=$rn('#personalInfoValidation').val();
                         var isShipping=$rn('#shippingInfoValidation').val();
                         if(ispersonalinfo=='yes')
                           {
                       
                               frmvalidator.addValidation('state','dontselect=0','Please select State.'); 
                               frmvalidator.addValidation('country','dontselect=0','Please select County.'); 
                          }
                          if(isShipping=='yes')
                          {
                              frmvalidator.addValidation('billing_country','dontselect=0','Please select shipping County.'); 
                              frmvalidator.addValidation('bllling_state','dontselect=0','Please select shipping State.'); 
                          }    
                
                        $rn('#spnstate').html(returnVal12);
                     }
                   else if(returnVal1=='adminusersignup')
                   {
                            if(MEMBER_USE_ADDRESS_INFO=='visible_required')
                            {  
                               frmvalidator.addValidation("state","dontselect=0","Please select State."); 
                               frmvalidator.addValidation("country","dontselect=0","Please select County."); 
                      
                            } 
                   
                   
                          $rn('#spnstate').html(returnVal12); 
                   
                   
                      } 
                 
                 
               }
           });  
            
        });
        

        
          $rn('#billing_country').change(function(){
           var dataString = 'billing_country='+ $rn('#billing_country').val();
           var billing_country=$rn('#billing_country').val();
           var MEMBER_USE_ADDRESS_INFO='{/literal}{$MEMBER_USE_ADDRESS_INFO}{literal}';
           var web_url='{/literal}{$WEB_URL}{literal}';    
           $rn.ajax({
               type: "POST",
               url: web_url+"/includes/fill_states.php",
               datatype: 'html',
               data: dataString,
               success: function(msg){

                   $rn('#spnstate_billing').html(msg); 
                        
                    var state = document.getElementById("state");

                    var selectedstate;
                        
                    if(state)
                        selectedstate = state.options[state.selectedIndex].text; 
                        
                     selectdropdownoption(document.getElementById("bllling_state"),selectedstate);
                          
                     
                       if(MEMBER_USE_ADDRESS_INFO=='visible_required')
                        {  
                             frmvalidator.addValidation('bllling_state','dontselect=0','Please select Shipping State.');
                         }    
                   
                 }
           
           });  
            
        });
        
        
        

    });
    
    $rn(document).ajaxStart($rn.blockUI).ajaxStop($rn.unblockUI);
        
  

 function usernamevalidation()
 {   
      document.getElementById("username").removeAttribute('readonly','readonly'); 
      document.getElementById("username").focus();
      document.getElementById("btnuser").style.display='none';
      document.getElementById("usercheck").value="false";
      document.getElementById("spnusernameavailablelink").innerHTML='';       
      
 }
  function Emailvalidation()
 {   
      document.getElementById("email").removeAttribute('readonly','readonly'); 
      document.getElementById("email").focus();
      document.getElementById("btnEmail").style.display='none';
      document.getElementById("emailcheck").value="false";   
      document.getElementById("spnemailavailablelink").innerHTML=''
      
 }
 </script>
 {/literal}
                                                                     
<div id="content" class="setdiv">
{if $msg neq ''}  
    <br/><center><span class=errormsg style="">{if $msg neq ''}{$msg}{/if}</span></center>   
{/if}
 <div id="full-contentdiv">
          <div class="righttop">
                <h2 align="center">
                   {if $IsEdit eq 'yes'}Update User{else}Add User{/if}</h2>
            </div>
         <div class="whole-page clear">
            <!-- Place your content here -->
            {if $IsEdit eq 'yes'}
                    {assign var="action" value="update"}
              {else}
                   
                    {assign var="action" value="insert"}
                  
              {/if}
              <form method="post" name="myform" action="admin_users_m.php?action={$action}&from={$from}"> 
                   <input type="hidden" name="uid" id="uid" value="{if $IsEdit eq 'yes'}{$userdata[0].id}{/if}">   
                    <input type="hidden" value="adminusersignup" name="ajexvalidation" id="ajexvalidation"> 
                     <div class="formformat ">
                          <table border="0"  width="95%"  align="center"  cellspacing="0" cellpadding="0" >    
                      <tbody>
                            <tr>
                                <td class="right-side-text" width="200px"><label>Username {if $IsEdit neq 'yes'}<label class="star">*</label>{/if}</label></td>
                                <td class="left-side-text">
                                    <table border="0"  class="borderless" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td class="" style="font-size:10px">
                                           <input  type="text"  name="username" id="username" class="" {if $MEMBER_LOGIN_MAX_LENGTH!=''}maxlength="{$MEMBER_LOGIN_MAX_LENGTH}"{/if} size="35" value="{if $IsEdit eq 'yes'}{$userdata[0].username}{else}{$post.username}{/if}"
                                            {if $IsEdit eq 'yes'}readonly=""{elseif $MEMBER_GENERATE_USERNAME eq 'true'}readonly=""{/if} 
                                             {if $IsEdit neq 'yes'} {if $MEMBER_GENERATE_USERNAME neq 'true'}  {/if} {/if}>
                                                   <input  type="button" class="btncss" name="btnuser" id="btnuser" value="Choose another Username" style="display:none"  style="width:140px!important;">
                                                  <input  type="hidden"   name="usercheck" id="usercheck" value="false">     
                                            {if $IsEdit eq 'yes'}
                                                 {*<img src="{$ADMIN_IMAGE_DIR}/login.gif" alt="Login" style="margin-left:10px;" />*}
                                                 {if $userdata[0].islockedout neq '1' and $userdata[0].isapproved neq '0'} 
                                                     <img src="{$ADMIN_IMAGE_DIR}/login.gif" alt="Login" style="margin-left:10px;" />  <a href="{$WEB_URL}/user_login.php?action=dologin&username={$userdata[0].username}&useremail={$userdata[0].email}" target="_new" >
                                                    Login as {$userdata[0].username} {if $userdata[0].lastlogintime neq ''}(Last Login: {$userdata[0].lastlogintime|date_format:"%B %d, %Y %H:%M:%S %p"}){/if}</a>
                                                 {else}
                                                     <img src="{$ADMIN_IMAGE_DIR}/logindiable.gif" alt="Login" style="margin-left:10px;" /> <a style="color:gray;" onclick="alert('This user is either not approved to login or locked out.');return false;" href="{$WEB_URL}/user_login.php?action=dologin&username={$userdata[0].username}&useremail={$userdata[0].email}" target="_new" >
                                                    Login as {$userdata[0].username}  {if $userdata[0].lastlogintime neq ''}(Last Login: {$userdata[0].lastlogintime|date_format:"%B %d, %Y %H:%M:%S %p"}){/if}</a> 
                                                 {/if}
                                                
                                                  {* {if ($userdata[0].isapproved eq "0" and $userdata[0].islockedout eq "0") or  ($userdata[0].isapproved eq "0" and $userdata[0].islockedout eq "1") or ($userdata[0].isapproved eq "1" and $userdata[0].islockedout eq "1") or ($userdata[0].isapproved eq "0" and $userdata[0].islockedout eq "2")  }
                                                   
                                                    <a style="color:gray;" onclick="alert('This user is either not approved to login or locked out.');return false;" href="{$WEB_URL}/user_login.php?action=dologin&username={$userdata[0].username}&useremail={$userdata[0].email}" target="_new" >
                                                    Login as {$userdata[0].username} (Last Login: {$userdata[0].lastlogintime|date_format:"%B %d, %Y %H:%M:%S %p"})</a> 
                                                 {else}
                                                          <a href="{$WEB_URL}/user_login.php?action=dologin&username={$userdata[0].username}&useremail={$userdata[0].email}" target="_new" >
                                                    Login as {$userdata[0].username} (Last Login: {$userdata[0].lastlogintime|date_format:"%B %d, %Y %H:%M:%S %p"})</a>
                                                 {/if} *}
                                                 
                                            {/if}
                                           
                                         </td>
                                         
                                         {if $IsEdit neq 'yes'}
                                            <td class="left-side-text"> 
                                             {if $MEMBER_GENERATE_USERNAME eq 'true'}
                                             &nbsp;<input type="checkbox" class="chkcss" name="gen_username" id="gen_username" value="1" checked="">Generate 
                                             {/if}
                                             {if $MEMBER_GENERATE_USERNAME neq 'true'}   
                                             <span id="spnusernameavailableload" name="spnusernameavailableload"></span> 
                                             {/if}
                                             </td>
                                         {/if}    
                                        </tr>
                                       
                                         <tr> 
                                          <td colspan="2">
                                             <div id="spnusernameavailablelink" name="spnusernameavailablelink" style="display:none" ></div>  
                                          </td>    
                                         </tr> 
                                       
                                      </table>
                                </td>

                            </tr>
                          
                            <tr>
                                <td   class="right-side-text"><label>Password <label class="star">*</label></label></td>
                                <td class="left-side-text"> 
                                    <table border="0"  class="borderless" cellspacing="0" cellpadding="0">
                                      <tr>
                                       <td class="">
                                       <input type="password" name="password" id="password" class="" {if $MEMBER_PASSWORD_MAX_LENGTH!=''}maxlength="{$MEMBER_PASSWORD_MAX_LENGTH}"{/if}   
                                         size="35"  value="{if $IsEdit eq 'yes'}{$userdata[0].password}{else}{$post.password}{/if}" {if $MEMBER_GENERATE_PASSWORD eq 'true'}readonly=""{/if}>                             
                                       </td>
                                       <td {if $IsEdit eq 'yes' and $MEMBER_GENERATE_PASSWORD eq 'true'} style="display:none;" {/if}>
                                          {if $MEMBER_GENERATE_PASSWORD eq 'true'}
                                        &nbsp;&nbsp;<input type="checkbox" class="chkcss" name="gen_password" id="gen_password" value="1" {if $IsEdit neq 'yes'}checked="" {/if}>Generate
                                         {/if}
                                       </td>
                                      </tr>
                                      </table>
                                       
                              </td>
                            </tr>
                            <tr>
                                <td valign="top"  class="right-side-text"><label>Confirm Password <label class="star">*</label></label></td>
                                <td class="left-side-text">
                                    <input type="password" name="confpassword" id="confpassword" class="" {if $MEMBER_PASSWORD_MAX_LENGTH!=''}maxlength="{$MEMBER_PASSWORD_MAX_LENGTH}"{/if}   
                                         size="35" value="{if $IsEdit eq 'yes'}{$userdata[0].password}{else}{$post.password}{/if}" {if $MEMBER_GENERATE_PASSWORD eq 'true'}readonly=""{/if}>
                                </td>

                           </tr>
                          
                             <tr>
                                <td   class="right-side-text"><label>Email <label class="star">*</label></label></td>
                                <td class="left-side-text">
                                <table  class="borderless" cellspacing="0" cellpadding="0">
                                    <tr>
                                    <td>
                                    
                                       <input  type="text"   name="email" id="email" class="" maxlength="45" size="35" 
                                       value="{if $IsEdit eq 'yes'}{$userdata[0].email}{else}{$post.email}{/if}" {if $MEMBER_UNIQUE_EMAIL eq 'true'}   {/if}>
                                       <input  type="button" class="btncss" name="btnEmail" id="btnEmail" value="Choose another Email" style="display:none"  style="width:140px!important;">
                                       <input  type="hidden"   name="emailcheck" id="emailcheck" {if $IsEdit eq 'yes'}value="true"{else}value="false"{/if}>
                                      <input  type="hidden"   name="emailhidden" id="emailhidden"  maxlength="45" size="35" 
                                       value="{if $IsEdit eq 'yes'}{$userdata[0].email}{else}{$post.email}{/if}">
                                    </td>
                                   
                                    <td class="left-side-text">
                                     {if $MEMBER_UNIQUE_EMAIL eq 'true'}  
                                       <span id="spnemailvailableload" name="spnemailvailableload"></span> 
                                     {else}
                                        &nbsp;
                                     {/if}      
                                    </td>
                                   </tr>
                                   {if $MEMBER_UNIQUE_EMAIL eq 'true'} 
                                     <tr> 
                                         <td colspan="2">
                                              <div id="spnemailavailablelink" name="spnemailavailablelink"></div> 
                                         </td>    
                                     </tr>
                                   {/if}
                                </table>
                                </td>

                            </tr>
                            <tr>
                                <td   class="right-side-text"><label>First Name & Last Name <label class="star">*</label></label></td>
                                <td class="left-side-text">
                                   <input type="text"  name="fname" id="fname" class="" maxlength="45" size="15" 
                                    value="{if $IsEdit eq 'yes'}{$userdata[0].firstname}{else}{$post.fname}{/if}">
                                   <input type="text"  name="lname" id="lname" class="" maxlength="45" size="15" 
                                    value="{if $IsEdit eq 'yes'}{$userdata[0].lastname}{else}{$post.lname}{/if}"> 
                                </td>

                            </tr>
                             <tr {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'} style="display:none;"{/if}>
                                <td   class="right-side-text">
                                <div style="margin-bottom:5px"><label><font color="red">Personal Address</font></label></label></td>
                                 <td class="left-side-text">
                                       <div style="margin-bottom:5px">
                                           <input type="hidden" class="txtcss" id="hdn_per" name="hdn_per"/>
                                       </div>
                                 </td>
                            </tr>
                             <tr {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'} style="display:none;"{/if}>
                                <td   class="right-side-text"><label>Street Address </label></td>
                                <td class="left-side-text">
                                   {*<input type="text"  name="address" id="address" class="" maxlength="200" size="35" value="{if $IsEdit eq 'yes'}{$userdata[0].address1}{else}{$post.address}{/if}">*}
                                   <textarea  name="address" id="address" class="txtareacss" cols="" rows="3" style="width:32%">{if $IsEdit eq 'yes'}{$userdata[0].address1}{else}{$post.address}{/if}</textarea> 
                                </td>
                             </tr>
                            <tr {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'} style="display:none;"{/if}>
                                <td  class="right-side-text"><label>Country {if $MEMBER_USE_ADDRESS_INFO eq 'visible_required'}<label class="star">*</label>{/if}</label></td>
                                <td class="left-side-text">
                                  <table class="borderless" cellspacing="0" cellpadding="0" border="0">
                                     <tr>
                                       <td>
                                       
                                       <select id="country" name="country"  class="selectcss">
                                            <option value='0'>select</option>
                                            {section name=country_name loop=$country}
                                                <option value="{$country[$smarty.section.country_name.index].id}" 
                                                  {if $IsEdit eq 'yes'}          
                                                        {if $country[$smarty.section.country_name.index].id eq $userdata[0].country} 
                                                            selected  
                                                        {/if}
                                                  {elseif $country[$smarty.section.country_name.index].id eq   $post.country} 
                                                    selected
                                                  {/if}>{$country[$smarty.section.country_name.index].name}</option>
                                           {/section}
                                             </select>
                                        </td>
                                        <td class="left-side-text">
                                           <div id='loading' style="visibility:hidden;">
                                            Cargando...
                                            </div> 
                                        </td>
                                      
                                     </tr>
                                    </table> 
                                
                                    
                                </td>

                            </tr>
                              <tr {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'} style="display:none;"{/if}>
                                <td   class="right-side-text"><label>State {if $MEMBER_USE_ADDRESS_INFO eq 'visible_required'}<label class="star">*</label>{/if}</label></td>
                                <td class="left-side-text">
                                     
                                      <span id="spnstate" name="spnstate" style="font-weight: normal;">
                                    <select id="state" name="state" class="selectcss" style="font-weight: normal;">
                                    <option value='0'>select..</option>
                                        {section name=state_name loop=$state}
                                                <option value="{$state[state_name].id}"
                                                {if $IsEdit eq 'yes'}
                                                    {if $state[state_name].id eq  $userdata[0].state}
                                                        selected=""
                                                    {/if}
                                                {elseif  $state[state_name].id eq $post.state}
                                                      selected=""
                                                {/if}>{$state[state_name].name}</option>{/section}</select> 
                                    
                                    </span>

                                  <div id="source"></div>
                                  </td>

                            </tr>
                             <tr {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'} style="display:none;"{/if}>
                                <td   class="right-side-text"><label>City {if $MEMBER_USE_ADDRESS_INFO eq 'visible_required'}<label class="star">*</label>{/if}</label></td>
                                <td class="left-side-text">
                                   <input type="text"  name="city" id="city" class="" maxlength="45" size="35" 
                                   value="{if $IsEdit eq 'yes'}{$userdata[0].city}{else}{$post.city}{/if}"/>
                                </td>

                            </tr>
                              <tr {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'} style="display:none;"{/if}>
                                <td   class="right-side-text"><label>Zipcode {if $MEMBER_USE_ADDRESS_INFO eq 'visible_required'}<label class="star">*</label>{/if}</label></td>
                                 <td class="left-side-text">
                                    <input type="text" name="zipcode" id="zipcode" maxlength="15" size="15" value="{if $IsEdit eq 'yes'}{$userdata[0].zipcode}{else}{$post.zipcode}{/if}"/>
                                 </td>
                            </tr>
                            <tr {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'} style="display:none;"{/if}>
                                <td   class="right-side-text"><label>Phone</label></td>
                                 <td class="left-side-text">
                                    <input type="text" name="phone" id="phone" maxlength="45" size="15" value="{if $IsEdit eq 'yes'}{$userdata[0].phone_main}{else}{$post.phone}{/if}"/>
                                 </td>
                            </tr>
                            <tr {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'} style="display:none;"{/if}>
                                <td   class="right-side-text"><label>
                                <font color="red">Shipping Address</font></label></td>
                                 <td class="left-side-text">
                                        <span {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'} style="display:none;color: black;"{else}style="color: black;"{/if} id="ctl00_ContentPlaceHolder1_chkShp1">
                                            <input type="checkbox" class="chkcss" onclick="javascript:BillingCheckBoxChecked();" id="ctl00_ContentPlaceHolder1_chkBilling" name="ctl00$ContentPlaceHolder1$chkBilling"/><span id="asabove"> As Above</span>
                                        </span>
                                 </td>
                            </tr>
                            <tr  {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'} style="display:none;"{/if}>      
                                <td   class="right-side-text"><label>Street Address</label></td>
                                <td class="left-side-text">
                               
                                  <textarea  name="billaddress" id="billaddress"  class="txtareacss" cols="" rows="3" style="width:32%">{if $IsEdit eq 'yes'}{$userdata[0].billing_address}{else}{$post.billaddress}{/if}</textarea> 
                                </td>
                            </tr> 
                            
                             <tr  {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'} style="display:none;"{/if}>
                                <td   class="right-side-text"><label>Country {if $MEMBER_USE_ADDRESS_INFO eq 'visible_required'}<label class="star">*</label>{/if}</label></td>
                                 <td class="left-side-text">
                                   <table border="0"  class="borderless" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td class="">
                                        <select class="selectcss" id="billing_country" name="billing_country" >                        <option value='0'>select</option>
                                            {section name=country_name loop=$billing_country}
                                            <option value="{$billing_country[country_name].id}"
                                            {if $IsEdit eq 'yes'}  
                                                {if $billing_country[country_name].id eq $userdata[0].billing_country}  
                                                    selected
                                                {/if}
                                            {elseif $billing_country[country_name].id eq $post.billing_country}
                                                     selected
                                            {/if}>{$billing_country[country_name].name}</option>
                                           {/section}
                                            </select>
                                        </td>
                                        <td class="left-side-text">
                                          <div id='loading_country' style="visibility:hidden;">
                                           Cargando...
                                        </div> 
                                        </td>  
                                      </tr>
                                    </table> 
                                 </td>
                            </tr>
                             <tr  {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'} style="display:none;"{/if}>
                                <td class="right-side-text"><label>State {if $MEMBER_USE_ADDRESS_INFO eq 'visible_required'}<label class="star">*</label>{/if}</label></td>
                                <td class="left-side-text">
                                   <span id="spnstate_billing" name="spnstate_billing" style="font-weight: normal;">
                                    <select id="bllling_state" name="bllling_state" class="selectcss" >
                                    <option value='0'>select..</option>
                                             {section name=state_name loop=$billing_state}
                                                 <option value="{$billing_state[state_name].id}"
                                                    {if $IsEdit eq 'yes'}
                                                        {if $billing_state[state_name].id eq  $userdata[0].billing_state}
                                                            selected
                                                        {/if}
                                                    {elseif  $billing_state[state_name].id eq $post.billing_state}
                                                          selected
                                                    {/if}>{$billing_state[state_name].name}
                                                </option>                                                                              
                                           {/section}  
                                    </select> 
                                    </span>
                                </td>

                            </tr>
                             <tr  {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'} style="display:none;"{/if}>
                                <td   class="right-side-text"><label>City {if $MEMBER_USE_ADDRESS_INFO eq 'visible_required'}<label class="star">*</label>{/if}</label></td>
                                <td class="left-side-text">
                                   <input type="text"  name="billcity" id="billcity" class="" maxlength="45" size="35" value="{if $IsEdit eq 'yes'}{$userdata[0].billing_city}{else}{$post.billcity}{/if}">
                                </td>

                            </tr>
                            
                            <tr  {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'} style="display:none;"{/if}>
                                <td   class="right-side-text"><label>Zip {if $MEMBER_USE_ADDRESS_INFO eq 'visible_required'}<label class="star">*</label>{/if}</label></td>
                                 <td class="left-side-text">
                                    <input type="text" name="billzipcode" id="billzipcode" maxlength="15" size="15" value="{if $IsEdit eq 'yes'}{$userdata[0].billing_zip}{else}{$post.billzipcode}{/if}"/>
                                 </td>
                            </tr>
                            <tr  {if $MEMBER_USE_ADDRESS_INFO eq 'invisible'} style="display:none;"{/if}>
                                <td   class="right-side-text"><label>Phone</label></td>
                                 <td class="left-side-text">
                                    <input type="text" name="billphone" id="billphone" maxlength="45" size="15" value="{if $IsEdit eq 'yes'}{$userdata[0].billing_phone}{else}{$post.billphone}{/if}"/>
                                 </td>
                            </tr>
                          
                            <tr>
                                <td   class="right-side-text"><label>Billing Name</label></td>
                                 <td class="left-side-text">
                                    <input type="text" name="billname" id="billname" maxlength="45" size="35" value="{if $IsEdit eq 'yes'}{$userdata[0].billing_name}{else}{$post.billname}{/if}"/>
                                 </td>
                            </tr>
                            {*<tr>
                            <td  class="right-side-text"><label>Status</label> </td>
                            <td class="left-side-text">
                             {foreach from=$userstatus item="status"}      
                                 <input class="chkcss" type="radio" id="status" value="{$status.statusid}" name="status" 
                                 {if $IsEdit eq 'yes'}
                                        {if $userdata[0].status eq $status.statusid}
                                            checked=""
                                       {/if} 
                                 {elseif $IsEdit eq ''}
                                      {if $status.statusname eq 'Active'}
                                            checked=""
                                      {/if}
                                 {elseif $post.status eq $status.statusid} 
                                      checked=""   
                                 {/if}/>{$status.statusname}        
                             {/foreach}   
                            </td>
                         </tr> *}
                           {if $controlresult neq ''}
                           <tr style="" id="personalInfo">
                                <td class="right-side-text"><label><font color="red">Addtional Information</font></label>
                                </td>
                           </tr>
                           {/if}
                           {$controlresult}  
                             <tr>
                                <td  class="right-side-text"><label>Is Approved</label> </td>
                                <td class="left-side-text">
                                     <input class="chkcss" type="checkbox" id="isapproved" value="1" name="isapproved"
                                     {if $IsEdit eq 'yes'}
                                            {if $userdata[0].isapproved eq "1"}
                                                checked=""
                                           {/if} 
                                     {elseif $IsEdit eq ''}
                                                checked=""
                                     {elseif $post.isapproved eq "1"} 
                                       checked=""   
                                    {/if}/> 
                                </td>
                             </tr>
                              <tr>
                                <td  class="right-side-text"><label>Is Lockedout <label class="star">*</label></label> </td>
                                <td class="left-side-text">
                                 <select id="islockedout" name="islockedout" class="selectcss">
                                    <option value=''>select..</option>
                                    {foreach from=$laLockedout item="laLockedoutitem" key="k"} 
                                        <option value="{$k}"  
                                            {if $IsEdit eq 'yes'}
                                                {if $userdata[0].islockedout eq $k}
                                                   selected=""
                                           {/if} 
                                           {elseif $IsEdit eq ''}
                                                {if $k eq "0"}
                                                    selected=""
                                                {/if}
                                           {elseif $post.islockedout eq $k} 
                                                   selected=""
                                           {/if} >{$laLockedoutitem}</option>
                                    {/foreach}                                    
                                    </select>   
                                 </td>
                             </tr>
                              <tr>
                                <td  class="right-side-text"><label>Unsubscribe </label> </td>
                                <td class="left-side-text">
                                     <input class="chkcss" type="checkbox" id="isUnsubscribe" value="1" name="isUnsubscribe"
                                     {if $IsEdit eq 'yes'}
                                            {if $userdata[0].isunsubscribedfromemails eq "1"}
                                                checked=""
                                           {/if} 
                                     {elseif $IsEdit eq ''}
                                                
                                     {elseif $post.isUnsubscribe eq "1"} 
                                      checked=""   
                                    {/if}/> 
                                </td>
                             </tr> 
                             <tr>
                                <td  class="right-side-text">&nbsp;</td>
                                <td class="buttontd"> 
                                    
                                      <input class="btncss" type="submit" id="submit"   name="submit" {if $IsEdit eq 'yes'}value="Save"{else}value="Submit"{/if} onclick="">&nbsp;&nbsp;&nbsp;
                                       <input  class="btncss" type="button" name="btnBack" value="Cancel" onclick="javascript:history.go(-1)">
                                       
                                       
                                </td>
                                
                            </tr>          
                          
                       </tbody>
               </table>
               
                 </div>
              </form>
          </div>
   </div> 
  {literal} 
   <script language="JavaScript" type="text/javascript">
 
   
   
      var mem_login_min_len='{/literal}{$MEMBER_LOGIN_MIN_LENGTH}{literal}';
      var mem_login_max_len='{/literal}{$MEMBER_LOGIN_MAX_LENGTH}{literal}';
      var mem_pass_min_len='{/literal}{$MEMBER_PASSWORD_MIN_LENGTH}{literal}'; 
      var mem_pass_max_len ='{/literal}{$MEMBER_PASSWORD_MAX_LENGTH}{literal}';
      var mem_user_add_info='{/literal}{$MEMBER_USE_ADDRESS_INFO}{literal}';
      var mem_generate_user='{/literal}{$MEMBER_GENERATE_USERNAME}{literal}'; 
      var mem_generate_password='{/literal}{$MEMBER_GENERATE_PASSWORD}{literal}';
      var mem_generate_email='{/literal}{$MEMBER_UNIQUE_EMAIL}{literal}'; 
      var isedit='{/literal}{$IsEdit}{literal}'; 
      var email='{/literal}{$userdata[0].email}{literal}';
   
      if(isedit=='yes' && mem_generate_password=='true' )
       {
           $rn("#password").removeAttr("readonly");
           $rn("#confpassword").removeAttr("readonly");
       }
         function UserNameAvailableRequest()
           {
            if(document.getElementById('usercheck').value!='true' && document.getElementById('username').value!="" )
              {
                 UserNameAvailable();
              }
           
           
           } 
           function EmailAvailableRequest()
           {
             if(document.getElementById('emailcheck').value!='true' && document.getElementById('email').value!="" && isedit=='false')
              {
                 EmailAvailable();
              }
             
             else if(document.getElementById('emailcheck').value=='true' && document.getElementById('email').value!=document.getElementById('emailhidden').value)
             {
                document.getElementById('emailhidden').value=document.getElementById('email').value;
                EmailAvailable();
             }
            else if(document.getElementById('emailcheck').value!='true' && document.getElementById('email').value!='')
             {
                document.getElementById('emailhidden').value=document.getElementById('email').value;
                EmailAvailable();
             } 
                
           }

      
      function emailchecktest()
               {
                  
                
                  if(document.getElementById('emailcheck').value=='true')
                      {
                       
                       
                            finalresult=true;
                        }
                     
                      else
                      {
                        finalresult=false;
                      }
                       
                   return  finalresult;
               }
               
      
          function useravailableCheck()
               {
                        
                  if(document.getElementById('usercheck').value=='true')
                      {
                       
                            finalresult=true;
                        }
                     
                      else
                      {
                        finalresult=false;
                      }
                       
                   return  finalresult;
               }
               
      function DoCustomValidationforconfirmpassword()
        {
         
        
          var frm = document.forms["myform"];
          if(frm.password.value != frm.confpassword.value)
          {
              //alert('The Password and Confirm password do not match!'); 
              //document.getElementById('confpassword').focus(); 
              return false;
          }
          else
          { 
           // alert(userenameavailable);
            return true;
          }
        }
       
         function DoCustomValidation()
        {   
              var finalresult=true; 
              var frm = document.forms["myform"];
              
              /*Confirm Password*/
               var error="";
               var focus=''; 
               var foc=1;
              
              if(mem_generate_password=='false' || $rn('#gen_password').attr('checked')==false)  
              {
                 
                  if(false == DoCustomValidationforconfirmpassword())
                  {
                      
                      //alert('The Password and Confirm password do not match!'); 
                      //document.getElementById('confpassword').focus(); 
                      error += 'The Password and Confirm password do not match!'+'\r\n'; 
                      if(foc==1)
                      {
                        focus='confpassword';
                        foc=0;
                      }
                      finalresult=false;
                  }
              }
              else 
              { 
                    finalresult=true;
              }
              /* Username availability*/  
              if(isedit!='yes' && mem_generate_user!='true')
              { 
               
                  if(mem_generate_user!='true')
                      { 
                           if(useravailableCheck()==true)
                           {
                             finalresult=true;     
                           
                           }
                         else
                          {
                          
                             finalresult=false;
                             error +='The given username already taken.Please enter different username.' +'\r\n';  
                             
                              if(foc==1)
                              {
                                 focus='username';
                                 foc=0;
                              }  
                                         
                          } 
                        
                      }
                      else
                      {
                             
                        finalresult=true;
                      }   
              }
              else
              {
                     
                finalresult=true;
              }
                /* Email availability*/
              if(mem_generate_email=='true')
             { 
                  if(emailchecktest()==true)
                   {
                       finalresult=true;     
                   
                   }
                 else
                  {
                  
                     finalresult=false;
                     error +='The given Email address already taken.Please enter different Email address.' +'\r\n';  
                     
                     if(foc==1)
                      {
                        focus='email'; 
                         foc=0;
                      }          
                  } 
             }
             
             
        
             
           if ($rn('#gen_username').attr('checked')==false) {
                 
                 if(ltrim(rtrim($rn('#username').val()))!="")
                  {
                   finalresult=true;  
                  }
                 else
                  {
                     finalresult=false;
                     error +='Please enter Username.' +'\r\n';  
                     
                     if(foc==1)
                      {
                        focus='username'; 
                         foc=0;
                      } 
                  }                            
               } 
               
           if ($rn('#gen_password').attr('checked')==false) {
                 
                 if(ltrim(rtrim($rn('#password').val()))!="")
                  {
                   finalresult=true;  
                  }
                 else
                  {
                     finalresult=false;
                     error +='Please enter Password.' +'\r\n';  
                     
                     if(foc==1)
                      {
                        focus='password'; 
                         foc=0;
                      } 
                  }                            
               }    
               
                if ($rn('#gen_password').attr('checked')==false) {
                 
                 if(ltrim(rtrim($rn('#confpassword').val()))!="")
                  {
                   finalresult=true;  
                  }
                 else
                  {
                     finalresult=false;
                     error +='Please enter Confirm Password.' +'\r\n';  
                     
                     if(foc==1)
                      {
                        focus='confpassword'; 
                         foc=0;
                      } 
                  }                            
               } 
                   
               
           if($rn('#gen_username').attr('checked')==false)
           {    
                 if(useravailableCheck()==true)
                       {
                         finalresult=true;     
                       
                       }
                     else
                      {
                      
                         finalresult=false;
                         error +='The given username already taken.Please enter different username.' +'\r\n';  
                         
                          if(foc==1)
                          {
                             focus='username';
                             foc=0;
                          }  
                                     
                      } 
                      
                               
                   if ($rn('#gen_password').attr('checked')==false) {
                     
                     if(ltrim(rtrim($rn('#password').val()))!="")
                      {
                       finalresult=true;  
                      }
                     else
                      {
                         finalresult=false;
                         error +='Please enter Password.' +'\r\n';  
                         
                         if(foc==1)
                          {
                            focus='password'; 
                             foc=0;
                          } 
                      }                            
                   }
                    
           }    
             
              if(error!='')
              {
                    alert(error);
                    var FocusControl = document.getElementById(focus);
                     FocusControl.focus();
                     return false;
              }
              //return finalresult;
              
        }  
        
      var frmvalidator  = new Validator("myform");
    
      frmvalidator.EnableMsgsTogether();
      //frmvalidator.EnableOnPageErrorDisplaySingleBox();
      if(mem_generate_user=='false' && isedit!='yes')
      {
            frmvalidator.addValidation("username","req","Please enter Username.");
            frmvalidator.addValidation("username","alnum","Please enter valid Username.");  
            if(parseInt(mem_login_min_len)<=parseInt(mem_login_max_len))
           {
              frmvalidator.addValidation("username","minlen=mem_login_min_len","Min length  for Username is "+mem_login_min_len+".");  
              frmvalidator.addValidation("username","maxlen=mem_login_max_len","Max length for Username is "+mem_login_max_len+".");
           }
      }
   
     
     
      //frmvalidator.addValidation("username","alpha","Alphabetic chars only");
      
      if(mem_generate_password=='false')
      {
        frmvalidator.addValidation("password","req","Please enter Password."); 
           if(parseInt(mem_pass_min_len)<=parseInt(mem_pass_max_len))
          {
             
             frmvalidator.addValidation("password","minlen=mem_pass_min_len","Min length  for Password is "+mem_pass_min_len+".");
             frmvalidator.addValidation("password","maxlen=mem_pass_max_len","Max length  for Password is "+mem_pass_max_len+".");
          }
      }
    /* else if(mem_generate_password=='true')
      {
            if(isedit!='yes')
            {
                frmvalidator.addValidation("gen_password","shouldselchk=on ","Please select Password generate.");
            }
      }  */
       if(mem_generate_password=='false')
      {
        frmvalidator.addValidation("confpassword","req","Please enter Confirm Password."); 
           if(parseInt(mem_pass_min_len)<=parseInt(mem_pass_max_len))
          {
             
             frmvalidator.addValidation("confpassword","minlen=mem_pass_min_len","Min length  for Confirm Password is "+mem_pass_min_len+".");
             frmvalidator.addValidation("confpassword","maxlen=mem_pass_max_len","Max length  for Confirm Password is "+mem_pass_max_len+".");
          }
      }
      
      
      
       frmvalidator.addValidation("email","req","Please enter Email Address.");  
      frmvalidator.addValidation("email","maxlen=50","Max length for Email is 45.");
       frmvalidator.addValidation("email","email","Please enter valid Email Address.");

      frmvalidator.addValidation("fname","req","Please enter Firstname.");
      frmvalidator.addValidation("fname","maxlen=45",    "Max length for Firstname is 45.");
      
      
      frmvalidator.addValidation("lname","req","Please enter Lastname.");
      frmvalidator.addValidation("lname","maxlen=45",    "Max length for lastName is 45.");
      frmvalidator.addValidation("address","maxlen=200",    "Max length for  Street Address is 200.");  
      if(mem_user_add_info=='visible_required')
      {
           
        frmvalidator.addValidation("country","dontselect=0","Please select County.");
      
        frmvalidator.addValidation("state","dontselect=''","Please select State.");
          
        frmvalidator.addValidation("city","req","Please enter City.");
        
        frmvalidator.addValidation("zipcode","req","Please enter Zipcode.");
        
        //frmvalidator.addValidation("zipcode","maxlen=15","Max length for City  is 45.");
        //frmvalidator.addValidation("zipcode","alnum","Please enter valid Zipcode.");
      
      //  frmvalidator.addValidation("address","req","Please enter Street Address.");
       
        //frmvalidator.addValidation("phone","req","Please enter Phone Number.");
      }
       frmvalidator.addValidation("city","maxlen=45","Max length for City  is 45.");  
       frmvalidator.addValidation("zipcode","maxlen=45","Max length for City  is 45.");
      // frmvalidator.addValidation("zipcode","alnum","Please enter valid Zipcode.");
       frmvalidator.addValidation("phone","maxlen=45","Max length for Phone Number  is 45.");
       
       frmvalidator.addValidation("billaddress","maxlen=200","Max length for Shipping Address is 200.");
       if(mem_user_add_info=='visible_required')
      {
              
          frmvalidator.addValidation("billing_country","dontselect=0","Please select Shipping County.");
          
          frmvalidator.addValidation("bllling_state","dontselect=''","Please select Shipping State.");
          
           frmvalidator.addValidation("billcity","req","Please enter Shipping City."); 
          
          frmvalidator.addValidation("billzipcode","req","Please enter Shipping Zipcode."); 
       
      }
         frmvalidator.addValidation("billcity","maxlen=45","Max length for Shipping City is 45."); 
         frmvalidator.addValidation("billzipcode","maxlen=45","Max length for Shipping Zipcode  45.");
        //frmvalidator.addValidation("billzipcode","alnum","Please enter valid Billing Zipcode.");
        
        frmvalidator.addValidation("billphone","maxlen=45","Max length for Shipping Phone Number  is 45.");
      //  frmvalidator.addValidation("billphone","numeric","Please enter valid Billing Phone Number.");
        
        frmvalidator.addValidation("islockedout","dontselect=''","Please select Is Lockedout.");
      //if(mem_generate_password=='false')
      {
      
        frmvalidator.setAddnlValidationFunction("DoCustomValidation");
      }  
      
  /*frmvalidator.addValidation("Email","maxlen=50");
  frmvalidator.addValidation("Email","req");
  frmvalidator.addValidation("Email","email");
  
  frmvalidator.addValidation("Address","req");
  frmvalidator.addValidation("Address","maxlen=50");
  
  frmvalidator.addValidation("Phone","maxlen=50");
  frmvalidator.addValidation("Phone","numeric");
  
  frmvalidator.addValidation("Address","maxlen=50");
  frmvalidator.addValidation("Country","dontselect=0");   */
  
  
</script>
{/literal}  
{literal} 
    <script language="JavaScript" type="text/javascript">
       function BillingCheckBoxChecked()
 {
 
 
     var Chk = document.getElementById('ctl00_ContentPlaceHolder1_chkBilling');

     if (Chk)
     {
     
         if (document.getElementById('address') && document.getElementById('billaddress'))
         {
             if (Chk.checked == true)
             {
             document.getElementById('billaddress').value= document.getElementById('address').value;
             }
             else
             {
             document.getElementById('billaddress').value='';
             }
         }
         if (document.getElementById('city') && document.getElementById('billcity'))
         {
             if (Chk.checked == true)
            {
             document.getElementById('billcity').value= document.getElementById('city').value;
             }
             else
             {
             document.getElementById('billcity').value='';
            }
         }
         if (document.getElementById('country') && document.getElementById('billing_country'))
         {
             if (Chk.checked == true)
             {
               var selected= document.getElementById('country').selectedIndex;
               document.getElementById('billing_country').selectedIndex=selected;
             
             }
             else
             {
              document.getElementById('billing_country').selectedIndex=0;
             }
         }

         if (document.getElementById('zipcode') && document.getElementById('billzipcode'))
         {
             if (Chk.checked == true)
             {
             document.getElementById('billzipcode').value= document.getElementById('zipcode').value;
             }
             else
             {
             document.getElementById('billzipcode').value='';
             }
         }
         if (document.getElementById('phone') && document.getElementById('billphone'))
         {
             if (Chk.checked == true)
             {
             document.getElementById('billphone').value= document.getElementById('phone').value;
             }
             else
             {
             document.getElementById('billphone').value='';
             }
         }
     
     }
      if (document.getElementById('state') && document.getElementById('bllling_state'))
      {
            if (Chk.checked == true)
            {
           
                var selected1= document.getElementById('state').selectedIndex;
                if(selected1>0)
                {
                    spnstate_billing();
                }  
                else
                {
                    document.getElementById('bllling_state').selectedIndex=0;
                    spnstate_billing();
                }  
            }
            else
            {
                document.getElementById('bllling_state').selectedIndex=0;
                spnstate_billing();
            }
        }
 } 
 

$rn('#gen_username').click(function(){

      if ($rn('#gen_username').attr('checked')==false) {
      
          $rn("#username").removeAttr("readonly");
          $rn("#username").focus();
        
      }
     else
      {
         $rn("#username").attr("readonly",true);
         $rn("#username").val('');
         $rn("#btnuser").hide();  
          $rn("#spnusernameavailablelink").hide();
         
      } 
  
});   

$rn('#gen_password').click(function(){

      if ($rn('#gen_password').attr('checked')==false) {
      
      
          $rn("#password").removeAttr("readonly");
          $rn("#confpassword").removeAttr("readonly");
          $rn("#password").focus();
        
      }
     else
      {
         $rn("#password").attr("readonly",true);
         $rn("#password").val('');
         $rn("#confpassword").attr("readonly",true);
         $rn("#confpassword").val('');
      } 
  
});              

  {/literal}{$controlvalidationresult}{literal};          
    </script>   
{/literal} 
 </div>
{$ADMIN_FOOTER}
Return current item: MembersGear