<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="Sat, 1 Jan 2000 00:00:00 GMT">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$language.lblAdmin} : {$language.lblBusinessType}</title>
<script type="text/javascript" src="{$common_js}/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="{$common_js}/jquery-migrate-1.4.1.js"></script>
{form->basepath_script}{form->rootpath_script}
<link href="{$view_styles}/popup.css" rel="stylesheet" type="text/css" media="screen" />
</head><body>
{form->start name="formCountrySubmit" action="" method="post"}
<div class="popup-block">
  <div class="form_listing">
    <div id="common_message" ></div>
	{include file='ContentLanguageOptions.tpl'}<br/>
    <div class="clear"></div>
	
    <ul>
      <li class="clearfix">
        <div class="inner-left fixing_left"><strong>{$language.lblCountryName}</strong></div>
        <div class="inner-right fixing_right"> {form->textbox name="countryName"  class="textbox" maxlength="50" validate="required~*countryName->Database->country_details,countryName,countryID!=$countryID AND languageID=$contentlanguageID" error=$language.errRequired|cat:'~*'|cat:$language.errExist tabindex="1"}                                             
          
          {form->hidden name="validateCityName" value="0"}                
          {form->validate  name="validateCity" validate="validateCityName->isequal->1~*required" error=$language.errNameAlreayExits} </div>
      </li>
      <li class="clearfix">
        <div class="inner-left fixing_left"><strong>{$language.lblAddresFormat}</strong></div>
        <div class="inner-right fixing_right">
          <div class="select-box"> {form->select name="addressFormatID" validate="required" error=$language.errBusinessParentType  class="width_55" options="{$resListAddresFormat}" value=$resCountries.addressFormatID|default:'' tabindex="1"} </div>
        </div>
      </li>
      <li class="clearfix">
        <div class="inner-left fixing_left"><strong>{$language.lblISOAlph2}</strong></div>
        <div class="inner-right fixing_right">
        {form->textbox name="countryIsoA2"  class="textbox" maxlength="50" validate="required~*isAlpha2~*countryIsoA2->Database->countries,countryIsoA2,countryID!=$countryID" error=$language.errRequired|cat:'~*'|cat:$language.errInvalid|cat:'~*'|cat:$language.errExist tabindex="1"}      
          </div>
      </li>
      <li class="clearfix">
        <div class="inner-left fixing_left"><strong>{$language.lblISOAlph3}</strong></div>
        <div class="inner-right fixing_right"> {form->textbox name="countryIsoA3"  class="textbox" maxlength="50" validate="required~*isAlpha3~*countryIsoA3->Database->countries,countryIsoA3,countryID!=$countryID" error=$language.errRequired|cat:'~*'|cat:$language.errInvalid|cat:'~*'|cat:$language.errExist tabindex="1"}    </div>
      </li>
<li class="clearfix">
        <div class="inner-left fixing_left"><strong>{$language.lblISONumber}</strong></div>
        <div class="inner-right fixing_right"> {form->textbox name="countryIsoNumber"  class="textbox" maxlength="50" validate="required~*isISO~*countryIsoNumber->Database->countries,countryIsoNumber,countryID!=$countryID" error=$language.errRequired|cat:'~*'|cat:$language.errInvalid|cat:'~*'|cat:$language.errExist tabindex="1"}    </div>
      </li>      
      <li class="clearfix">
        <div class="inner-left fixing_left"><strong>{$language.lblCountryCode}</strong></div>
        <div class="inner-right fixing_right"> {form->textbox name="countryCode"  class="textbox" maxlength="50" validate="required" error=$language.errCountryCode tabindex="1"}    </div>
      </li>	  
      <li class="clearfix">
        <div class="inner-left fixing_left"><strong>{$language.lblStatus}</strong></div>
        <div class="inner-right fixing_right">
          <div id="perioddiv">
          {form->radio tabindex="1" name="countryAvailable" class="customradio" options="Yes->Active~*No->Inactive" value="Active"}   
           
          </div>
        </div>
      </li>
      <li >
        <div class="submit-block clearfix textto_center"> <span>&nbsp; </span> {form->submit name="submitCountryEdit" id="submit" class="curve-3"  value="{$language.lblSave}" tabindex="1"} {$language.lblOr}
          {html->anchor  onclick="parent.jQuery.colorbox.close();" id="cancel" name="cancelCountryEdit" tabindex="1" caption="{$language.lblCancel}" } </div>
      </li>
    </ul>
    </form>
  </div>
</div>
{form->close}  {form->validate_script form="formCountrySubmit"}
{include file='CommonJavaScriptBottom.tpl'} 
<script type="text/javascript" src="{$common_js}/validate.plugin.js"></script> 
<script type="text/javascript" src="{$view_javascript}/urlEncode.js"></script> 
<script type="text/javascript" src="{$view_javascript}/custom-radiobutton.js"></script> 
<script type="text/javascript">
$(function(){
	 $('#perioddiv input').customInput('');
	});	
</script>
</body>
</html>
