Commit 029bc26f authored by Hamza Arfaoui's avatar Hamza Arfaoui

CAFI173

parent b9c1c106
...@@ -881,29 +881,29 @@ function getPileMenu($agence, $conseiller, $reinforcement, $SERVER) { ...@@ -881,29 +881,29 @@ function getPileMenu($agence, $conseiller, $reinforcement, $SERVER) {
} }
if ($publicStats || $director) { if ($publicStats || $director) {
if ($accessDirector) { if ($accessDirector) {
$standardStatsLink = (!empty($GLOBALS["STATS_CONF"]["STANDARD_V2"]) && $GLOBALS["STATS_CONF"]["STANDARD_V2"]) ? ("/statistiques/charts/standard.php?filter_level=agence_" . $agence->id_agence) : ("/statistiques/?filter_level=agence_" . $agence->id_agence); $standardStatsLink = (!empty($GLOBALS["STATS_CONF"]["STANDARD_V2"]) && $GLOBALS["STATS_CONF"]["STANDARD_V2"]) ? ("../statistiques/charts/standard.php?filter_level=agence_" . $agence->id_agence) : ("../statistiques/?filter_level=agence_" . $agence->id_agence);
$html .= '<li><i class="fa fa-bar-chart" aria-hidden="true"></i><span><a target="_blank" href="' . $standardStatsLink . '">Rapport standard</a></span></li>'; $html .= '<li><i class="fa fa-bar-chart" aria-hidden="true"></i><span><a target="_blank" href="' . $standardStatsLink . '">Rapport standard</a></span></li>';
} }
if ($GLOBALS["PILE_CONF"]["STATS"]["DCC"]) { if ($GLOBALS["PILE_CONF"]["STATS"]["DCC"]) {
$html .= '<li><i class="fa fa-table" aria-hidden="true"></i><span><a target="_blank" href="/statistiques/dcc/?agency=' . $agence->eds . '">Rapport détaillé</a></span></li>'; $html .= '<li><i class="fa fa-table" aria-hidden="true"></i><span><a target="_blank" href="../statistiques/dcc/?agency=' . $agence->eds . '">Rapport détaillé</a></span></li>';
} }
if ($GLOBALS["STATS_CONF"]["DAILY"]["ACCESS"] == "ALL") { if ($GLOBALS["STATS_CONF"]["DAILY"]["ACCESS"] == "ALL") {
$html .= '<li><i class="fa fa-bar-chart" aria-hidden="true"></i><span><a target="_blank" href="/statistiques/charts/">Statistiques journalières</a></span></li>'; $html .= '<li><i class="fa fa-bar-chart" aria-hidden="true"></i><span><a target="_blank" href="../statistiques/charts/">Statistiques journalières</a></span></li>';
} }
if ($GLOBALS["STATS_CONF"]["YEARLY"]["ACCESS"] == "ALL" || $GLOBALS["STATS_CONF"]["MONTHLY"]["ACCESS"] == "ALL" || $GLOBALS["STATS_CONF"]["WEEKLY"]["ACCESS"] == "ALL") { if ($GLOBALS["STATS_CONF"]["YEARLY"]["ACCESS"] == "ALL" || $GLOBALS["STATS_CONF"]["MONTHLY"]["ACCESS"] == "ALL" || $GLOBALS["STATS_CONF"]["WEEKLY"]["ACCESS"] == "ALL") {
$html .= '<li><i class="fa fa-pie-chart" aria-hidden="true"></i><span><a target="_blank" href="/statistiques/charts/weekly_chart.php">Statistiques an-mois-semaine</a></span></li>'; $html .= '<li><i class="fa fa-pie-chart" aria-hidden="true"></i><span><a target="_blank" href="../statistiques/charts/weekly_chart.php">Statistiques an-mois-semaine</a></span></li>';
} }
if ($GLOBALS["STATS_CONF"]["RECAP"]["ACCESS"] == "ALL") { if ($GLOBALS["STATS_CONF"]["RECAP"]["ACCESS"] == "ALL") {
$html .= '<li><i class="fa fa-table" aria-hidden="true"></i><span><a target="_blank" href="/statistiques/charts/recap_table.php">Récapitulatif clients</a></span></li>'; $html .= '<li><i class="fa fa-table" aria-hidden="true"></i><span><a target="_blank" href="../statistiques/charts/recap_table.php">Récapitulatif clients</a></span></li>';
} }
if (isset($GLOBALS["PILE_CONF"]["MENU"]["DASHBOARD"]["ACCESS"]) && $GLOBALS["PILE_CONF"]["MENU"]["DASHBOARD"]["ACCESS"] == "DA" && $director) { if (isset($GLOBALS["PILE_CONF"]["MENU"]["DASHBOARD"]["ACCESS"]) && $GLOBALS["PILE_CONF"]["MENU"]["DASHBOARD"]["ACCESS"] == "DA" && $director) {
$html .= '<li><i class="fa fa-key" aria-hidden="true"></i><span><a target="_blank" href="/admin/dashboard.php">Administration</a></span></li>'; $html .= '<li><i class="fa fa-key" aria-hidden="true"></i><span><a target="_blank" href="../admin/dashboard.php">Administration</a></span></li>';
} }
} }
if ($afa && $agence->is_afa && !$conseiller->user_cc && $GLOBALS["PILE_CONF"]["MENU"]["CCM"]["ACCESS"]) { if ($afa && $agence->is_afa && !$conseiller->user_cc && $GLOBALS["PILE_CONF"]["MENU"]["CCM"]["ACCESS"]) {
$rappel_text = $GLOBALS["PILE_CONF"]["MENU"]["RAPPEL_TEXT"] ? $GLOBALS["PILE_CONF"]["MENU"]["RAPPEL_TEXT"] : 'Rappels'; $rappel_text = $GLOBALS["PILE_CONF"]["MENU"]["RAPPEL_TEXT"] ? $GLOBALS["PILE_CONF"]["MENU"]["RAPPEL_TEXT"] : 'Rappels';
$html .= '<li><i class="fa fa-envelope" aria-hidden="true"></i><span><a href="/pile/pileAFA.php?IDA=' . $agence->code_agence . "&MAT=" . $conseiller->id_agent . '">'.$rappel_text.'</a></span></li>'; $html .= '<li><i class="fa fa-envelope" aria-hidden="true"></i><span><a href="pileAFA.php?IDA=' . $agence->code_agence . "&MAT=" . $conseiller->id_agent . '">'.$rappel_text.'</a></span></li>';
} }
if ($pro) { if ($pro) {
...@@ -914,7 +914,7 @@ function getPileMenu($agence, $conseiller, $reinforcement, $SERVER) { ...@@ -914,7 +914,7 @@ function getPileMenu($agence, $conseiller, $reinforcement, $SERVER) {
} else { } else {
$html .= '<li><i class="fa fa-sign-in" aria-hidden="true"></i><span onclick="login(\'' . $agence->code_agence . '\')">Connexion</span></li>'; $html .= '<li><i class="fa fa-sign-in" aria-hidden="true"></i><span onclick="login(\'' . $agence->code_agence . '\')">Connexion</span></li>';
if ($publicStats) { if ($publicStats) {
$html .= '<li><i class="fa fa-bar-chart" aria-hidden="true"></i><span><a href="/statistiques">Rapport standard</a></span></li>'; $html .= '<li><i class="fa fa-bar-chart" aria-hidden="true"></i><span><a href="../statistiques">Rapport standard</a></span></li>';
} }
} }
$html .= '</ul> $html .= '</ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment