<!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.lblSiteDesign} :  {$language.lblPromotionalBanners}</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" media="screen" />
</head><body>
<div class="outer_container">
  {include file='CommonTop.tpl'}
  <!--End:Header Container-->
  <!--*************************************************START CONTAINER SECTION*************************************************-->
  <div class="content_container">
  	<div class="content_wrapper">
    <h2>{$language.lblPromotionalBanners} </h2>
   
          <div id="common_message"></div>
          {if $resPromoBannerTypeList}
          <div class="grid_table00">
            <table width="100%" border="0" cellspacing="0" cellpadding="0"   >
              {form->start name="formPromoBannerTypeList"  method="post"}
              <tr>
              <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" alt="down arrow" class="status-arw fixing_left"}
                        <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>
                <th align="left" valign="middle">{$language.lblAdPosition}</th>
                <th align="left" valign="middle" width="18%">{$language.lblSize}</th>
                <th align="left" valign="middle" width="8%">{$language.lblAdCount}</th>
                <th align="left" valign="middle" width="20">{$language.lblStatus}</th>
              </tr>
              {foreach from=$resPromoBannerTypeList item="resPromoBannerType" key="key1"}
              {assign var="curr_bannerTypeID" value=$resPromoBannerType.bannerTypeID}
              <tr>
                <td align="left" valign="top" class="checkbox_column">{form->checkbox name="promoBannerBulkStatus[]" class="promoBannerBulkStatus checkbox01 ListAll {if $resPromoBannerType.bannerTypeStatus eq 'Active'}ListActive{else}ListInactive{/if}"  options="" value=$curr_bannerTypeID}</td>
                <td align="left" valign="top">
                {html->anchor href="adbanner/details/id/$curr_bannerTypeID/" class="normal_link" caption="{$resPromoBannerType.bannerTypePosition}"}
                </td>
                <td align="left" valign="top">{$resPromoBannerType.bannerTypeWidth}x{$resPromoBannerType.bannerTypeHeight}</td>
                <td align="left" valign="top">
				<span class="pos-relative tt-outr">
				{html->anchor href="adbanner/new/type/$curr_bannerTypeID/" class="add-link" caption=$resPromoBannerType.bannerCount}<span style="display:none;">{$lblTitle|default:''}</span>    <div class="tooltip">{$language.lblAdd}</div></span>				
				</td>
                <td align="left" valign="top">
               {if $resPromoBannerType.bannerTypeStatus == 'Active'}
              	{assign var="newstatus" value='Inactive'}
                {assign var="statusImg" value='status-active'}
              {else}
              	{assign var="newstatus" value='Active'}
                {assign var="statusImg" value='status-inactive'}
              {/if}    
              {html->anchor class="{$statusImg} changeStatus icon-set" id="{$curr_bannerTypeID}"  rel="{$newstatus}" content="" title="{$resPromoBannerType.bannerTypeStatus}" task='status-change'} 
              
             </td>
              </tr>
              {/foreach}
            </table>
            </div>
            <div class="action_box">
            	{form->select name="bannerTypeStatus" class="select-box width-auto" options="->{$language.lblDonotchange}~*Active->{$language.lblActivate}~*Inactive->{$language.lblInactivate}" value=""}
                {form->submit name="submitBulkStatus" id="submitBulkStatus" class="update_btn_table submitBulkStatus button04"  value=$language.lblUpdate}
                  </div>
                <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">{$language.msgNoBannerFound}</div>
            {/if}
          <!--End:From Listing-->
    </div>
    </div>
  <!--End: left Block-->
<!--*********************************************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>
<script type="text/javascript" src="{$view_javascript}/table.plugin.js"></script>
<script type="text/javascript" src="{$view_javascript}/adBanner.page.js"></script>
<script type="text/javascript">
var lblSelectAction			= '{$language.lblSelectAction}';
var lblSelectItem			= '{$language.lblSelectItem}';
</script>
{form->validate_script form="formAdminAdd"}
{html->messages_script id="common_message"}
</body>
</html>
