<!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} : {$language.lblModuleOTPCountry}</title>
{include file='CommonStyles.tpl'}
{include file='CommonCustomStyles.tpl'}
{include file='CommonJavaScript.tpl'}
<link rel="stylesheet" type="text/css" href="{$view_styles}/grid_listing.css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/right-menu.css" />
<script type="text/javascript" src="{$view_javascript}/table.plugin.js"></script>

</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.lblOtpCountryAddNew}"}
          </div>
        </div>
        <!--End: Right Block-->
        <div class="left_wrapper">
          <div class="content_wrapper">
                <h2>{$language.lblModuleOTPCountry}</h2>
                <div class="inner_content_wrapper"> 
                  <div id="common_message"></div>

                  {form->start name="formStatusOtpCountryChange" action="" method="post" enctype="multipart/form-data"}
                        <div class="search_container">
                          <div class="inner single-box">
                                <ul class="clearfix">	
                                        <li class="column">
                                                <p class="label-field01">{$language.lblOtpCountrycountryCode}</p>
                                                <span class="form-field01">
                                                        {form->textbox 
                                                                class="textbox " 
                                                                tabindex="1"
                                                                name="countryCode"} 			                 
                                                        </span>
                                        </li>	
                                        <li class="column">
                                                <p class="label-field01">{$language.lblOtpCountrycountryText}</p>
                                                <span class="form-field01">
                                                        {form->textbox 
                                                                class="textbox " 
                                                                tabindex="2"
                                                                name="countryName"} 			                 
                                                        </span>
                                        </li>				<li class="column">
                                                {form->submit name="search" tabindex="4" value="{$language.lblSearch}" class="button01 margin-r-10"} 
                                                {html->anchor href="/otpcountry/" tabindex="5"  class="action-link" caption="{$language.lblListAll}" tabindex="8"}
                                        </li>
                                   </ul>
                          </div>
                        </div>
                        {if $listOtpCountry}
                        {include file='ContentLanguageOptions.tpl'}
                        <div class="clear"></div>
                        {/if}
                        {form->close}


                  {if $listOtpCountry}
                  <div class="grid_table00"> 
                   {form->start name="formList" action=""  method="post" enctype="multipart/form-data"} 
                   <table width="100%" border="0" cellspacing="0" cellpadding="0"   >
                          <tr>
                                {if $editPrivilege || $deletePrivilege}
                                <th align="left" valign="middle"  class="checkbox_column" width="35"> <div class="chekingdiv">
                                        <ul>
                                          <li> {form->checkbox name="ListStatusLinkCheckbox" id="ListStatusLinkCheckbox" class="fixing_left" value=""}
                                                {html->anchor href="" id="ListStatusLink" class="status-arw fixing_left" alt="down arrow"}
                                                <ul id="ListStatusSelection"  class="check_status">
                                                  <li> {html->anchor href="" rel="ListActive" content=$language.lblActive}</li>
                                                  <li> {html->anchor href="" rel="ListInactive" content=$language.lblInactive}</li>
                                                  <li> {html->anchor href="" rel="ListAll" content=$language.lblSelectAll}</li>
                                                </ul>
                                          </li>
                                        </ul>
                                  </div>
                                 </th>{/if}
                                <th  align="left" valign="middle" class="sort{if $sortby eq 'sort_countryCode'}{$orderby}{/if}" >
                                {html->anchor href="{$link}sortby/sort_countryCode/orderby/$orderby/" title="{$language.lblOtpCountrycountryCode}" 	content="{$language.lblOtpCountrycountryCode}"}
                                </th>
                                <th  align="left" valign="middle" class="sort{if $sortby eq 'sort_countryName'}{$orderby}{/if}" >
                                {html->anchor href="{$link}sortby/sort_countryName/orderby/$orderby/" title="{$language.lblOtpCountrycountryText}" 	content="{$language.lblOtpCountrycountryText}"}
                                </th>

                                {if $editPrivilege || $deletePrivilege}
                                <th width="10%" align="left" valign="middle" > </th>
                                {/if}
                          </tr>

                          {foreach $listOtpCountry as $key=>$otpcountry}
                          {assign var="countryCodeID" value=$otpcountry.countryCodeID}

                          <tr class="shade01">
                                        {if $editPrivilege || $deletePrivilege}
                                                <td align="left" valign="middle" class="checkbox_column">
                                                          {form->checkbox 
                                                                name="countryCodeID[]" 
                                                                class="adminUserBulkStatus checkbox01 ListAll 
                                                                {if $otpcountry.status   eq 'A'}ListActive{else}ListInactive{/if}"  
                                                                options="" value=$countryCodeID}                  
                                                </td>
                                        {/if}	
                                        <td align="left" valign="middle">
                                                {$otpcountry['countryCode']}
                                        </td>	
                                        <td align="left" valign="middle">
                                                {$otpcountry['countryName']}
                                        </td>
                                {if $deletePrivilege || $editPrivilege}
                                <td align="left" valign="top">
                                        {html->anchor href="otpcountry/view/id/{$countryCodeID}/" class="preview icon-set"  title="{$language.lblView}" caption="" history="yes"}
                                        {if $editPrivilege}			  
                                                {if $otpcountry.status=="A"}
                                                        {html->anchor title="Change Status" class="changeStatus status-active icon-set" id="{$countryCodeID}" rel="I"}  
                                                {elseif $otpcountry.status=="I"}
                                                        {html->anchor title="Change Status" class="changeStatus status-inactive icon-set" id="{$countryCodeID}" rel="A" }
                                                {/if}
                                                {html->anchor href="otpcountry/edit/id/$countryCodeID/" class="edit02 icon-set"  title="{$language.lblEdit}" caption="" history="yes"}
                                        {/if}
                                        {if $deletePrivilege}
                                                {html->anchor 
                                                        confirm="{$language.msgDeleteItem}"  
                                                        confirm_head=$language.lblDelete
                                                        href="otpcountry/destroy/id/$countryCodeID/"
                                                        title="{$language.lblDelete}"  
                                                        class="delete02 icon-set" countryCodeID="{$countryCodeID}"}
                                        {/if} 
                                </td>
                                {/if}
                        </tr>
                          {/foreach}

                        </table>
                        </div>
                        {if $editPrivilege || $deletePrivilege}
                                {if $deletePrivilege && $editPrivilege}
                                {assign var="statusoptions" 	
                                value="->{$language.lblDonotchange}~*A->{$language.lblActivate}~*I->{$language.lblInactivate}~*D->{$language.lblDelete}"}
                                {else if $deletePrivilege && (!$editPrivilege)} 
                                {assign var="statusoptions" value="->{$language.lblDonotchange}~*D->{$language.lblDelete}"} 
                                {else if (!$deletePrivilege) && $editPrivilege} 
                                {assign var="statusoptions" value="->{$language.lblDonotchange}~*A->{$language.lblActivate}~*I->{$language.lblInactivate}"} 
                        {/if} 

                        <div class="action_box">
                                {form->select name="select_status" class="select-box width-auto" options=$statusoptions value=""}
                                {form->submit name="changeStatus" id="submitBulkStatus" class="button04"  value="{$language.lblUpdate}"}
                        </div>
                        {/if} 
                        {form->close}
                        <div class="fixing_right pagination_outer" >{paginate->layout  key="page" label_record="{$language.lblRecorsFound}" label_pages="{$language.lblPages}"} </div>
                        <div class="clear"></div>
                        {else}
                        <div class="message_info" id="common_message">{$language.msgNoRecords}</div>
                        {/if}
                  <!--End:From Listing--> 
                </div>
                <!--End:Border 3--> 
          </div>
          <!--End:Border 2--> 
        </div>
        <!--End: left Block-->
        <div class="clear"></div>
  </div>
  <!--End: Content--> 

  {include file='CommonBottom.tpl'} </div>
<!--***********************************************************************END CONTAINER SECTION******************************************************--> 
<!--End:Content Container--> 
<!--End:Outer Container--> 
{include file='CommonJavaScriptBottom.tpl'} 

<script type="text/javascript">
var msgDeleteItem	= '{$language.msgDeleteItem}';
var msgSelectItem	= '{$language.msgSelectItem}';
var lblSelectAction			= '{$language.lblSelectAction}';
var msgSelectSearchCriteria	= '{$language.msgSelectSearchCriteria}';
var lblSelectItem			= '{$language.lblSelectItem}';	
</script>
<script type="text/javascript" src="{$view_javascript}/otpcountrylist.page.js"></script> 
{html->messages_script id="common_message"}
</body>
</html>

