scriptname = $name; } function GetFullPath() { $pos = strrpos($this->scriptname, "/"); $this->full_path = substr($this->scriptname, 0, $pos); return $this->full_path; } function GetLanguagePath() { $pos = strrpos($this->GetFullPath(), "/"); $this->language_path = substr($this->GetFullPath(), 0, $pos); return $this->language_path; } function GetFilename() { $pos = strrpos($this->scriptname, "/") + 1; $this->filename = substr($this->scriptname, $pos, strlen($this->scriptname) - $pos); return $this->filename; } function GetSection() { $pos = strrpos($this->GetFullPath(), "/") + 1; $this->section = substr($this->GetFullPath(), $pos, strlen($this->GetFullPath()) - $pos); return $this->section; } function GetLanguage() { $pos = strrpos($this->GetLanguagePath(), "/") + 1; $this->language = substr($this->GetLanguagePath(), $pos, strlen($this->GetLanguagePath()) - $pos); return $this->language; } } ?> EasyLab - Dentallabor "; } else { $html = ""; } echo $html; } // Construit une url du menu haut function BuildEnteteMenuURL($Text, $pSection, $UserEnv) { if (strtoupper($pSection) == strtoupper($UserEnv->GetSection())) { //if (strtoupper($pPage.".php") == strtoupper($UserEnv->GetFilename())) { $buildLink = false; //} //else { //$buildLink = true; //} } else { $buildLink = true; } $array = explode("/",$_SERVER['PHP_SELF']); $repertoire_courant = $array[2]; if($pSection==$repertoire_courant) { $html = ""; } else { $html = ""; } echo $html; } // Construit une url pour le sous-menu function BuildSMenuURL($Text,$pFolder, $pFile, $UserEnv) { if (strtoupper($pFile) == strtoupper($UserEnv->GetFilename())) { $html = ""; } else { $html = ""; } echo $html; } ?>
  SetScriptName($SCRIPT_NAME); $array = explode("/",$_SERVER['PHP_SELF']); $repertoire_courant = $array[count($array)-2]; // Construit une url du menu haut function BuildMenuURL($Text, $pSection, $UserEnv) { if (strtoupper($pSection) == strtoupper($UserEnv->GetSection())) { //if (strtoupper($pPage.".php") == strtoupper($UserEnv->GetFilename())) { $buildLink = false; //} //else { //$buildLink = true; //} } else { $buildLink = true; } if ($buildLink) { $html = "
".$Text."
".$Text."