function content_56755d06176cd($_smarty_tpl)
    {
        ?>
<div class="quickWidgetContainer accordion"><?php 
        $_smarty_tpl->tpl_vars['val'] = new Smarty_variable(1, null, 0);
        $_smarty_tpl->tpl_vars['SIDEBARWIDGET'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->_loop = false;
        $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['QUICK_LINKS']->value['SIDEBARWIDGET'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->key => $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value) {
            $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->_loop = true;
            $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->key;
            ?>
<div class="quickWidget"><div class="accordion-heading accordion-toggle quickWidgetHeader" data-target="#<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_sideBar_<?php 
            echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel());
            ?>
"data-toggle="collapse" data-parent="#quickWidgets" data-label="<?php 
            echo $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel();
            ?>
"data-widget-url="<?php 
            echo $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getUrl();
            ?>
" ><span class="pull-left"><img class="imageElement" data-rightimage="<?php 
            echo vimage_path('rightArrowWhite.png');
            ?>
" data-downimage="<?php 
            echo vimage_path('downArrowWhite.png');
            ?>
" src="<?php 
            echo vimage_path('rightArrowWhite.png');
            ?>
" /></span><h5 class="title widgetTextOverflowEllipsis pull-right" title="<?php 
            echo vtranslate($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
"><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</h5><div class="loadingImg hide pull-right"><div class="loadingWidgetMsg"><strong><?php 
            echo vtranslate('LBL_LOADING_WIDGET', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</strong></div></div><div class="clearfix"></div></div><div class="widgetContainer accordion-body collapse" id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_sideBar_<?php 
            echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel());
            ?>
" data-url="<?php 
            echo $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getUrl();
            ?>
"></div></div><?php 
        }
        ?>
</div><?php 
    }
    function content_5694b10795b54($_smarty_tpl)
    {
        ?>

<div class="quickLinksDiv"><?php 
        $_smarty_tpl->tpl_vars['SIDEBARLINK'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['SIDEBARLINK']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['QUICK_LINKS']->value['SIDEBARLINK'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['SIDEBARLINK']->key => $_smarty_tpl->tpl_vars['SIDEBARLINK']->value) {
            $_smarty_tpl->tpl_vars['SIDEBARLINK']->_loop = true;
            $_smarty_tpl->tpl_vars['SIDE_LINK_URL'] = new Smarty_variable(decode_html($_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getUrl()), null, 0);
            $_smarty_tpl->tpl_vars["EXPLODED_PARSE_URL"] = new Smarty_variable(explode('?', $_smarty_tpl->tpl_vars['SIDE_LINK_URL']->value), null, 0);
            $_smarty_tpl->tpl_vars["COUNT_OF_EXPLODED_URL"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['EXPLODED_PARSE_URL']->value), null, 0);
            if ($_smarty_tpl->tpl_vars['COUNT_OF_EXPLODED_URL']->value > 1) {
                $_smarty_tpl->tpl_vars["EXPLODED_URL"] = new Smarty_variable($_smarty_tpl->tpl_vars['EXPLODED_PARSE_URL']->value[$_smarty_tpl->tpl_vars['COUNT_OF_EXPLODED_URL']->value - 1], null, 0);
            }
            $_smarty_tpl->tpl_vars["PARSE_URL"] = new Smarty_variable(explode('&', $_smarty_tpl->tpl_vars['EXPLODED_URL']->value), null, 0);
            $_smarty_tpl->tpl_vars["CURRENT_LINK_VIEW"] = new Smarty_variable('view=' . $_smarty_tpl->tpl_vars['CURRENT_VIEW']->value, null, 0);
            $_smarty_tpl->tpl_vars["LINK_LIST_VIEW"] = new Smarty_variable(in_array($_smarty_tpl->tpl_vars['CURRENT_LINK_VIEW']->value, $_smarty_tpl->tpl_vars['PARSE_URL']->value), null, 0);
            $_smarty_tpl->tpl_vars["CURRENT_MODULE_NAME"] = new Smarty_variable('module=' . $_smarty_tpl->tpl_vars['MODULE']->value, null, 0);
            $_smarty_tpl->tpl_vars["IS_LINK_MODULE_NAME"] = new Smarty_variable(in_array($_smarty_tpl->tpl_vars['CURRENT_MODULE_NAME']->value, $_smarty_tpl->tpl_vars['PARSE_URL']->value), null, 0);
            ?>
<p onclick="window.location.href = '<?php 
            echo $_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getUrl();
            ?>
'" id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_sideBar_link_<?php 
            echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getLabel());
            ?>
"class="<?php 
            if ($_smarty_tpl->tpl_vars['LINK_LIST_VIEW']->value && $_smarty_tpl->tpl_vars['IS_LINK_MODULE_NAME']->value) {
                ?>
selectedQuickLink <?php 
            } else {
                ?>
unSelectedQuickLink<?php 
            }
            ?>
"><a class="quickLinks" href="<?php 
            echo $_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getUrl();
            ?>
"><strong><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</strong></a></p><?php 
        }
        ?>
</div><?php 
    }
    function content_553ed1ba08389($_smarty_tpl)
    {
        ?>
<div class="listViewTopMenuDiv"><div class="listViewActionsDiv row-fluid"><span class="btn-toolbar span4"><?php 
        $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEWBASIC'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->key => $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value) {
            $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = true;
            ?>
<span class="btn-group"><button id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_listView_basicAction_<?php 
            echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel());
            ?>
" class="btn addButton" <?php 
            if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), 'javascript:') === 0) {
                ?>
 onclick='<?php 
                echo substr($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), strlen("javascript:"));
                ?>
;'<?php 
            } else {
                ?>
 onclick='window.location.href="<?php 
                echo $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl();
                ?>
"'<?php 
            }
            ?>
><i class="icon-plus icon-white"></i>&nbsp;<strong><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</strong></button></span><?php 
        }
        ?>
</span><span class="btn-toolbar span4"><span class="customFilterMainSpan btn-group"></span></span><span class="hide filterActionImages pull-right"><i title="<?php 
        echo vtranslate('LBL_DENY', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
" data-value="deny" class="icon-ban-circle alignMiddle denyFilter filterActionImage pull-right"></i><i title="<?php 
        echo vtranslate('LBL_APPROVE', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
" data-value="approve" class="icon-ok alignMiddle approveFilter filterActionImage pull-right"></i><i title="<?php 
        echo vtranslate('LBL_DELETE', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
" data-value="delete" class="icon-trash alignMiddle deleteFilter filterActionImage pull-right"></i><i title="<?php 
        echo vtranslate('LBL_EDIT', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
" data-value="edit" class="icon-pencil alignMiddle editFilter filterActionImage pull-right"></i></span></div></div><?php 
    }
<?php if ($_valid && !is_callable('content_56059b37aa321')) {function content_56059b37aa321($_smarty_tpl) {?>
<div class="sidebarTitleBlock"><h3 class="titlePadding themeTextColor unSelectedQuickLink cursorPointer"><a href="index.php?module=Vtiger&parent=Settings&view=Index"><?php echo vtranslate('LBL_SETTINGS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</a></h3></div><!--div><input class='input-medium' type='text' name='settingsSearch' placeholder=<?php echo vtranslate("LBL_SEARCH_SETTINGS_PLACEHOLDER",$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
 ></div--><div class="quickWidgetContainer accordion" id="settingsQuickWidgetContainer"><?php  $_smarty_tpl->tpl_vars['MENU'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['MENU']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['SETTINGS_MENUS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['MENU']->key => $_smarty_tpl->tpl_vars['MENU']->value){
$_smarty_tpl->tpl_vars['MENU']->_loop = true;
?><div class="quickWidget"><div class="accordion-heading accordion-toggle quickWidgetHeader" data-parent="#settingsQuickWidgetContainer" data-target="#Settings_sideBar_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['MENU']->value->getLabel());?>
"data-toggle="collapse" data-parent="#quickWidgets"><span class="pull-left"><img class="imageElement" data-rightimage="<?php echo vimage_path('rightArrowWhite.png');?>
" data-downimage="<?php echo vimage_path('downArrowWhite.png');?>
" src="<?php if ($_smarty_tpl->tpl_vars['SELECTED_MENU']->value->get('blockid')==$_smarty_tpl->tpl_vars['MENU']->value->get('blockid')&&!empty($_smarty_tpl->tpl_vars['SELECTED_FIELDID']->value)){?><?php echo vimage_path('downArrowWhite.png');?>
<?php }else{ ?><?php echo vimage_path('rightArrowWhite.png');?>
<?php }?>" /></span><h5 class="title paddingLeft10px widgetTextOverflowEllipsis" title="<?php echo vtranslate($_smarty_tpl->tpl_vars['MENU']->value->getLabel(),$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
"><?php echo vtranslate($_smarty_tpl->tpl_vars['MENU']->value->getLabel(),$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</h5><div class="clearfix"></div></div><div  style="border-bottom: 1px solid black;" class="widgetContainer accordion-body <?php if ($_smarty_tpl->tpl_vars['SELECTED_MENU']->value->get('blockid')==$_smarty_tpl->tpl_vars['MENU']->value->get('blockid')&&!empty($_smarty_tpl->tpl_vars['SELECTED_FIELDID']->value)){?> in <?php }?> collapse" id="Settings_sideBar_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['MENU']->value->getLabel());?>
"><?php  $_smarty_tpl->tpl_vars['MENUITEM'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['MENUITEM']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['MENU']->value->getMenuItems(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['MENUITEM']->key => $_smarty_tpl->tpl_vars['MENUITEM']->value){
$_smarty_tpl->tpl_vars['MENUITEM']->_loop = true;
?><div class="<?php if ($_smarty_tpl->tpl_vars['MENUITEM']->value->getId()==$_smarty_tpl->tpl_vars['SELECTED_FIELDID']->value){?> selectedMenuItem selectedListItem<?php }?>" style="padding:7px;border-top:0px;"><div class="row-fluid menuItem"  data-actionurl="<?php echo $_smarty_tpl->tpl_vars['MENUITEM']->value->getPinUnpinActionUrl();?>
"><a href="<?php echo $_smarty_tpl->tpl_vars['MENUITEM']->value->getUrl();?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['MENUITEM']->value->getId();?>
" class="span9 menuItemLabel" data-menu-item="true" ><?php echo vtranslate($_smarty_tpl->tpl_vars['MENUITEM']->value->get('name'),$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</a><span class="span1">&nbsp;</span><img style="margin-right: 6%" id="<?php echo $_smarty_tpl->tpl_vars['MENUITEM']->value->getId();?>
_menuItem" data-pintitle="<?php echo vtranslate('LBL_PIN',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
" data-unpintitle="<?php echo vtranslate('LBL_UNPIN',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['MENUITEM']->value->getId();?>
" class="pinUnpinShortCut cursorPointer hide pull-right" data-unpinimageurl="<?php ob_start();?><?php echo vimage_path('unpin.png');?>
<?php $_tmp1=ob_get_clean();?><?php echo $_tmp1;?>
"  data-pinimageurl="<?php ob_start();?><?php echo vimage_path('pin.png');?>
<?php $_tmp2=ob_get_clean();?><?php echo $_tmp2;?>
" <?php if ($_smarty_tpl->tpl_vars['MENUITEM']->value->isPinned()){?> title="<?php echo vtranslate('LBL_UNPIN',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
" src="<?php echo vimage_path('unpin.png');?>
" data-action="unpin" <?php }else{ ?> title="<?php echo vtranslate('LBL_PIN',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
" src="<?php echo vimage_path('pin.png');?>
" data-action="pin" <?php }?> /><div class="clearfix"></div></div></div><?php } ?></div></div><?php } ?></div><div class="row-fluid"><button type="button" class="row-fluid extensionStorebtn" onclick='window.location.href="index.php?module=ExtensionStore&parent=Settings&view=ExtensionStore"'><?php echo vtranslate('LBL_EXTENSION_STORE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</button></div>
<?php }} ?>
<?php if ($_valid && !is_callable('content_56059e5cb0268')) {function content_56059e5cb0268($_smarty_tpl) {?>
<?php $_smarty_tpl->tpl_vars["MODULE_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name'), null, 0);?><input id="recordId" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();?>
" /><div class="detailViewContainer"><div class="row-fluid detailViewTitle"><div class="<?php if ($_smarty_tpl->tpl_vars['NO_PAGINATION']->value){?> span12 <?php }else{ ?> span10 <?php }?>"><div class="row-fluid"><div class="span5"><div class="row-fluid"><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("DetailViewHeaderTitle.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</div></div><div class="span7"><div class="pull-right detailViewButtoncontainer"><div class="btn-toolbar"><?php  $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->key => $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value){
$_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = true;
?><span class="btn-group"><button class="btn" id="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
_detailView_basicAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getLabel());?>
"<?php if ($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->isPageLoadLink()){?>onclick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();?>
'"<?php }else{ ?>onclick=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();?>
<?php }?>><strong><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong></button></span><?php } ?><?php if (count($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEW'])>0){?><span class="btn-group"><button class="btn dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);"><strong><?php echo vtranslate('LBL_MORE',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong>&nbsp;&nbsp;<i class="caret"></i></button><ul class="dropdown-menu pull-right"><?php  $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEW']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->key => $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value){
$_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->_loop = true;
?><?php if ($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel()==''){?><li class="divider"></li><?php }else{ ?><li id="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
_detailView_moreAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel());?>
"><a href=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getUrl();?>
 ><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a></li><?php }?><?php } ?></ul></span><?php }?><?php if (count($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWSETTING'])>0){?><span class="btn-group"><button class="btn dropdown-toggle" href="#" data-toggle="dropdown"><i class="icon-wrench" alt="<?php echo vtranslate('LBL_SETTINGS',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
" title="<?php echo vtranslate('LBL_SETTINGS',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
"></i>&nbsp;&nbsp;<i class="caret"></i></button><ul class="listViewSetting dropdown-menu"><?php  $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWSETTING']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->key => $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->value){
$_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->_loop = true;
?><li><a href=<?php echo $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->value->getUrl();?>
><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a></li><?php } ?></ul></span><?php }?></div></div></div></div></div><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['NO_PAGINATION']->value;?>
<?php $_tmp1=ob_get_clean();?><?php if (!$_tmp1){?><div class="span2 detailViewPagingButton"><span class="btn-group pull-right"><button class="btn" id="detailViewPreviousRecordButton" <?php if (empty($_smarty_tpl->tpl_vars['PREVIOUS_RECORD_URL']->value)){?> disabled="disabled" <?php }else{ ?> onclick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['PREVIOUS_RECORD_URL']->value;?>
'" <?php }?>><i class="icon-chevron-left"></i></button><button class="btn" id="detailViewNextRecordButton" <?php if (empty($_smarty_tpl->tpl_vars['NEXT_RECORD_URL']->value)){?> disabled="disabled" <?php }else{ ?> onclick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['NEXT_RECORD_URL']->value;?>
'" <?php }?>><i class="icon-chevron-right"></i></button></span></div><?php }?></div><div class="detailViewInfo row-fluid"><div class="<?php if ($_smarty_tpl->tpl_vars['NO_PAGINATION']->value){?> span12 <?php }else{ ?> span10 <?php }?> <?php if (!empty($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWTAB'])||!empty($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWRELATED'])){?> details <?php }?>"><form id="detailView" data-name-fields='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields());?>
' method="POST"><?php if (!empty($_smarty_tpl->tpl_vars['PICKLIST_DEPENDENCY_DATASOURCE']->value)){?><input type="hidden" name="picklistDependency" value="<?php echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_DEPENDENCY_DATASOURCE']->value);?>
"><?php }?><div class="contents">
<?php }} ?>
<?php if ($_valid && !is_callable('content_56081d0d8cd7f')) {function content_56081d0d8cd7f($_smarty_tpl) {?>
<?php $_smarty_tpl->tpl_vars["MODULE_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name'), null, 0);?><input id="recordId" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();?>
" /><div class="detailViewContainer"><div class="detailViewTitle" id="userPageHeader"><div class="row-fluid"><div class="span8"><span class="row-fluid marginLeftZero"><span class="logo span2"><?php  $_smarty_tpl->tpl_vars['IMAGE_INFO'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['IMAGE_INFO']->_loop = false;
 $_smarty_tpl->tpl_vars['ITER'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['RECORD']->value->getImageDetails(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['IMAGE_INFO']->key => $_smarty_tpl->tpl_vars['IMAGE_INFO']->value){
$_smarty_tpl->tpl_vars['IMAGE_INFO']->_loop = true;
 $_smarty_tpl->tpl_vars['ITER']->value = $_smarty_tpl->tpl_vars['IMAGE_INFO']->key;
?><?php if (!empty($_smarty_tpl->tpl_vars['IMAGE_INFO']->value['path'])&&!empty($_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'])){?><img src="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['path'];?>
_<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];?>
" data-image-id="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['id'];?>
"><?php }?><?php } ?></span><span class="span9"><span id="userHeading" class="row-fluid"><h3><?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getName();?>
</h3></span></span></span></div><div class="span4"><div class="row-fluid pull-right detailViewButtoncontainer"><div class="btn-toolbar pull-right"><?php  $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->key => $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value){
$_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = true;
?><div class="btn-group"><button class="btn"<?php if ($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->isPageLoadLink()){?>onclick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();?>
'"<?php }else{ ?>onclick=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();?>
<?php }?>><strong><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong></button></div><?php } ?><?php if (count($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEW'])>0){?><span class="btn-group"><button class="btn dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);"><strong><?php echo vtranslate('LBL_MORE',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong>&nbsp;&nbsp;<i class="caret"></i></button><ul class="dropdown-menu pull-right"><?php  $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEW']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->key => $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value){
$_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->_loop = true;
?><?php if ($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel()=='Delete'){?><?php if ($_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->isAdminUser()&&$_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->getId()!=$_smarty_tpl->tpl_vars['RECORD']->value->getId()){?><li id="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
_detailView_moreAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel());?>
"><a href=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getUrl();?>
 ><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a></li><?php }?><?php }else{ ?><li id="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
_detailView_moreAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel());?>
"><a href=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getUrl();?>
 ><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a></li><?php }?><?php } ?></ul></span><?php }?></div></div></div></div></div><div class="detailViewInfo userPreferences row-fluid"><div class="details span12"><form id="detailView" data-name-fields='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields());?>
'><div class="contents"><?php }} ?>
<?php if ($_valid && !is_callable('content_56081cc8a2092')) {function content_56081cc8a2092($_smarty_tpl) {?>
<div class="container-fluid"><div class="widget_header row-fluid"><h3><?php echo vtranslate($_smarty_tpl->tpl_vars['MODULE']->value,$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</h3></div><hr><div class="row-fluid"><span class="span4 btn-toolbar"><span class="btn-group listViewMassActions"><?php if (count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW'])>0){?><button class="btn dropdown-toggle" data-toggle="dropdown"><strong><?php echo vtranslate('LBL_ACTIONS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
</strong>&nbsp;&nbsp;<i class="caret"></i></button><ul class="dropdown-menu"><?php  $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->key => $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value){
$_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = true;
?><li id="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value;?>
_listView_advancedAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel());?>
"><a <?php if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(),'javascript:')===0){?> href="javascript:void(0);" onclick='<?php echo substr($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(),strlen("javascript:"));?>
;'<?php }else{ ?> href='<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl();?>
' <?php }?>><?php echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE']->value);?>
</a></li><?php } ?></ul><?php }?></span><?php  $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->key => $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value){
$_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = true;
?><span class="btn-group"><button class="btn addButton" <?php if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(),'javascript:')===0){?> onclick='<?php echo substr($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(),strlen("javascript:"));?>
;'<?php }else{ ?> onclick='window.location.href="<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl();?>
"' <?php }?>><i class="icon-plus"></i>&nbsp;<strong><?php echo vtranslate('LBL_ADD_RECORD',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</strong></button></span><?php } ?></span><div class="span4 btn-toolbar"><select class="select2" id="usersFilter" name="status" style="min-width:350px;"><option value="Active"><?php echo vtranslate('LBL_ACTIVE_USERS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option><option value="Inactive"><?php echo vtranslate('LBL_INACTIVE_USERS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option></select></div><span class="span4 btn-toolbar"><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path('ListViewActions.tpl',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</span></div><div class="listViewContentDiv" id="listViewContents">
<?php }} ?>
    function content_5685502d7e42e($_smarty_tpl)
    {
        ?>
<div class="listViewPageDiv"><div class="listViewTopMenuDiv"><div class="listViewActionsDiv row-fluid"><span class="btn-toolbar span4"><span class="btn-group listViewMassActions"><button class="btn dropdown-toggle" data-toggle="dropdown"><strong><?php 
        echo vtranslate('LBL_ACTIONS', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
</strong>&nbsp;&nbsp;<i class="caret"></i></button><ul class="dropdown-menu"><?php 
        $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->key => $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->value) {
            $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = true;
            ?>
<li id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_listView_massAction_<?php 
            echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel());
            ?>
"><a href="javascript:void(0);" <?php 
            if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(), 'javascript:') === 0) {
                ?>
onclick='<?php 
                echo substr($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(), strlen("javascript:"));
                ?>
;'<?php 
            } else {
                ?>
 onclick="Vtiger_List_Js.triggerMassAction('<?php 
                echo $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl();
                ?>
')"<?php 
            }
            ?>
 ><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</a></li><?php 
        }
        if (count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW']) > 0) {
            ?>
<li class="divider"></li><?php 
            $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->key => $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value) {
                $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = true;
                ?>
<li id="<?php 
                echo $_smarty_tpl->tpl_vars['MODULE']->value;
                ?>
_listView_advancedAction_<?php 
                echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel());
                ?>
"><a <?php 
                if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(), 'javascript:') === 0) {
                    ?>
 href="javascript:void(0);" onclick='<?php 
                    echo substr($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(), strlen("javascript:"));
                    ?>
;'<?php 
                } else {
                    ?>
 href='<?php 
                    echo $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl();
                    ?>
' <?php 
                }
                ?>
