<!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.lblPromotionalBannersDetails}</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" />
</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  href="adbanner/new/type/$type/" caption="<strong><span class='add'></span>{$language.lblAddNewBanner}</strong>" class="custom-btnt"}
          <ul>
                <li>{html->anchor  href="/adbanner/index/" rel="listbanner" class="side_menu_a " content="{$language.lblListPromotionalBanners}<br /><span>{$language.lblSubPromotionalBanner}</span>"} </li>
            </ul>
        </div>
    </div>
      <!--End: Right Block-->
    <div class="left_wrapper">
    	<div class="content_wrapper">
       
        <h2>{$language.lblPromotionalBannersDetails}</h2>
        <div id="common_message"></div>
        {if $resPromoBannerList}
          <div class="grid_table00">
          <table width="100%" border="0" cellspacing="0" cellpadding="0"   >
          {form->start name="formPromoBannerList" method="post"}
               <tr class="nodrag nodrop">
                <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" width="45%">{$language.lblBanner}</th>
                <th align="left" valign="middle">{$language.lblDate}</a></th>
                <th align="left" valign="middle" width="75">&nbsp;</th>
              </tr>
              {foreach from=$resPromoBannerList item="resPromoBanner" key="key1"}
 			{assign var="curr_bannerID" value=$resPromoBanner.bannerID}
              <tr {if $resPromoBanner@iteration is even by 1} class="shade01" {/if}>
                <td align="left" valign="top" class="checkbox_column">{form->checkbox name="promoBannerDetailsBulkStatus[]" class="promoBannerDetailsBulkStatus checkbox01 ListAll {if $resPromoBanner.bannerStatus  eq 'Active'}ListActive{else}ListInactive{/if}"  options="" value=$curr_bannerID}</td>
                <td align="left" valign="top" >{if $resPromoBanner.bannerDisplayType=='Image'}<img src="{$view_public_path}/uploads/adBanner/thumb/{$resPromoBanner.bannerImage}" alt="Sample Banner" width="88" height="48" align="absmiddle" /><br />{/if} {if $resPromoBanner.bannerDisplayType=='Script'}<div style="height:48px; width:88px; overflow:scroll;">{$resPromoBanner.bannerScript}</div>{/if} {if $resPromoBanner.bannerDisplayType=='Swf'}
<object width="88" height="48">
<param name="movie" value="{$view_public_path}/uploads/adBanner/Swf/{$resPromoBanner.bannerSwf}">
<embed src="{$view_public_path}/uploads/adBanner/Swf/{$resPromoBanner.bannerSwf}" width="88" height="48">
</embed>
</object><br />
{/if}{$resPromoBanner.bannerCaption} ({$resPromoBanner.bannerTypeWidth}x{$resPromoBanner.bannerTypeHeight}px)</td>
                <td align="left" valign="top">{$resPromoBanner.bannerCreatedDate|date_format:$config.date}</td>
                <td align="left" valign="top">
                 {if $resPromoBanner.bannerStatus == '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} bannerStatus icon-set"  id="{$curr_bannerID}" rel="{$newstatus}"  title="{$resPromoBanner.bannerStatus}" task='status-change'}
                {html->anchor  href="adbanner/edit/id/$curr_bannerID/" class="edit02 icon-set" alt="Edit" history="yes"}&nbsp;
{html->anchor confirm={$language.lblconfirmBanner}  href="adbanner/destroy/id/$curr_bannerID/" alt="delete" class="delete02 icon-set" history="yes"  confirm_head=$language.lblDelete}</td>
              </tr>
              {/foreach}
            </table>
          </div>
          <!--End:From Listing-->
          {assign var="statusoptions" value="->{$language.lblDonotchange}~*Active->{$language.lblActivate}~*Inactive->{$language.lblInactivate}~*Deleted->{$language.lblDelete}"}
          <div class="action_box">
          	{form->select name="bannerStatus" class="select-box width-auto" options=$statusoptions value=""}
            {form->submit name="submitDetailsBulkStatus" id="submitDetailsBulkStatus" 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" id="common_message">{$language.msgNoBannerFound}</div>
            {/if}
          </div>
    </div>
    <!--End: left Block-->
    
  </div>
  <!--*******************************************END CONTAINER SECTION******************************************************-->
  <!--End:Content Container-->
  {include file='CommonBottom.tpl'}
</div>
<!--End:Outer Container-->
{include file='CommonJavaScriptBottom.tpl'}
<script type="text/javascript" src="{$view_javascript}/adBanner.page.js"></script>
<script type="text/javascript" src="{$view_javascript}/table.plugin.js"></script>
<script type="text/javascript" src="{$view_javascript}/jquery.tablednd.js"></script>
<script type="text/javascript">
var lblSelectAction			= '{$language.lblSelectAction}';
var lblSelectItem			= '{$language.lblSelectItem}';
var	msgConfirmsub="{$language.lblSelectBannerDelete}";
</script>
{html->messages_script id="common_message"}
</body>
</html>