76 lines
6.9 KiB
PHP
76 lines
6.9 KiB
PHP
<?php /* Smarty version Smarty-3.1.7, created on 2021-12-06 09:59:58
|
|
compiled from "/home/sophalnexs/www/sophalcrm/includes/runtime/../../layouts/v7/modules/Vtiger/dashboards/DashBoardContents.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:8087893005e5b89ed7adee9-96399700%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'866a3d5cc963c39c8ab987655cdc2149333348de' =>
|
|
array (
|
|
0 => '/home/sophalnexs/www/sophalcrm/includes/runtime/../../layouts/v7/modules/Vtiger/dashboards/DashBoardContents.tpl',
|
|
1 => 1638784778,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '8087893005e5b89ed7adee9-96399700',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'version' => 'Smarty-3.1.7',
|
|
'unifunc' => 'content_5e5b89ed81702',
|
|
'variables' =>
|
|
array (
|
|
'USER_MODEL' => 0,
|
|
'DASHBOARD_TABS' => 0,
|
|
'TAB_DATA' => 0,
|
|
'SELECTED_TAB' => 0,
|
|
'roleid' => 0,
|
|
'MODULE' => 0,
|
|
'DASHBOARD_TABS_LIMIT' => 0,
|
|
'TABID' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if ($_valid && !is_callable('content_5e5b89ed81702')) {function content_5e5b89ed81702($_smarty_tpl) {?>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function getSplashScreen(){
|
|
|
|
$.ajax({
|
|
|
|
type: "GET",
|
|
|
|
url: "index.php?module=SplashScreenAjax&view=SplashScreenAjax",
|
|
|
|
contentType: "application/json; charset=utf-8",
|
|
|
|
success: function(result) {
|
|
|
|
$("#SplashScreen").html(result);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
getSplashScreen();
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<?php $_smarty_tpl->tpl_vars["roleid"] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('roleid'), null, 0);?><div id="SplashScreen"></div><div class="dashBoardContainer clearfix"><div class="tabContainer"><ul class="nav nav-tabs tabs sortable container-fluid"><?php $_smarty_tpl->tpl_vars['TAB_DATA'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['TAB_DATA']->_loop = false;
|
|
$_smarty_tpl->tpl_vars['index'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->tpl_vars['DASHBOARD_TABS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['TAB_DATA']->key => $_smarty_tpl->tpl_vars['TAB_DATA']->value){
|
|
$_smarty_tpl->tpl_vars['TAB_DATA']->_loop = true;
|
|
$_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['TAB_DATA']->key;
|
|
?><li class="<?php if ($_smarty_tpl->tpl_vars['TAB_DATA']->value["id"]==$_smarty_tpl->tpl_vars['SELECTED_TAB']->value){?>active<?php }?> dashboardTab" data-tabid="<?php echo $_smarty_tpl->tpl_vars['TAB_DATA']->value["id"];?>
|
|
" data-tabname="<?php echo $_smarty_tpl->tpl_vars['TAB_DATA']->value["tabname"];?>
|
|
"><a data-toggle="tab" href="#tab_<?php echo $_smarty_tpl->tpl_vars['TAB_DATA']->value["id"];?>
|
|
"><div><span class="name textOverflowEllipsis" value="<?php echo $_smarty_tpl->tpl_vars['TAB_DATA']->value["tabname"];?>
|
|
" style="width:10%"><strong><?php echo $_smarty_tpl->tpl_vars['TAB_DATA']->value["tabname"];?>
|
|
</strong></span><span class="editTabName hide"><input type="text" name="tabName"/></span><?php if ($_smarty_tpl->tpl_vars['TAB_DATA']->value["isdefault"]==0){?><i class="fa fa-close deleteTab"></i><?php }?><i class="fa fa-bars moveTab hide"></i></div></a></li><?php } ?><!--<?php if (isGro($_smarty_tpl->tpl_vars['roleid']->value)||isVP($_smarty_tpl->tpl_vars['roleid']->value)||isDG($_smarty_tpl->tpl_vars['roleid']->value)){?><li class="dashboardTab font-large-2" ><a href="index.php?module=CustomDashboard&view=CustomDashboard"><div><strong>Conventions</strong></div></a></li><?php }?>--><?php if (isDG($_smarty_tpl->tpl_vars['roleid']->value)||$_smarty_tpl->tpl_vars['roleid']->value=='H8'||isMedecin($_smarty_tpl->tpl_vars['roleid']->value)){?><?php if (isVM($_smarty_tpl->tpl_vars['roleid']->value)){?><!-- sophal --><li class="dashboardTab" style="font-size: 1.2rem"><a href="index.php?module=MonitoringVmCompte&view=MonitoringVmCompte"><div><strong>Monitoring Promotion Medicale</strong></div></a></li><!-- sophal --><?php }else{ ?><!-- sophal --><li class="dashboardTab" style="font-size: 1.2rem"><a href="index.php?module=MonitoringVMPlanning&view=MonitoringVMPlanning"><div><strong>Monitoring Promotion Medicale</strong></div></a></li><!-- sophal --><?php }?><?php }?><?php if (isGro($_smarty_tpl->tpl_vars['roleid']->value)||isPharma($_smarty_tpl->tpl_vars['roleid']->value)||isDG($_smarty_tpl->tpl_vars['roleid']->value)){?><!-- sophal --><li class="dashboardTab" style="font-size: 1.2rem"><a href="index.php?module=MonitoringVpBCTotal&view=MonitoringVpBCTotal"><div><strong>Monitoring Commercial</strong></div></a></li><!-- sophal --><?php }?><div class="moreSettings pull-right"><div class="dropdown dashBoardDropDown"><button class="btn btn-default reArrangeTabs dropdown-toggle" type="button" data-toggle="dropdown"><?php echo vtranslate('LBL_MORE',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
<span class="caret"></span></button><ul class="dropdown-menu dropdown-menu-right moreDashBoards"><li id="newDashBoardLi"<?php if (count($_smarty_tpl->tpl_vars['DASHBOARD_TABS']->value)==$_smarty_tpl->tpl_vars['DASHBOARD_TABS_LIMIT']->value){?>class="disabled"<?php }?>><a class = "addNewDashBoard" href="#"><?php echo vtranslate('LBL_ADD_NEW_DASHBOARD',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</a></li><li><a class = "reArrangeTabs" href="#"><?php echo vtranslate('LBL_REARRANGE_DASHBOARD_TABS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</a></li></ul></div><button class="btn-success updateSequence pull-right hide"><?php echo vtranslate('LBL_SAVE_ORDER',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</button></div></ul><div class="tab-content"><?php $_smarty_tpl->tpl_vars['TAB_DATA'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['TAB_DATA']->_loop = false;
|
|
$_smarty_tpl->tpl_vars['index'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->tpl_vars['DASHBOARD_TABS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['TAB_DATA']->key => $_smarty_tpl->tpl_vars['TAB_DATA']->value){
|
|
$_smarty_tpl->tpl_vars['TAB_DATA']->_loop = true;
|
|
$_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['TAB_DATA']->key;
|
|
?><div id="tab_<?php echo $_smarty_tpl->tpl_vars['TAB_DATA']->value["id"];?>
|
|
" data-tabid="<?php echo $_smarty_tpl->tpl_vars['TAB_DATA']->value["id"];?>
|
|
" data-tabname="<?php echo $_smarty_tpl->tpl_vars['TAB_DATA']->value["tabname"];?>
|
|
" class="tab-pane fade <?php if ($_smarty_tpl->tpl_vars['TAB_DATA']->value["id"]==$_smarty_tpl->tpl_vars['SELECTED_TAB']->value){?>in active<?php }?>"><?php if ($_smarty_tpl->tpl_vars['TAB_DATA']->value["id"]==$_smarty_tpl->tpl_vars['SELECTED_TAB']->value){?><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("dashboards/DashBoardTabContents.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('TABID'=>$_smarty_tpl->tpl_vars['TABID']->value), 0);?>
|
|
<?php }?></div><?php } ?></div></div></div><?php }} ?>
|