><?php 
                echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
                ?>
</a></li><?php 
            }
        }
        ?>
</ul></span><?php 
        $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEWBASIC'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->key => $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value) {
            $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = true;
            if ($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel() == 'LBL_ADD_RECORD') {
                $_smarty_tpl->tpl_vars["childLinks"] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getChildLinks(), null, 0);
                ?>
<span class="btn-group"><button class="btn dropdown-toggle addButton" data-toggle="dropdown" id="<?php 
                echo $_smarty_tpl->tpl_vars['MODULE']->value;
                ?>
_listView_basicAction_Add"><i class="icon-plus"></i>&nbsp;<strong><?php 
                echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
                ?>
</strong>&nbsp;<i class="caret icon-white"></i></button><ul class="dropdown-menu"><?php 
                $_smarty_tpl->tpl_vars["childLink"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["childLink"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['childLinks']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["childLink"]->key => $_smarty_tpl->tpl_vars["childLink"]->value) {
                    $_smarty_tpl->tpl_vars["childLink"]->_loop = true;
                    ?>
<li id="<?php 
                    echo $_smarty_tpl->tpl_vars['MODULE']->value;
                    ?>
_listView_basicAction_<?php 
                    echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['childLink']->value->getLabel());
                    ?>
"><a href="javascript:void(0);" onclick='<?php 
                    echo substr($_smarty_tpl->tpl_vars['childLink']->value->getUrl(), strlen("javascript:"));
                    ?>
;'><?php 
                    echo vtranslate($_smarty_tpl->tpl_vars['childLink']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
                    ?>
</a></li><?php 
                }
                ?>
</ul></span><?php 
            } else {
                ?>
<span class="btn-group"><button id="<?php 
                echo $_smarty_tpl->tpl_vars['MODULE']->value;
                ?>
_listView_basicAction_<?php 
                echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel());
                ?>
" class="btn addButton" <?php 
                if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), 'javascript:') === 0) {
                    ?>
onclick='<?php 
                    echo substr($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), strlen("javascript:"));
                    ?>
;'<?php 
                } else {
                    ?>
 onclick='window.location.href="<?php 
                    echo $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl();
                    ?>
"'<?php 
                }
                ?>
><i class="icon-plus"></i>&nbsp;<strong><?php 
                echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
                ?>
</strong></button></span><?php 
            }
        }
        ?>
