Commit a44de181 authored by Hamza Arfaoui's avatar Hamza Arfaoui

CAFI165

parent 8e25da51
...@@ -818,7 +818,7 @@ function headerContenu($agence, $conseiller, $nocontent = false, $SERVER) { ...@@ -818,7 +818,7 @@ function headerContenu($agence, $conseiller, $nocontent = false, $SERVER) {
$html = $noTimer = ""; $html = $noTimer = "";
$reinforcement = $GLOBALS["PILE_CONF"]["REINFORCEMENT"] ? getReinforcementStatus($agence) : false; $reinforcement = $GLOBALS["PILE_CONF"]["REINFORCEMENT"] ? getReinforcementStatus($agence) : false;
if (!$GLOBALS["PILE_CONF"]["WHOISONLINE"]) { if (!$GLOBALS["PILE_CONF"]["WHOISONLINE"]) {
$html .= '<div id="logo"><a href="../admin/dashboard.php"><img src="/' . $agence->logo . '" border="0"/></a></div>'; $html .= '<div id="logo"><a href="../admin/dashboard.php"><img src="../' . $agence->logo . '" border="0"/></a></div>';
} else { } else {
$hidden = ' style=" display:none;"'; $hidden = ' style=" display:none;"';
} }
...@@ -2000,14 +2000,14 @@ function getAgentBoxInfos($agence, $conseiller, $reinforcement, $SERVER) { ...@@ -2000,14 +2000,14 @@ function getAgentBoxInfos($agence, $conseiller, $reinforcement, $SERVER) {
$showBorneStatus = ($conseiller->mobility_status == 1) ? 0 : 1; $showBorneStatus = ($conseiller->mobility_status == 1) ? 0 : 1;
$showBorne = ($showBorneStatus == 1) ? " shown" : " not-shown"; $showBorne = ($showBorneStatus == 1) ? " shown" : " not-shown";
$shownTitle = ($showBorneStatus == 1) ? "Affiché sur la borne" : "Pas affiché sur la borne"; $shownTitle = ($showBorneStatus == 1) ? "Affiché sur la borne" : "Pas affiché sur la borne";
$data .= '<img style="background-color:' . $GLOBALS["BORNE_CONF"]["COLORS"]["PRIMARYCOLOR"] . '" src="/' . $src_img . '" height="45" width="auto"><div title="' . $shownTitle . '" class="borne-status-indicator' . $showBorne . '"></div>'; $data .= '<img style="background-color:' . $GLOBALS["BORNE_CONF"]["COLORS"]["PRIMARYCOLOR"] . '" src="../' . $src_img . '" height="45" width="auto"><div title="' . $shownTitle . '" class="borne-status-indicator' . $showBorne . '"></div>';
} }
$data .= "<span>" . $conseiller->civ . " " . $conseiller->prenom . " " . $conseiller->nom . "</span>"; $data .= "<span>" . $conseiller->civ . " " . $conseiller->prenom . " " . $conseiller->nom . "</span>";
} }
} else { } else {
if (isset($_SESSION['matricule']) && $conseiller && !($conseiller instanceof fakeConseiller)) { if (isset($_SESSION['matricule']) && $conseiller && !($conseiller instanceof fakeConseiller)) {
if (isset($conseiller->photo)) { if (isset($conseiller->photo)) {
$data .= '<img style="background-color:' . $GLOBALS["BORNE_CONF"]["COLORS"]["PRIMARYCOLOR"] . '" src="/' . $src_img . '" height="45" width="auto">'; $data .= '<img style="background-color:' . $GLOBALS["BORNE_CONF"]["COLORS"]["PRIMARYCOLOR"] . '" src="../' . $src_img . '" height="45" width="auto">';
} }
$data .= '<span>' . $conseiller->civ . " " . $conseiller->prenom . " " . $conseiller->nom . ' $data .= '<span>' . $conseiller->civ . " " . $conseiller->prenom . " " . $conseiller->nom . '
<span style="margin-left:130px;"><a href="./close.php?IDA=' . $agence->code_agence . '">Déconnexion</a></span>'; <span style="margin-left:130px;"><a href="./close.php?IDA=' . $agence->code_agence . '">Déconnexion</a></span>';
......
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