<?php /* Smarty version Smarty-3.1.7, created on 2020-12-09 10:50:07
         compiled from "/home/alfacent/testfabio.alfacenter.online/vtigercrm/includes/runtime/../../layouts/v7/modules/VGSListviewColors/SettingsList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:10960532325fd0abdfb775e8-53904320%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a443c5935568ff1d7c48b839e0b1097bd38c4bc8' => 
    array (
      0 => '/home/alfacent/testfabio.alfacenter.online/vtigercrm/includes/runtime/../../layouts/v7/modules/VGSListviewColors/SettingsList.tpl',
      1 => 1607510766,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10960532325fd0abdfb775e8-53904320',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'MODULE' => 0,
    'LAYOUTS_ARRAY' => 0,
    'LAYOUT' => 0,
    'WORKFLOW_CONDITION' => 0,
    'ALL_CONDITIONS' => 0,
    'ALL_CONDITION' => 0,
    'ANY_CONDITIONS' => 0,
    'ANY_CONDITION' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.7',
  'unifunc' => 'content_5fd0abdfbfa04',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5fd0abdfbfa04')) {function content_5fd0abdfbfa04($_smarty_tpl) {?>

<div class="col-sm-12 col-xs-12">
    <div style="margin-top: 2%; margin-left: 2%;"><h4><?php echo vtranslate('LBL_MODULE_NAME',$_smarty_tpl->tpl_vars['MODULE']->value);?>
</h4></div>
    <div style="width: 90%;margin: auto;margin-top: 2%;">
        <button class="btn btn-default" style="margin-bottom: 0.5em;" onclick="window.location.href='index.php?parent=Settings&module=VGSListviewColors&view=EditListviewColor'"><?php echo vtranslate('ADD_NEW',$_smarty_tpl->tpl_vars['MODULE']->value);?>
</button>

        <table class="table table-bordered listViewEntriesTable">
            <thead>
                <tr class="listViewHeaders">
                    <th> <?php echo vtranslate('MODULE_NAME',$_smarty_tpl->tpl_vars['MODULE']->value);?>
 </th>
                    <th> <?php echo vtranslate('DESCRIPTION',$_smarty_tpl->tpl_vars['MODULE']->value);?>
 </th>
                    <th> <?php echo vtranslate('CONDITIONS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
 </th>
                    <th> <?php echo vtranslate('COLOR',$_smarty_tpl->tpl_vars['MODULE']->value);?>
 </th>
                    <th> <?php echo vtranslate('ACTIONS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
 </th>

                </tr>
            </thead>
            <?php  $_smarty_tpl->tpl_vars['LAYOUT'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['LAYOUT']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LAYOUTS_ARRAY']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['LAYOUT']->key => $_smarty_tpl->tpl_vars['LAYOUT']->value){
$_smarty_tpl->tpl_vars['LAYOUT']->_loop = true;
?>
                
                <tr class="listViewEntries">
                    
                    <td class="listViewEntryValue" nowrap> <?php echo $_smarty_tpl->tpl_vars['LAYOUT']->value['module_name'];?>
</td>
                    <td class="listViewEntryValue" nowrap> <?php echo $_smarty_tpl->tpl_vars['LAYOUT']->value['description'];?>
 </td>
                    <td class="listViewEntryValue" nowrap> 
                        <?php $_smarty_tpl->tpl_vars['WORKFLOW_CONDITION'] = new Smarty_variable($_smarty_tpl->tpl_vars['LAYOUT']->value['conditions'], null, 0);?>
                        <?php $_smarty_tpl->tpl_vars['ALL_CONDITIONS'] = new Smarty_variable($_smarty_tpl->tpl_vars['WORKFLOW_CONDITION']->value['All'], null, 0);?>
                        <?php $_smarty_tpl->tpl_vars['ANY_CONDITIONS'] = new Smarty_variable($_smarty_tpl->tpl_vars['WORKFLOW_CONDITION']->value['Any'], null, 0);?>
                        <span><strong><?php echo vtranslate('All');?>
&nbsp;:&nbsp;&nbsp;&nbsp;</strong></span>
                        <?php if (is_array($_smarty_tpl->tpl_vars['ALL_CONDITIONS']->value)&&!empty($_smarty_tpl->tpl_vars['ALL_CONDITIONS']->value)){?>
                                <?php  $_smarty_tpl->tpl_vars['ALL_CONDITION'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ALL_CONDITION']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ALL_CONDITIONS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['allCounter']['iteration']=0;
foreach ($_from as $_smarty_tpl->tpl_vars['ALL_CONDITION']->key => $_smarty_tpl->tpl_vars['ALL_CONDITION']->value){
$_smarty_tpl->tpl_vars['ALL_CONDITION']->_loop = true;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['allCounter']['iteration']++;
?>
                                        <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['allCounter']['iteration']!=1){?>
                                                <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                        <?php }?>
                                        <span><?php echo $_smarty_tpl->tpl_vars['ALL_CONDITION']->value;?>
</span>
                                        <br>
                                <?php } ?>
                        <?php }else{ ?>
                                <?php echo vtranslate('LBL_NA');?>

                        <?php }?>
                        <br>
                        <span><strong><?php echo vtranslate('Any');?>
&nbsp;:&nbsp;</strong></span>
                        <?php if (is_array($_smarty_tpl->tpl_vars['ANY_CONDITIONS']->value)&&!empty($_smarty_tpl->tpl_vars['ANY_CONDITIONS']->value)){?>
                                <?php  $_smarty_tpl->tpl_vars['ANY_CONDITION'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ANY_CONDITION']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ANY_CONDITIONS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['anyCounter']['iteration']=0;
foreach ($_from as $_smarty_tpl->tpl_vars['ANY_CONDITION']->key => $_smarty_tpl->tpl_vars['ANY_CONDITION']->value){
$_smarty_tpl->tpl_vars['ANY_CONDITION']->_loop = true;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['anyCounter']['iteration']++;
?>
                                        <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['anyCounter']['iteration']!=1){?>
                                                <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                        <?php }?>
                                        <span><?php echo $_smarty_tpl->tpl_vars['ANY_CONDITION']->value;?>
</span>
                                        <br>
                                <?php } ?>
                        <?php }else{ ?>
                                <?php echo vtranslate('LBL_NA');?>

                        <?php }?>
                    </td>
                    <td class="listViewEntryValue" style="background-color: <?php echo $_smarty_tpl->tpl_vars['LAYOUT']->value['color'];?>
" nowrap> 
                    
                    </td>
                        
                    <td class="listViewEntryValue" nowrap>
                        <span class="col-lg-2" style="line-height: 30px;">
                            <a onclick="window.location.href='index.php?parent=Settings&module=VGSListviewColors&view=EditListviewColor&record=<?php echo $_smarty_tpl->tpl_vars['LAYOUT']->value['id'];?>
'"><i class="editAction glyphicon glyphicon-pencil cursorPointer" title="<?php echo vtranslate('LBL_EDIT',$_smarty_tpl->tpl_vars['MODULE']->value);?>
"></i></a>
                        </span>
                        <span class="col-lg-2" style="line-height: 30px;">
                            <a class="deleteRecordButton" id="<?php echo $_smarty_tpl->tpl_vars['LAYOUT']->value['id'];?>
"><i class="glyphicon glyphicon-trash cursorPointer" title="<?php echo vtranslate('LBL_DELETE',$_smarty_tpl->tpl_vars['MODULE']->value);?>
"></i></a>
                        </span>
                    </td>

                </tr>
            <?php } ?>
        </table>
    </div>
</div>
    
<?php }} ?>