Location: PHPKode > projects > MembersGear > membersgear/templates/phpajaxtestsmarty.tpl
{$ADMIN_HEADER}
{php}
  phpajax_js(); 
{/php}

<div id="content" class="setdiv">
  {*  <div id="contentdiv">
        <div class="leftdiv">
            <div class="righttop">
                <h2>
                    Welcome To SafelistProX 3.2.1 Control Panel</h2>
            </div>
            <div class="contant divborder">
                The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the
                lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps
                over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
                fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick
                brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
                The quick brown fox jumps over the lazy dog.
                <div class="link-set clear">
                    <a href="#">read more...</a></div>
            </div>
        </div>
        <div class="rightdiv">
            <div class="righttop">
                <h2>
                    Your Safelist Overview</h2>
            </div>
            <div class="contant divborder">
                The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the
                lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps
                over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
                fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick
                brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
                The quick brown fox jumps over the lazy dog.
                <div class="link-set clear">
                    <a href="#">read more...</a></div>
            </div>
        </div>
    </div>  *}
    
    <div id="full-contentdiv">
        <div class="righttop">
            <h2 align="center">
               Fill State Demo
            </h2>
         </div>
         <div class="whole-page clear">
           <form name="frmfillstateDemo">
             <table  border="1"  width="100%" >    
                  <tbody>
                        <tr>
                            <td valign="top" style="padding-top: 5px;" colspan="2">

                                 <div id='loading' style="visibility:hidden;">
                                    Cargando...
                                    </div> 
                            </td>
                        </tr>

                          <tr>
                           <td class="FieldLabel" valign="middle">country&nbsp;:<div class="FieldLabelNote" ></div></td>
                             <td class="FieldControl">
                                 <select id="country" name="country" onchange="fillstates()">
                                    <option value=0>select</option>
                                    {section name=country_name loop=$country}
                                    <option value="{$country[$smarty.section.country_name.index].id}">{$country[$smarty.section.country_name.index].name}</option>
                                    {/section}
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td class="FieldLabel" valign="middle">State&nbsp;:<div class="FieldLabelNote" ></div></td>
                             <td class="FieldControl">
                                
                                <span id=spnstate name=spnstate>
                                <select id="state" name="state">
                                <option value=''>select..</option>
                                </select> 
                                </span>

                              <div id="source"></div>
                
                                
                                
                            </td>
                        </tr>
                        <tr>
                             <td class="FieldLabel" valign="middle">&nbsp;</td>
                              <td class="FieldControl">
                                 <input  type="submit" value="Submit"  class="button" align="middle">

                             </td>
                        </tr>

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

                                  frmvalidator.addValidation("country","dontselect=0","Please Select your Country..");
                                  frmvalidator.addValidation("state","dontselect=''","Please Select your State..");
                      </script>
               {/literal}       
              
                
                
    <div style="height:200px;">
    
    </div>
    
</div>

{$ADMIN_FOOTER}
Return current item: MembersGear