</span><span class="foldersContainer btn-toolbar span4"><?php 
        echo $_smarty_tpl->getSubTemplate(vtemplate_path('ListViewFolders.tpl', $_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
</span><span class="span4 btn-toolbar"><?php 
        echo $_smarty_tpl->getSubTemplate(vtemplate_path('ListViewActions.tpl', $_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
</span></div></div><div class="listViewContentDiv" id="listViewContents"><?php 
    }
<?php if ($_valid && !is_callable('content_56059c18904f1')) {function content_56059c18904f1($_smarty_tpl) {?>
<div class="listViewPageDiv"><div class="listViewTopMenuDiv noprint"><div class="listViewActionsDiv row-fluid"><span class="btn-toolbar span4"><span class="btn-group listViewMassActions"><?php if (count($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value)>0||count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW'])>0){?><button class="btn dropdown-toggle" data-toggle="dropdown"><strong><?php echo vtranslate('LBL_ACTIONS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
</strong>&nbsp;&nbsp;<i class="caret"></i></button><ul class="dropdown-menu"><?php  $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->total= $_smarty_tpl->_count($_from);
 $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->key => $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->value){
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = true;
 $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->iteration++;
 $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->last = $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->iteration === $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->total;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['actionCount']['last'] = $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->last;
?><li id="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value;?>
_listView_massAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel());?>
"><a href="javascript:void(0);" <?php if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(),'javascript:')===0){?>onclick='<?php echo substr($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(),strlen("javascript:"));?>
;'<?php }else{ ?> onclick="Vtiger_List_Js.triggerMassAction('<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl();?>
')"<?php }?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE']->value);?>
</a></li><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['actionCount']['last']==true){?><li class="divider"></li><?php }?><?php } ?><?php if (count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW'])>0){?><?php  $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->key => $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value){
$_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = true;
?><li id="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value;?>
_listView_advancedAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel());?>
"><a <?php if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(),'javascript:')===0){?> href="javascript:void(0);" onclick='<?php echo substr($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(),strlen("javascript:"));?>
;'<?php }else{ ?> href='<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl();?>
' <?php }?>><?php echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE']->value);?>
</a></li><?php } ?><?php }?></ul><?php }?></span><?php  $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->key => $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value){
$_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = true;
?><span class="btn-group"><button id="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value;?>
_listView_basicAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel());?>
" class="btn addButton" <?php if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(),'javascript:')===0){?> onclick='<?php echo substr($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(),strlen("javascript:"));?>
;'<?php }else{ ?> onclick='window.location.href="<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl();?>
"'<?php }?>><i class="icon-plus"></i>&nbsp;<strong><?php echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE']->value);?>
</strong></button></span><?php } ?></span><span class="btn-toolbar span4"><span class="customFilterMainSpan btn-group"><?php if (count($_smarty_tpl->tpl_vars['CUSTOM_VIEWS']->value)>0){?><select id="customFilter" style="width:350px;"><?php  $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->_loop = false;
 $_smarty_tpl->tpl_vars['GROUP_LABEL'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['CUSTOM_VIEWS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->key => $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->value){
$_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->_loop = true;
 $_smarty_tpl->tpl_vars['GROUP_LABEL']->value = $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->key;
?><optgroup label=' <?php if ($_smarty_tpl->tpl_vars['GROUP_LABEL']->value=='Mine'){?> &nbsp; <?php }else{ ?> <?php echo vtranslate($_smarty_tpl->tpl_vars['GROUP_LABEL']->value);?>
 <?php }?>' ><?php  $_smarty_tpl->tpl_vars["CUSTOM_VIEW"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["CUSTOM_VIEW"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["CUSTOM_VIEW"]->key => $_smarty_tpl->tpl_vars["CUSTOM_VIEW"]->value){
$_smarty_tpl->tpl_vars["CUSTOM_VIEW"]->_loop = true;
?><option  data-editurl="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getEditUrl();?>
" data-deleteurl="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getDeleteUrl();?>
" data-approveurl="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getApproveUrl();?>
" data-denyurl="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getDenyUrl();?>
" data-editable="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->isEditable();?>
" data-deletable="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->isDeletable();?>
" data-pending="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->isPending();?>
" data-public="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->isPublic()&&$_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->isAdminUser();?>
" id="filterOptionId_<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('cvid');?>
" value="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('cvid');?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('cvid');?>
" <?php if ($_smarty_tpl->tpl_vars['VIEWID']->value!=''&&$_smarty_tpl->tpl_vars['VIEWID']->value!='0'&&$_smarty_tpl->tpl_vars['VIEWID']->value==$_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getId()){?> selected="selected" <?php }elseif(($_smarty_tpl->tpl_vars['VIEWID']->value==''||$_smarty_tpl->tpl_vars['VIEWID']->value=='0')&&$_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->isDefault()=='true'){?> selected="selected" <?php }?> class="filterOptionId_<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('cvid');?>
"><?php if ($_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('viewname')=='All'){?><?php echo vtranslate($_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('viewname'),$_smarty_tpl->tpl_vars['MODULE']->value);?>
 <?php echo vtranslate($_smarty_tpl->tpl_vars['MODULE']->value,$_smarty_tpl->tpl_vars['MODULE']->value);?>
<?php }else{ ?><?php echo vtranslate($_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('viewname'),$_smarty_tpl->tpl_vars['MODULE']->value);?>
<?php }?><?php if ($_smarty_tpl->tpl_vars['GROUP_LABEL']->value!='Mine'){?> [ <?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getOwnerName();?>
 ]  <?php }?></option><?php } ?></optgroup><?php } ?><?php if ($_smarty_tpl->tpl_vars['FOLDERS']->value!=''){?><optgroup id="foldersBlock" label='<?php echo vtranslate('LBL_FOLDERS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
' ><?php  $_smarty_tpl->tpl_vars['FOLDER'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['FOLDER']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['FOLDERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['FOLDER']->key => $_smarty_tpl->tpl_vars['FOLDER']->value){
$_smarty_tpl->tpl_vars['FOLDER']->_loop = true;
?><option data-foldername="<?php echo $_smarty_tpl->tpl_vars['FOLDER']->value->getName();?>
" <?php if (decode_html($_smarty_tpl->tpl_vars['FOLDER']->value->getName())==$_smarty_tpl->tpl_vars['FOLDER_NAME']->value){?> selected=""<?php }?> data-folderid="<?php echo $_smarty_tpl->tpl_vars['FOLDER']->value->get('folderid');?>
" data-deletable="<?php echo !($_smarty_tpl->tpl_vars['FOLDER']->value->hasDocuments());?>
" class="filterOptionId_folder<?php echo $_smarty_tpl->tpl_vars['FOLDER']->value->get('folderid');?>
 folderOption<?php if ($_smarty_tpl->tpl_vars['FOLDER']->value->getName()=='Default'){?> defaultFolder <?php }?>" id="filterOptionId_folder<?php echo $_smarty_tpl->tpl_vars['FOLDER']->value->get('folderid');?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['DEFAULT_CUSTOM_FILTER_ID']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['FOLDER']->value->getName();?>
</option><?php } ?></optgroup><?php }?></select><span class="filterActionsDiv hide"><hr><ul class="filterActions"><li data-value="create" id="createFilter" data-createurl="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getCreateUrl();?>
"><i class="icon-plus-sign"></i> <?php echo vtranslate('LBL_CREATE_NEW_FILTER');?>
</li></ul></span><img class="filterImage" src="<?php echo vimage_path('filter.png');?>
" style="display:none;height:13px;margin-right:2px;vertical-align: middle;"><?php }else{ ?><input type="hidden" value="0" id="customFilter" /><?php }?></span></span><span class="hide filterActionImages pull-right"><i title="<?php echo vtranslate('LBL_DENY',$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-value="deny" class="icon-ban-circle alignMiddle denyFilter filterActionImage pull-right"></i><i title="<?php echo vtranslate('LBL_APPROVE',$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-value="approve" class="icon-ok alignMiddle approveFilter filterActionImage pull-right"></i><i title="<?php echo vtranslate('LBL_DELETE',$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-value="delete" class="icon-trash alignMiddle deleteFilter filterActionImage pull-right"></i><i title="<?php echo vtranslate('LBL_EDIT',$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-value="edit" class="icon-pencil alignMiddle editFilter filterActionImage pull-right"></i></span><span class="span4 btn-toolbar"><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path('ListViewActions.tpl'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</span></div></div><div class="listViewContentDiv" id="listViewContents"><?php }} ?>
    function content_56853f7ad291c($_smarty_tpl)
    {
        ?>
<div class="listViewPageDiv"><div class="listViewTopMenuDiv"><div class="listViewActionsDiv row-fluid"><span class="btn-toolbar span4"><?php 
        if ($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value) {
            ?>
<span class="btn-group listViewMassActions"><button class="btn dropdown-toggle" data-toggle="dropdown"><strong><?php 
            echo vtranslate('LBL_ACTIONS', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</strong>&nbsp;&nbsp;<i class="caret"></i></button><ul class="dropdown-menu"><?php 
            $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->key => $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->value) {
                $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = true;
                ?>
<li id="<?php 
                echo $_smarty_tpl->tpl_vars['MODULE']->value;
                ?>
_listView_massAction_<?php 
                echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel());
                ?>
"><a href="javascript:void(0);" <?php 
                if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(), 'javascript:') === 0) {
                    ?>
onclick='<?php 
                    echo substr($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(), strlen("javascript:"));
                    ?>
;'<?php 
                } else {
                    ?>
 onclick="Vtiger_List_Js.triggerMassAction('<?php 
                    echo $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl();
                    ?>
')"<?php 
                }
                ?>
 ><?php 
                echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
                ?>
</a></li><?php 
            }
            ?>
</ul></span><?php 
        }
        $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEWBASIC'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->key => $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value) {
            $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = true;
            ?>
<span class="btn-group"><button id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_listView_basicAction_<?php 
            echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel());
            ?>
" class="btn clearRecycleBin" <?php 
            if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), 'javascript:') === 0) {
                ?>
 onclick='<?php 
                echo substr($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), strlen("javascript:"));
                ?>
;'<?php 
            } else {
                ?>
 onclick='window.location.href="<?php 
                echo $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl();
                ?>
"'<?php 
            }
            ?>
 <?php 
            if ($_smarty_tpl->tpl_vars['DELETED_RECORDS_TOTAL_COUNT']->value == 0) {
                ?>
 disabled="disabled" <?php 
            }
            ?>
>&nbsp;<strong><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</strong></button></span><?php 
        }
        ?>
</span><span class="btn-toolbar span4"><span class="customFilterMainSpan btn-group"><?php 
        if (count($_smarty_tpl->tpl_vars['MODULE_LIST']->value) > 0) {
            ?>
<select id="customFilter" style="width:350px;"><?php 
            $_smarty_tpl->tpl_vars['MODULEMODEL'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['MODULEMODEL']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['MODULE_LIST']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['MODULEMODEL']->key => $_smarty_tpl->tpl_vars['MODULEMODEL']->value) {
                $_smarty_tpl->tpl_vars['MODULEMODEL']->_loop = true;
                if ($_smarty_tpl->tpl_vars['SOURCE_MODULE']->value == $_smarty_tpl->tpl_vars['MODULEMODEL']->value->get('name')) {
                    ?>
<option  value="<?php 
                    echo $_smarty_tpl->tpl_vars['MODULEMODEL']->value->get('name');
                    ?>
" selected=""><?php 
                    echo vtranslate($_smarty_tpl->tpl_vars['MODULEMODEL']->value->get('name'), $_smarty_tpl->tpl_vars['MODULEMODEL']->value->get('name'));
                    ?>
</option><?php 
                } elseif ($_smarty_tpl->tpl_vars['MODULEMODEL']->value->get('name') != 'Events') {
                    ?>
<option  value="<?php 
                    echo $_smarty_tpl->tpl_vars['MODULEMODEL']->value->get('name');
                    ?>
"><?php 
                    echo vtranslate($_smarty_tpl->tpl_vars['MODULEMODEL']->value->get('name'), $_smarty_tpl->tpl_vars['MODULEMODEL']->value->get('name'));
                    ?>
</option><?php 
                }
            }
            ?>
</select><?php 
        }
        ?>
</span></span><span class="span4 btn-toolbar"><?php 
        echo $_smarty_tpl->getSubTemplate(vtemplate_path('ListViewActions.tpl'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
</span></div></div><div class="listViewContentDiv" id="listViewContents"><?php 
    }
    function content_567b7c45f24c4($_smarty_tpl)
    {
        ?>
<div  id="settingsQuickWidgetContainer" style="margin:0px;padding:0px">
        <div class="widgetContainer" id="Settings_sideBar_LBL_OTHER_SETTINGS" > 
        <?php 
        $_smarty_tpl->tpl_vars['SIDEBARLINK'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['SIDEBARLINK']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['QUICK_LINKS']->value['SIDEBARLINK'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['SIDEBARLINK']->key => $_smarty_tpl->tpl_vars['SIDEBARLINK']->value) {
            $_smarty_tpl->tpl_vars['SIDEBARLINK']->_loop = true;
            ?>
            <?php 
            $_smarty_tpl->tpl_vars['SIDE_LINK_URL'] = new Smarty_variable(decode_html($_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getUrl()), null, 0);
            ?>
            <?php 
            $_smarty_tpl->tpl_vars["EXPLODED_PARSE_URL"] = new Smarty_variable(explode('?', $_smarty_tpl->tpl_vars['SIDE_LINK_URL']->value), null, 0);
            ?>
            <?php 
            $_smarty_tpl->tpl_vars["COUNT_OF_EXPLODED_URL"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['EXPLODED_PARSE_URL']->value), null, 0);
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['COUNT_OF_EXPLODED_URL']->value > 1) {
                ?>
                <?php 
                $_smarty_tpl->tpl_vars["EXPLODED_URL"] = new Smarty_variable($_smarty_tpl->tpl_vars['EXPLODED_PARSE_URL']->value[$_smarty_tpl->tpl_vars['COUNT_OF_EXPLODED_URL']->value - 1], null, 0);
                ?>
            <?php 
            }
            ?>
            <?php 
            $_smarty_tpl->tpl_vars["PARSE_URL"] = new Smarty_variable(explode('&', $_smarty_tpl->tpl_vars['EXPLODED_URL']->value), null, 0);
            ?>
            <?php 
            $_smarty_tpl->tpl_vars["CURRENT_LINK_VIEW"] = new Smarty_variable('view=' . $_smarty_tpl->tpl_vars['CURRENT_PVIEW']->value, null, 0);
            ?>
            <?php 
            $_smarty_tpl->tpl_vars["LINK_LIST_VIEW"] = new Smarty_variable(in_array($_smarty_tpl->tpl_vars['CURRENT_LINK_VIEW']->value, $_smarty_tpl->tpl_vars['PARSE_URL']->value), null, 0);
            ?>
            <?php 
            $_smarty_tpl->tpl_vars["CURRENT_MODULE_NAME"] = new Smarty_variable('module=' . $_smarty_tpl->tpl_vars['MODULE']->value, null, 0);
            ?>
            <?php 
            $_smarty_tpl->tpl_vars["IS_LINK_MODULE_NAME"] = new Smarty_variable(in_array($_smarty_tpl->tpl_vars['CURRENT_MODULE_NAME']->value, $_smarty_tpl->tpl_vars['PARSE_URL']->value), null, 0);
            ?>
            <div class="<?php 
            if ($_smarty_tpl->tpl_vars['LINK_LIST_VIEW']->value) {
                ?>
 selectedMenuItem selectedListItem<?php 
            }
            ?>
" style='padding-left:10px;border-top:0px;padding-bottom: 5px'>
                <div class="row-fluid menuItem"  data-actionurl="">
                    <a href="<?php 
            echo $_smarty_tpl->tpl_vars['SIDE_LINK_URL']->value;
            ?>
" data-id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_settingsBar_link_<?php 
            echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getLabel());
            ?>
" class="textOverflowEllipsis span9 menuItemLabel" data-menu-item="true" ><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</a>
                    <div class="clearfix"></div>
                </div>
            </div>
        <?php 
        }
        ?>
    </div>
