<?php /* Smarty version Smarty-3.1.8, created on 2019-12-23 08:51:26
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/BannerList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:7287970255da7024c120128-58153481%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5552a095126eecbbf0ae944ff1793df8987f95f9' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/BannerList.tpl',
      1 => 1576501830,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '7287970255da7024c120128-58153481',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5da7024c2b8ac4_90240534',
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'category' => 0,
    'resCategoryTree' => 0,
    'productCat' => 0,
    'listBrand' => 0,
    'resBanner' => 0,
    'editPrivilege' => 0,
    'sortName' => 0,
    'sortby' => 0,
    'deletePrivilege' => 0,
    'sortimg' => 0,
    'link' => 0,
    'resBannerDetails' => 0,
    'bannerID' => 0,
    'showPrivilege' => 0,
    'view_public_path' => 0,
    'settingsDateFormat' => 0,
    'time_format' => 0,
    'status' => 0,
    'bannerLoc' => 0,
    'statusoptions' => 0,
    'view_javascript' => 0,
    'common_js' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5da7024c2b8ac4_90240534')) {function content_5da7024c2b8ac4_90240534($_smarty_tpl) {?><?php if (!is_callable('smarty_mb_wordwrap')) include '/home/stg70/public_html/agmc-v2/library/template/plugins/shared.mb_wordwrap.php';
if (!is_callable('smarty_modifier_date_format')) include '/home/stg70/public_html/agmc-v2/library/template/plugins/modifier.date_format.php';
?><!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><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdmin'];?>
	:	<?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuSiteDesign'];?>
	:	<?php echo $_smarty_tpl->tpl_vars['language']->value['lblManageBanner'];?>
	</title>
<?php echo $_smarty_tpl->getSubTemplate ('CommonStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScript.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php echo $_smarty_tpl->getSubTemplate ('CommonCustomStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<link	rel="stylesheet"	type="text/css"	href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/colorbox.css"	/>
<link	href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/jquery-ui-1.8.19.custom.css"	rel="stylesheet"	type="text/css"	/>
<link	href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/right-menu.css"	rel="stylesheet"	type="text/css"	/>
<link	rel="stylesheet"	type="text/css"	href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/grid_listing.css"	media="screen"	/>
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/ui.daterangepicker.css" />
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->rootpath_script(array(),$_smarty_tpl);?>

<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->basepath_script(array(),$_smarty_tpl);?>

</head>
<body>
	<div	class="outer_container">
	<?php echo $_smarty_tpl->getSubTemplate ('CommonTop.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

	<!--End:Header	Container-->
	<!--*************************************END	HEADER	ONTAINER*********************************-->
	<div class="content_container2	clearfix">	
	<?php echo $_smarty_tpl->getSubTemplate ('BannerRightMenu.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
<!--End:	Right	Block-->
		<div	class="left_wrapper">
		<div	class="content_wrapper">
		<h2><?php echo $_smarty_tpl->tpl_vars['language']->value['lblManageBanner'];?>
</h2>
			<div	id="common_message"></div>
				<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formSearchBanner",'action'=>'','method'=>"post",'enctype'=>"multipart/form-data"),$_smarty_tpl);?>

					<div	class="search_container">
						<div	class="inner">
							<ul class="clearfix">
                <li class="column">
                	<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBannerLocation'];?>
&nbsp;</p>
                   <span class="form-field01">						
						<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"select-box",'tabindex'=>"5",'name'=>"bannerLoc",'options'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect'])."~*1->".($_smarty_tpl->tpl_vars['language']->value['lblMenuItem'])."~*2->".($_smarty_tpl->tpl_vars['language']->value['lblHomePage'])."~*3->".($_smarty_tpl->tpl_vars['language']->value['lblProductCategories'])),$_smarty_tpl);?>

					</span>
                </li>
			    <li class="column">
                	<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblTitle'];?>
</p>
                    <span class="form-field01">
						<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('class'=>"text-box",'tabindex'=>"1",'name'=>"bannerName"),$_smarty_tpl);?>
	
					</span>
                </li>
                <li class="column">
                	<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblType'];?>
</p>
                   <span class="form-field01">
						<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('id'=>"bannerType",'tabindex'=>"2",'class'=>"select-box",'name'=>"bannerType",'options'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect'])."~*Image->".($_smarty_tpl->tpl_vars['language']->value['lblImage'])."~*Swf->".($_smarty_tpl->tpl_vars['language']->value['lblSwf'])),$_smarty_tpl);?>

					</span>
                </li>
                <li class="column  banner-category" style="display:none"> 
					<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductCategory'];?>
&nbsp;</p>
					<span class="form-field01">
						
						<select class="select-box" tabindex="5" id="category" name="category">
							<option value="" <?php if ($_smarty_tpl->tpl_vars['category']->value==''){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelect'];?>
</option>
							<?php if (!empty($_smarty_tpl->tpl_vars['resCategoryTree']->value)){?>
							<?php  $_smarty_tpl->tpl_vars['productCat'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['productCat']->_loop = false;
 $_from = (($tmp = @$_smarty_tpl->tpl_vars['resCategoryTree']->value)===null||$tmp==='' ? '' : $tmp); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['productCat']->key => $_smarty_tpl->tpl_vars['productCat']->value){
$_smarty_tpl->tpl_vars['productCat']->_loop = true;
?>
								<?php if ($_smarty_tpl->tpl_vars['productCat']->value[0]>0){?>
									<option value="<?php echo $_smarty_tpl->tpl_vars['productCat']->value[0];?>
" 
											<?php if ($_smarty_tpl->tpl_vars['productCat']->value[0]==(($tmp = @$_smarty_tpl->tpl_vars['category']->value)===null||$tmp==='' ? '' : $tmp)){?>
												selected="selected"
											<?php }?> 
											<?php if ($_smarty_tpl->tpl_vars['productCat']->value[2]=='Inactive'){?>
												class="opt_inactive"
											<?php }?> 	
										>
										<?php echo $_smarty_tpl->tpl_vars['productCat']->value[1];?>

									</option>
								<?php }?>
						<?php } ?>
						<?php }?>
					</select>
				</span>
				</li>
				 <li class="column" style="display:block"> 
					<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBrand'];?>
&nbsp;</p>
					<span class="form-field01">
						<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"select-box",'tabindex'=>"5",'name'=>"brandID",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'options'=>$_smarty_tpl->tpl_vars['listBrand']->value),$_smarty_tpl);?>

					</span>
				</li>
				 <li class="column"> 
						<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblListingDate'];?>
&nbsp;</p>
						<span class="form-field01">
							<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('id'=>"daterange",'name'=>"daterange",'class'=>"date-field class_datepicker",'readonly'=>"readonly"),$_smarty_tpl);?>

						</span>
				 </li>

                <li class="column">
                	<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBannerPlatform'];?>
</p>
                   <span class="form-field01">
											<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('id'=>"bannerPlatform",'tabindex'=>"2",'class'=>"select-box",'name'=>"bannerPlatform",'options'=>"->Select~*Desktop->".($_smarty_tpl->tpl_vars['language']->value['lblDesktop'])."~*Mobile->".($_smarty_tpl->tpl_vars['language']->value['lblMobile'])."~*mobileApp->".($_smarty_tpl->tpl_vars['language']->value['lblMobileapp'])),$_smarty_tpl);?>

										</span>
                </li>				 
                <li class="column">
                	<p class="label-field01">&nbsp;</p>
									<span class="form-field01">	
										<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitSearch",'class'=>"button01",'value'=>$_smarty_tpl->tpl_vars['language']->value['lblSearch'],'tabindex'=>"4"),$_smarty_tpl);?>

										<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"banner/index/",'class'=>"action-link",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblListAll']),'tabindex'=>"5"),$_smarty_tpl);?>

                                        </span>
									</li>
									 </ul>
						</div>
					</div><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>

                    <!--END:sEARCH	cONTAINER-->
                    <?php if ($_smarty_tpl->tpl_vars['resBanner']->value){?>
                   <div class="clearfix"> 
				   <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
					<div class="info-message strict_fixing_left" id="dragMessage" style="display:none">
							<?php echo $_smarty_tpl->tpl_vars['language']->value['lblPleaseDrapDropBanners'];?>

					</div>
				   <?php }?>	
                   <?php echo $_smarty_tpl->getSubTemplate ('ContentLanguageOptions.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

						<?php if ($_smarty_tpl->tpl_vars['sortName']->value=='bannername'){?>
							<?php if ($_smarty_tpl->tpl_vars['sortby']->value=="asc"){?>
								<?php $_smarty_tpl->tpl_vars["sortimg"] = new Smarty_variable("sortasc", null, 0);?>
							<?php }?>
							<?php if ($_smarty_tpl->tpl_vars['sortby']->value=="desc"){?>
								<?php $_smarty_tpl->tpl_vars["sortimg"] = new Smarty_variable("sortdesc", null, 0);?>
							<?php }?>
						<?php }?>
					
						
					</div>	
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formBanner",'action'=>'','method'=>"post",'enctype'=>"multipart/form-data"),$_smarty_tpl);?>
		
						<div	class="grid_table00">
						<table	width="100%"	border="0"	cellspacing="0"	cellpadding="0">
							<tr	class="sort">
							<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
								<th	align="left"	valign="middle"		class="checkbox_column"	style="width:5%;">	<div	class="chekingdiv">
									<ul>
										<li>
											<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('id'=>"ListStatusLinkCheckbox",'class'=>"fixing_left",'name'=>"ListStatusLinkCheckbox"),$_smarty_tpl);?>

												<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','id'=>"ListStatusLink",'class'=>"status-arw	fixing_left"),$_smarty_tpl);?>

													<ul	id="ListStatusSelection"	class="check_status">
														<li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','rel'=>"ListActive",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblActive'])),$_smarty_tpl);?>
</li>
														<li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','rel'=>"ListInactive",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblInactive'])),$_smarty_tpl);?>
</li>
														<li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','rel'=>"ListAll",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblSelectAll'])),$_smarty_tpl);?>
</li>
													</ul>
										</li>
									</ul>
								</div></th>
								<?php }?>
                                                               
								<th	align="left"	valign="middle"	class="<?php if ($_smarty_tpl->tpl_vars['sortby']->value){?><?php echo $_smarty_tpl->tpl_vars['sortimg']->value;?>
<?php }else{ ?>sort<?php }?>" style="width:20%;">
									<?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['sortby']->value=="desc"){?><?php echo "asc";?><?php }else{ ?><?php echo "desc";?><?php }?><?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>($_smarty_tpl->tpl_vars['link']->value)."orderby/bannername/sortby/".$_tmp1."/",'caption'=>$_smarty_tpl->tpl_vars['language']->value['lblBannerTitle']),$_smarty_tpl);?>

								</th>
								<th	align="left"	valign="middle"	style="width:5%;"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblType'];?>
</th>
								<!-- <th	align="left"	valign="middle" style="width:11%;"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLastModified'];?>
</th> -->
								<th	align="left"	valign="middle" style="width:10%;"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBannerImage'];?>
</th>
								<th	align="left"	valign="middle" style="width:10%;"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBannerLocation'];?>
</th>
								<th	align="left"	valign="middle" style="width:10%;"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBannerPlatform'];?>
</th>
                                <th	align="left"	valign="middle" style="width:15%;"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblListingDate'];?>
</th>
                                 <th	align="left"	valign="middle"	style="width:8%;"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuBrands'];?>
</th>
								<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
									<th	align="left"	valign="middle"	style="width:8%;">&nbsp;</th>
								<?php }?>
							</tr>
                            </table>
                             <ul <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>id="sort1" class="dragtree connectedSortable"<?php }?>>
							<?php  $_smarty_tpl->tpl_vars["resBannerDetails"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["resBannerDetails"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resBanner']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["resBannerDetails"]->key => $_smarty_tpl->tpl_vars["resBannerDetails"]->value){
$_smarty_tpl->tpl_vars["resBannerDetails"]->_loop = true;
?>
								<?php $_smarty_tpl->tpl_vars["bannerID"] = new Smarty_variable($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerID'], null, 0);?>
                                <li data-id="<?php echo $_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerID'];?>
" data-orderid="<?php echo $_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerOrder'];?>
">
                                <table width="100%" cellspacing="0" cellpadding="0" class="drag_table">
								<tr>
								<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
									<td	align="left"	valign="top"	class="checkbox_column drag" style="width:5%;">
										<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerStatus'];?>
<?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"checkBannerIDs[]",'value'=>(($_smarty_tpl->tpl_vars['bannerID']->value).('_')).($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerLoc']),'class'=>("checkbox01 ListAll List").($_tmp2)),$_smarty_tpl);?>

									</td>
								<?php }?>
                                                              
									<td	align="left"	valign="top" style="width:20%;">
										<?php if ($_smarty_tpl->tpl_vars['showPrivilege']->value){?>
											<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('history'=>"yes",'href'=>"banner/show/id/".($_smarty_tpl->tpl_vars['bannerID']->value)."/",'caption'=>smarty_mb_wordwrap($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerTitle'],10,"\n",false),'class'=>"normal_link"),$_smarty_tpl);?>

										<?php }else{ ?>
											<?php echo smarty_mb_wordwrap($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerTitle'],10,"\n",false);?>

										<?php }?>
									</td>
									<td	align="left"	valign="top" style="width:5%;"><?php echo smarty_mb_wordwrap($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerDisplayType'],20,"\n",false);?>
</td>
									
									<td	align="left"	valign="top" style="width:10%;"><?php if ($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerImage']){?>
										<a	name="bannerImage"	id="bannerImage"	href="<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/banner/<?php echo $_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerImage'];?>
"	class="bannerImage"><img	src='<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/banner/thumb/<?php echo $_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerImage'];?>
'	width='45'	height='40'/></a><?php }?></td>
									<td align="left" valign="top" style="width:10%;">
										<?php if ($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerLoc']==1){?>
											<?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuItem'];?>

										<?php }elseif($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerLoc']==2){?>
											<?php echo $_smarty_tpl->tpl_vars['language']->value['lblHomePage'];?>

										<?php }elseif($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerLoc']==3){?>
											<?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductCategories'];?>

										<?php }elseif($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerLoc']==4){?>
											<?php echo $_smarty_tpl->tpl_vars['language']->value['lblBrands'];?>

                                                                                <?php }else{ ?>
                                                                                    Mobileapp widget Banners
										<?php }?>
									</td>
									<td align="left" valign="top" style="width:10%;">
									<?php echo smarty_mb_wordwrap($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerPlatform'],20,"\n",false);?>

									</td>									
									<td	align="left"	valign="top" style="width:15%;">			
										<?php if ($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerStartTime']!='0000-00-00 00:00:00'){?>
										 <?php echo $_smarty_tpl->tpl_vars['language']->value['lblStart'];?>
 - <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerStartTime'],$_smarty_tpl->tpl_vars['settingsDateFormat']->value);?>
 <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerStartTime'],$_smarty_tpl->tpl_vars['time_format']->value);?>

											<?php if ($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerEndTime']!='0000-00-00 00:00:00'){?>
											<br>
											<?php }?> 
										<?php }?> 
										
										<?php if ($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerEndTime']!='0000-00-00 00:00:00'){?>
										 <?php echo $_smarty_tpl->tpl_vars['language']->value['lblEnd'];?>
 &nbsp;- <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerEndTime'],$_smarty_tpl->tpl_vars['settingsDateFormat']->value);?>
 
										 <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerEndTime'],$_smarty_tpl->tpl_vars['time_format']->value);?>

										<?php }?> 
									</td>
                                                                          <td	align="left"	valign="top" style="width:8%;">
										<?php echo $_smarty_tpl->tpl_vars['resBannerDetails']->value['brandName'];?>
</td>
									<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
									<td	align="left"	valign="top" style="width:8%;" nowarp>
										<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
										<?php if ($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerStatus']=="Active"){?>
											<?php $_smarty_tpl->tpl_vars["status"] = new Smarty_variable('Inactive', null, 0);?>
											<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('rel'=>($_smarty_tpl->tpl_vars['status']->value),'id'=>($_smarty_tpl->tpl_vars['bannerID']->value),'title'=>$_smarty_tpl->tpl_vars['language']->value['lblActive'],'class'=>"status-active icon-set",'task'=>"status-change",'loc'=>$_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerLoc']),$_smarty_tpl);?>

										<?php }elseif($_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerStatus']=="Inactive"){?>
											<?php $_smarty_tpl->tpl_vars["status"] = new Smarty_variable('Active', null, 0);?>
											<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('id'=>($_smarty_tpl->tpl_vars['bannerID']->value),'rel'=>($_smarty_tpl->tpl_vars['status']->value),'title'=>$_smarty_tpl->tpl_vars['language']->value['lblInactive'],'class'=>"status-inactive icon-set",'task'=>"status-change",'loc'=>$_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerLoc']),$_smarty_tpl);?>

										<?php }?>
										<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"banner/edit/id/".($_smarty_tpl->tpl_vars['bannerID']->value)."/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblEditBanner']),'class'=>"edit02 icon-set"),$_smarty_tpl);?>

										<?php }?>
										<?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
											<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('id'=>($_smarty_tpl->tpl_vars['bannerID']->value),'title'=>"Delete",'class'=>"delete02 icon-set",'task'=>"delete00",'loc'=>$_smarty_tpl->tpl_vars['resBannerDetails']->value['bannerLoc']),$_smarty_tpl);?>

										<?php }?>	
									</td>
									<?php }?>
								</tr>
                                </table>
                             </li>
							<?php } ?>
					</ul>
                        </div>

						<div	class="clearfix">
							<?php if (($_smarty_tpl->tpl_vars['bannerLoc']->value!=2)&&($_smarty_tpl->tpl_vars['bannerLoc']->value!=3)){?>
							<div	class="fixing_right	pagination_outer">	<?php echo $_smarty_tpl->smarty->registered_objects['paginate'][0]->layout(array('key'=>"page",'label_record'=>($_smarty_tpl->tpl_vars['language']->value['lblRecordsFound']),'label_pages'=>($_smarty_tpl->tpl_vars['language']->value['lblPages'])),$_smarty_tpl);?>

							<div	class="clear"></div>
						</div>
						<?php }?>
			<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
				<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value&&$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
					<?php $_smarty_tpl->tpl_vars["statusoptions"] = new Smarty_variable("Active->".($_smarty_tpl->tpl_vars['language']->value['lblActivate'])."~*Inactive->".($_smarty_tpl->tpl_vars['language']->value['lblInactivate'])."~*Deleted->".($_smarty_tpl->tpl_vars['language']->value['lblDelete']), null, 0);?>
				<?php }elseif($_smarty_tpl->tpl_vars['editPrivilege']->value&&!$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
					<?php $_smarty_tpl->tpl_vars["statusoptions"] = new Smarty_variable("Active->".($_smarty_tpl->tpl_vars['language']->value['lblActivate'])."~*Inactive->".($_smarty_tpl->tpl_vars['language']->value['lblInactivate']), null, 0);?>
				<?php }elseif(!$_smarty_tpl->tpl_vars['editPrivilege']->value&&$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
					<?php $_smarty_tpl->tpl_vars["statusoptions"] = new Smarty_variable("Deleted->".($_smarty_tpl->tpl_vars['language']->value['lblDelete']), null, 0);?>
				<?php }?>
				<div	class="action_box">
				<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"select-box	width-auto",'tabindex'=>"6",'name'=>"changeStatus",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblDonotchange']),'options'=>$_smarty_tpl->tpl_vars['statusoptions']->value),$_smarty_tpl);?>

				<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitBanner",'tabindex'=>"7",'class'=>"update_btn_table	button04",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblUpdate'])),$_smarty_tpl);?>
	</div>			
			<?php }?>					
						</div>
				<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>

                
			<?php }else{ ?>
				<div	id="common_message"		class="message_info">	<?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoRecords'];?>
</div>
			<?php }?>	 </div></div>
		</div>
		<?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

	</div>
<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->messages_script(array('id'=>"common_message"),$_smarty_tpl);?>

<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScriptBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<script		type="text/javascript">
var	lblCheckall	=	"<?php echo $_smarty_tpl->tpl_vars['language']->value['lblCheckall'];?>
";
var	lblUncheckall	=	"<?php echo $_smarty_tpl->tpl_vars['language']->value['lblUncheckall'];?>
";
</script>
<script	type="text/javascript"	src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/jquery.multiselect.widget.js"></script>	
<script	type="text/javascript"	src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/table.plugin.js"></script>
<script	type="text/javascript"	src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/jquery.colorbox.js"></script>
<script	type="text/javascript"	src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/bannerList.page.js"></script>
<script	type="text/javascript"	src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/date.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/daterangepicker.jQuery.js"></script>

 <script	type="text/javascript">
var	msgSelectSearchCriteria="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectSearchCriteria'];?>
";
var	msgConfirmsub="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectBannerDelete'];?>
";
var	msgSelectItem="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectItem'];?>
";
var	lblSelectAction="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectAction'];?>
";
var statusChange = "<?php echo $_smarty_tpl->tpl_vars['language']->value['msgBannerUpdate'];?>
";

$(document).ready(function	()	{
	$('.side_wrapper	ul	li	a[rel=banner-index]').addClass('selected');
		setSideMenu();	
		$('.bannerImage').colorbox({maxWidth:"85%",maxHeight:"80%"});
	
});
$(function(){
	$('#daterange').daterangepicker();
 });

</script>		
</body>
</html><?php }} ?>