session_start(); $url=getenv("QUERY_STRING"); //echo $url; //gestion de la langue //gestion de la langue if($s_lang) { $ext="uk"; }else{$ext=""; } //echo "ext $uk"; if(!isset($page)) {$page="transports";} if(!isset($inc)) {$inc="trans_reg_pays";} require("../inc_public/fonctions.php"); //-- ------------ ***************** COULEURS PAGE*****************************------------ --> if($page=="transports"){ $bg_titre="#F16F25"; $couleur_fleche="orange"; $titre="transports"; $balise_titre="TRANSPORTS";} elseif($page=="auxiliaires"){$bg_titre="#B81E28"; $couleur_fleche="rouge"; $titre="auxiliaires"; $balise_titre="AUXILIAIRES";} elseif($page=="entreposage"){$bg_titre="#3158BC"; $couleur_fleche="bleue"; $titre="entreposage"; $balise_titre="ENTREPOSAGE";} elseif($page=="ressources"){$bg_titre="#349E51"; $couleur_fleche="verte"; $titre="ressources"; $balise_titre="RESSOURCES";} elseif($page=="reglement"){$bg_titre="#603913"; $couleur_fleche="marron"; $titre="reglementpage"; $balise_titre="REGLEMENT";} elseif($page=="fret"){$bg_titre="#440E62"; $couleur_fleche="violet"; $titre="fretpage"; $balise_titre="FRET";} elseif($page=="extranet"){$bg_titre="#4A6FA1"; $couleur_fleche="defaut"; $titre="extranet"; $balise_titre="EXTRANET";} elseif($page=="contacts"){$bg_titre="#4A6FA1"; $couleur_fleche="defaut"; $titre="contacts"; $balise_titre="CONTACTS";} elseif($page=="quisommes"){$bg_titre="#4A6FA1"; $couleur_fleche="defaut"; $titre="quisommes"; $balise_titre="QUI SOMMES NOUS ";} else { $bg_titre="#F16F25"; $couleur_fleche="orange"; $titre="transports"; $balise_titre="TRANSPORTS";}; if($page=="transports_rech") { $bg_titre="#F16F25"; $couleur_fleche="orange";$balise_titre="TRANSPORTS"; if ($niveau!="pays"){ $titre="rech_reg"; } else { $titre="rech_pays";} } //-- ------------ ***************** GESTION PUB*****************************------------ --> include("../inc_admin/open.php"); if($page=="transports") { if($id_zone && !$pays & !$arrivee )// niveau région { // on recherche la pub pour cette page au niveau région, s'il n'y en a pas, on affiche la pub sans choix de page $row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pays=0 and id_port=0 and id_region = $id_zone and pu_page='$inc'")); $count=mysql_num_rows(mysql_query("select pu_bandeau,pu_lien from pub where id_pays=0 and id_port=0 and id_region = $id_zone and pu_page='$inc'")); if ($count<=0){$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pays=0 and id_port=0 and id_region = $id_zone and pu_page=''"));} } else { if($pays && !$arrivee)// niveau pays { // on recherche la pub pour cette page, s'il n'y en a pas, on affiche la pub sans choix de page $row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pays=$pays and id_port=0 and pu_page='$inc'")); $count=mysql_num_rows(mysql_query("select pu_bandeau,pu_lien from pub where id_pays=$pays and id_port=0 and pu_page='$inc'")); if ($count<=0){$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pays=$pays and id_port=0 and pu_page=''"));} } elseif($arrivee)// niveau port,aeroport { if($arrivee!="tous") { $row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien ,pu_affichage from pub where id_port=$arrivee")); $count=mysql_num_rows(mysql_query("select pu_bandeau,pu_lien ,pu_affichage from pub where id_port=$arrivee")); if($row[pu_affichage]=="pays"){ $row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pays=$pays and id_port=0")); $count=mysql_num_rows(mysql_query("select pu_bandeau,pu_lien from pub where id_pays=$pays and id_port=0")); } if ($count<=0){ $row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pays=$pays and id_port=0 and pu_affichage='pays'")); } }else{ $count=mysql_num_rows(mysql_query("select pu_bandeau,pu_lien from pub where id_pays=$pays and id_port=0 and pu_page='$inc'")); if ($count<=0){ $row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pays=$pays and id_port=0")); } else { $row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pays=$pays and id_port=0 and pu_page='$inc'")); } } } else//niveau rubrique { $row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=1")); } } } if($page=="auxiliaires") { $page_aff= $aerien.$maritime.$route.$fluvial; // pour voir ce qu'on affiche if($depart && !$route)// choix mar/air/fluv { $row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_port=$depart and pu_page='$page_aff'")); if($row[pu_affichage]=="rubrique"){$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=2"));} } elseif($depart && $route)// choix transporteur routier { $row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_region=$depart and pu_page='$page_aff'")); if($row[pu_affichage]=="rubrique") {$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=2"));} } else//niveau rubrique { // $row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=2")); if ($aerien == "comp_air") {$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=5"));} if ($aerien == "comp_rep") {$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=6"));} if ($aerien == "agent_fret"){$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=7"));} if ($maritime == "transitaire"){$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=9"));} if ($maritime == "nvocc"){$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=10"));} if ($route=="transporteur"){$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where pu_page='route'"));} if ($fluvial=="consignataire"){$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=11"));} if ($fluvial=="transitaire"){$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=12"));} } } if($page=="entreposage") { if($region)// niveau pays { $row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien,pu_affichage from pub where id_pays=55 and id_region=$region and id_port = 0 and pu_page='$page'")); if($row[pu_affichage]=="rubrique") {$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=3"));} } else//niveau rubrique { $row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=3")); } } if($page=="ressources") {$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=4"));} if($inc=="ressources_consult") {$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=8"));} if($page=="reglement") { $row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=13")); if ($categorie!=0) {// on a choisi une categorie $res_categ=mysql_fetch_array(mysql_query("select cat_code from categorie where cat_type = 'REGL' and idcateg=$categorie")); $codecateg=$res_categ[cat_code]; $row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where pu_affichage='$page' AND pu_page = '$codecateg'")); } } if($page=="fret"){$row=mysql_fetch_array(mysql_query("select pu_bandeau,pu_lien from pub where id_pub=14"));} include("../inc_admin/close.php"); ?>
|
|||||||||||||||
//fichiers demandes
if ($inc!="extranet") { echo " ";} $inc_retour = Char_Wait($inc); if ($inc_retour==$inc) { switch ($inc) { Case "aux_select": include("../inc_public/aux_select.php"); break; Case "auxiliaire": include("../inc_public/auxiliaire.php"); break; Case "auxiliaire_liste": include("../inc_public/auxiliaire_liste.php"); break; Case "auxiliaire_liste_spe": include("../inc_public/auxiliaire_liste_spe.php"); break; Case "auxiliaire_select": include("../inc_public/auxiliaire_select.php"); break; Case "entreposage": include("../inc_public/entreposage.php"); break; Case "entrepot_liste": include("../inc_public/entrepot_liste.php"); break; Case "extranet": include("../inc_public/extranet.php"); break; Case "pop_arm_soc": include("../inc_public/pop_arm_soc.php"); break; Case "pop_arm_socuk": include("../inc_public/pop_arm_socuk.php"); break; Case "pop_emploi": include("../inc_public/pop_emploi.php"); break; Case "pop_recherche": include("../inc_public/pop_recherche.php"); break; Case "ressources": include("../inc_public/ressources.php"); break; Case "ressources_consult": include("../inc_public/ressources_consult.php"); break; Case "trans_air_ligne": include("../inc_public/trans_air_ligne.php"); break; Case "trans_mar_escale": include("../inc_public/trans_mar_escale.php"); break; Case "trans_mar_ligne": include("../inc_public/trans_mar_ligne.php"); break; Case "trans_mode": include("../inc_public/trans_mode.php"); break; Case "trans_mode_recherche": include("../inc_public/trans_mode_recherche.php"); break; Case "trans_recherche": include("../inc_public/trans_recherche.php"); break; Case "trans_reg_pays": include("../inc_public/trans_reg_pays.php"); break; Case "trans_route_liste": include("../inc_public/trans_route_liste.php"); break; Case "reglement_liste": include("../inc_public/reglement_liste.php"); break; Case "regl_pays_recherche": include("../inc_public/regl_pays_recherche.php"); break; Case "fret_liste": include("../inc_public/fret_liste.php"); break; Case "extranet_adhesion": include("../inc_public/extranet_adhesion.php"); break; Case "extranet_rep_adh": if (!$s_lang) { echo " Votre inscription, entièrement gratuite, a été enregistrée. ";
} else {
echo "Nous vous envoyons vos codes à l'adresse mail suivante : $so_mail"; echo " Merci de votre confiance. Retour à l'accueil. Your inscription, entirely free, was recorded. ";
}
break;
} }else {
if (!$s_lang) {
echo "Vous n'etes pas autorisé à afficher cette page $laVar";
} else {
echo "You are not authorized to post this page $laVar";
}
}
if ($inc!="extranet") { echo "We send your codes with the following address mall to you: $so_mail"; echo " Thank you for your confidence. Return to the reception. ";} ?> |
|||||||||||||||