</div><?php 
    }
    function content_5645ebcea8b18($_smarty_tpl)
    {
        $_smarty_tpl->tpl_vars["topMenus"] = new Smarty_variable($_smarty_tpl->tpl_vars['MENU_STRUCTURE']->value->getTop(), null, 0);
        $_smarty_tpl->tpl_vars["moreMenus"] = new Smarty_variable($_smarty_tpl->tpl_vars['MENU_STRUCTURE']->value->getMore(), null, 0);
        $_smarty_tpl->tpl_vars['NUMBER_OF_PARENT_TABS'] = new Smarty_variable(count(array_keys($_smarty_tpl->tpl_vars['moreMenus']->value)), null, 0);
        ?>
<div class="navbar" id="topMenus"><div class="navbar-inner" id="nav-inner"><div class="menuBar row-fluid"><div class="span9" style="overflow: hidden;"><ul class="nav modulesList"><li class="tabs"><a class="alignMiddle <?php 
        if ($_smarty_tpl->tpl_vars['MODULE']->value == 'Home') {
            ?>
 selected <?php 
        }
        ?>
" href="<?php 
        echo $_smarty_tpl->tpl_vars['HOME_MODULE_MODEL']->value->getDefaultUrl();
        ?>
"><img src="<?php 
        echo vimage_path('home.png');
        ?>
" alt="<?php 
        echo vtranslate('LBL_HOME', $_smarty_tpl->tpl_vars['moduleName']->value);
        ?>
" title="<?php 
        echo vtranslate('LBL_HOME', $_smarty_tpl->tpl_vars['moduleName']->value);
        ?>
" /></a></li><?php 
        $_smarty_tpl->tpl_vars['moduleModel'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['moduleModel']->_loop = false;
        $_smarty_tpl->tpl_vars['moduleName'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['topMenus']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['topmenu']['index'] = -1;
        foreach ($_from as $_smarty_tpl->tpl_vars['moduleModel']->key => $_smarty_tpl->tpl_vars['moduleModel']->value) {
            $_smarty_tpl->tpl_vars['moduleModel']->_loop = true;
            $_smarty_tpl->tpl_vars['moduleName']->value = $_smarty_tpl->tpl_vars['moduleModel']->key;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['topmenu']['index']++;
            $_smarty_tpl->tpl_vars['translatedModuleLabel'] = new Smarty_variable(vtranslate($_smarty_tpl->tpl_vars['moduleModel']->value->get('label'), $_smarty_tpl->tpl_vars['moduleName']->value), null, 0);
            $_smarty_tpl->tpl_vars["topmenuClassName"] = new Smarty_variable("tabs", null, 0);
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['topmenu']['index'] > $_smarty_tpl->tpl_vars['MENU_TOPITEMS_LIMIT']->value) {
                $_smarty_tpl->tpl_vars["topmenuClassName"] = new Smarty_variable("tabs opttabs", null, 0);
            }
            ?>
<li class="<?php 
            echo $_smarty_tpl->tpl_vars['topmenuClassName']->value;
            ?>
"><a id="menubar_item_<?php 
            echo $_smarty_tpl->tpl_vars['moduleName']->value;
            ?>
" href="<?php 
            echo $_smarty_tpl->tpl_vars['moduleModel']->value->getDefaultUrl();
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['MODULE']->value == $_smarty_tpl->tpl_vars['moduleName']->value) {
                ?>
 class="selected" <?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['translatedModuleLabel']->value;
            ?>
  </a></li><?php 
        }
        ?>
<!--Modified by jmangarret 02jun2015 --><?php 
        if ($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('roleid') != 'H9') {
            ?>
<li class="<?php 
            echo $_smarty_tpl->tpl_vars['topmenuClassName']->value;
            ?>
"><a href="reportes/">Reportes 2</a></li><?php 
        }
        ?>
<li class="dropdown" id="moreMenu"><a class="dropdown-toggle" data-toggle="dropdown" href="#moreMenu"><?php 
        echo vtranslate('LBL_ALL', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
<b class="caret"></b></a><div class="dropdown-menu moreMenus" <?php 
        if ($_smarty_tpl->tpl_vars['NUMBER_OF_PARENT_TABS']->value <= 2 && $_smarty_tpl->tpl_vars['NUMBER_OF_PARENT_TABS']->value != 0) {
            ?>
style="width: 30em;"<?php 
        } elseif ($_smarty_tpl->tpl_vars['NUMBER_OF_PARENT_TABS']->value == 0) {
            ?>
style="width: 10em;"<?php 
        }
        ?>
><?php 
        $_smarty_tpl->tpl_vars['moduleList'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['moduleList']->_loop = false;
        $_smarty_tpl->tpl_vars['parent'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['moreMenus']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['moduleList']->total = $_smarty_tpl->_count($_from);
        $_smarty_tpl->tpl_vars['moduleList']->iteration = 0;
        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['more']['index'] = -1;
        foreach ($_from as $_smarty_tpl->tpl_vars['moduleList']->key => $_smarty_tpl->tpl_vars['moduleList']->value) {
            $_smarty_tpl->tpl_vars['moduleList']->_loop = true;
            $_smarty_tpl->tpl_vars['parent']->value = $_smarty_tpl->tpl_vars['moduleList']->key;
            $_smarty_tpl->tpl_vars['moduleList']->iteration++;
            $_smarty_tpl->tpl_vars['moduleList']->last = $_smarty_tpl->tpl_vars['moduleList']->iteration === $_smarty_tpl->tpl_vars['moduleList']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['more']['index']++;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['more']['last'] = $_smarty_tpl->tpl_vars['moduleList']->last;
            if ($_smarty_tpl->tpl_vars['NUMBER_OF_PARENT_TABS']->value >= 4) {
                $_smarty_tpl->tpl_vars['SPAN_CLASS'] = new Smarty_variable('span3', null, 0);
            } elseif ($_smarty_tpl->tpl_vars['NUMBER_OF_PARENT_TABS']->value == 3) {
                $_smarty_tpl->tpl_vars['SPAN_CLASS'] = new Smarty_variable('span4', null, 0);
            } elseif ($_smarty_tpl->tpl_vars['NUMBER_OF_PARENT_TABS']->value <= 2) {
                $_smarty_tpl->tpl_vars['SPAN_CLASS'] = new Smarty_variable('span6', null, 0);
            }
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['more']['index'] % 4 == 0) {
                ?>
<div class="row-fluid"><?php 
            }
            ?>
<span class="<?php 
            echo $_smarty_tpl->tpl_vars['SPAN_CLASS']->value;
            ?>
"><strong><?php 
            echo vtranslate("LBL_" . $_smarty_tpl->tpl_vars['parent']->value, $_smarty_tpl->tpl_vars['moduleName']->value);
            ?>
</strong><hr><?php 
            $_smarty_tpl->tpl_vars['moduleModel'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['moduleModel']->_loop = false;
            $_smarty_tpl->tpl_vars['moduleName'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['moduleList']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['moduleModel']->key => $_smarty_tpl->tpl_vars['moduleModel']->value) {
                $_smarty_tpl->tpl_vars['moduleModel']->_loop = true;
                $_smarty_tpl->tpl_vars['moduleName']->value = $_smarty_tpl->tpl_vars['moduleModel']->key;
                $_smarty_tpl->tpl_vars['translatedModuleLabel'] = new Smarty_variable(vtranslate($_smarty_tpl->tpl_vars['moduleModel']->value->get('label'), $_smarty_tpl->tpl_vars['moduleName']->value), null, 0);
                ?>
<label class="moduleNames"><a id="menubar_item_<?php 
                echo $_smarty_tpl->tpl_vars['moduleName']->value;
                ?>
" href="<?php 
                echo $_smarty_tpl->tpl_vars['moduleModel']->value->getDefaultUrl();
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['translatedModuleLabel']->value;
                ?>
</a></label><?php 
            }
            ?>
</span><?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['more']['last'] || ($_smarty_tpl->getVariable('smarty')->value['foreach']['more']['index'] + 1) % 4 == 0) {
                ?>
</div><?php 
            }
        }
        if ($_smarty_tpl->tpl_vars['USER_MODEL']->value->isAdminUser()) {
            ?>
<div class="row-fluid"><a id="menubar_item_moduleManager" href="index.php?module=MenuEditor&parent=Settings&view=Index" class="pull-right"><?php 
            echo vtranslate('LBL_CUSTOMIZE_MAIN_MENU', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</a></div><div class="row-fluid"><a id="menubar_item_moduleManager" href="index.php?module=ModuleManager&parent=Settings&view=List" class="pull-right"><?php 
            echo vtranslate('LBL_ADD_MANAGE_MODULES', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</a></div><?php 
        }
        ?>
</div></li></ul></div><div class="span3" id="headerLinks"><span class="pull-right headerLinksContainer"><?php 
        $_smarty_tpl->tpl_vars['obj'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['obj']->_loop = false;
        $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['HEADER_LINKS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['obj']->key => $_smarty_tpl->tpl_vars['obj']->value) {
            $_smarty_tpl->tpl_vars['obj']->_loop = true;
            $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['obj']->key;
            $_smarty_tpl->tpl_vars["src"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getIconPath(), null, 0);
            $_smarty_tpl->tpl_vars["icon"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getIcon(), null, 0);
            $_smarty_tpl->tpl_vars["title"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getLabel(), null, 0);
            $_smarty_tpl->tpl_vars["childLinks"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getChildLinks(), null, 0);
            ?>
<span class="dropdown span<?php 
            if (!empty($_smarty_tpl->tpl_vars['src']->value)) {
                ?>
 settingIcons <?php 
            }
            ?>
"><?php 
            if (!empty($_smarty_tpl->tpl_vars['src']->value)) {
                ?>
<a id="menubar_item_right_<?php 
                echo $_smarty_tpl->tpl_vars['title']->value;
                ?>
" class="dropdown-toggle" data-toggle="dropdown" href="#"><img src="<?php 
                echo $_smarty_tpl->tpl_vars['src']->value;
                ?>
" alt="<?php 
                echo vtranslate($_smarty_tpl->tpl_vars['title']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
                ?>
" title="<?php 
                echo vtranslate($_smarty_tpl->tpl_vars['title']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
                ?>
" /></a><?php 
            } else {
                $_smarty_tpl->tpl_vars['title'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('first_name'), null, 0);
                if (empty($_smarty_tpl->tpl_vars['title']->value)) {
                    $_smarty_tpl->tpl_vars['title'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('last_name'), null, 0);
                }
                ?>
<span class="dropdown-toggle" data-toggle="dropdown" href="#"><a id="menubar_item_right_<?php 
                echo $_smarty_tpl->tpl_vars['title']->value;
                ?>
"  class="userName textOverflowEllipsis span" title="<?php 
                echo $_smarty_tpl->tpl_vars['title']->value;
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['title']->value;
                ?>
 <i class="caret"></i> </a> </span><?php 
            }
            if (!empty($_smarty_tpl->tpl_vars['childLinks']->value)) {
                ?>
<ul class="dropdown-menu pull-right"><?php 
                $_smarty_tpl->tpl_vars['obj'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['obj']->_loop = false;
                $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['childLinks']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['obj']->key => $_smarty_tpl->tpl_vars['obj']->value) {
                    $_smarty_tpl->tpl_vars['obj']->_loop = true;
                    $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['obj']->key;
                    if ($_smarty_tpl->tpl_vars['obj']->value->getLabel() == null) {
                        ?>
<li class="divider">&nbsp;</li><?php 
                    } elseif ($_smarty_tpl->tpl_vars['obj']->value->getLabel() == 'LBL_FEEDBACK') {
                        ?>
<li><a href="https://discussions.vtiger.com" target="_blank"><?php 
                        echo vtranslate($_smarty_tpl->tpl_vars['obj']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
                        ?>
</a></li><?php 
                    } else {
                        $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getId(), null, 0);
                        $_smarty_tpl->tpl_vars["href"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getUrl(), null, 0);
                        $_smarty_tpl->tpl_vars["label"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getLabel(), null, 0);
                        $_smarty_tpl->tpl_vars["onclick"] = new Smarty_variable('', null, 0);
                        if (stripos($_smarty_tpl->tpl_vars['obj']->value->getUrl(), 'javascript:') === 0) {
                            $_smarty_tpl->tpl_vars["onclick"] = new Smarty_variable("onclick=" . $_smarty_tpl->tpl_vars['href']->value, null, 0);
                            $_smarty_tpl->tpl_vars["href"] = new Smarty_variable("javascript:;", null, 0);
                        }
                        ?>
<li><a target="<?php 
                        echo $_smarty_tpl->tpl_vars['obj']->value->target;
                        ?>
" id="menubar_item_right_<?php 
                        echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['label']->value);
                        ?>
" <?php 
                        if ($_smarty_tpl->tpl_vars['label']->value == 'Switch to old look') {
                            ?>
switchLook<?php 
                        }
                        ?>
 href="<?php 
                        echo $_smarty_tpl->tpl_vars['href']->value;
                        ?>
" <?php 
                        echo $_smarty_tpl->tpl_vars['onclick']->value;
                        ?>
><?php 
                        echo vtranslate($_smarty_tpl->tpl_vars['label']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
                        ?>
</a></li><?php 
                    }
                }
                ?>
</ul><?php 
            }
            ?>
</span><?php 
        }
        ?>
</span></div></div><div class="clearfix"></div></div></div><?php 
        $_smarty_tpl->tpl_vars["announcement"] = new Smarty_variable($_smarty_tpl->tpl_vars['ANNOUNCEMENT']->value->get('announcement'), null, 0);
        ?>
<div class="announcement noprint" id="announcement"><marquee direction="left" scrolldelay="10" scrollamount="3" behavior="scroll" class="marStyle" onmouseover="javascript:stop();" onmouseout="javascript:start();"><?php 
        if (!empty($_smarty_tpl->tpl_vars['announcement']->value)) {
            echo $_smarty_tpl->tpl_vars['announcement']->value;
        } else {
            echo vtranslate('LBL_NO_ANNOUNCEMENTS', $_smarty_tpl->tpl_vars['MODULE']->value);
        }
        ?>
</marquee></div><input type='hidden' value="<?php 
        echo $_smarty_tpl->tpl_vars['MODULE']->value;
        ?>
" id='module' name='module'/><input type="hidden" value="<?php 
        echo $_smarty_tpl->tpl_vars['PARENT_MODULE']->value;
        ?>
" id="parent" name='parent' /><input type='hidden' value="<?php 
        echo $_smarty_tpl->tpl_vars['VIEW']->value;
        ?>
" id='view' name='view'/>
<?php 
    }
    function content_56463173a79af($_smarty_tpl)
    {
        $_smarty_tpl->tpl_vars["MODULE_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name'), null, 0);
        ?>
<input id="recordId" type="hidden" value="<?php 
        echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();
        ?>
" /><div class="detailViewContainer"><div class="row-fluid detailViewTitle"><div class="<?php 
        if ($_smarty_tpl->tpl_vars['NO_PAGINATION']->value) {
            ?>
 span12 <?php 
        } else {
            ?>
 span10 <?php 
        }
        ?>
"><div class="row-fluid"><div class="span5"><div class="row-fluid"><?php 
        echo $_smarty_tpl->getSubTemplate(vtemplate_path("DetailViewHeaderTitle.tpl", $_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
</div></div><div class="span7"><div class="pull-right detailViewButtoncontainer"><div class="btn-toolbar"><!-- jmangarret BOTON DE ACCION PROCESAR EN VISTA DETALLE DEL LOCALIZADOR, may2016 !--><?php 
        if ($_smarty_tpl->tpl_vars['MODULE']->value == 'Localizadores') {
            ?>
<span class="btn-group"><a href="javascript:void(0);"><button id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_listView_basicAction_Process" class="btn addButton"><i class="icon-plus icon-white"></i>&nbsp;<strong>Procesar</strong></button></a></span><script type="text/javascript">$(document).ready(function() {$('#<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_listView_basicAction_Process').click(function(){var ids1 = new Array();ids1.push($("#recordId").val());var ajax_data1 = {"userid" : $("#current_user_id").val(),"accion" : "procesarLocalizadores","id" : ids1};jQuery.ajax({data: ajax_data1,url: 'modules/Localizadores/ajaxProcesarList_Loc.php',type: 'get',success: function(response){if (response!='')bootbox.alert(response);}});});});</script><?php 
        }
        ?>
&nbsp;<!-- jmangarret BOTON DE ACCION PROCESAR EN VISTA DETALLE DEL LOCALIZADOR, may2016 !--><?php 
        $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWBASIC'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->key => $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value) {
            $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = true;
            ?>
<span class="btn-group"><button class="btn" id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;
            ?>
_detailView_basicAction_<?php 
            echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getLabel());
            ?>
"<?php 
            if ($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->isPageLoadLink()) {
                ?>
onclick="window.location.href='<?php 
                echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();
                ?>
'"<?php 
            } else {
                ?>
onclick=<?php 
                echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();
            }
            ?>
><strong><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
            ?>
</strong></button></span><?php 
        }
        if (count($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEW']) > 0) {
            ?>
<span class="btn-group"><button class="btn dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);"><strong><?php 
            echo vtranslate('LBL_MORE', $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
            ?>
</strong>&nbsp;&nbsp;<i class="caret"></i></button><ul class="dropdown-menu pull-right"><?php 
            $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEW'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->key => $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value) {
                $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->_loop = true;
                ?>
<li id="<?php 
                echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;
                ?>
_detailView_moreAction_<?php 
                echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel());
                ?>
"><a href=<?php 
                echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getUrl();
                ?>
 ><?php 
                echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
                ?>
</a></li><?php 
            }
            ?>
</ul></span><?php 
        }
        if (count($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWSETTING']) > 0) {
            ?>
<span class="btn-group"><button class="btn dropdown-toggle" href="#" data-toggle="dropdown"><i class="icon-wrench" alt="<?php 
            echo vtranslate('LBL_SETTINGS', $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
            ?>
" title="<?php 
            echo vtranslate('LBL_SETTINGS', $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
            ?>
"></i>&nbsp;&nbsp;<i class="caret"></i></button><ul class="listViewSetting dropdown-menu"><?php 
            $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWSETTING'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->key => $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->value) {
                $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->_loop = true;
                ?>
<li><a href=<?php 
                echo $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->value->getUrl();
                ?>
><?php 
                echo vtranslate($_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
                ?>
</a></li><?php 
            }
            ?>
</ul></span><?php 
        }
        ?>
</div></div></div></div></div><?php 
        ob_start();
        echo $_smarty_tpl->tpl_vars['NO_PAGINATION']->value;
        $_tmp1 = ob_get_clean();
        if (!$_tmp1) {
            ?>
<div class="span2 detailViewPagingButton"><span class="btn-group pull-right"><button class="btn" id="detailViewPreviousRecordButton" <?php 
            if (empty($_smarty_tpl->tpl_vars['PREVIOUS_RECORD_URL']->value)) {
                ?>
 disabled="disabled" <?php 
            } else {
                ?>
 onclick="window.location.href='<?php 
                echo $_smarty_tpl->tpl_vars['PREVIOUS_RECORD_URL']->value;
                ?>
'" <?php 
            }
            ?>
><i class="icon-chevron-left"></i></button><button class="btn" id="detailViewNextRecordButton" <?php 
            if (empty($_smarty_tpl->tpl_vars['NEXT_RECORD_URL']->value)) {
                ?>
 disabled="disabled" <?php 
            } else {
                ?>
 onclick="window.location.href='<?php 
                echo $_smarty_tpl->tpl_vars['NEXT_RECORD_URL']->value;
                ?>
'" <?php 
            }
            ?>
><i class="icon-chevron-right"></i></button></span></div><?php 
        }
        ?>
</div><div class="detailViewInfo row-fluid"><div class="<?php 
        if ($_smarty_tpl->tpl_vars['NO_PAGINATION']->value) {
            ?>
 span12 <?php 
        } else {
            ?>
 span10 <?php 
        }
        ?>
 details"><form id="detailView" data-name-fields='<?php 
        echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields());
        ?>
'><div class="contents">
<?php 
    }
    function content_5645ebdd9c96d($_smarty_tpl)
    {
        ?>
<div class="listViewPageDiv"><div class="listViewTopMenuDiv noprint"><div class="listViewActionsDiv row-fluid"><span class="btn-toolbar span4"><span class="btn-group listViewMassActions"><?php 
        if (count($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value) > 0 || count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW']) > 0) {
            ?>
<button class="btn dropdown-toggle" data-toggle="dropdown"><strong><?php 
            echo vtranslate('LBL_ACTIONS', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</strong>&nbsp;&nbsp;<i class="caret"></i></button><ul class="dropdown-menu"><?php 
            $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->key => $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->value) {
                $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = true;
                $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->iteration++;
                $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->last = $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->iteration === $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['actionCount']['last'] = $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->last;
                ?>
<li id="<?php 
                echo $_smarty_tpl->tpl_vars['MODULE']->value;
                ?>
_listView_massAction_<?php 
                echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel());
                ?>
"><a href="javascript:void(0);" <?php 
                if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(), 'javascript:') === 0) {
                    ?>
onclick='<?php 
                    echo substr($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(), strlen("javascript:"));
                    ?>
;'<?php 
                } else {
                    ?>
 onclick="Vtiger_List_Js.triggerMassAction('<?php 
                    echo $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl();
                    ?>
')"<?php 
                }
                ?>
 ><?php 
                echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
                ?>
</a></li><?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['actionCount']['last'] == true) {
                    ?>
<li class="divider"></li><?php 
                }
            }
            if (count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW']) > 0) {
                $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->key => $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value) {
                    $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = true;
                    ?>
<li id="<?php 
                    echo $_smarty_tpl->tpl_vars['MODULE']->value;
                    ?>
_listView_advancedAction_<?php 
                    echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel());
                    ?>
"><a <?php 
                    if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(), 'javascript:') === 0) {
                        ?>
href="javascript:void(0);"onclick='<?php 
                        echo substr($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(), strlen("javascript:"));
                        ?>
;'<?php 
                    } else {
                        ?>
href='<?php 
                        echo $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl();
                        ?>
'<?php 
                    }
                    ?>
><?php 
                    echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
                    ?>
</a></li><?php 
                }
            }
            ?>
</ul><?php 
        }
        ?>
</span><?php 
        $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEWBASIC'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->key => $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value) {
            $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = true;
            ?>
<span class="btn-group"><button id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_listView_basicAction_<?php 
            echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel());
            ?>
" class="btn addButton" <?php 
            if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), 'javascript:') === 0) {
                ?>
 onclick='<?php 
                echo substr($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), strlen("javascript:"));
                ?>
