<!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="Content-Type" content="text/html; charset=utf-8" />
<title>{$language.lblAdmin} : {if $countryCodeID|default:"">0}  {$language.lblOtpCountryEdit}  {else} {$language.lblOtpCountryAddNew} {/if}</title>
{include file="CommonStyles.tpl"}
{include file="CommonCustomStyles.tpl"}
{include file="CommonJavaScript.tpl"}
<link rel="stylesheet" type="text/css" href="{$view_styles}/form_listing.css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/inner-formlisting.css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/right-menu.css" />	</head><body>
<div class="outer_container"> {include file='CommonTop.tpl'} 
  <!--End:Header Container--> 
  <!--*************************************************START CONTAINER SECTION*************************************************-->
  <div class="content_container2 clearfix">

        <div class="right-sidebar">
          <div class="side_wrapper"> 
          {html->anchor priv_href="otpcountry/new/" href="otpcountry/new/" class="custom-btnt" content=" <strong><span class='add'></span>{$language.lblOtpCountryAddNew} </strong>" title="{$language.lblOtpCountryList}"}
          <ul>
                <li>
                        {html->anchor priv_href="otpcountry/index/" href="/otpcountry/index/"  class="side_menu_a selected" content="{$language.lblModuleOTPCountry}"} 

                </li>

        </ul>
          </div>
        </div>
        <!--End: Right Block-->
        <div class="left_wrapper">
        {form->start name="formOtpCountry" action="" method="post"}
          <div class="content_wrapper">
                <h2>
                {if isset($countryCodeID) && $countryCodeID>0}
                        {$language.lblOtpCountryEdit}
                {else}		
                        {$language.lblOtpCountryAddNew} 
                {/if}
                </h2>
                <div class="inner_content_wrapper">
                <div id="common_message"></div>
                  <div class="form_listing form_listing03">
                        <ul>
                        <li class="clearfix">
                                <div class="leftside01 mandatory">
                                        {$language.lblOtpCountrycountryText}
                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                        {form->textbox
                                                name="countryName" 
                                                class="textbox" 
                                                tabindex="1"
                                                validate="required" 
                                                error="{$language.errOtpCountrycountryTextRequired}"} 
                                </div>
                                <!--End:right-->
                          </li>
                        <li class="clearfix">
                                <div class="leftside01 mandatory">
                                        {$language.lblOtpCountrycountryCode}
                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                        {form->textbox
                                                name="countryCode" 
                                                class="textbox" 
                                                tabindex="2"
                                                validate="required~*countryCode->database->otp_country_code,countryCode,countryCodeID!='{$countryCodeID|default:""}' AND status!='D'" 
                                                error={$language.errOtpCountrycountryCodeRequired|cat:'~*'|cat:$language.errOtpCountrycountryCodeExists}} 
                                        <br /><span class="sub-text">{$language.lblCountryCodeSubText}</span>        
                                </div>
                                <!--End:right-->
                          </li>        
                        <li class="clearfix">
                                <div class="leftside01 mandatory">
                                        {$language.lblOtpCountrystatus}
                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                        <div id="perioddiv">
                                        {form->radio 
                                                name="status" 
                                                class="customradio"
                                                tabindex="3"
                                                value="A"
                                                options="A->{$language.lblActive}~*I->{$language.lblInactive}" 

                                                } 
                                        </div>
                                </div>
                                <!--End:right-->
                          </li>
                          <li class="clearfix">
                                <div class="submit-block clearfix"> 
                                                <span>  </span>
                                                <div class="leftside01"> </div>
                                                <div class="rightside01">	
                                                {form->submit 
                                                        name="submitOtpCountry" 
                                                        class="curve-3" 
                                                        value="{if isset($countryCodeID) && $countryCodeID>0}{$language.lblUpdate}{else}{$language.lblSave}{/if}"}
                                                        {$language.lblOr}
                                                        {html->anchor  href="otpcountry/index/" content="{$language.lblCancel}"}

                                                 </div>
                                        </div>
                                <!--End:right-->
                          </li>
                        </ul>
                  </div>
                  <!--End:From Listing--> 
                </div>
                <!--End:Border 3--> 
          </div>
          <!--End:Border 2--> 
          {form->close} 
          </div>
        <!--End: left Block-->
        <div class="clear"></div>
  </div>
  <!--End: left Block-->
  <div class="clear"></div>
</div>
<!--*********************************************END CONTAINER SECTION******************************************************--> 
<!--End:Content Container--> 
{include file='CommonBottom.tpl'}
</div>
<!--End:Outer Container--> 
{include file='CommonJavaScriptBottom.tpl'} 
<script type="text/javascript" src="{$common_js}/validate.plugin.js"></script> 
{form->basepath_script}
{form->validate_script form='formOtpCountry'}
{html->messages_script id="common_message"}


<script type="text/javascript" src="{$view_javascript}/custom-radiobutton.js"></script>
<script type="text/javascript">
        {literal}
        $(function(){
                 $('#perioddiv input').customInput('');
        });	
        {/literal}
</script>


</body>
</html>
