<?php /* Smarty version Smarty-3.1.8, created on 2024-07-17 13:00:49
         compiled from "/home/agmc/beta/application/core/views/manage/standard/WidgetList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:9633955305e71edebb210c9-20071190%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2b80f9ec6f8b1001d849594a81a8b97d2b09091e' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/WidgetList.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '9633955305e71edebb210c9-20071190',
  'function' => 
  array (
    'pdtWidget' => 
    array (
      'parameter' => 
      array (
        'level' => 0,
      ),
      'compiled' => '',
    ),
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e71edebba0d67_38453853',
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'listBrand' => 0,
    'listWidget' => 0,
    'editPrivilege' => 0,
    'data' => 0,
    'widget' => 0,
    'level' => 0,
    'date_format' => 0,
    'viewPrivilege' => 0,
    'widgetID' => 0,
    'deletePrivilege' => 0,
    'view_javascript' => 0,
    'widgetDisplayedOn' => 0,
  ),
  'has_nocache_code' => 0,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e71edebba0d67_38453853')) {function content_5e71edebba0d67_38453853($_smarty_tpl) {?><!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['lblModuleWidgets'];?>
</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 ('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;?>
/menuItemListing.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/right-menu.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/ui.daterangepicker.css" />
<link href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/jquery-ui-1.8.19.custom.css" rel="stylesheet" type="text/css" />
<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScript.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?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-->
  <!--***********************************************************************START CONTAINER SECTION******************************************************-->
  <div class="content_container2 clearfix"> 
  	<div class="right-sidebar">
    	<div class="side_wrapper">
        <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"widget/new/",'href'=>"widget/new/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblWidgetAddNew']),'class'=>"custom-btnt cboxElement",'content'=>"<strong><span class='add'></span>".($_smarty_tpl->tpl_vars['language']->value['lblWidgetAddNew'])."</strong>"),$_smarty_tpl);?>

    	</div>
    </div>
    <!--End: Right Block-->   
    <div class="left_wrapper ">
      <div class="content_wrapper"><div class="fixing_right"> <?php echo $_smarty_tpl->getSubTemplate ('ContentLanguageOptions.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
</div> 
      	<h2><?php echo $_smarty_tpl->tpl_vars['language']->value['lblModuleWidgets'];?>
</h2>
	<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formWidgetSearch",'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['lblDisplayedOn'];?>
</p>
                    <span class="form-field01"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'class'=>"select-box",'name'=>"widgetDisplayedOn",'options'=>"home->Home~*category->Category"),$_smarty_tpl);?>
</span>
                </li>                
		<li class="column">
                	<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDate'];?>
</p>
                   <span class="form-field01">
                    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"widgetDate",'class'=>"texbox date-field"),$_smarty_tpl);?>
 
							</span></li>
		<!--<li class="column">
                	<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblWidgetwidgetEndDate'];?>
</p>
                   <span class="form-field01">
                    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"widgetEndDate",'class'=>"texbox date-field"),$_smarty_tpl);?>
 
							</span></li>-->
                            <li class="column">
               	<p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblWidgetPlatform'];?>
</p>
                   <span class="form-field01">
                   <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'class'=>"select-box",'name'=>"widgetplatform",'options'=>"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"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuBrands'];?>
</p>
									<span class="form-field01">
										<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"select-box",'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">&nbsp;</p>
               <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"search",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblSearch']),'class'=>"button01 margin-r-10"),$_smarty_tpl);?>
 <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/widget/",'class'=>"action-link",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblListAll']),'tabindex'=>"8"),$_smarty_tpl);?>
</li>
               </ul>
          </div>
	</div><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>

	 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formList",'action'=>'','method'=>"post"),$_smarty_tpl);?>

          <div id="common_message" ></div>
          <div class="tree_level_00" >
	    <?php if (count($_smarty_tpl->tpl_vars['listWidget']->value)==0){?>
            <div id="common_message" class="message_info"> <?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoRecords'];?>
</div>
            <?php }else{ ?>
            <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
			<div class="clearfix">
			<div class="info-message strict_fixing_left" id="dropLabel">
			   <?php echo $_smarty_tpl->tpl_vars['language']->value['lblDragDropwidgets'];?>
		
			</div>
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->button(array('name'=>"savepriority",'class'=>"fixing_right update_btn_table button04 ",'disabled'=>"disabled",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblSavepriority'])),$_smarty_tpl);?>

			
		
            </div><?php }?>
			
            <div class="grid_table00" id="widget-list">
            <div class="heading">
                <table width="100%" border="0" cellspacing="0" cellpadding="0"  id="table_productcategories">
                    <thead>
                      <tr>
				    <td width="25" >
                                   </td>                                    
                                    <td class=" col" align="left" valign="middle"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblTitle'];?>
 </td>                                    
				    <td class=" col" align="left" valign="middle" width="15%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDisplayedOn'];?>
</td>	
                                    <td class=" col" align="left" valign="middle" width="7%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuBrands'];?>
 </td>
				    <td align="left" valign="middle" width="20%" ><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDate'];?>
</td>
                  
                  <td class=" col" align="left" valign="middle" width="100"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblWidgetPlatform'];?>
</td>
				
                                   <td align="left" valign="top" width="100">
                                   
      </td>
	    </tr>
                      </thead>
                 </table>
          </div>
			
			<ul  <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?> class="dragtree categoryList" <?php }?> id="widget-list" >
                  <!--menu function-->
                 <?php if (!is_callable('smarty_modifier_date_format')) include '/home/agmc/beta/library/template/plugins/modifier.date_format.php';
?><?php if (!function_exists('smarty_template_function_pdtWidget')) {
    function smarty_template_function_pdtWidget($_smarty_tpl,$params) {
    $saved_tpl_vars = $_smarty_tpl->tpl_vars;
    foreach ($_smarty_tpl->smarty->template_functions['pdtWidget']['parameter'] as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);};
    foreach ($params as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);}?>
                <?php  $_smarty_tpl->tpl_vars["widget"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["widget"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["widget"]->key => $_smarty_tpl->tpl_vars["widget"]->value){
$_smarty_tpl->tpl_vars["widget"]->_loop = true;
?> 
                    <?php $_smarty_tpl->tpl_vars["widgetID"] = new Smarty_variable($_smarty_tpl->tpl_vars['widget']->value['widgetID'], null, 0);?>			 
                        <li  data-level="<?php echo $_smarty_tpl->tpl_vars['level']->value;?>
" widget="<?php echo $_smarty_tpl->tpl_vars['widget']->value['widgetID'];?>
" >
                        <div class="group pos-relative">
                         
                         <div class="positioning">
                       
                             <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
				    <td width="25" class="drag <?php if (!$_smarty_tpl->tpl_vars['editPrivilege']->value){?> no-cursor <?php }?>" align="left" valign="middle">
                                    <span class="line1"></span><span class="line2"></span><span class="line3"></span></td>                                    
                                    <td class=" col" align="left" valign="middle"><?php echo $_smarty_tpl->tpl_vars['widget']->value['widgetTitle'];?>
 </td>
                                   
				    <td class=" col" align="left" valign="middle" width="15%"><?php echo $_smarty_tpl->tpl_vars['widget']->value['widgetDisplayedOn'];?>
 </td>	
                                     <td class=" col" align="left" valign="middle" width="7%"><?php echo $_smarty_tpl->tpl_vars['widget']->value['brandName'];?>
 </td>
				  <td align="left" valign="middle" width="20%" class="w-date"><?php if ($_smarty_tpl->tpl_vars['widget']->value['widgetStartDate']!='0000-00-00'&&$_smarty_tpl->tpl_vars['widget']->value['widgetEndDate']!='0000-00-00'){?><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['widget']->value['widgetStartDate'],$_smarty_tpl->tpl_vars['date_format']->value);?>
 <span class="txt-fade" >to</span> <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['widget']->value['widgetEndDate'],$_smarty_tpl->tpl_vars['date_format']->value);?>
<?php }else{ ?>-<?php }?></td>	
                   
                    <td class=" col" align="left" valign="middle" width="100">
                                  <?php if ($_smarty_tpl->tpl_vars['widget']->value['widgetPlatform']=='desktop'){?> 
                                    <?php echo $_smarty_tpl->tpl_vars['language']->value['lblDesktop'];?>

                                  <?php }elseif($_smarty_tpl->tpl_vars['widget']->value['widgetPlatform']=='mobile'){?> 
                                          <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMobile'];?>

                                    <?php }else{ ?>
                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMobileApp'];?>

                                    <?php }?>
                    
                                    </td>
		
                                   <td align="left" valign="top" width="100">
                                   <div class="col">									  	
					<?php if ($_smarty_tpl->tpl_vars['viewPrivilege']->value){?>		
					<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"widget/view/id/".($_smarty_tpl->tpl_vars['widgetID']->value)."/",'class'=>"preview icon-set",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblView']),'caption'=>'','history'=>"yes"),$_smarty_tpl);?>

					<?php }?>
					<?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value||$_smarty_tpl->tpl_vars['editPrivilege']->value){?>	
					<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>			  
						<?php if ($_smarty_tpl->tpl_vars['widget']->value['status']=="A"){?>
							<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('title'=>"Change Status",'class'=>"changeStatus status-active icon-set",'id'=>($_smarty_tpl->tpl_vars['widgetID']->value),'rel'=>"I"),$_smarty_tpl);?>
  
						<?php }elseif($_smarty_tpl->tpl_vars['widget']->value['status']=="I"){?>
							<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('title'=>"Change Status",'class'=>"changeStatus status-inactive icon-set",'id'=>($_smarty_tpl->tpl_vars['widgetID']->value),'rel'=>"A"),$_smarty_tpl);?>

						<?php }?>
						<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"widget/edit/id/".($_smarty_tpl->tpl_vars['widgetID']->value)."/",'class'=>"edit02 cboxElement icon-set",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblEdit']),'caption'=>'','history'=>"yes"),$_smarty_tpl);?>

					<?php }?>
					<?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
						<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('confirm'=>($_smarty_tpl->tpl_vars['language']->value['msgDeleteItem']),'confirm_head'=>$_smarty_tpl->tpl_vars['language']->value['lblDelete'],'href'=>"widget/destroy/id/".($_smarty_tpl->tpl_vars['widgetID']->value)."/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete']),'class'=>"delete02 delete_button icon-set",'widgetID'=>($_smarty_tpl->tpl_vars['widgetID']->value)),$_smarty_tpl);?>

					<?php }?> 
				
				<?php }?>	
</div>
      </td>
	    </tr>
                            </table></div>
                            </div>
			</li>
            <?php } ?>  
          <?php $_smarty_tpl->tpl_vars = $saved_tpl_vars;}}?>

          <?php smarty_template_function_pdtWidget($_smarty_tpl,array('data'=>$_smarty_tpl->tpl_vars['listWidget']->value));?>
 <!--menu function calling-->
              </ul>
	    </div>
               <span class="fixing_left bottom_records"> </span>
                <div class="clear"></div>
          <?php }?>
        <!--End:Table Listing-->
      </div>
      <!--End:Border 3-->
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>
</div>
    <!--End:Border 2-->
     </div>
  <!--End: left Block-->
  <div class="clear"></div>
</div>
<!--***********************************************************************END CONTAINER SECTION****************************************************-->
<!--End:Content Container-->
<?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
</div>
<!--End:Outer Container-->

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

<script type="text/javascript">
	
	$(document).ready(function(){
		$(".date-field").datepicker();
	});
	
</script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/widgetlist.page.js"></script>
<script type="text/javascript">
var lblWidgetPrioritySuccess="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblwidgetPrioritySuccess'];?>
";
var msgDeleteItem	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgDeleteItem'];?>
';
var msgSelectItem	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectItem'];?>
';
var lblSelectAction			= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectAction'];?>
';
var msgSelectSearchCriteria	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectSearchCriteria'];?>
';
var lblSelectItem			= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectItem'];?>
';
var widgetType			= '<?php echo $_smarty_tpl->tpl_vars['widgetDisplayedOn']->value;?>
';
</script>
<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->messages_script(array('id'=>"common_message"),$_smarty_tpl);?>

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