;'<?php 
            } else {
                ?>
 onclick='window.location.href="<?php 
                echo $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl();
                ?>
"'<?php 
            }
            ?>
><i class="icon-plus icon-white"></i>&nbsp;<strong><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</strong></button></span><?php 
        }
        ?>
<!-- jmangarret BOTONES DE ACCION POR LOTE EN EL HEADER dic2015, ene2016 !--><?php 
        if ($_smarty_tpl->tpl_vars['MODULE']->value == 'Localizadores') {
            ?>
<span class="btn-group"><a href="javascript:void(0);"><button id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_listView_basicAction_Process" class="btn addButton"><i class="icon-plus icon-white"></i>&nbsp;<strong>Procesar</strong></button></a></span><script type="text/javascript">$(document).ready(function() {$('#<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_listView_basicAction_Process').click(function(){var ids1 = new Array();$("input[class=listViewEntriesCheckBox]:checked").each(function() {ids1.push($(this).val());});var ajax_data1 = {"userid" : $("#current_user_id").val(),"accion" : "procesarLocalizadores","id" : ids1};jQuery.ajax({data: ajax_data1,url: 'modules/Localizadores/ajaxProcesarList_Loc.php',type: 'get',success: function(response){if (response!='')bootbox.alert(response);}});});});</script><?php 
        }
        if ($_smarty_tpl->tpl_vars['MODULE']->value == 'Boletos') {
            ?>
<span class="btn-group"><a href="javascript:void(0);"><button id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_listView_basicAction_Anular" class="btn addButton"><i class="icon-plus icon-white"></i>&nbsp;<strong>Anular</strong></button></a></span><script type="text/javascript">$('#<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_listView_basicAction_Anular').click(function(){var ids2 = new Array();$("input[class=listViewEntriesCheckBox]:checked").each(function() {ids2.push($(this).val());});var ajax_data2 = {"userid" : $("#current_user_id").val(),"accion" : "anularBoletosPorLote","id" : ids2};jQuery.ajax({data: ajax_data2,url: 'modules/Boletos/ajaxProcesarList_Boletos.php',type: 'get',success: function(response){if (response!='')bootbox.alert(response);}});});</script><?php 
        }
        ?>
