« Modèle:VILLE 2006 » : différence entre les versions
De Encyclopédie-de-L'AFN_1830-1962
mAucun résumé des modifications |
mAucun résumé des modifications |
||
(18 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 4 : | Ligne 4 : | ||
$Nom_actuel= $argv['Nom_actuel']; | $Nom_actuel= $argv['Nom_actuel']; | ||
$gauche= $argv['gauche']; | $gauche= $argv['gauche']; | ||
$haut= $argv['haut | $haut= $argv['haut']; | ||
$Pays=$argv['Pays']; | |||
$Pays= | |||
$LAT= $argv['LAT']; | $LAT= $argv['LAT']; | ||
$LNG= $argv['LNG']; | $LNG= $argv['LNG']; | ||
$nom_page= $name ; | if (isset ($argv['Village'])) {$Village= $argv['Village'];} else {$Village="non";} | ||
if (isset ($argv['ecu'])) {$ecu= $argv['ecu'];} else {$ecu= "non";} | |||
if (isset ($argv['Album'])) {$Album= $argv['Album'];} else {$Album="non";} | |||
if (isset ($argv['Forum'])) {$Forum= $argv['Forum'];} else {$Forum="non";} | |||
if (isset ($argv['doc'])) {$doc = $argv['doc'];} else {$doc="";} | |||
// à tester | |||
// WTitle __construct( NAME, NS_MAIN ); | |||
// $nom_page= $name ; | |||
$nom_page= (WTitle::NAME); | |||
// initialisation des images | // initialisation des images | ||
$IMG_ACTU= "[[Image:ecu_$Nom_ville.gif|center|120px]]"; | $IMG_ACTU= "[[Image:ecu_$Nom_ville.gif|center|120px]]"; | ||
$IMG_DEFO = "[[Image:ecu_vide.gif|center]]"; | $IMG_DEFO = "[[Image:ecu_vide.gif|center]]"; | ||
$ | $IMG_MAR = "[[Image:Maroc drapeau.png|center]]"; | ||
$IMG_TUN = "[[Image:Tunisie drapeau.gif|center]]"; | $IMG_TUN = "[[Image:Tunisie drapeau.gif|center]]"; | ||
$IMG_ALG = "[[Image:Algérie drapeau.gif|center]]"; | $IMG_ALG = "[[Image:Algérie drapeau.gif|center]]"; | ||
Ligne 31 : | Ligne 37 : | ||
*[[Historique Militaire - $Nom_ville - Ville | Historique Militaire]]"; | *[[Historique Militaire - $Nom_ville - Ville | Historique Militaire]]"; | ||
MENU_MEDIA =" '''Médiathèque''' | $MENU_MEDIA =" '''Médiathèque''' | ||
*[[:MEDIA $Nom_ville - Ville - DESSINS|DESSINS-CROQUIS]] | *[[:MEDIA $Nom_ville - Ville - DESSINS|DESSINS-CROQUIS]] | ||
*[[:MEDIA $Nom_ville - Ville - PHOTOS|PHOTOS]] | *[[:MEDIA $Nom_ville - Ville - PHOTOS|PHOTOS]] | ||
Ligne 69 : | Ligne 75 : | ||
if ($ecu == "oui") { $ecran_1 =$IMG_ACTU; } else { $ecran_1 =$IMG_DEFO; } | if ($ecu == "oui") { $ecran_1 =$IMG_ACTU; } else { $ecran_1 =$IMG_DEFO; } | ||
// condition sur pays | // condition sur pays | ||
$ecran_1 .= " | if ($Pays == "ALGERIE") {$ecran_1.=$IMG_ALG;} | ||
if ($Pays =="MAROC") {$ecran_1.=$IMG_MAR;} | |||
if ($Pays =="TUNISIE") {$ecran_1.=$IMG_TUN;} | |||
$ecran_1 .=$Pays; | |||
// titre menu gauche | // titre menu gauche | ||
$ecran_2="<span class=ombre_texte><big>[[$Nom_ville - Ville | $Nom_ville]]</biG></span> | $ecran_2="<span class=ombre_texte><big>[[$Nom_ville - Ville | $Nom_ville]]</biG></span> <span style='margin-left:10px;font-size:small;'>Nom actuel : $Nom_actuel</span>"; | ||
// condition sur menu gauche | // condition sur menu gauche | ||
if ($Village == "oui") { $ecran_2 .= $MENU_VILLAGE;} else { $ecran_2 .= $MENU_NORMAL;} | if ($Village == "oui") { $ecran_2 .= $MENU_VILLAGE;} else { $ecran_2 .= $MENU_NORMAL;} | ||
Ligne 86 : | Ligne 95 : | ||
{{ORI-COMMUN}} | {{ORI-COMMUN}} | ||
<table border=0 cellpadding=3 align=center width=733 cellspacing = 0 > | <table border=0 cellpadding=3 align=center width=733 cellspacing = 0 class=mm_boite_gris > | ||
<tr BGCOLOR=#bbe5da > | <tr BGCOLOR=#bbe5da > | ||
<td valign=middle align=center> | <td valign=middle align=center> | ||
{{# | {{#phptag: echo $ecran_1; }} | ||
</td> | </td> | ||
<td valign=top width=300> | <td valign=top width=300> | ||
{{# | {{#phptag: echo $ecran_2; }} | ||
</td> | </td> | ||
<td valign=top width=300> | <td valign=top width=300> | ||
{{# | {{#phptag: echo $ecran_3; }} | ||
</td> | </td> | ||
<td BGCOLOR=#bbe5da align=center width=135> | <td BGCOLOR=#bbe5da align=center width=135> | ||
<div style="position: relative">[[Image:cadre_fond.gif]] | <div style="position: relative">[[Image:cadre_fond.gif]] | ||
<div style="position: absolute; left: {{# | <div style="position: absolute; left: {{#phptag: echo $gauche; }}px; top: {{#phptag: echo $haut;}}px"> | ||
{| style="background:transparent" | {| style="background:transparent" | ||
|- | |- | ||
Ligne 111 : | Ligne 120 : | ||
<tr BGCOLOR=darkseagreen > | <tr BGCOLOR=darkseagreen > | ||
<td align=left width = 140> | <td align=left width = 140> | ||
</td> | </td> | ||
<td align=center> | <td align=center> |