<?php
/* Smarty version 4.3.2, created on 2024-04-08 17:40:18
  from '/var/www/html/public/legacy/themes/suite8/include/ListView/ListViewGeneric.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.2',
  'unifunc' => 'content_66142c0239bfb3_35033813',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'c52762d1bd2c181341eb88bf9f0763f46b6e11d7' => 
    array (
      0 => '/var/www/html/public/legacy/themes/suite8/include/ListView/ListViewGeneric.tpl',
      1 => 1709743133,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:include/ListView/ListViewColumnsFilterDialog.tpl' => 1,
    'file:include/ListView/ListViewSearchLink.tpl' => 1,
    'file:themes/suite8/include/ListView/ListViewPaginationTop.tpl' => 1,
    'file:themes/suite8/include/ListView/ListViewPaginationBottom.tpl' => 1,
  ),
),false)) {
function content_66142c0239bfb3_35033813 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/function.sugar_include.php','function'=>'smarty_function_sugar_include',),1=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/function.sugar_getjspath.php','function'=>'smarty_function_sugar_getjspath',),2=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/modifier.replace.php','function'=>'smarty_modifier_replace',),3=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/function.counter.php','function'=>'smarty_function_counter',),4=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/function.sugar_translate.php','function'=>'smarty_function_sugar_translate',),5=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/function.sugar_getimage.php','function'=>'smarty_function_sugar_getimage',),6=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/function.convert_link.php','function'=>'smarty_function_convert_link',),7=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/function.sugar_ajax_url.php','function'=>'smarty_function_sugar_ajax_url',),8=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/function.sugar_evalcolumn_old.php','function'=>'smarty_function_sugar_evalcolumn_old',),9=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/function.sugar_field.php','function'=>'smarty_function_sugar_field',),));
echo smarty_function_sugar_include(array('include'=>$_smarty_tpl->tpl_vars['includes']->value),$_smarty_tpl);?>

<?php $_smarty_tpl->_subTemplateRender('file:include/ListView/ListViewColumnsFilterDialog.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
echo '<script'; ?>
 type='text/javascript' src='<?php echo smarty_function_sugar_getjspath(array('file'=>'include/javascript/popup_helper.js'),$_smarty_tpl);?>
'><?php echo '</script'; ?>
>


<?php echo '<script'; ?>
>

	$(document).ready(function(){
	    $("ul.clickMenu").each(function(index, node){
	  		$(node).sugarActionMenu();
	  	});

        $('.selectActionsDisabled').children().each(function(index) {
            $(this).attr('onclick','').unbind('click');
        });

        var selectedTopValue = $("#selectCountTop").attr("value");
        if(typeof(selectedTopValue) != "undefined" && selectedTopValue != "0"){
        	sugarListView.prototype.toggleSelected();
        }
	});

<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_assignInScope('currentModule', $_smarty_tpl->tpl_vars['pageData']->value['bean']['moduleDir']);
$_smarty_tpl->_assignInScope('singularModule', $_smarty_tpl->tpl_vars['moduleListSingular']->value[$_smarty_tpl->tpl_vars['currentModule']->value]);
$_smarty_tpl->_assignInScope('moduleName', $_smarty_tpl->tpl_vars['moduleList']->value[$_smarty_tpl->tpl_vars['currentModule']->value]);
$_smarty_tpl->_assignInScope('hideTable', false);?>

<?php if ($_smarty_tpl->tpl_vars['form']->value['headerTpl']) {?>
    <?php echo smarty_function_sugar_include(array('type'=>"smarty",'file'=>$_smarty_tpl->tpl_vars['form']->value['headerTpl']),$_smarty_tpl);?>

<?php }?>

<?php if (!(isset($_smarty_tpl->tpl_vars['data']->value)) || (count($_smarty_tpl->tpl_vars['data']->value) == 0)) {?>
	<?php $_smarty_tpl->_assignInScope('hideTable', true);?>
	<div class="list view listViewEmpty">
        <?php if ($_smarty_tpl->tpl_vars['showFilterIcon']->value) {?>
			<div class="filterContainer">
                <?php $_smarty_tpl->_subTemplateRender('file:include/ListView/ListViewSearchLink.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
			</div>
        <?php }?>
		<?php if ($_smarty_tpl->tpl_vars['displayEmptyDataMesssages']->value) {?>
        <?php if (strlen($_smarty_tpl->tpl_vars['query']->value) == 0) {?>
                <?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', "createLink", null);?><a href="?module=<?php echo $_smarty_tpl->tpl_vars['pageData']->value['bean']['moduleDir'];?>
&action=EditView&return_module=<?php echo $_smarty_tpl->tpl_vars['pageData']->value['bean']['moduleDir'];?>
&return_action=DetailView"><?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_CREATE_BUTTON_LABEL'];?>
</a><?php $_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
                <?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', "importLink", null);?><a href="?module=Import&action=Step1&import_module=<?php echo $_smarty_tpl->tpl_vars['pageData']->value['bean']['moduleDir'];?>
&return_module=<?php echo $_smarty_tpl->tpl_vars['pageData']->value['bean']['moduleDir'];?>
&return_action=index"><?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_IMPORT'];?>
</a><?php $_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
                <?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', "helpLink", null);?><a target="_blank" href='?module=Administration&action=SupportPortal&view=documentation&version=<?php echo $_smarty_tpl->tpl_vars['sugar_info']->value['sugar_version'];?>
&edition=<?php echo $_smarty_tpl->tpl_vars['sugar_info']->value['sugar_flavor'];?>
&lang=&help_module=<?php echo $_smarty_tpl->tpl_vars['currentModule']->value;?>
&help_action=&key='><?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_CLICK_HERE'];?>
</a><?php $_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>

			<?php if (!((isset($_smarty_tpl->tpl_vars['options']->value['hide_edit_link'])) && $_smarty_tpl->tpl_vars['options']->value['hide_edit_link'] === true) && !empty($_smarty_tpl->tpl_vars['quickViewLinks']->value)) {?>
				<p class="msg"> <?php echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['APP']->value['MSG_EMPTY_LIST_VIEW_NO_RESULTS'],"<item2>",$_smarty_tpl->tpl_vars['createLink']->value),"<item3>",$_smarty_tpl->tpl_vars['importLink']->value);?>
 </p>
			<?php }?>

        <?php } elseif ($_smarty_tpl->tpl_vars['query']->value == "-advanced_search") {?>
            <p class="msg emptyResults">
                <?php echo $_smarty_tpl->tpl_vars['APP']->value['MSG_LIST_VIEW_NO_RESULTS_CHANGE_CRITERIA'];?>

            </p>
        <?php } else { ?>
            <p class="msg">
                <?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', "quotedQuery", null);?>"<?php echo $_smarty_tpl->tpl_vars['query']->value;?>
"<?php $_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
                <?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['APP']->value['MSG_LIST_VIEW_NO_RESULTS'],"<item1>",$_smarty_tpl->tpl_vars['quotedQuery']->value);?>

            </p>
			<?php if ($_smarty_tpl->tpl_vars['pageData']->value) {?>
            <p class="submsg">
                <a href="?module=<?php echo $_smarty_tpl->tpl_vars['pageData']->value['bean']['moduleDir'];?>
&action=EditView&return_module=<?php echo $_smarty_tpl->tpl_vars['pageData']->value['bean']['moduleDir'];?>
&return_action=DetailView">
                    <?php echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['APP']->value['MSG_LIST_VIEW_NO_RESULTS_SUBMSG'],"<item1>",$_smarty_tpl->tpl_vars['quotedQuery']->value),"<item2>",$_smarty_tpl->tpl_vars['singularModule']->value);?>

                </a>
            </p>
			<?php }?>
        <?php }?>
    <?php } else { ?>
        <p class="msg">
            <?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_NO_DATA'];?>

        </p>
	<?php }?>
	</div>
<?php }
echo $_smarty_tpl->tpl_vars['multiSelectData']->value;?>

<?php if ($_smarty_tpl->tpl_vars['hideTable']->value == false) {?>
	<div class="list-view-rounded-corners">
		<table cellpadding='0' cellspacing='0' border='0' class='list view table-responsive'>
	<thead>
		<?php $_smarty_tpl->_assignInScope('link_select_id', "selectLinkTop");?>
		<?php $_smarty_tpl->_assignInScope('link_action_id', "actionLinkTop");?>
		<?php $_smarty_tpl->_assignInScope('actionsLink', $_smarty_tpl->tpl_vars['actionsLinkTop']->value);?>
		<?php $_smarty_tpl->_assignInScope('selectLink', $_smarty_tpl->tpl_vars['selectLinkTop']->value);?>
		<?php $_smarty_tpl->_assignInScope('action_menu_location', "top");?>

		<?php $_smarty_tpl->_subTemplateRender('file:themes/suite8/include/ListView/ListViewPaginationTop.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

		<tr height='20'>
			<?php if ($_smarty_tpl->tpl_vars['prerow']->value) {?>
				<th class="td_alt">&nbsp;</th>
			<?php }?>
			<?php if (!((isset($_smarty_tpl->tpl_vars['options']->value['hide_edit_link'])) && $_smarty_tpl->tpl_vars['options']->value['hide_edit_link'] === true) && !empty($_smarty_tpl->tpl_vars['quickViewLinks']->value)) {?>
				<th class='td_alt quick_view_links'>&nbsp;</th>
			<?php }?>
			<?php echo smarty_function_counter(array('start'=>0,'name'=>"colCounter",'print'=>false,'assign'=>"colCounter"),$_smarty_tpl);?>

            <?php $_smarty_tpl->_assignInScope('datahide', "xs sm");?>
			<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['displayColumns']->value, 'params', false, 'colHeader');
$_smarty_tpl->tpl_vars['params']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['colHeader']->value => $_smarty_tpl->tpl_vars['params']->value) {
$_smarty_tpl->tpl_vars['params']->do_else = false;
?>
                <?php if ($_smarty_tpl->tpl_vars['colCounter']->value == '3') {
$_smarty_tpl->_assignInScope('datahide', "xs sm");
}?>
                <?php if ($_smarty_tpl->tpl_vars['colCounter']->value == '5') {
$_smarty_tpl->_assignInScope('datahide', "md");
}?>

				<?php if ($_smarty_tpl->tpl_vars['colCounter']->value == '0') {?>
					<?php $_smarty_tpl->_assignInScope('hide', '');?>
				<?php } elseif ($_smarty_tpl->tpl_vars['colHeader']->value == 'NAME') {?>
					<?php $_smarty_tpl->_assignInScope('hide', '');?>
				<?php } elseif ($_smarty_tpl->tpl_vars['colCounter']->value > '10') {?>
					<?php $_smarty_tpl->_assignInScope('hide', "hidden-xs hidden-sm hidden-md");?>
				<?php } elseif ($_smarty_tpl->tpl_vars['colCounter']->value > '4') {?>
					<?php $_smarty_tpl->_assignInScope('hide', "hidden-xs hidden-sm");?>
				<?php } elseif ($_smarty_tpl->tpl_vars['colCounter']->value > '0') {?>
					<?php $_smarty_tpl->_assignInScope('hide', "hidden-xs");?>
				<?php } else { ?>
					<?php $_smarty_tpl->_assignInScope('hide', '');?>
				<?php }?>
                <?php if ($_smarty_tpl->tpl_vars['colHeader']->value == 'NAME' || $_smarty_tpl->tpl_vars['params']->value['bold']) {?>
					<th scope='col' data-toggle="true" class="<?php echo $_smarty_tpl->tpl_vars['hide']->value;?>
">
				<?php } else { ?>
					<th scope='col' data-breakpoints="<?php echo $_smarty_tpl->tpl_vars['datahide']->value;?>
" class="<?php echo $_smarty_tpl->tpl_vars['hide']->value;?>
">
				<?php }?>
						<div>
						<?php if ((($tmp = $_smarty_tpl->tpl_vars['params']->value['sortable'] ?? null)===null||$tmp==='' ? true ?? null : $tmp)) {?>
							<?php if ($_smarty_tpl->tpl_vars['params']->value['url_sort']) {?>
								<a href='<?php echo $_smarty_tpl->tpl_vars['pageData']->value['urls']['orderBy'];
echo mb_strtolower((string) (($tmp = $_smarty_tpl->tpl_vars['params']->value['orderBy'] ?? null)===null||$tmp==='' ? $_smarty_tpl->tpl_vars['colHeader']->value ?? null : $tmp), 'UTF-8');?>
' class='listViewThLinkS1'>
							<?php } else { ?>
								<?php if (mb_strtolower((string) (($tmp = $_smarty_tpl->tpl_vars['params']->value['orderBy'] ?? null)===null||$tmp==='' ? $_smarty_tpl->tpl_vars['colHeader']->value ?? null : $tmp), 'UTF-8') == $_smarty_tpl->tpl_vars['pageData']->value['ordering']['orderBy']) {?>
									<a href='javascript:sListView.order_checks("<?php echo (($tmp = $_smarty_tpl->tpl_vars['pageData']->value['ordering']['sortOrder'] ?? null)===null||$tmp==='' ? 'ASCerror' ?? null : $tmp);?>
", "<?php echo mb_strtolower((string) (($tmp = $_smarty_tpl->tpl_vars['params']->value['orderBy'] ?? null)===null||$tmp==='' ? $_smarty_tpl->tpl_vars['colHeader']->value ?? null : $tmp), 'UTF-8');?>
" , "<?php echo $_smarty_tpl->tpl_vars['pageData']->value['bean']['moduleDir'];
echo "2_";
echo mb_strtoupper((string) $_smarty_tpl->tpl_vars['pageData']->value['bean']['objectName'] ?? '', 'UTF-8');
echo "_ORDER_BY";?>
")' class='listViewThLinkS1'>
								<?php } else { ?>
									<a href='javascript:sListView.order_checks("ASC", "<?php echo mb_strtolower((string) (($tmp = $_smarty_tpl->tpl_vars['params']->value['orderBy'] ?? null)===null||$tmp==='' ? $_smarty_tpl->tpl_vars['colHeader']->value ?? null : $tmp), 'UTF-8');?>
" , "<?php echo $_smarty_tpl->tpl_vars['pageData']->value['bean']['moduleDir'];
echo "2_";
echo mb_strtoupper((string) $_smarty_tpl->tpl_vars['pageData']->value['bean']['objectName'] ?? '', 'UTF-8');
echo "_ORDER_BY";?>
")' class='listViewThLinkS1'>
								<?php }?>
							<?php }?>
							<?php if ((isset($_smarty_tpl->tpl_vars['params']->value['hide_header_label'])) && $_smarty_tpl->tpl_vars['params']->value['hide_header_label'] == true) {?>
							<?php } else { ?>
							<?php echo smarty_function_sugar_translate(array('label'=>$_smarty_tpl->tpl_vars['params']->value['label'],'module'=>$_smarty_tpl->tpl_vars['pageData']->value['bean']['moduleDir']),$_smarty_tpl);?>

						&nbsp;&nbsp;  <?php }?>
							<?php if (mb_strtolower((string) (($tmp = $_smarty_tpl->tpl_vars['params']->value['orderBy'] ?? null)===null||$tmp==='' ? $_smarty_tpl->tpl_vars['colHeader']->value ?? null : $tmp), 'UTF-8') == $_smarty_tpl->tpl_vars['pageData']->value['ordering']['orderBy']) {?>
								<?php if ($_smarty_tpl->tpl_vars['pageData']->value['ordering']['sortOrder'] == 'ASC') {?>
									<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', "imageName", null);?>arrow_down.<?php echo $_smarty_tpl->tpl_vars['arrowExt']->value;
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
									<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', "alt_sort", null);
echo smarty_function_sugar_translate(array('label'=>'LBL_ALT_SORT_DESC'),$_smarty_tpl);
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
									<span class="sort" title="<?php echo $_smarty_tpl->tpl_vars['alt_sort']->value;?>
"><?php echo smarty_function_sugar_getimage(array('name'=>"sort_ascend"),$_smarty_tpl);?>
</span>
								<?php } else { ?>
									<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', "imageName", null);?>arrow_up.<?php echo $_smarty_tpl->tpl_vars['arrowExt']->value;
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
									<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', "alt_sort", null);
echo smarty_function_sugar_translate(array('label'=>'LBL_ALT_SORT_ASC'),$_smarty_tpl);
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
									<span class="sort "title="<?php echo $_smarty_tpl->tpl_vars['alt_sort']->value;?>
"><?php echo smarty_function_sugar_getimage(array('name'=>"sort_descend"),$_smarty_tpl);?>
</span>
								<?php }?>
							<?php } else { ?>
								<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', "imageName", null);?>arrow.<?php echo $_smarty_tpl->tpl_vars['arrowExt']->value;
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
								<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', "alt_sort", null);
echo smarty_function_sugar_translate(array('label'=>'LBL_ALT_SORT'),$_smarty_tpl);
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
								<span class="sort" title="<?php echo $_smarty_tpl->tpl_vars['alt_sort']->value;?>
"><?php echo smarty_function_sugar_getimage(array('name'=>"sort"),$_smarty_tpl);?>
</span>
							<?php }?>
							</a>
						<?php } else { ?>
							<?php if (!(isset($_smarty_tpl->tpl_vars['params']->value['noHeader'])) || $_smarty_tpl->tpl_vars['params']->value['noHeader'] == false) {?>
                                <?php if ((isset($_smarty_tpl->tpl_vars['params']->value['hide_header_label'])) && $_smarty_tpl->tpl_vars['params']->value['hide_header_label'] == true) {?>
                                <?php } else { ?>
                                    <?php echo smarty_function_sugar_translate(array('label'=>$_smarty_tpl->tpl_vars['params']->value['label'],'module'=>$_smarty_tpl->tpl_vars['pageData']->value['bean']['moduleDir']),$_smarty_tpl);?>

									<?php if (mb_strtolower((string) (($tmp = $_smarty_tpl->tpl_vars['params']->value['orderBy'] ?? null)===null||$tmp==='' ? $_smarty_tpl->tpl_vars['colHeader']->value ?? null : $tmp), 'UTF-8') == $_smarty_tpl->tpl_vars['pageData']->value['ordering']['orderBy'] && $_smarty_tpl->tpl_vars['params']->value['force_show_sort_direction']) {?>
										<?php if ($_smarty_tpl->tpl_vars['pageData']->value['ordering']['sortOrder'] == 'ASC') {?>
											<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', "imageName", null);?>arrow_down.<?php echo $_smarty_tpl->tpl_vars['arrowExt']->value;
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
											<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', "alt_sort", null);
echo smarty_function_sugar_translate(array('label'=>'LBL_ALT_SORT_DESC'),$_smarty_tpl);
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
											<span class="suitepicon suitepicon-action-sorting-ascending" title="<?php echo $_smarty_tpl->tpl_vars['alt_sort']->value;?>
"></span>
										<?php } else { ?>
											<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', "imageName", null);?>arrow_up.<?php echo $_smarty_tpl->tpl_vars['arrowExt']->value;
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
											<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', "alt_sort", null);
echo smarty_function_sugar_translate(array('label'=>'LBL_ALT_SORT_ASC'),$_smarty_tpl);
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
											<span class="suitepicon suitepicon-action-sorting-descending" title="<?php echo $_smarty_tpl->tpl_vars['alt_sort']->value;?>
"></span>
										<?php }?>
									<?php }?>
							&nbsp;&nbsp;  <?php }?>
							<?php }?>
						<?php }?>
						</div>
					</th>
				<?php echo smarty_function_counter(array('name'=>"colCounter"),$_smarty_tpl);?>

			<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
						<th><?php echo $_smarty_tpl->tpl_vars['pageData']->value['additionalDetails'][$_smarty_tpl->tpl_vars['id']->value];?>
</th>
		</tr>
	</thead>
	<tbody>
		<?php echo smarty_function_counter(array('start'=>$_smarty_tpl->tpl_vars['pageData']->value['offsets']['current'],'print'=>false,'assign'=>"offset",'name'=>"offset"),$_smarty_tpl);?>

		<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['data']->value, 'rowData', false, 'id', 'rowIteration', array (
  'iteration' => true,
));
$_smarty_tpl->tpl_vars['rowData']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['id']->value => $_smarty_tpl->tpl_vars['rowData']->value) {
$_smarty_tpl->tpl_vars['rowData']->do_else = false;
$_smarty_tpl->tpl_vars['__smarty_foreach_rowIteration']->value['iteration']++;
?>
		    <?php echo smarty_function_counter(array('name'=>"offset",'print'=>false),$_smarty_tpl);?>

	        <?php $_smarty_tpl->_assignInScope('scope_row', true);?>

			<?php if ((1 & (isset($_smarty_tpl->tpl_vars['__smarty_foreach_rowIteration']->value['iteration']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_rowIteration']->value['iteration'] : null))) {?>
				<?php $_smarty_tpl->_assignInScope('_rowColor', $_smarty_tpl->tpl_vars['rowColor']->value[0]);?>
			<?php } else { ?>
				<?php $_smarty_tpl->_assignInScope('_rowColor', $_smarty_tpl->tpl_vars['rowColor']->value[1]);?>
			<?php }?>
			<tr height='20' class='<?php echo $_smarty_tpl->tpl_vars['_rowColor']->value;?>
S1'>
				<?php if ($_smarty_tpl->tpl_vars['prerow']->value) {?>
				<td>
				 <?php if (!$_smarty_tpl->tpl_vars['is_admin']->value && $_smarty_tpl->tpl_vars['is_admin_for_user']->value && $_smarty_tpl->tpl_vars['rowData']->value['IS_ADMIN'] == 1) {?>
						<input type='checkbox' disabled="disabled" class='listview-checkbox' value='<?php echo $_smarty_tpl->tpl_vars['rowData']->value['ID'];?>
'>
				 <?php } else { ?>
	                    <input title="<?php echo smarty_function_sugar_translate(array('label'=>'LBL_SELECT_THIS_ROW_TITLE'),$_smarty_tpl);?>
" onclick='sListView.check_item(this, document.MassUpdate)' type='checkbox' class='listview-checkbox' name='mass[]' value='<?php echo $_smarty_tpl->tpl_vars['rowData']->value['ID'];?>
'>
				 <?php }?>
				</td>
				<?php }?>
				<?php if (!empty($_smarty_tpl->tpl_vars['quickViewLinks']->value)) {?>
	            <?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', 'linkModule', null);
if ($_smarty_tpl->tpl_vars['params']->value['dynamic_module']) {
echo $_smarty_tpl->tpl_vars['rowData']->value[$_smarty_tpl->tpl_vars['params']->value['dynamic_module']];
} else {
echo $_smarty_tpl->tpl_vars['pageData']->value['bean']['moduleDir'];
}
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
	            <?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', 'action', null);
if ($_smarty_tpl->tpl_vars['act']->value) {
echo $_smarty_tpl->tpl_vars['act']->value;
} else { ?>EditView<?php }
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
				<?php if ((isset($_smarty_tpl->tpl_vars['options']->value['hide_edit_link'])) && $_smarty_tpl->tpl_vars['options']->value['hide_edit_link'] === true) {?>
				<?php } else { ?>
					<td>
                        <?php if ($_smarty_tpl->tpl_vars['pageData']->value['rowAccess'][$_smarty_tpl->tpl_vars['id']->value]['edit'] && !empty($_smarty_tpl->tpl_vars['quickViewLinks']->value)) {?>
							<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', 'originalUrl', null);?>index.php?module=<?php echo $_smarty_tpl->tpl_vars['linkModule']->value;?>
&offset=<?php echo $_smarty_tpl->tpl_vars['offset']->value;?>
&stamp=<?php echo $_smarty_tpl->tpl_vars['pageData']->value['stamp'];?>
&return_module=<?php echo $_smarty_tpl->tpl_vars['linkModule']->value;?>
&action=<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
&record=<?php echo $_smarty_tpl->tpl_vars['rowData']->value['ID'];
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
							<a class="edit-link" title='<?php echo $_smarty_tpl->tpl_vars['editLinkString']->value;?>
' id="edit-<?php echo $_smarty_tpl->tpl_vars['rowData']->value['ID'];?>
"
							   href="<?php echo smarty_function_convert_link(array('link'=>$_smarty_tpl->tpl_vars['originalUrl']->value),$_smarty_tpl);?>
"
							>
                                <?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'tmp1', 'alt_edit', null);
echo smarty_function_sugar_translate(array('label'=>"LNK_EDIT"),$_smarty_tpl);
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
								<span class="suitepicon suitepicon-action-edit"></span></a>
                        <?php }?>
					</td>
				<?php }?>

				<?php }?>
				<?php echo smarty_function_counter(array('start'=>0,'name'=>"colCounter",'print'=>false,'assign'=>"colCounter"),$_smarty_tpl);?>

				<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['displayColumns']->value, 'params', false, 'col');
$_smarty_tpl->tpl_vars['params']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['col']->value => $_smarty_tpl->tpl_vars['params']->value) {
$_smarty_tpl->tpl_vars['params']->do_else = false;
?>
					<?php if ($_smarty_tpl->tpl_vars['colCounter']->value == '0') {?>
						<?php $_smarty_tpl->_assignInScope('hide', '');?>
					<?php } elseif ($_smarty_tpl->tpl_vars['col']->value == 'NAME') {?>
						<?php $_smarty_tpl->_assignInScope('hide', '');?>
					<?php } elseif ($_smarty_tpl->tpl_vars['colCounter']->value > '10') {?>
						<?php $_smarty_tpl->_assignInScope('hide', "hidden-xs hidden-sm hidden-md");?>
					<?php } elseif ($_smarty_tpl->tpl_vars['colCounter']->value > '4') {?>
						<?php $_smarty_tpl->_assignInScope('hide', "hidden-xs hidden-sm");?>
					<?php } elseif ($_smarty_tpl->tpl_vars['colCounter']->value > '0') {?>
						<?php $_smarty_tpl->_assignInScope('hide', "hidden-xs");?>
					<?php } else { ?>
						<?php $_smarty_tpl->_assignInScope('hide', '');?>
					<?php }?>
                    <?php echo $_smarty_tpl->tpl_vars['displayColumns']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_type']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_type']->value['index'] : null)];?>

				    <td <?php if ($_smarty_tpl->tpl_vars['scope_row']->value) {?> scope='row' <?php }?> align='<?php echo (($tmp = $_smarty_tpl->tpl_vars['params']->value['align'] ?? null)===null||$tmp==='' ? 'left' ?? null : $tmp);?>
' valign="top" type="<?php echo $_smarty_tpl->tpl_vars['displayColumns']->value[$_smarty_tpl->tpl_vars['col']->value]['type'];?>
" field="<?php echo mb_strtolower((string) $_smarty_tpl->tpl_vars['col']->value, 'UTF-8');?>
" class="<?php echo $_smarty_tpl->tpl_vars['hide']->value;?>
 <?php if ($_smarty_tpl->tpl_vars['inline_edit']->value && ($_smarty_tpl->tpl_vars['displayColumns']->value[$_smarty_tpl->tpl_vars['col']->value]['inline_edit'] == 1 || !(isset($_smarty_tpl->tpl_vars['displayColumns']->value[$_smarty_tpl->tpl_vars['col']->value]['inline_edit'])))) {?>inlineEdit<?php }
if (($_smarty_tpl->tpl_vars['params']->value['type'] == 'teamset')) {?>nowrap<?php }
if (preg_match('/PHONE/',$_smarty_tpl->tpl_vars['col']->value)) {?> phone<?php }?>"><?php if ($_smarty_tpl->tpl_vars['col']->value == 'NAME' || $_smarty_tpl->tpl_vars['params']->value['bold']) {?><b><?php }
if ($_smarty_tpl->tpl_vars['params']->value['link'] && !$_smarty_tpl->tpl_vars['params']->value['customCode']) {
$_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', 'linkModule', null);
if ($_smarty_tpl->tpl_vars['params']->value['dynamic_module']) {
echo $_smarty_tpl->tpl_vars['rowData']->value[$_smarty_tpl->tpl_vars['params']->value['dynamic_module']];
} else {
echo (($tmp = $_smarty_tpl->tpl_vars['params']->value['module'] ?? null)===null||$tmp==='' ? $_smarty_tpl->tpl_vars['pageData']->value['bean']['moduleDir'] ?? null : $tmp);
}
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);
$_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', 'action', null);
if ($_smarty_tpl->tpl_vars['act']->value) {
echo $_smarty_tpl->tpl_vars['act']->value;
} else { ?>DetailView<?php }
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);
$_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', 'record', null);
echo (($tmp = $_smarty_tpl->tpl_vars['rowData']->value[$_smarty_tpl->tpl_vars['params']->value['id']] ?? null)===null||$tmp==='' ? $_smarty_tpl->tpl_vars['rowData']->value['ID'] ?? null : $tmp);
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);
$_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', 'url', null);?>index.php?module=<?php echo $_smarty_tpl->tpl_vars['linkModule']->value;?>
&offset=<?php echo $_smarty_tpl->tpl_vars['offset']->value;?>
&stamp=<?php echo $_smarty_tpl->tpl_vars['pageData']->value['stamp'];?>
&return_module=<?php echo $_smarty_tpl->tpl_vars['linkModule']->value;?>
&action=<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
&record=<?php echo $_smarty_tpl->tpl_vars['record']->value;
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?><<?php echo (($tmp = $_smarty_tpl->tpl_vars['pageData']->value['tag'][$_smarty_tpl->tpl_vars['id']->value][$_smarty_tpl->tpl_vars['params']->value['ACLTag']] ?? null)===null||$tmp==='' ? $_smarty_tpl->tpl_vars['pageData']->value['tag'][$_smarty_tpl->tpl_vars['id']->value]['MAIN'] ?? null : $tmp);?>
 href="<?php echo smarty_function_sugar_ajax_url(array('url'=>$_smarty_tpl->tpl_vars['url']->value),$_smarty_tpl);?>
"><?php }
if ($_smarty_tpl->tpl_vars['params']->value['customCode']) {
echo smarty_function_sugar_evalcolumn_old(array('var'=>$_smarty_tpl->tpl_vars['params']->value['customCode'],'rowData'=>$_smarty_tpl->tpl_vars['rowData']->value),$_smarty_tpl);
} else {
echo smarty_function_sugar_field(array('parentFieldArray'=>$_smarty_tpl->tpl_vars['rowData']->value,'vardef'=>$_smarty_tpl->tpl_vars['params']->value,'displayType'=>'ListView','field'=>$_smarty_tpl->tpl_vars['col']->value),$_smarty_tpl);
}
if (empty($_smarty_tpl->tpl_vars['rowData']->value[$_smarty_tpl->tpl_vars['col']->value]) && empty($_smarty_tpl->tpl_vars['params']->value['customCode'])) {
}
if ($_smarty_tpl->tpl_vars['params']->value['link'] && !$_smarty_tpl->tpl_vars['params']->value['customCode']) {?></<?php echo (($tmp = $_smarty_tpl->tpl_vars['pageData']->value['tag'][$_smarty_tpl->tpl_vars['id']->value][$_smarty_tpl->tpl_vars['params']->value['ACLTag']] ?? null)===null||$tmp==='' ? $_smarty_tpl->tpl_vars['pageData']->value['tag'][$_smarty_tpl->tpl_vars['id']->value]['MAIN'] ?? null : $tmp);?>
><?php }
if ($_smarty_tpl->tpl_vars['inline_edit']->value && ($_smarty_tpl->tpl_vars['displayColumns']->value[$_smarty_tpl->tpl_vars['col']->value]['inline_edit'] == 1 || !(isset($_smarty_tpl->tpl_vars['displayColumns']->value[$_smarty_tpl->tpl_vars['col']->value]['inline_edit'])))) {?><div class="inlineEditIcon"><?php echo smarty_function_sugar_getimage(array('name'=>"inline_edit_icon.svg",'attr'=>'border="0" ','alt'=>((string)$_smarty_tpl->tpl_vars['alt_edit']->value)),$_smarty_tpl);?>
</div><?php }?></td>
	                <?php $_smarty_tpl->_assignInScope('scope_row', false);?>
					<?php echo smarty_function_counter(array('name'=>"colCounter"),$_smarty_tpl);?>


				<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
				<td align='right'><?php echo $_smarty_tpl->tpl_vars['pageData']->value['additionalDetails'][$_smarty_tpl->tpl_vars['id']->value];?>
</td>
		    	</tr>
		<?php
}
if ($_smarty_tpl->tpl_vars['rowData']->do_else) {
?>
		<tr height='20' class='<?php echo $_smarty_tpl->tpl_vars['rowColor']->value[0];?>
S1'>
		    <td colspan="<?php echo $_smarty_tpl->tpl_vars['colCount']->value;?>
">
		        <em><?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_NO_DATA'];?>
</em>
		    </td>
		</tr>
		<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
    <?php $_smarty_tpl->_assignInScope('link_select_id', "selectLinkBottom");?>
    <?php $_smarty_tpl->_assignInScope('link_action_id', "actionLinkBottom");?>
    <?php $_smarty_tpl->_assignInScope('selectLink', $_smarty_tpl->tpl_vars['selectLinkBottom']->value);?>
    <?php $_smarty_tpl->_assignInScope('actionsLink', $_smarty_tpl->tpl_vars['actionsLinkBottom']->value);?>
    <?php $_smarty_tpl->_assignInScope('action_menu_location', "bottom");?>
	</tbody>
	<tfoot>
    <?php $_smarty_tpl->_subTemplateRender('file:themes/suite8/include/ListView/ListViewPaginationBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
	</tfoot>
	</table></div>
<?php }
if ($_smarty_tpl->tpl_vars['contextMenus']->value) {
echo '<script'; ?>
 type="text/javascript">
<?php echo $_smarty_tpl->tpl_vars['contextMenuScript']->value;?>


function lvg_nav(m,id,act,offset,t){
  if (t.href.search(/#/) < 0) {
  }
    else{
        if(act=='pte'){
            act='ProjectTemplatesEditView';
        }
        else if(act=='d'){
            act='DetailView';
        }else if( act =='ReportsWizard'){
            act = 'ReportsWizard';
        }else{
            act='EditView';
        }
    
        url = 'index.php?module='+m+'&offset=' + offset + '&stamp=<?php echo $_smarty_tpl->tpl_vars['pageData']->value['stamp'];?>
&return_module='+m+'&action='+act+'&record='+id;
        t.href=url;
    
    }
}

    function lvg_dtails(id){
        return SUGAR.util.getAdditionalDetails( '<?php echo (($tmp = $_smarty_tpl->tpl_vars['pageData']->value['bean']['moduleDir'] ?? null)===null||$tmp==='' ? $_smarty_tpl->tpl_vars['params']->value['module'] ?? null : $tmp);?>
',id, 'adspan_'+id);}
<?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 type="text/javascript" src="include/InlineEditing/inlineEditing.js"><?php echo '</script'; ?>
>
<?php }?>


<?php if ($_smarty_tpl->tpl_vars['form']->value['footerTpl']) {?>
    <?php echo smarty_function_sugar_include(array('type'=>"smarty",'file'=>$_smarty_tpl->tpl_vars['form']->value['headerTpl']),$_smarty_tpl);?>

<?php }
}
}