<!-- fin jmangarret dic2015, ene2016 !--></span><span class="btn-toolbar span4"><span class="customFilterMainSpan btn-group"><!--Modified by jmangarret 16jun2015 --><?php 
        if ($_smarty_tpl->tpl_vars['ROLEID']->value != 'H9') {
            if (count($_smarty_tpl->tpl_vars['CUSTOM_VIEWS']->value) > 0) {
                ?>
<select id="customFilter" style="width:350px;"><?php 
                $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->_loop = false;
                $_smarty_tpl->tpl_vars['GROUP_LABEL'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['CUSTOM_VIEWS']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->key => $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->value) {
                    $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->_loop = true;
                    $_smarty_tpl->tpl_vars['GROUP_LABEL']->value = $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->key;
                    ?>
<optgroup label=' <?php 
                    if ($_smarty_tpl->tpl_vars['GROUP_LABEL']->value == 'Mine') {
                        ?>
 &nbsp; <?php 
                    } else {
                        ?>
 <?php 
                        echo vtranslate($_smarty_tpl->tpl_vars['GROUP_LABEL']->value);
                        ?>
 <?php 
                    }
                    ?>
' ><?php 
                    $_smarty_tpl->tpl_vars["CUSTOM_VIEW"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["CUSTOM_VIEW"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars["CUSTOM_VIEW"]->key => $_smarty_tpl->tpl_vars["CUSTOM_VIEW"]->value) {
                        $_smarty_tpl->tpl_vars["CUSTOM_VIEW"]->_loop = true;
                        ?>
<option  data-editurl="<?php 
                        echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getEditUrl();
                        ?>
" data-deleteurl="<?php 
                        echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getDeleteUrl();
                        ?>
" data-approveurl="<?php 
                        echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getApproveUrl();
                        ?>
" data-denyurl="<?php 
                        echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getDenyUrl();
                        ?>
" data-editable="<?php 
                        echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->isEditable();
                        ?>
" data-deletable="<?php 
                        echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->isDeletable();
                        ?>
" data-pending="<?php 
                        echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->isPending();
                        ?>
" data-public="<?php 
                        echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->isPublic() && $_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->isAdminUser();
                        ?>
" id="filterOptionId_<?php 
                        echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('cvid');
                        ?>
" value="<?php 
                        echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('cvid');
                        ?>
" data-id="<?php 
                        echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('cvid');
                        ?>
" <?php 
                        if ($_smarty_tpl->tpl_vars['VIEWID']->value != '' && $_smarty_tpl->tpl_vars['VIEWID']->value != '0' && $_smarty_tpl->tpl_vars['VIEWID']->value == $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getId()) {
                            ?>
 selected="selected" <?php 
                        } elseif (($_smarty_tpl->tpl_vars['VIEWID']->value == '' || $_smarty_tpl->tpl_vars['VIEWID']->value == '0') && $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->isDefault() == 'true') {
                            ?>
 selected="selected" <?php 
                        }
                        ?>
 class="filterOptionId_<?php 
                        echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('cvid');
                        ?>
"><?php 
                        if ($_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('viewname') == 'All') {
                            echo vtranslate($_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('viewname'), $_smarty_tpl->tpl_vars['MODULE']->value);
                            ?>
 <?php 
                            echo vtranslate($_smarty_tpl->tpl_vars['MODULE']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
                        } else {
                            echo vtranslate($_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('viewname'), $_smarty_tpl->tpl_vars['MODULE']->value);
                        }
                        if ($_smarty_tpl->tpl_vars['GROUP_LABEL']->value != 'Mine') {
                            ?>
 [ <?php 
                            echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getOwnerName();
                            ?>
 ]  <?php 
                        }
                        ?>
</option><?php 
                    }
                    ?>
</optgroup><?php 
                }
                if ($_smarty_tpl->tpl_vars['FOLDERS']->value != '') {
                    ?>
<optgroup id="foldersBlock" label='<?php 
                    echo vtranslate('LBL_FOLDERS', $_smarty_tpl->tpl_vars['MODULE']->value);
                    ?>
' ><?php 
                    $_smarty_tpl->tpl_vars['FOLDER'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['FOLDER']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['FOLDERS']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['FOLDER']->key => $_smarty_tpl->tpl_vars['FOLDER']->value) {
                        $_smarty_tpl->tpl_vars['FOLDER']->_loop = true;
                        ?>
<option data-foldername="<?php 
                        echo $_smarty_tpl->tpl_vars['FOLDER']->value->getName();
                        ?>
" <?php 
                        if (decode_html($_smarty_tpl->tpl_vars['FOLDER']->value->getName()) == $_smarty_tpl->tpl_vars['FOLDER_NAME']->value) {
                            ?>
 selected=""<?php 
                        }
                        ?>
 data-folderid="<?php 
                        echo $_smarty_tpl->tpl_vars['FOLDER']->value->get('folderid');
                        ?>
" data-deletable="<?php 
                        echo !$_smarty_tpl->tpl_vars['FOLDER']->value->hasDocuments();
                        ?>
" class="filterOptionId_folder<?php 
                        echo $_smarty_tpl->tpl_vars['FOLDER']->value->get('folderid');
                        ?>
 folderOption<?php 
                        if ($_smarty_tpl->tpl_vars['FOLDER']->value->getName() == 'Default') {
                            ?>
 defaultFolder <?php 
                        }
                        ?>
" id="filterOptionId_folder<?php 
                        echo $_smarty_tpl->tpl_vars['FOLDER']->value->get('folderid');
                        ?>
" data-id="<?php 
                        echo $_smarty_tpl->tpl_vars['DEFAULT_CUSTOM_FILTER_ID']->value;
                        ?>
"><?php 
                        echo $_smarty_tpl->tpl_vars['FOLDER']->value->getName();
                        ?>
</option><?php 
                    }
                    ?>
</optgroup><?php 
                }
                ?>
</select><span class="filterActionsDiv hide"><hr><ul class="filterActions"><li data-value="create" id="createFilter" data-createurl="<?php 
                echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getCreateUrl();
                ?>
"><i class="icon-plus-sign"></i> <?php 
                echo vtranslate('LBL_CREATE_NEW_FILTER');
                ?>
 </li></ul></span><img class="filterImage" src="<?php 
                echo vimage_path('filter.png');
                ?>
" style="display:none;height:13px;margin-right:2px;vertical-align: middle;"><?php 
            } else {
                ?>
<input type="hidden" value="0" id="customFilter" /><?php 
            }
        }
        ?>
<!-- fin jmangarret 16jun2015 !--></span></span><span class="hide filterActionImages pull-right"><i title="<?php 
        echo vtranslate('LBL_DENY', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
" data-value="deny" class="icon-ban-circle alignMiddle denyFilter filterActionImage pull-right"></i><i title="<?php 
        echo vtranslate('LBL_APPROVE', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
" data-value="approve" class="icon-ok alignMiddle approveFilter filterActionImage pull-right"></i><i title="<?php 
        echo vtranslate('LBL_DELETE', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
" data-value="delete" class="icon-trash alignMiddle deleteFilter filterActionImage pull-right"></i><i title="<?php 
        echo vtranslate('LBL_EDIT', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
" data-value="edit" class="icon-pencil alignMiddle editFilter filterActionImage pull-right"></i></span><span class="span4 btn-toolbar"><?php 
        echo $_smarty_tpl->getSubTemplate(vtemplate_path('ListViewActions.tpl'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
</span></div></div><div class="listViewContentDiv" id="listViewContents"><!-- jmangarret BUSQUEDA POR REPORTE PARA SATELITES feb2016!--><?php 
        if ($_smarty_tpl->tpl_vars['MODULE']->value == 'Localizadores') {
            ?>
<form action="" name="frmBuscar" method="post" onSubmit="return false"><table class="table showInlineTable"><tr><td class="fieldLabel wide"><span> Localizador: </span><br><input type="text" name="text-localizador" id="text-localizador"></td><td class="fieldLabel wide"><span> Nº de Boleto: </span><br><input type="text" name="text-boleto" id="text-boleto"></td><td class="fieldLabel wide"><span> Estatus: </span><br><select class="option-estatus" id="option-estatus"><option value="">--Seleccione--</option></select></td><td class="fieldLabel wide"><span> Satelite: </span><br><select class="chzn-single" id="chzn-single"><option value="">--Seleccione--</option></select></td><td class="fieldLabel wide"><span> Desde: </span><br><input type="date" class="dateField" value="" data-date-format="dd-mm-yyyy" name="fechaemision1" id="fechaemision1"></td><td class="fieldLabel wide"><!--<span class="add-on"><i class="icon-calendar"></i></span>--><span> Hasta: </span><br><input type="date" class="dateField" value="" data-date-format="dd-mm-yyyy" name="fechaemision2" id="fechaemision2"></td></tr><tr><td class="fieldLabel wide"><!--<span class="add-on"><i class="icon-calendar"></i></span>--><span> GDS: </span><br><select class="gds-select" id="gds-select"><option value="">--Seleccione--</option></select></td><td class="fieldLabel wide"><span> Procesados: </span><input type="checkbox" name="checkbox-procesado" id="checkbox-procesado"> </td><td class="fieldLabel wide"><a href="javascript:void(0);"><button id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_listView_basicAction_Buscar" class="btn"><strong>Buscar</strong></button></a><span id="searchIcon" class="add-on search-icon"><i class="icon-white icon-search "></i></span></td></tr></table></form><script type="text/javascript">$(document).ready(function() {var ajax_data1 ={"accion": "select_satelite"};jQuery.ajax({data: ajax_data1,url: 'modules/Localizadores/ajaxReporteSatelites.php',type: 'get',success: function(responses){$("#chzn-single").append(responses);}});var ajax_data2 ={"accion" : "select_gds"};jQuery.ajax({data: ajax_data2,url: 'modules/Localizadores/ajaxReporteSatelites.php',type: 'get',success: function(responses){$("#gds-select").append(responses);}});var ajax_data3={"accion" : "select_status"};jQuery.ajax({data: ajax_data3,url: 'modules/Localizadores/ajaxReporteSatelites.php',type: 'get',success: function(responses){$("#option-estatus").append(responses);}});$('#<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_listView_basicAction_Buscar').click(function(){var ajax_data = {"userid"      : $("#current_user_id").val(),"accion"      : "listarBusqueda","satelite"    : $("#chzn-single").val(),"gds"  	 	  : $("#gds-select").val(),"proc"	  	  : $('#checkbox-procesado').is(':checked'),"fecha_desde" : $("#fechaemision1").val(),"fecha_hasta" : $("#fechaemision2").val(),"localizador" : $("#text-localizador").val(),"boleto"	  : $("#text-boleto").val(),"estatus"	  : $("#option-estatus").val()};jQuery.ajax({data: ajax_data,url: 'modules/Localizadores/ajaxReporteSatelites.php',type: 'get',success: function(response){$("div.listViewEntriesDiv.contents-bottomscroll").html(response);}});});});</script><?php 
        }
        ?>
<!--fin jmangarret BUSQUEDA POR REPORTE PARA SATELITES feb2016!--><?php 
    }
    function content_5674dd282e457($_smarty_tpl)
    {
        $_smarty_tpl->tpl_vars["topMenus"] = new Smarty_variable($_smarty_tpl->tpl_vars['MENU_STRUCTURE']->value->getTop(), null, 0);
        $_smarty_tpl->tpl_vars["moreMenus"] = new Smarty_variable($_smarty_tpl->tpl_vars['MENU_STRUCTURE']->value->getMore(), null, 0);
        $_smarty_tpl->tpl_vars['NUMBER_OF_PARENT_TABS'] = new Smarty_variable(count(array_keys($_smarty_tpl->tpl_vars['moreMenus']->value)), null, 0);
        ?>
<div class="navbar" id="topMenus" style="overflow: hidden;height:40px;"><div class="navbar-inner" id="nav-inner"><div class="menuBar row-fluid"><div class="span9"><ul class="nav modulesList" id="largeNav"><li class="tabs"><a class="alignMiddle <?php 
        if ($_smarty_tpl->tpl_vars['MODULE']->value == 'Home') {
            ?>
 selected <?php 
        }
        ?>
" href="<?php 
        echo $_smarty_tpl->tpl_vars['HOME_MODULE_MODEL']->value->getDefaultUrl();
        ?>
"><img src="<?php 
        echo vimage_path('home.png');
        ?>
" alt="<?php 
        echo vtranslate('LBL_HOME', $_smarty_tpl->tpl_vars['moduleName']->value);
        ?>
" title="<?php 
        echo vtranslate('LBL_HOME', $_smarty_tpl->tpl_vars['moduleName']->value);
        ?>
" /></a></li><?php 
        $_smarty_tpl->tpl_vars['moduleModel'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['moduleModel']->_loop = false;
        $_smarty_tpl->tpl_vars['moduleName'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['topMenus']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['topmenu']['index'] = -1;
        foreach ($_from as $_smarty_tpl->tpl_vars['moduleModel']->key => $_smarty_tpl->tpl_vars['moduleModel']->value) {
            $_smarty_tpl->tpl_vars['moduleModel']->_loop = true;
            $_smarty_tpl->tpl_vars['moduleName']->value = $_smarty_tpl->tpl_vars['moduleModel']->key;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['topmenu']['index']++;
            $_smarty_tpl->tpl_vars['translatedModuleLabel'] = new Smarty_variable(vtranslate($_smarty_tpl->tpl_vars['moduleModel']->value->get('label'), $_smarty_tpl->tpl_vars['moduleName']->value), null, 0);
            $_smarty_tpl->tpl_vars["topmenuClassName"] = new Smarty_variable("tabs", null, 0);
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['topmenu']['index'] > $_smarty_tpl->tpl_vars['MENU_TOPITEMS_LIMIT']->value && $_smarty_tpl->tpl_vars['MENU_SELECTED_MODULENAME']->value != $_smarty_tpl->tpl_vars['moduleName']->value) {
                $_smarty_tpl->tpl_vars["topmenuClassName"] = new Smarty_variable("tabs opttabs", null, 0);
            }
            ?>
<li class="<?php 
            echo $_smarty_tpl->tpl_vars['topmenuClassName']->value;
            ?>
"><a id="menubar_item_<?php 
            echo $_smarty_tpl->tpl_vars['moduleName']->value;
            ?>
" href="<?php 
            echo $_smarty_tpl->tpl_vars['moduleModel']->value->getDefaultUrl();
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['MODULE']->value == $_smarty_tpl->tpl_vars['moduleName']->value) {
                ?>
 class="selected" <?php 
            }
            ?>
><strong><?php 
            echo $_smarty_tpl->tpl_vars['translatedModuleLabel']->value;
            ?>
</strong></a></li><?php 
        }
        ?>
</ul><ul class="nav" id="shortNav"><li class="tabs"><a class="alignMiddle <?php 
        if ($_smarty_tpl->tpl_vars['MODULE']->value == 'Home') {
            ?>
 selected <?php 
        }
        ?>
" href="<?php 
        echo $_smarty_tpl->tpl_vars['HOME_MODULE_MODEL']->value->getDefaultUrl();
        ?>
"><img src="<?php 
        echo vimage_path('home.png');
        ?>
" alt="<?php 
        echo vtranslate('LBL_HOME', $_smarty_tpl->tpl_vars['moduleName']->value);
        ?>
" title="<?php 
        echo vtranslate('LBL_HOME', $_smarty_tpl->tpl_vars['moduleName']->value);
        ?>
" /></a></li><li class="dropdown tabs" id="collapsedMenu"><a class="dropdown-toggle" data-toggle="dropdown" href="#collapsedMenu"><?php 
        echo vtranslate('LBL_ALL', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
<b class="caret"></b></a><div class="dropdown-menu"><div class="shortDropdown"><?php 
        $_smarty_tpl->tpl_vars['moduleList'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['moduleList']->_loop = false;
        $_smarty_tpl->tpl_vars['parent'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['moreMenus']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['moduleList']->total = $_smarty_tpl->_count($_from);
        $_smarty_tpl->tpl_vars['moduleList']->iteration = 0;
        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['more']['index'] = -1;
        foreach ($_from as $_smarty_tpl->tpl_vars['moduleList']->key => $_smarty_tpl->tpl_vars['moduleList']->value) {
            $_smarty_tpl->tpl_vars['moduleList']->_loop = true;
            $_smarty_tpl->tpl_vars['parent']->value = $_smarty_tpl->tpl_vars['moduleList']->key;
            $_smarty_tpl->tpl_vars['moduleList']->iteration++;
            $_smarty_tpl->tpl_vars['moduleList']->last = $_smarty_tpl->tpl_vars['moduleList']->iteration === $_smarty_tpl->tpl_vars['moduleList']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['more']['index']++;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['more']['last'] = $_smarty_tpl->tpl_vars['moduleList']->last;
            if ($_smarty_tpl->tpl_vars['moduleList']->value) {
                ?>
<strong><?php 
                echo vtranslate("LBL_" . $_smarty_tpl->tpl_vars['parent']->value, $_smarty_tpl->tpl_vars['moduleName']->value);
                ?>
</strong><hr><?php 
                $_smarty_tpl->tpl_vars['moduleModel'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['moduleModel']->_loop = false;
                $_smarty_tpl->tpl_vars['moduleName'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['moduleList']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['moduleModel']->key => $_smarty_tpl->tpl_vars['moduleModel']->value) {
                    $_smarty_tpl->tpl_vars['moduleModel']->_loop = true;
                    $_smarty_tpl->tpl_vars['moduleName']->value = $_smarty_tpl->tpl_vars['moduleModel']->key;
                    $_smarty_tpl->tpl_vars['translatedModuleLabel'] = new Smarty_variable(vtranslate($_smarty_tpl->tpl_vars['moduleModel']->value->get('label'), $_smarty_tpl->tpl_vars['moduleName']->value), null, 0);
                    ?>
<label class="moduleNames"><a id="menubar_item_<?php 
                    echo $_smarty_tpl->tpl_vars['moduleName']->value;
                    ?>
" href="<?php 
                    echo $_smarty_tpl->tpl_vars['moduleModel']->value->getDefaultUrl();
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['translatedModuleLabel']->value;
                    ?>
</a></label><?php 
                }
            }
        }
        ?>
</div></div></li></ul><ul class="nav modulesList" id="mediumNav"><li class="tabs"><a class="alignMiddle <?php 
        if ($_smarty_tpl->tpl_vars['MODULE']->value == 'Home') {
            ?>
 selected <?php 
        }
        ?>
" href="<?php 
        echo $_smarty_tpl->tpl_vars['HOME_MODULE_MODEL']->value->getDefaultUrl();
        ?>
"><img src="<?php 
        echo vimage_path('home.png');
        ?>
" alt="<?php 
        echo vtranslate('LBL_HOME', $_smarty_tpl->tpl_vars['moduleName']->value);
        ?>
" title="<?php 
        echo vtranslate('LBL_HOME', $_smarty_tpl->tpl_vars['moduleName']->value);
        ?>
" /></a></li><?php 
        $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(0, null, 0);
        $_smarty_tpl->tpl_vars['moduleModel'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['moduleModel']->_loop = false;
        $_smarty_tpl->tpl_vars['moduleName'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['topMenus']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['topmenu']['index'] = -1;
        foreach ($_from as $_smarty_tpl->tpl_vars['moduleModel']->key => $_smarty_tpl->tpl_vars['moduleModel']->value) {
            $_smarty_tpl->tpl_vars['moduleModel']->_loop = true;
            $_smarty_tpl->tpl_vars['moduleName']->value = $_smarty_tpl->tpl_vars['moduleModel']->key;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['topmenu']['index']++;
            $_smarty_tpl->tpl_vars['translatedModuleLabel'] = new Smarty_variable(vtranslate($_smarty_tpl->tpl_vars['moduleModel']->value->get('label'), $_smarty_tpl->tpl_vars['moduleName']->value), null, 0);
            $_smarty_tpl->tpl_vars["topmenuClassName"] = new Smarty_variable("tabs", null, 0);
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['topmenu']['index'] > 2 && $_smarty_tpl->tpl_vars['MENU_SELECTED_MODULENAME']->value != $_smarty_tpl->tpl_vars['moduleName']->value) {
                $_smarty_tpl->tpl_vars["topmenuClassName"] = new Smarty_variable("tabs opttabs", null, 0);
            }
            ?>
<li class="<?php 
            echo $_smarty_tpl->tpl_vars['topmenuClassName']->value;
            ?>
"><a id="menubar_item_<?php 
            echo $_smarty_tpl->tpl_vars['moduleName']->value;
            ?>
" href="<?php 
            echo $_smarty_tpl->tpl_vars['moduleModel']->value->getDefaultUrl();
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['MODULE']->value == $_smarty_tpl->tpl_vars['moduleName']->value) {
                ?>
 class="selected" <?php 
            }
            ?>
><strong><?php 
            echo $_smarty_tpl->tpl_vars['translatedModuleLabel']->value;
            ?>
</strong></a></li><?php 
        }
        ?>
</ul><ul class="nav" id="commonMoreMenu"><li class="dropdown" id="moreMenu"><a class="dropdown-toggle" data-toggle="dropdown" href="#moreMenu"><strong><?php 
        echo vtranslate('LBL_ALL', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
&nbsp;</strong><b class="caret"></b></a><div class="dropdown-menu moreMenus" <?php 
        if ($_smarty_tpl->tpl_vars['NUMBER_OF_PARENT_TABS']->value <= 2 && $_smarty_tpl->tpl_vars['NUMBER_OF_PARENT_TABS']->value != 0) {
            ?>
style="width: 30em;"<?php 
        } elseif ($_smarty_tpl->tpl_vars['NUMBER_OF_PARENT_TABS']->value == 0) {
            ?>
style="width: 10em;"<?php 
        }
        ?>
><?php 
        $_smarty_tpl->tpl_vars['moduleList'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['moduleList']->_loop = false;
        $_smarty_tpl->tpl_vars['parent'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['moreMenus']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['moduleList']->total = $_smarty_tpl->_count($_from);
        $_smarty_tpl->tpl_vars['moduleList']->iteration = 0;
        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['more']['index'] = -1;
        foreach ($_from as $_smarty_tpl->tpl_vars['moduleList']->key => $_smarty_tpl->tpl_vars['moduleList']->value) {
            $_smarty_tpl->tpl_vars['moduleList']->_loop = true;
            $_smarty_tpl->tpl_vars['parent']->value = $_smarty_tpl->tpl_vars['moduleList']->key;
            $_smarty_tpl->tpl_vars['moduleList']->iteration++;
            $_smarty_tpl->tpl_vars['moduleList']->last = $_smarty_tpl->tpl_vars['moduleList']->iteration === $_smarty_tpl->tpl_vars['moduleList']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['more']['index']++;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['more']['last'] = $_smarty_tpl->tpl_vars['moduleList']->last;
            if ($_smarty_tpl->tpl_vars['NUMBER_OF_PARENT_TABS']->value >= 4) {
                $_smarty_tpl->tpl_vars['SPAN_CLASS'] = new Smarty_variable('span3', null, 0);
            } elseif ($_smarty_tpl->tpl_vars['NUMBER_OF_PARENT_TABS']->value == 3) {
                $_smarty_tpl->tpl_vars['SPAN_CLASS'] = new Smarty_variable('span4', null, 0);
            } elseif ($_smarty_tpl->tpl_vars['NUMBER_OF_PARENT_TABS']->value <= 2) {
                $_smarty_tpl->tpl_vars['SPAN_CLASS'] = new Smarty_variable('span6', null, 0);
            }
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['more']['index'] % 4 == 0) {
                ?>
<div class="row-fluid"><?php 
            }
            ?>
<span class="<?php 
            echo $_smarty_tpl->tpl_vars['SPAN_CLASS']->value;
            ?>
"><strong><?php 
            echo vtranslate("LBL_" . $_smarty_tpl->tpl_vars['parent']->value, $_smarty_tpl->tpl_vars['moduleName']->value);
            ?>
</strong><hr><?php 
            $_smarty_tpl->tpl_vars['moduleModel'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['moduleModel']->_loop = false;
            $_smarty_tpl->tpl_vars['moduleName'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['moduleList']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['moduleModel']->key => $_smarty_tpl->tpl_vars['moduleModel']->value) {
                $_smarty_tpl->tpl_vars['moduleModel']->_loop = true;
                $_smarty_tpl->tpl_vars['moduleName']->value = $_smarty_tpl->tpl_vars['moduleModel']->key;
                $_smarty_tpl->tpl_vars['translatedModuleLabel'] = new Smarty_variable(vtranslate($_smarty_tpl->tpl_vars['moduleModel']->value->get('label'), $_smarty_tpl->tpl_vars['moduleName']->value), null, 0);
                ?>
<label class="moduleNames"><a id="menubar_item_<?php 
                echo $_smarty_tpl->tpl_vars['moduleName']->value;
                ?>
" href="<?php 
                echo $_smarty_tpl->tpl_vars['moduleModel']->value->getDefaultUrl();
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['translatedModuleLabel']->value;
                ?>
</a></label><?php 
            }
            ?>
</span><?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['more']['last'] || ($_smarty_tpl->getVariable('smarty')->value['foreach']['more']['index'] + 1) % 4 == 0) {
                ?>
</div><?php 
            }
        }
        if ($_smarty_tpl->tpl_vars['USER_MODEL']->value->isAdminUser()) {
            ?>
<div class="row-fluid"><a id="menubar_item_moduleManager" href="index.php?module=MenuEditor&parent=Settings&view=Index" class="pull-right"><?php 
            echo vtranslate('LBL_CUSTOMIZE_MAIN_MENU', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</a></div><div class="row-fluid"><a id="menubar_item_moduleManager" href="index.php?module=ModuleManager&parent=Settings&view=List" class="pull-right"><?php 
            echo vtranslate('LBL_ADD_MANAGE_MODULES', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</a></div><?php 
        }
        ?>
</div></li></ul></div><div class="span3 marginLeftZero pull-right" id="headerLinks"><span id="headerLinksBig" class="pull-right headerLinksContainer"><span class="dropdown span settingIcons"><a class="dropdown-toggle" data-toggle="dropdown" href="#"><img src="<?php 
        echo vimage_path('theme_brush.png');
        ?>
" alt="theme roller" title="Theme Roller" /></a><ul class="dropdown-menu themeMenuContainer"><div id="themeContainer"><?php 
        $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(0, null, 0);
        $_smarty_tpl->tpl_vars['THEMES_LIST'] = new Smarty_variable(Vtiger_Theme::getAllSkins(), null, 0);
        ?>
<div class="row-fluid themeMenu"><?php 
        $_smarty_tpl->tpl_vars['SKIN_COLOR'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['SKIN_COLOR']->_loop = false;
        $_smarty_tpl->tpl_vars['SKIN_NAME'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['THEMES_LIST']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['SKIN_COLOR']->key => $_smarty_tpl->tpl_vars['SKIN_COLOR']->value) {
            $_smarty_tpl->tpl_vars['SKIN_COLOR']->_loop = true;
            $_smarty_tpl->tpl_vars['SKIN_NAME']->value = $_smarty_tpl->tpl_vars['SKIN_COLOR']->key;
            if ($_smarty_tpl->tpl_vars['COUNTER']->value == 3) {
                ?>
</div><div class="row-fluid themeMenu"><?php 
                $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(1, null, 0);
            } else {
                $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable($_smarty_tpl->tpl_vars['COUNTER']->value + 1, null, 0);
            }
            ?>
<div class="span4 themeElement <?php 
            if ($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('theme') == $_smarty_tpl->tpl_vars['SKIN_NAME']->value) {
                ?>
themeSelected<?php 
            }
            ?>
" data-skin-name="<?php 
            echo $_smarty_tpl->tpl_vars['SKIN_NAME']->value;
            ?>
" title="<?php 
            echo ucfirst($_smarty_tpl->tpl_vars['SKIN_NAME']->value);
            ?>
" style="background-color:<?php 
            echo $_smarty_tpl->tpl_vars['SKIN_COLOR']->value;
            ?>
;"></div><?php 
        }
        ?>
</div></div><div id="progressDiv"></div></ul></span><?php 
        $_smarty_tpl->tpl_vars['obj'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['obj']->_loop = false;
        $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['HEADER_LINKS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['obj']->key => $_smarty_tpl->tpl_vars['obj']->value) {
            $_smarty_tpl->tpl_vars['obj']->_loop = true;
            $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['obj']->key;
            $_smarty_tpl->tpl_vars["src"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getIconPath(), null, 0);
            $_smarty_tpl->tpl_vars["icon"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getIcon(), null, 0);
            $_smarty_tpl->tpl_vars["title"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getLabel(), null, 0);
            $_smarty_tpl->tpl_vars["childLinks"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getChildLinks(), null, 0);
            ?>
<span class="dropdown span<?php 
            if (!empty($_smarty_tpl->tpl_vars['src']->value)) {
                ?>
 settingIcons <?php 
            }
            ?>
"><?php 
            if (!empty($_smarty_tpl->tpl_vars['src']->value)) {
                ?>
<a id="menubar_item_right_<?php 
                echo $_smarty_tpl->tpl_vars['title']->value;
                ?>
" class="dropdown-toggle" data-toggle="dropdown" href="#"><img src="<?php 
                echo $_smarty_tpl->tpl_vars['src']->value;
                ?>
" alt="<?php 
                echo vtranslate($_smarty_tpl->tpl_vars['title']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
                ?>
" title="<?php 
                echo vtranslate($_smarty_tpl->tpl_vars['title']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
                ?>
" /></a><?php 
            } else {
                $_smarty_tpl->tpl_vars['title'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('first_name'), null, 0);
                if (empty($_smarty_tpl->tpl_vars['title']->value)) {
                    $_smarty_tpl->tpl_vars['title'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('last_name'), null, 0);
                }
                ?>
<span class="dropdown-toggle" data-toggle="dropdown" href="#"><a id="menubar_item_right_<?php 
                echo $_smarty_tpl->tpl_vars['title']->value;
                ?>
"  class="userName textOverflowEllipsis" title="<?php 
                echo $_smarty_tpl->tpl_vars['title']->value;
                ?>
"><strong><?php 
                echo $_smarty_tpl->tpl_vars['title']->value;
                ?>
</strong>&nbsp;<i class="caret"></i> </a> </span><?php 
            }
            if (!empty($_smarty_tpl->tpl_vars['childLinks']->value)) {
                ?>
<ul class="dropdown-menu pull-right"><?php 
                $_smarty_tpl->tpl_vars['obj'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['obj']->_loop = false;
                $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['childLinks']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['obj']->key => $_smarty_tpl->tpl_vars['obj']->value) {
                    $_smarty_tpl->tpl_vars['obj']->_loop = true;
                    $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['obj']->key;
                    if ($_smarty_tpl->tpl_vars['obj']->value->getLabel() == null) {
                        ?>
<li class="divider">&nbsp;</li><?php 
                    } else {
                        $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getId(), null, 0);
                        $_smarty_tpl->tpl_vars["href"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getUrl(), null, 0);
                        $_smarty_tpl->tpl_vars["label"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getLabel(), null, 0);
                        $_smarty_tpl->tpl_vars["onclick"] = new Smarty_variable('', null, 0);
                        if (stripos($_smarty_tpl->tpl_vars['obj']->value->getUrl(), 'javascript:') === 0) {
                            $_smarty_tpl->tpl_vars["onclick"] = new Smarty_variable("onclick=" . $_smarty_tpl->tpl_vars['href']->value, null, 0);
                            $_smarty_tpl->tpl_vars["href"] = new Smarty_variable("javascript:;", null, 0);
                        }
                        ?>
<li><a target="<?php 
                        echo $_smarty_tpl->tpl_vars['obj']->value->target;
                        ?>
" id="menubar_item_right_<?php 
                        echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['label']->value);
                        ?>
" <?php 
                        if ($_smarty_tpl->tpl_vars['label']->value == 'Switch to old look') {
                            ?>
switchLook<?php 
                        }
                        ?>
 href="<?php 
                        echo $_smarty_tpl->tpl_vars['href']->value;
                        ?>
" <?php 
                        echo $_smarty_tpl->tpl_vars['onclick']->value;
                        ?>
><?php 
                        echo vtranslate($_smarty_tpl->tpl_vars['label']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
                        ?>
</a></li><?php 
                    }
                }
                ?>
</ul><?php 
            }
            ?>
</span><?php 
        }
        ?>
</span><div id="headerLinksCompact"><span class="btn-group dropdown qCreate cursorPointer"><img src="<?php 
        echo vimage_path('btnAdd_white.png');
        ?>
" class="" alt="<?php 
        echo vtranslate('LBL_QUICK_CREATE', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
" title="<?php 
        echo vtranslate('LBL_QUICK_CREATE', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
" data-toggle="dropdown"/><ul class="dropdown-menu dropdownStyles pull-right commonActionsButtonDropDown"><li class="title"><strong><?php 
        echo vtranslate('Quick Create', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
</strong></li><hr/><li id="compactquickCreate"><div class="CompactQC"><?php 
        $_smarty_tpl->tpl_vars['moduleModel'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['moduleModel']->_loop = false;
        $_smarty_tpl->tpl_vars['moduleName'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['MENUS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['moduleModel']->key => $_smarty_tpl->tpl_vars['moduleModel']->value) {
            $_smarty_tpl->tpl_vars['moduleModel']->_loop = true;
            $_smarty_tpl->tpl_vars['moduleName']->value = $_smarty_tpl->tpl_vars['moduleModel']->key;
            if ($_smarty_tpl->tpl_vars['moduleModel']->value->isPermitted('EditView')) {
                $_smarty_tpl->tpl_vars['quickCreateModule'] = new Smarty_variable($_smarty_tpl->tpl_vars['moduleModel']->value->isQuickCreateSupported(), null, 0);
                $_smarty_tpl->tpl_vars['singularLabel'] = new Smarty_variable($_smarty_tpl->tpl_vars['moduleModel']->value->getSingularLabelKey(), null, 0);
                if ($_smarty_tpl->tpl_vars['quickCreateModule']->value == '1') {
                    ?>
<a class="quickCreateModule" data-name="<?php 
                    echo $_smarty_tpl->tpl_vars['moduleModel']->value->getName();
                    ?>
"data-url="<?php 
                    echo $_smarty_tpl->tpl_vars['moduleModel']->value->getQuickCreateUrl();
                    ?>
" href="javascript:void(0)"><?php 
                    echo vtranslate($_smarty_tpl->tpl_vars['singularLabel']->value, $_smarty_tpl->tpl_vars['moduleName']->value);
                    ?>
</a><?php 
                }
            }
        }
        ?>
</div></li></ul></span><span  class="dropdown"><a class="dropdown-toggle btn-navbar" data-toggle="dropdown" href="#"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><ul class="dropdown-menu pull-right"><?php 
        $_smarty_tpl->tpl_vars['obj'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['obj']->_loop = false;
        $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['HEADER_LINKS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["compactIndex"]['index'] = -1;
        foreach ($_from as $_smarty_tpl->tpl_vars['obj']->key => $_smarty_tpl->tpl_vars['obj']->value) {
            $_smarty_tpl->tpl_vars['obj']->_loop = true;
            $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['obj']->key;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']["compactIndex"]['index']++;
            $_smarty_tpl->tpl_vars["src"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getIconPath(), null, 0);
            $_smarty_tpl->tpl_vars["icon"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getIcon(), null, 0);
            $_smarty_tpl->tpl_vars["title"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getLabel(), null, 0);
            $_smarty_tpl->tpl_vars["childLinks"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getChildLinks(), null, 0);
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['compactIndex']['index'] != 0) {
                ?>
<li class="divider">&nbsp;</li><?php 
            }
            $_smarty_tpl->tpl_vars['obj'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['obj']->_loop = false;
            $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['childLinks']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['obj']->key => $_smarty_tpl->tpl_vars['obj']->value) {
                $_smarty_tpl->tpl_vars['obj']->_loop = true;
                $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['obj']->key;
                $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getId(), null, 0);
                $_smarty_tpl->tpl_vars["href"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getUrl(), null, 0);
                $_smarty_tpl->tpl_vars["label"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getLabel(), null, 0);
                $_smarty_tpl->tpl_vars["onclick"] = new Smarty_variable('', null, 0);
                if (stripos($_smarty_tpl->tpl_vars['obj']->value->getUrl(), 'javascript:') === 0) {
                    $_smarty_tpl->tpl_vars["onclick"] = new Smarty_variable("onclick=" . $_smarty_tpl->tpl_vars['href']->value, null, 0);
                    $_smarty_tpl->tpl_vars["href"] = new Smarty_variable("javascript:;", null, 0);
                }
                ?>
<li><a target="<?php 
                echo $_smarty_tpl->tpl_vars['obj']->value->target;
                ?>
" id="menubar_item_right_<?php 
                echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['label']->value);
                ?>
" <?php 
                if ($_smarty_tpl->tpl_vars['label']->value == 'Switch to old look') {
                    ?>
switchLook<?php 
                }
                ?>
 href="<?php 
                echo $_smarty_tpl->tpl_vars['href']->value;
                ?>
" <?php 
                echo $_smarty_tpl->tpl_vars['onclick']->value;
                ?>
><?php 
                echo vtranslate($_smarty_tpl->tpl_vars['label']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
                ?>
</a></li><?php 
            }
        }
        ?>
</ul></span></div></div></div><div class="clearfix"></div></div></div><?php 
        $_smarty_tpl->tpl_vars["announcement"] = new Smarty_variable($_smarty_tpl->tpl_vars['ANNOUNCEMENT']->value->get('announcement'), null, 0);
        ?>
<div class="announcement noprint" id="announcement"><marquee direction="left" scrolldelay="10" scrollamount="3" behavior="scroll" class="marStyle" onMouseOver="this.setAttribute('scrollamount', 0, 0);" OnMouseOut="this.setAttribute('scrollamount', 6, 0);"><?php 
        if (!empty($_smarty_tpl->tpl_vars['announcement']->value)) {
            echo $_smarty_tpl->tpl_vars['announcement']->value;
        } else {
            echo vtranslate('LBL_NO_ANNOUNCEMENTS', $_smarty_tpl->tpl_vars['MODULE']->value);
        }
        ?>
</marquee></div><input type='hidden' value="<?php 
        echo $_smarty_tpl->tpl_vars['MODULE']->value;
        ?>
" id='module' name='module'/><input type="hidden" value="<?php 
        echo $_smarty_tpl->tpl_vars['PARENT_MODULE']->value;
        ?>
" id="parent" name='parent' /><input type='hidden' value="<?php 
        echo $_smarty_tpl->tpl_vars['VIEW']->value;
        ?>
" id='view' name='view'/>
<?php 
    }
    function content_5697786daf2f3($_smarty_tpl)
    {
        ?>
<div class="listViewTopMenuDiv">
    <div class="listViewActionsDiv row-fluid">
        <span class="btn-toolbar span4">
            <span class="btn-group listViewMassActions">
                    <?php 
        if (count($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value) > 0 || count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW']) > 0) {
            ?>
                            <button class="btn dropdown-toggle" data-toggle="dropdown"><strong><?php 
            echo vtranslate('LBL_ACTIONS', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</strong>&nbsp;&nbsp;<i class="caret"></i></button>
                            <ul class="dropdown-menu">
                                    <?php 
            if (count($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value) > 0) {
                ?>
                                        <?php 
                $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->key => $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->value) {
                    $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = true;
                    ?>
                                                <li id="<?php 
                    echo $_smarty_tpl->tpl_vars['MODULE']->value;
                    ?>
_listView_massAction_<?php 
                    echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel());
                    ?>
"><a href="javascript:void(0);" <?php 
                    if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(), 'javascript:') === 0) {
                        ?>
onclick='<?php 
                        echo substr($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(), strlen("javascript:"));
                        ?>
;'<?php 
                    } else {
                        ?>
 onclick="Vtiger_List_Js.triggerMassAction('<?php 
                        echo $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl();
                        ?>
')"<?php 
                    }
                    ?>
 ><?php 
                    echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
                    ?>
</a></li>
                                        <?php 
                }
                ?>
                                        
                                        <?php 
                if (count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW']) > 0) {
                    ?>
<li class="divider"></li> <?php 
                }
                ?>
                                    <?php 
            }
            ?>
                                    
                                    <?php 
            if (count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW']) > 0) {
                ?>
                                            <?php 
                $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->key => $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value) {
                    $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = true;
                    ?>
                                                    <li id="<?php 
                    echo $_smarty_tpl->tpl_vars['MODULE']->value;
                    ?>
_listView_advancedAction_<?php 
                    echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel());
                    ?>
"><a <?php 
                    if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(), 'javascript:') === 0) {
                        ?>
 href="javascript:void(0);" onclick='<?php 
                        echo substr($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(), strlen("javascript:"));
                        ?>
;'<?php 
                    } else {
                        ?>
 href='<?php 
                        echo $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl();
                        ?>
' <?php 
                    }
                    ?>
><?php 
                    echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
                    ?>
</a></li>
                                            <?php 
                }
                ?>
                                    <?php 
            }
            ?>
                            </ul>
                    <?php 
        }
        ?>
            </span>
            <?php 
        if ($_smarty_tpl->tpl_vars['EDIT']->value == 'permitted') {
            ?>
                <span class="btn-group"><button class="btn addButton" type="submit" onclick="this.form.view.value = 'Edit';"><i class="icon-plus icon-white"></i>&nbsp;<strong><?php 
            echo vtranslate("LBL_ADD_TEMPLATE", "PDFMaker");
            ?>
</strong></button></span>
            <?php 
        }
        ?>
            <?php 
        if ($_smarty_tpl->tpl_vars['IS_ADMIN']->value == '1' && $_smarty_tpl->tpl_vars['TO_UPDATE']->value == 'true') {
            ?>
                <span class="btn-group"><button class="btn lastImport" onclick="window.location.href = 'index.php?module=PDFMaker&view=update'; return false;"><?php 
            echo vtranslate("LBL_UPDATE", "PDFMaker");
            ?>
</button></span>
            <?php 
        }
        ?>
            <span class="btn-group"><button class="btn saveButton" onclick="window.location.href = 'http://www.its4you.sk/images/pdf_maker/pdf_maker_for_vtiger6_crm.pdf'; return false;"><?php 
        echo vtranslate("PDFMakerManual", "PDFMaker");
        ?>
</button></span>
            <?php 
        $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEWBASIC'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->key => $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value) {
            $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = true;
            ?>
                    <span class="btn-group">
                            <button id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_listView_basicAction_<?php 
            echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel());
            ?>
" class="btn addButton" <?php 
            if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), 'javascript:') === 0) {
                ?>
 onclick='<?php 
                echo substr($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), strlen("javascript:"));
                ?>
;'<?php 
            } else {
                ?>
 onclick='window.location.href="<?php 
                echo $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl();
                ?>
"'<?php 
            }
            ?>
><i class="icon-plus icon-white"></i>&nbsp;<strong><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</strong></button>
                    </span>
            <?php 
        }
        ?>
            
        </span>
        <span class="btn-toolbar span4">
            <span class="customFilterMainSpan btn-group">
                    
            </span>
        </span>
        <span class="hide filterActionImages pull-right">
                <i title="<?php 
        echo vtranslate('LBL_DENY', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
" data-value="deny" class="icon-ban-circle alignMiddle denyFilter filterActionImage pull-right"></i>
                <i title="<?php 
        echo vtranslate('LBL_APPROVE', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
" data-value="approve" class="icon-ok alignMiddle approveFilter filterActionImage pull-right"></i>
                <i title="<?php 
        echo vtranslate('LBL_DELETE', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
" data-value="delete" class="icon-trash alignMiddle deleteFilter filterActionImage pull-right"></i>
                <i title="<?php 
        echo vtranslate('LBL_EDIT', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
" data-value="edit" class="icon-pencil alignMiddle editFilter filterActionImage pull-right"></i>
        </span>
        <span class="span4 btn-toolbar">
                <?php 
        echo $_smarty_tpl->getSubTemplate(vtemplate_path('ListPDFActions.tpl', 'PDFMaker'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

        </span>
    </div>
</div><?php 
    }
    function content_5678e75e0f4bd($_smarty_tpl)
    {
        ?>
<div class='listViewPageDiv'>
	<div class="row-fluid  listViewActionsDiv">
		<span class="btn-toolbar span4">
			<span class="btn-group listViewMassActions">
				<?php 
        $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->key => $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value) {
            $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = true;
            ?>
          <?php 
            if ($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value != null) {
                ?>
					<span class="btn-group">
						<button id="<?php 
                echo $_smarty_tpl->tpl_vars['MODULE']->value;
                ?>
_listView_basicAction_<?php 
                echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel());
                ?>
" class="btn btn-danger" <?php 
                if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), 'javascript:') === 0) {
                    ?>
 onclick='<?php 
                    echo substr($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), strlen("javascript:"));
                    ?>
;'<?php 
                } else {
                    ?>
 onclick='window.location.href="<?php 
                    echo $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl();
                    ?>
"'<?php 
                }
                ?>
><strong><?php 
                echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
                ?>
</strong></button>
					</span>
          <?php 
            }
            ?>
				<?php 
        }
        ?>
			</span>
		</span>
		<span class='span4'><div class="textAlignCenter"><h3 style='margin-top:2px'><?php 
        echo vtranslate('LBL_DUPLICATE');
        ?>
  <?php 
        echo vtranslate($_smarty_tpl->tpl_vars['MODULE']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
</h3></div></span>
		<span class="span4 btn-toolbar">
			<?php 
        echo $_smarty_tpl->getSubTemplate(vtemplate_path('ListViewActions.tpl'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

		</span>
	</div>
	<div id="listViewContents" class="listViewContentDiv">
<?php 
    }