<?php // // Ce fichier ne sera execute qu'une fois if (defined("_ECRIRE_INC_PRESENTATION")) return; define("_ECRIRE_INC_PRESENTATION", "1"); include_ecrire ("inc_lang.php3"); utiliser_langue_visiteur(); // // Aide // function aide($aide='') { global $couleur_foncee, $spip_lang, $spip_lang_rtl, $dir_ecrire; if (!$aide) return; return " <a class='aide' href=\"".$dir_ecrire."aide_index.php3?aide=$aide&var_lang=$spip_lang\" target=\"spip_aide\" ". "onclick=\"javascript:window.open(this.href, 'spip_aide', 'scrollbars=yes, ". "resizable=yes, width=740, height=580'); return false;\"><img ". "src=\"img_pack/aide.gif\" alt=\""._T('info_image_aide')."\" ". "title=\""._T('titre_image_aide')."\" width=\"12\" height=\"12\" border=\"0\" ". "align=\"middle\"></a>"; } // // affiche un bouton imessage // function bouton_imessage($destinataire, $row = '') { // si on passe "force" au lieu de $row, on affiche l'icone sans verification global $connect_id_auteur; global $spip_lang_rtl; global $couche_invisible; $couche_invisible ++; $url = new Link("message_edit.php3"); // verifier que ce n'est pas un auto-message if ($destinataire == $connect_id_auteur) return; // verifier que le destinataire a un login if ($row != "force") { $login_req = "select login, messagerie from spip_auteurs where id_auteur=$destinataire AND en_ligne>DATE_SUB(NOW(),INTERVAL 15 DAY)"; $row = spip_fetch_array(spip_query($login_req)); if (($row['login'] == "") OR ($row['messagerie'] == "non")) { return; } } $url->addVar('dest',$destinataire); $url->addVar('new','oui'); $url->addVar('type','normal'); if ($destinataire) $title = _T('info_envoyer_message_prive'); else $title = _T('info_ecire_message_prive'); $texte_bouton = "<img src='img_pack/m_envoi$spip_lang_rtl.gif' width='14' height='7' border='0'>"; $ret .= "<a href='". $url->getUrl() ."' title=\"$title\">"; $ret .= "$texte_bouton</a>"; return $ret; } // Faux HR, avec controle de couleur function hr($color, $retour = false) { $ret = "<div style='height: 1px; margin-top: 5px; padding-top: 5px; border-top: 1px solid $color;'></div>"; if ($retour) return $ret; else echo $ret; } // // Cadres // function debut_cadre($style, $icone = "", $fonction = "", $titre = "") { global $spip_display, $spip_lang_left; static $accesskey = 97; // a // accesskey pour accessibilite espace prive $accesskey_c = chr($accesskey++); $ret = "<a name='access-$accesskey_c' href='#access-$accesskey_c' accesskey='$accesskey_c'></a>"; $ret .= "<div style='position: relative; z-index: 1;'>"; if ($spip_display != 1 AND strlen($icone) > 1) { $style_gauche = " style='padding-$spip_lang_left: 38px;'"; $ret .= "<div style='position: absolute; top: 0px; $spip_lang_left: 10px; z-index: 2;'>"; if ($fonction) { $ret .= "<div style='$bgright"."background: url(img_pack/$icone) no-repeat; padding: 0px; margin: 0px;'>"; $ret .= "<img src='img_pack/$fonction'>"; $ret .= "</div>"; } else $ret .= "<img src='img_pack/$icone'>"; $ret .= "</div>"; $style_cadre = " style='position: relative; top: 15px; margin-bottom: 15px; z-index: 1;'"; } if ($style == "e") { $ret .= "<div class='cadre-e-noir'$style_cadre><div class='cadre-$style'>"; } else { $ret .= "<div class='cadre-$style'$style_cadre>"; } if (strlen($titre) > 0) { $ret .= "<div class='cadre-titre'$style_gauche>$titre</div>"; } $ret .= "<div class='cadre-padding'>"; return $ret; } function fin_cadre($style="") { if ($style == "e") $ret = "</div>"; $ret .= "</div></div></div>\n"; $ret .= "<div style='height: 5px;'></div>"; return $ret; } function debut_cadre_relief($icone='', $return = false, $fonction='', $titre = ''){ $retour_aff = debut_cadre('r', $icone, $fonction, $titre); if ($return) return $retour_aff; else echo $retour_aff; } function fin_cadre_relief($return = false){ $retour_aff = fin_cadre('r'); if ($return) return $retour_aff; else echo $retour_aff; } function debut_cadre_enfonce($icone='', $return = false, $fonction='', $titre = ''){ $retour_aff = debut_cadre('e', $icone, $fonction, $titre); if ($return) return $retour_aff; else echo $retour_aff; } function fin_cadre_enfonce($return = false){ $retour_aff = fin_cadre('e'); if ($return) return $retour_aff; else echo $retour_aff; } function debut_cadre_gris_clair($icone='', $return = false, $fonction='', $titre = ''){ $retour_aff = debut_cadre('gris-clair', $icone, $fonction, $titre); if ($return) return $retour_aff; else echo $retour_aff; } function fin_cadre_gris_clair($return = false){ $retour_aff = fin_cadre('gris-clair'); if ($return) return $retour_aff; else echo $retour_aff; } function debut_cadre_couleur($icone='', $return = false, $fonction='', $titre=''){ $retour_aff = debut_cadre('couleur', $icone, $fonction, $titre); if ($return) return $retour_aff; else echo $retour_aff; } function fin_cadre_couleur($return = false){ $retour_aff = fin_cadre('couleur'); if ($return) return $retour_aff; else echo $retour_aff; } function debut_cadre_trait_couleur($icone='', $return = false, $fonction='', $titre=''){ $retour_aff = debut_cadre('trait-couleur', $icone, $fonction, $titre); if ($return) return $retour_aff; else echo $retour_aff; } function fin_cadre_trait_couleur($return = false){ $retour_aff = fin_cadre('trait-couleur'); if ($return) return $retour_aff; else echo $retour_aff; } // // une boite alerte // function debut_boite_alerte() { echo "<p><table cellpadding='6' border='0'><tr><td width='100%' bgcolor='red'>"; echo "<table width='100%' cellpadding='12' border='0'><tr><td width='100%' bgcolor='white'>"; } function fin_boite_alerte() { echo "</td></tr></table>"; echo "</td></tr></table>"; } // // une boite info // function debut_boite_info() { /* global $couleur_claire, $couleur_foncee; echo " <p><div style='border: 1px dashed #666666;'><table cellpadding='5' cellspacing='0' border='0' width='100%' style='border-left: 1px solid $couleur_foncee; border-top: 1px solid $couleur_foncee; border-bottom: 1px solid white; border-bottom: 1px solid white' background=''>"; echo "<tr><td bgcolor='$couleur_claire' width='100%'>"; echo "<font face='Verdana,Arial,Sans,sans-serif' size='2' color='#333333'>"; */ echo "<div class='cadre-info'>"; } function fin_boite_info() { //echo "</font></td></tr></table></div>\n\n"; echo "</div>"; } // // une autre boite // function bandeau_titre_boite($titre, $afficher_auteurs, $boite_importante = true) { global $couleur_foncee; if ($boite_importante) { $couleur_fond = $couleur_foncee; $couleur_texte = '#FFFFFF'; } else { $couleur_fond = '#EEEECC'; $couleur_texte = '#000000'; } echo "<tr bgcolor='$couleur_fond'><td width=\"100%\"><FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='$couleur_texte'>"; echo "<B>$titre</B></FONT></TD>"; if ($afficher_auteurs){ echo "<TD WIDTH='100'>"; echo "<img src='img_pack/rien.gif' alt='' width='100' height='12' border='0'>"; echo "</TD>"; } echo "<TD WIDTH='90'>"; echo "<img src='img_pack/rien.gif' alt='' width='90' height='12' border='0'>"; echo "</TD>"; echo "</TR>"; } // // une autre boite // function bandeau_titre_boite2($titre, $logo="", $fond="white", $texte="black") { global $spip_lang_left, $spip_display; if (strlen($logo) > 0 AND $spip_display != 1) { echo "<div style='position: relative;'>"; echo "<div style='position: absolute; top: -12px; $spip_lang_left: 3px;'><img src='img_pack/$logo'></div>"; echo "<div style='background-color: $fond; color: $texte; padding: 3px; padding-$spip_lang_left: 30px; border-bottom: 1px solid #444444;' class='verdana2'><b>$titre</b></div>"; echo "</div>"; } else { echo "<div style='background-color: $fond; color: $texte; padding: 3px; border-bottom: 1px solid #444444;' class='verdana2'><b>$titre</b></div>"; } } // // La boite raccourcis // function debut_raccourcis() { echo "<div> </div>"; creer_colonne_droite(); debut_cadre_enfonce(); echo "<font face='Verdana,Arial,Sans,sans-serif' size=1>"; echo "<b>"._T('titre_cadre_raccourcis')."</b><p />"; } function fin_raccourcis() { echo "</font>"; fin_cadre_enfonce(); } // // Fonctions d'affichage // function afficher_liste($largeurs, $table, $styles = '') { global $couleur_claire; if (!is_array($table)) return; reset($table); echo "\n"; while (list(, $t) = each($table)) { // $couleur_fond = ($ifond ^= 1) ? '#FFFFFF' : $couleur_claire; //echo "<tr bgcolor=\"$couleur_fond\">"; echo "<tr class='tr_liste' onMouseOver=\"changeclass(this,'tr_liste_over');\" onMouseOut=\"changeclass(this,'tr_liste');\">"; reset($largeurs); if ($styles) reset($styles); while (list(, $texte) = each($t)) { $style = $largeur = ""; list(, $largeur) = each($largeurs); if ($styles) list(, $style) = each($styles); if (!trim($texte)) $texte .= " "; echo "<td"; if ($largeur) echo " width=\"$largeur\""; if ($style) echo " class=\"$style\""; echo ">$texte</td>"; } echo "</tr>\n"; } echo "\n"; } function afficher_tranches_requete(&$query, $colspan) { static $ancre = 0; global $spip_lang_right; $query = trim($query); $query_count = eregi_replace('^(SELECT)[[:space:]].*[[:space:]](FROM)[[:space:]]', '\\1 COUNT(*) \\2 ', $query); list($num_rows) = spip_fetch_row(spip_query($query_count)); if (!$num_rows) return; $nb_aff = 10; // Ne pas couper pour trop peu if ($num_rows <= 1.5 * $nb_aff) $nb_aff = $num_rows; if (ereg('LIMIT .*,([0-9]+)', $query, $regs)) { if ($num_rows > $regs[1]) $num_rows = $regs[1]; } $texte = "\n"; if ($num_rows > $nb_aff) { $tmp_var = $query; $deb_aff = intval(getTmpVar($tmp_var)); $ancre++; $texte .= "<a name='a$ancre'></a>"; $texte .= "<tr style='background-color: #dddddd;'><td class=\"arial2\" style='border-bottom: 1px solid #444444;' colspan=\"".($colspan - 1)."\">"; for ($i = 0; $i < $num_rows; $i += $nb_aff){ $deb = $i + 1; $fin = $i + $nb_aff; if ($fin > $num_rows) $fin = $num_rows; if ($deb > 1) $texte .= " | "; if ($deb_aff + 1 >= $deb AND $deb_aff + 1 <= $fin) { $texte .= "<B>$deb</B>"; } else { $link = new Link; $link->addTmpVar($tmp_var, strval($deb - 1)); $texte .= "<A HREF=\"".$link->getUrl()."#a$ancre\">$deb</A>"; } } $texte .= "</td>\n"; $texte .= "<td class=\"arial2\" style='border-bottom: 1px solid #444444; text-align: $spip_lang_right;' colspan=\"1\" align=\"right\" valign=\"top\">"; if ($deb_aff == -1) { $texte .= "<B>"._T('info_tout_afficher')."</B>"; } else { $link = new Link; $link->addTmpVar($tmp_var, -1); $texte .= "<A HREF=\"".$link->getUrl()."#a$ancre\">"._T('lien_tout_afficher')."</A>"; } $texte .= "</td>\n"; $texte .= "</tr>\n"; if ($deb_aff != -1) { $query = eregi_replace('LIMIT[[:space:]].*$', '', $query); $query .= " LIMIT $deb_aff, $nb_aff"; } } return $texte; } // // Afficher tableau d'articles // function afficher_articles($titre_table, $requete, $afficher_visites = false, $afficher_auteurs = true, $toujours_afficher = false, $afficher_cadre = true, $afficher_descriptif = true) { global $connect_id_auteur, $connect_statut, $dir_lang; global $options; global $spip_lang_left; $activer_messagerie = lire_meta("activer_messagerie"); $activer_statistiques = lire_meta("activer_statistiques"); $afficher_visites = ($afficher_visites AND $connect_statut == "0minirezo" AND $activer_statistiques != "non"); if (!ereg("^SELECT", $requete)) { $select = "SELECT articles.id_article, articles.titre, articles.id_rubrique, articles.statut, articles.date"; if ((lire_meta('multi_rubriques') == 'oui' AND $GLOBALS['coll'] == 0) OR lire_meta('multi_articles') == 'oui') { $afficher_langue = true; if ($GLOBALS['langue_rubrique']) $langue_defaut = $GLOBALS['langue_rubrique']; else $langue_defaut = lire_meta('langue_site'); $select .= ", articles.lang"; } if ($afficher_visites) $select .= ", articles.visites, articles.popularite"; if ($afficher_descriptif) $select .= ", articles.descriptif"; $select .= ", petitions.id_article AS petition "; $requete = $select . "FROM spip_articles AS articles " . $requete; } if ($options == "avancees") $ajout_col = 1; else $ajout_col = 0; $tranches = afficher_tranches_requete($requete, $afficher_auteurs ? 3 + $ajout_col : 2 + $ajout_col); $requete = str_replace("FROM spip_articles AS articles ", "FROM spip_articles AS articles LEFT JOIN spip_petitions AS petitions USING (id_article)", $requete); if (strlen($tranches) OR $toujours_afficher) { $result = spip_query($requete); // if ($afficher_cadre) debut_cadre_gris_clair("article-24.gif"); echo "<div style='height: 12px;'></div>"; echo "<div class='liste'>"; bandeau_titre_boite2($titre_table, "article-24.gif"); echo "<table width='100%' cellpadding='2' cellspacing='0' border='0'>"; echo $tranches; while ($row = spip_fetch_array($result)) { $vals = ''; $id_article = $row['id_article']; $tous_id[] = $id_article; $titre = $row['titre']; $id_rubrique = $row['id_rubrique']; $date = $row['date']; $statut = $row['statut']; $visites = $row['visites']; if ($lang = $row['lang']) changer_typo($lang); $popularite = ceil(min(100,100 * $row['popularite'] / max(1, 0 + lire_meta('popularite_max')))); $descriptif = $row['descriptif']; if ($descriptif) $descriptif = ' title="'.attribut_html(typo($descriptif)).'"'; $petition = $row['petition']; if ($afficher_auteurs) { $les_auteurs = ""; $query2 = "SELECT auteurs.id_auteur, nom, messagerie, login, en_ligne ". "FROM spip_auteurs AS auteurs, spip_auteurs_articles AS lien ". "WHERE lien.id_article=$id_article AND auteurs.id_auteur=lien.id_auteur"; $result_auteurs = spip_query($query2); while ($row = spip_fetch_array($result_auteurs)) { $id_auteur = $row['id_auteur']; $nom_auteur = typo($row['nom']); $auteur_messagerie = $row['messagerie']; $les_auteurs .= ", <a href='auteurs_edit.php3?id_auteur=$id_auteur'>$nom_auteur</a>"; if ($id_auteur != $connect_id_auteur AND $auteur_messagerie != "non" AND $activer_messagerie != "non") { $les_auteurs .= " ".bouton_imessage($id_auteur, $row); } } $les_auteurs = substr($les_auteurs, 2); } $les_auteurs = "<div class='liste_clip' style='width: 100px;'>$les_auteurs</div>"; switch ($statut) { case 'publie': $puce = 'verte'; $title = _T('info_article_publie'); break; case 'prepa': $puce = 'blanche'; $title = _T('info_article_redaction'); break; case 'prop': $puce = 'orange'; $title = _T('info_article_propose'); break; case 'refuse': $puce = 'rouge'; $title = _T('info_article_refuse'); break; case 'poubelle': $puce = 'poubelle'; $title = _T('info_article_supprime'); break; } $puce = "puce-$puce.gif"; $s = "<div style='background: url(img_pack/$puce) $spip_lang_left center no-repeat; margin-$spip_lang_left: 3px; padding-$spip_lang_left: 14px;'>"; //$s. = "<a href=\"articles.php3?id_article=$id_article\" title=\"$title\">"; //$s .= "<img src=\"img_pack/$puce\" alt='' width=\"13\" height=\"14\" border=\"0\"></a> "; if (acces_restreint_rubrique($id_rubrique)) $s .= "<img src='img_pack/admin-12.gif' alt='' width='12' height='12' title='"._T('titre_image_admin_article')."'> "; $s .= "<a href=\"articles.php3?id_article=$id_article\"$descriptif$dir_lang>".typo($titre)."</a>"; if ($afficher_langue AND $lang != $langue_defaut) $s .= " <font size='1' color='#666666'$dir_lang>(".traduire_nom_langue($lang).")</font>"; if ($petition) $s .= " <Font size=1 color='red'>"._T('lien_petitions')."</font>"; $s .= "</div>"; $vals[] = $s; if ($afficher_auteurs) $vals[] = $les_auteurs; $s = affdate_jourcourt($date); if ($afficher_visites AND $visites > 0) { $s .= "<br><font size=\"1\"><a href='statistiques_visites.php3?id_article=$id_article'>"._T('lien_visites', array('visites' => $visites))."</a></font>"; if ($popularite > 0) $s .= "<br><font size=\"1\"><a href='statistiques_visites.php3?id_article=$id_article'>"._T('lien_popularite', array('popularite' => $popularite))."</a></font>"; } $s = "<div class='liste_clip' style='width: 100px;'>$s</div>"; $vals[] = $s; if ($options == "avancees") { $vals[] = "<b>"._T('info_numero_abbreviation')."$id_article</b>"; } $table[] = $vals; } spip_free_result($result); if ($options == "avancees") { // Afficher le numero (JMB) if ($afficher_auteurs) { $largeurs = array('', 80, 100, 30); $styles = array('arial2', 'arial1', 'arial1', 'arial1'); } else { $largeurs = array('', 100, 30); $styles = array('arial2', 'arial1', 'arial1'); } } else { if ($afficher_auteurs) { $largeurs = array('', 100, 100); $styles = array('arial2', 'arial1', 'arial1'); } else { $largeurs = array('', 100); $styles = array('arial2', 'arial1'); } } afficher_liste($largeurs, $table, $styles); echo "</table>"; echo "</div>"; //if ($afficher_cadre) fin_cadre_gris_clair(); } return $tous_id; } // // Afficher tableau de breves // function afficher_breves($titre_table, $requete, $affrub=false) { global $connect_id_auteur, $spip_lang_right, $spip_lang_left, $dir_lang, $couleur_claire, $couleur_foncee; global $options; if ((lire_meta('multi_rubriques') == 'oui' AND $GLOBALS['coll'] == 0) OR lire_meta('multi_articles') == 'oui') { $afficher_langue = true; $requete = ereg_replace(" FROM", ", lang FROM", $requete); if ($GLOBALS['langue_rubrique']) $langue_defaut = $GLOBALS['langue_rubrique']; else $langue_defaut = lire_meta('langue_site'); } if ($options == "avancees") $tranches = afficher_tranches_requete($requete, 3); else $tranches = afficher_tranches_requete($requete, 2); if (strlen($tranches)) { //debut_cadre_relief("breve-24.gif"); if ($titre_table) echo "<div style='height: 12px;'></div>"; echo "<div class='liste'>"; if ($titre_table) { bandeau_titre_boite2($titre_table, "breve-24.gif", $couleur_foncee, "white"); } echo "<table width='100%' cellpadding='3' cellspacing='0' border='0' background=''>"; echo $tranches; $result = spip_query($requete); $table = ''; while ($row = spip_fetch_array($result)) { $vals = ''; $id_breve = $row['id_breve']; $tous_id[] = $id_breve; $date_heure = $row['date_heure']; $titre = $row['titre']; $statut = $row['statut']; if ($lang = $row['lang']) changer_typo($lang); $id_rubrique = $row['id_rubrique']; switch ($statut) { case 'prop': $puce = "puce-orange-breve"; $title = _T('titre_breve_proposee'); break; case 'publie': $puce = "puce-verte-breve"; $title = _T('titre_breve_publiee'); break; case 'refuse': $puce = "puce-rouge-breve"; $title = _T('titre_breve_refusee'); break; } $s = "<div style='background: url(img_pack/$puce.gif) $spip_lang_left center no-repeat; margin-$spip_lang_left: 3px; padding-$spip_lang_left: 12px;'>"; $s .= "<a href='breves_voir.php3?id_breve=$id_breve'$dir_lang>"; $s .= typo($titre); $s .= "</a>"; if ($afficher_langue AND $lang != $langue_defaut) $s .= " <font size='1' color='#666666'$dir_lang>(".traduire_nom_langue($lang).")</font>"; $s .= "</div>"; $vals[] = $s; $s = ""; if ($affrub) { $rub = spip_fetch_array(spip_query("SELECT id_rubrique, titre FROM spip_rubriques WHERE id_rubrique=$id_rubrique")); $id_rubrique = $rub['id_rubrique']; $s .= "<a href='naviguer.php3?coll=$id_rubrique'>".typo($rub['titre'])."</a>"; } else if ($statut != "prop") $s = affdate_jourcourt($date_heure); else $s .= _T('info_a_valider'); $vals[] = $s; if ($options == "avancees") { $vals[] = "<b>"._T('info_numero_abbreviation')."$id_breve</b>"; } $table[] = $vals; } spip_free_result($result); if ($options == "avancees") { if ($affrub) $largeurs = array('', '170', '30'); else $largeurs = array('', '100', '30'); $styles = array('arial11', 'arial1', 'arial1'); } else { if ($affrub) $largeurs = array('', '170'); else $largeurs = array('', '100'); $styles = array('arial11', 'arial1'); } afficher_liste($largeurs, $table, $styles); echo "</table></div>"; //fin_cadre_relief(); } return $tous_id; } // // Afficher tableau de rubriques // function afficher_rubriques($titre_table, $requete) { global $connect_id_auteur; global $spip_lang_rtl; $tranches = afficher_tranches_requete($requete, 2); if (strlen($tranches)) { if ($titre_table) echo "<div style='height: 12px;'></div>"; echo "<div class='liste'>"; //debut_cadre_relief("rubrique-24.gif"); if ($titre_table) { bandeau_titre_boite2($titre_table, "rubrique-24.gif", "#999999", "white"); } echo "<table width=100% cellpadding=3 cellspacing=0 border=0 background=''>"; echo $tranches; $result = spip_query($requete); $table = ''; while ($row = spip_fetch_array($result)) { $vals = ''; $id_rubrique = $row['id_rubrique']; $id_parent = $row['id_parent']; $tous_id[] = $id_rubrique; $titre = $row['titre']; if ($id_parent == 0) $puce = "img_pack/secteur-12.gif"; else $puce = "img_pack/rubrique-12.gif"; $s = "<b><a href=\"naviguer.php3?coll=$id_rubrique\">"; $s .= "<img src=\"$puce\" alt=\"- \" border=\"0\"> "; $s .= typo($titre); $s .= "</A></b>"; $vals[] = $s; $s = "<div align=\"right\">"; $s .= "</div>"; $vals[] = $s; $table[] = $vals; } spip_free_result($result); $largeurs = array('', ''); $styles = array('arial2', 'arial2'); afficher_liste($largeurs, $table, $styles); echo "</TABLE>"; //fin_cadre_relief(); echo "</div>"; } return $tous_id; } // // Afficher des auteurs sur requete SQL // function bonhomme_statut($row) { global $connect_statut; switch($row['statut']) { case "0minirezo": $image = "<img src='img_pack/admin-12.gif' alt='' title='"._T('titre_image_administrateur')."' border='0'>"; break; case "1comite": if ($connect_statut == '0minirezo' AND ($row['source'] == 'spip' AND !($row['pass'] AND $row['login']))) $image = "<img src='img_pack/visit-12.gif' alt='' title='"._T('titre_image_redacteur')."' border='0'>"; else $image = "<img src='img_pack/redac-12.gif' alt='' title='"._T('titre_image_redacteur_02')."' border='0'>"; break; case "5poubelle": $image = "<img src='img_pack/poubelle.gif' alt='' title='"._T('titre_image_auteur_supprime')."' border='0'>"; break; case "6forum": $image = "<img src='img_pack/visit-12.gif' alt='' title='"._T('titre_image_visiteur')."' border='0'>"; break; case "nouveau": default: $image = ''; break; } return $image; } // La couleur du statut function puce_statut($statut, $type='article') { switch ($statut) { case 'publie': return 'verte'; case 'prepa': return 'blanche'; case 'prop': return 'orange'; case 'refuse': return 'rouge'; case 'poubelle': return 'poubelle'; } } function afficher_auteurs ($titre_table, $requete) { $tranches = afficher_tranches_requete($requete, 2); if (strlen($tranches)) { debut_cadre_relief("redacteurs-24.gif"); if ($titre_table) { echo "<p><table width=100% cellpadding=0 cellspacing=0 border=0 background=''>"; echo "<tr><td width=100% background=''>"; echo "<table width=100% cellpadding=3 cellspacing=0 border=0>"; echo "<tr bgcolor='#333333'><td width=100% colspan=2><font face='Verdana,Arial,Sans,sans-serif' size=3 color='#FFFFFF'>"; echo "<b>$titre_table</b></font></td></tr>"; } else { echo "<p><table width=100% cellpadding=3 cellspacing=0 border=0 background=''>"; } echo $tranches; $result = spip_query($requete); $table = ''; while ($row = spip_fetch_array($result)) { $vals = ''; $id_auteur = $row['id_auteur']; $tous_id[] = $id_auteur; $nom = $row['nom']; $s = bonhomme_statut($row); $s .= "<a href=\"auteurs_edit.php3?id_auteur=$id_auteur\">"; $s .= typo($nom); $s .= "</a>"; $vals[] = $s; $table[] = $vals; } spip_free_result($result); $largeurs = array(''); $styles = array('arial2'); afficher_liste($largeurs, $table, $styles); if ($titre_table) echo "</TABLE></TD></TR>"; echo "</TABLE>"; fin_cadre_relief(); } return $tous_id; } /* * Afficher liste de messages */ function afficher_messages($titre_table, $query_message, $afficher_auteurs = true, $important = false, $boite_importante = true, $obligatoire = false) { global $messages_vus; global $connect_id_auteur; global $couleur_claire, $couleur_foncee; global $spip_lang_rtl, $spip_lang_left; // Interdire l'affichage de message en double if ($messages_vus) { $query_message .= ' AND messages.id_message NOT IN ('.join(',', $messages_vus).')'; } if ($afficher_auteurs) $cols = 3; else $cols = 2; $query_message .= ' ORDER BY date_heure DESC'; $tranches = afficher_tranches_requete($query_message, $cols); if ($tranches OR $obligatoire) { if ($important) debut_cadre_couleur(); echo "<div style='height: 12px;'></div>"; echo "<div class='liste'>"; // bandeau_titre_boite($titre_table, $afficher_auteurs, $boite_importante); bandeau_titre_boite2($titre_table, "messagerie-24.gif", $couleur_foncee, "white"); echo "<TABLE WIDTH='100%' CELLPADDING='2' CELLSPACING='0' BORDER='0'>"; echo $tranches; $result_message = spip_query($query_message); $num_rows = spip_num_rows($result_message); while($row = spip_fetch_array($result_message)) { $vals = ''; $id_message = $row['id_message']; $date = $row["date_heure"]; $date_fin = $row["date_fin"]; $titre = $row["titre"]; $type = $row["type"]; $statut = $row["statut"]; $page = $row["page"]; $rv = $row["rv"]; $vu = $row["vu"]; $messages_vus[$id_message] = $id_message; // // Titre // $s = "<A HREF='message.php3?id_message=$id_message'>"; switch ($type) { case 'pb' : $puce = "m_envoi_bleu$spip_lang_rtl.gif"; break; case 'memo' : $puce = "m_envoi_jaune$spip_lang_rtl.gif"; break; case 'affich' : $puce = "m_envoi_jaune$spip_lang_rtl.gif"; break; case 'normal': default: $puce = "m_envoi$spip_lang_rtl.gif"; break; } $s .= "<img src='img_pack/$puce' width='14' height='7' border='0'>"; $s .= " ".typo($titre)."</A>"; $vals[] = $s; // // Auteurs if ($afficher_auteurs) { $query_auteurs = "SELECT auteurs.id_auteur, auteurs.nom FROM spip_auteurs AS auteurs, spip_auteurs_messages AS lien WHERE lien.id_message=$id_message AND lien.id_auteur!=$connect_id_auteur AND lien.id_auteur=auteurs.id_auteur"; $result_auteurs = spip_query($query_auteurs); $auteurs = ''; while ($row_auteurs = spip_fetch_array($result_auteurs)) { $id_auteur = $row_auteurs['id_auteur']; $auteurs[] = "<a href='auteurs_edit.php3?id_auteur=$id_auteur'>".typo($row_auteurs['nom'])."</a>"; } if ($auteurs AND $type == 'normal') { $s = "<FONT FACE='Arial,Sans,sans-serif' SIZE=1>"; $s .= join(', ', $auteurs); $s .= "</FONT>"; } else $s = " "; $vals[] = $s; } // // Date // $s = affdate($date); if ($rv == 'oui') { $jour=journum($date); $mois=mois($date); $annee=annee($date); $heure = heures($date).":".minutes($date); $heure_fin = heures($date_fin).":".minutes($date_fin); $s = "<div style='background: url(img_pack/rv-12.gif) $spip_lang_left center no-repeat; padding-$spip_lang_left: 15px;'><a href='calendrier_jour.php3?jour=$jour&mois=$mois&annee=$annee'><b style='color: black;'>$s</b><br />$heure-$heure_fin</a></div>"; } else { $s = "<font color='#999999'>$s</font>"; } $vals[] = $s; $table[] = $vals; } if ($afficher_auteurs) { $largeurs = array('', 130, 120); $styles = array('arial2', 'arial1', 'arial1'); } else { $largeurs = array('', 120); $styles = array('arial2', 'arial1'); } afficher_liste($largeurs, $table, $styles); echo "</TABLE>"; echo "</div>\n\n"; spip_free_result($result_message); if ($important) fin_cadre_couleur(); } } // // Afficher les forums // function afficher_forum($request, $adresse_retour, $controle = "non", $recurrence = "oui") { global $debut; static $compteur_forum; static $nb_forum; static $i; global $couleur_foncee; global $connect_id_auteur, $connect_activer_messagerie; global $mots_cles_forums; global $spip_lang_rtl; $activer_messagerie = lire_meta("activer_messagerie"); $compteur_forum++; $nb_forum[$compteur_forum] = spip_num_rows($request); $i[$compteur_forum] = 1; while($row = spip_fetch_array($request)) { $id_forum=$row['id_forum']; $id_parent=$row['id_parent']; $id_rubrique=$row['id_rubrique']; $id_article=$row['id_article']; $id_breve=$row['id_breve']; $id_message=$row['id_message']; $id_syndic=$row['id_syndic']; $date_heure=$row['date_heure']; $titre=$row['titre']; $texte=$row['texte']; $auteur=$row['auteur']; $email_auteur=$row['email_auteur']; $nom_site=$row['nom_site']; $url_site=$row['url_site']; $statut=$row['statut']; $ip=$row["ip"]; $id_auteur=$row["id_auteur"]; if ($compteur_forum==1){echo "<BR><BR>\n";} $afficher = ($controle=="oui") ? ($statut!="perso") : (($statut=="prive" OR $statut=="privrac" OR $statut=="privadm" OR $statut=="perso") OR ($statut=="publie" AND $id_parent > 0)); if ($afficher) { echo "<table width=100% cellpadding=0 cellspacing=0 border=0><tr>"; for ($count=2;$count<=$compteur_forum AND $count<20;$count++){ $fond[$count]='img_pack/rien.gif'; if ($i[$count]!=$nb_forum[$count]){ $fond[$count]='img_pack/forum-vert.gif'; } $fleche='img_pack/rien.gif'; if ($count==$compteur_forum){ $fleche="img_pack/forum-droite$spip_lang_rtl.gif"; } echo "<td width=10 valign='top' background=$fond[$count]><img src='$fleche' alt='' width=10 height=13 border=0></td>\n"; } echo "\n<td width=100% valign='top'>"; // Si refuse, cadre rouge if ($statut=="off") { echo "<table width=100% cellpadding=2 cellspacing=0 border=0><tr><td>"; } // Si propose, cadre jaune else if ($statut=="prop") { echo "<table width=100% cellpadding=2 cellspacing=0 border=0><tr><td>"; } if ($compteur_forum == 1) echo debut_cadre_relief("forum-interne-24.gif"); echo "<table width=100% cellpadding=3 cellspacing=0><tr><td bgcolor='$couleur_foncee'><font face='Verdana,Arial,Sans,sans-serif' size=2 color='#FFFFFF'><b>".typo($titre)."</b></font></td></tr>"; echo "<tr><td bgcolor='#EEEEEE' class='serif2'>"; echo "<span class='arial2'>$date_heure</span>"; if ($email_auteur) { echo " <a href=\"mailto:$email_auteur?subject=".rawurlencode($titre)."\">".typo($auteur)."</a>"; } else { echo " ".typo($auteur); } if ($id_auteur AND $activer_messagerie != "non" AND $connect_activer_messagerie != "non") { $bouton = bouton_imessage($id_auteur,$row_auteur); if ($bouton) echo " ".$bouton; } if ($controle == "oui") { if ($statut != "off") { icone (_T('icone_supprimer_message'), "articles_forum.php3?id_article=$id_article&supp_forum=$id_forum&debut=$debut", "forum-interne-24.gif", "supprimer.gif", "right"); } else { echo "<br><font color='red'><b>"._T('info_message_supprime')." $ip</b></font>"; if ($id_auteur) { echo " - <a href='auteurs_edit.php3?id_auteur=$id_auteur'>"._T('lien_voir_auteur')."</A>"; } } if ($statut == "prop" OR $statut == "off") { icone (_T('icone_valider_message'), "articles_forum.php3?id_article=$id_article&valid_forum=$id_forum&debut=$debut", "forum-interne-24.gif", "creer.gif", "right"); } } echo justifier(propre($texte)); if (strlen($url_site) > 10 AND $nom_site) { echo "<div align='left' class='verdana2'><b><a href='$url_site'>$nom_site</a></b></div>"; } if ($controle != "oui") { echo "<div align='right' class='verdana1'>"; $url = "forum_envoi.php3?id_parent=$id_forum&adresse_retour=".rawurlencode($adresse_retour) ."&titre_message=".rawurlencode($titre); echo "<b><a href=\"$url\">"._T('lien_repondre_message')."</a></b></div>"; } if ($mots_cles_forums == "oui"){ $query_mots = "SELECT * FROM spip_mots AS mots, spip_mots_forum AS lien WHERE lien.id_forum = '$id_forum' AND lien.id_mot = mots.id_mot"; $result_mots = spip_query($query_mots); while ($row_mots = spip_fetch_array($result_mots)) { $id_mot = $row_mots['id_mot']; $titre_mot = propre($row_mots['titre']); $type_mot = propre($row_mots['type']); echo "<li> <b>$type_mot :</b> $titre_mot"; } } echo "</td></tr></table>"; if ($compteur_forum == 1) echo fin_cadre_relief(); if ($statut == "off" OR $statut == "prop") { echo "</td></tr></table>"; } echo "</td></tr></table>\n"; if ($recurrence == "oui") forum($id_forum,$adresse_retour,$controle); } $i[$compteur_forum]++; } spip_free_result($request); $compteur_forum--; } function forum($le_forum, $adresse_retour, $controle = "non") { echo "<div class='serif2'>"; if ($controle == "oui") { $query_forum2 = "SELECT * FROM spip_forum WHERE id_parent='$le_forum' ORDER BY date_heure"; } else { $query_forum2 = "SELECT * FROM spip_forum WHERE id_parent='$le_forum' AND statut<>'off' ORDER BY date_heure"; } $result_forum2 = spip_query($query_forum2); afficher_forum($result_forum2, $adresse_retour, $controle); echo "</div>"; } // // un bouton (en POST) a partir d'un URL en format GET // function bouton($titre,$lien) { $lapage=substr($lien,0,strpos($lien,"?")); $lesvars=substr($lien,strpos($lien,"?")+1,strlen($lien)); echo "\n<form action='$lapage' method='get'>\n"; $lesvars=explode("&",$lesvars); for($i=0;$i<count($lesvars);$i++){ $var_loc=explode("=",$lesvars[$i]); echo "<input type='Hidden' name='$var_loc[0]' value=\"$var_loc[1]\">\n"; } echo "<input type='submit' name='Submit' class='fondo' value=\"$titre\">\n"; echo "</form>"; } // // Presentation de l'interface privee, debut du HTML // function debut_html($titre = "", $rubrique="", $onLoad="") { global $couleur_foncee, $couleur_claire, $couleur_lien, $couleur_lien_off; global $flag_ecrire; global $spip_lang_rtl, $spip_lang_left; global $mode; global $connect_statut, $connect_toutes_rubriques; $nom_site_spip = entites_html(lire_meta("nom_site")); $titre = textebrut(typo($titre)); if (!$nom_site_spip) $nom_site_spip="SPIP"; if (!$charset = lire_meta('charset')) $charset = 'utf-8'; @Header("Expires: 0"); @Header("Cache-Control: no-cache,no-store"); @Header("Pragma: no-cache"); @Header("Content-Type: text/html; charset=$charset"); echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>\n<html>\n<head>\n<title>[$nom_site_spip] $titre</title>\n"; echo '<meta http-equiv="Content-Type" content="text/html; charset='.$charset.'">'; echo '<link rel="stylesheet" type="text/css" href="'; if (!$flag_ecrire) echo 'ecrire/'; $link = new Link('spip_style.php3'); $link->addVar('couleur_claire', $couleur_claire); $link->addVar('couleur_foncee', $couleur_foncee); $link->addVar('left', $GLOBALS['spip_lang_left']); $link->addVar('right', $GLOBALS['spip_lang_right']); echo $link->getUrl()."\">\n"; afficher_script_layer(); ?> <script type='text/javascript'><!-- var init_gauche = true; var memo_obj = new Array(); function findObj(n) { //v4.0 var p,i,x; // Voir si on n'a pas deja memoriser cet element if (memo_obj[n]) { return memo_obj[n]; } d = document; if((p = n.indexOf("?"))>0 && parent.frames.length) { d = parent.frames[n.substring(p+1)].document; n = n.substring(0,p); } if(!(x = d[n]) && d.all) { x = d.all[n]; } for (i = 0; !x && i<d.forms.length; i++) { x = d.forms[i][n]; } for(i=0; !x && d.layers && i<d.layers.length; i++) x = findObj(n,d.layers[i].document); if(!x && document.getElementById) x = document.getElementById(n); // Memoriser l'element memo_obj[n] = x; return x; } function hide_obj(obj) { element = findObj(obj); if (element.style.visibility != "hidden") element.style.visibility = "hidden"; } function changestyle(id_couche, element, style) { <?php if ($connect_statut == "0minirezo" AND $connect_toutes_rubriques) { ?> hide_obj("bandeaudocuments"); hide_obj("bandeauredacteurs"); <?php if (lire_meta("activer_statistiques") != 'non') { ?> hide_obj("bandeausuivi"); <?php } ?> hide_obj("bandeauadministration"); <?php } ?> hide_obj("bandeaudeconnecter"); hide_obj("bandeautoutsite"); hide_obj("bandeaunavrapide"); hide_obj("bandeauagenda"); hide_obj("bandeaumessagerie"); hide_obj("bandeausynchro"); hide_obj("bandeaurecherche"); hide_obj("bandeauinfoperso"); hide_obj("bandeaudisplay"); hide_obj("bandeauecran"); hide_obj("bandeauinterface"); if (init_gauche) { <?php if ($connect_statut == "0minirezo" AND $connect_toutes_rubriques) { ?> decalerCouche('bandeaudocuments'); decalerCouche('bandeauredacteurs'); <?php if (lire_meta("activer_statistiques") != 'non') ?> decalerCouche('bandeausuivi'); decalerCouche('bandeauadministration'); <?php } ?> init_gauche = false; } if (!(layer = findObj(id_couche))) return; layer.style[element] = style; } function decalerCouche(id_couche) { if (!(layer = findObj(id_couche))) return; <?php if ($spip_lang_left == "left") { /* uniquement affichage ltr: bug Mozilla dans offsetWidth quand ecran inverse! */ ?> if ( parseInt(layer.style.<?php echo $spip_lang_left; ?>) > 0) { gauche = parseInt(layer.style.<?php echo $spip_lang_left; ?>) - Math.floor( layer.offsetWidth / 2 ) + Math.floor(<?php echo largeur_icone_bandeau_principal(_T('icone_a_suivre')); ?> / 2); if (gauche < 0) gauche = 0; layer.style.<?php echo $spip_lang_left; ?> = gauche+"px"; } <?php } ?> } function changeclass(objet, myClass) { objet.className = myClass; } function changesurvol(iddiv, myClass) { document.getElementById(iddiv).className = myClass; } function setActiveStyleSheet(title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if(a.getAttribute("title") == title) a.disabled = false; } } } function setvisibility (objet, statut) { element = findObj(objet); if (element.style.visibility != statut) element.style.visibility = statut; } function getHeight(obj) { if (obj == "window") { return hauteur_fenetre(); } else { obj = document.getElementById(obj); if (obj.offsetHeight) return obj.offsetHeight; } } function hauteur_fenetre() { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myHeight = window.innerHeight; } else { if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myHeight = document.documentElement.clientHeight; } else { if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myHeight = document.body.clientHeight; } } } return myHeight; } function hauteurFrame(nbCol) { hauteur = hauteur_fenetre() - 40; hauteur = hauteur - getHeight('haut-page'); if (findObj('brouteur_hierarchie')) hauteur = hauteur - getHeight('brouteur_hierarchie'); for (i=0; i<nbCol; i++) { source = document.getElementById("iframe" + i); source.style.height = hauteur + 'px'; } } function hauteurTextarea() { hauteur = hauteur_fenetre() - 80; source = document.getElementById("text_area"); source.style.height = hauteur + 'px'; } function changeVisible(input, id, select, nonselect) { if (input) { element = findObj(id); if (element.style.display != select) element.style.display = select; } else { element = findObj(id); if (element.style.display != nonselect) element.style.display = nonselect; } } function verifForm() { <?php // Hack pour forcer largeur des formo/forml sous Mozilla >= 1.7 // meme principe que le behavior win_width.htc pour MSIE global $browser_name, $browser_version, $browser_rev; if (eregi("mozilla", $browser_name) AND $browser_rev >= 1.7) { ?> retrait = 16; var obj=document.getElementsByTagName("input"); for(i=0;i<obj.length;i++) { if(obj[i].className=="forml" || obj[i].className=="formo") { element = obj[i]; if (element.offsetWidth) { obj[i]["nouvelle-largeur"] = (element.offsetWidth - retrait) + "px"; } else { obj[i]["nouvelle-largeur"] = "95%"; } } } var objx=document.getElementsByTagName("textarea"); for(i=0;i<objx.length;i++) { if(objx[i].className=="forml" || objx[i].className=="formo") { element = objx[i]; if (element.offsetWidth) { objx[i]["nouvelle-largeur"] = (element.offsetWidth - retrait) + "px"; } else { objx[i]["nouvelle-largeur"] = "95%"; } } } // Appliquer les modifs apres les calculs, sinon des decalages peuvent apparaitre for(i=0;i<obj.length;i++) { if (obj[i]["nouvelle-largeur"]) obj[i].style.width = obj[i]["nouvelle-largeur"]; } for(i=0;i<objx.length;i++) { if (objx[i]["nouvelle-largeur"]) objx[i].style.width = objx[i]["nouvelle-largeur"]; } <?php } ?> } var antifocus=false; // effacement titre quand new=oui //--></script> <link rel="alternate stylesheet" href="spip_style_invisible.css" type="text/css" title="invisible" /> <link rel="stylesheet" href="spip_style_visible.css" type="text/css" title="visible" /> </head> <?php echo "<body text='#000000' bgcolor='#f8f7f3' link='$couleur_lien' vlink='$couleur_lien_off' alink='$couleur_lien_off' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0' frameborder='0'"; if ($spip_lang_rtl) echo " dir='rtl'"; //if ($mode == "wysiwyg") echo " onLoad='debut_editor();'"; echo " onLoad=\"setActiveStyleSheet('invisible'); verifForm();$onLoad\""; echo ">"; } // Fonctions onglets function onglet_relief_inter(){ global $spip_display; echo "<td> </td>"; } function debut_onglet(){ global $spip_display; echo "\n\n"; echo "<div style='padding: 7px;'><table cellpadding='0' cellspacing='0' border='0' align='center'>"; echo "<tr>"; } function fin_onglet(){ global $spip_display; echo "</tr>"; echo "</table></div>\n\n"; } function onglet($texte, $lien, $onglet_ref, $onglet, $icone=""){ global $spip_display, $spip_lang_left ; echo "<td>"; if ($onglet != $onglet_ref) { echo "<div style='position: relative;'>"; if ($spip_display != 1) { if (strlen($icone) > 0) { echo "<div style='z-index: 2; position: absolute; top: 0px; $spip_lang_left: 5px;'><img src='img_pack/$icone' /></div>"; $style = " top: 7px; padding-$spip_lang_left: 32px; z-index: 1;"; } else { $style = " top: 7px;"; } } echo "<div onMouseOver=\"changeclass(this, 'onglet_on');\" onMouseOut=\"changeclass(this, 'onglet');\" class='onglet' style='position: relative;$style'><a href='$lien'>$texte</a></div>"; echo "</div>"; } else { echo "<div style='position: relative;'>"; if ($spip_display != 1) { if (strlen($icone) > 0) { echo "<div style='z-index: 2; position: absolute; top: 0px; $spip_lang_left: 5px;'><img src='img_pack/$icone' /></div>"; $style = " top: 7px; padding-$spip_lang_left: 32px; z-index: 1;"; } else { $style = " top: 7px;"; } } echo "<div class='onglet_off' style='position: relative;$style'>$texte</div>"; echo "</div>"; } echo "</td>"; } function barre_onglets($rubrique, $onglet){ global $id_auteur, $connect_id_auteur, $connect_statut, $statut_auteur, $options; debut_onglet(); if ($rubrique == "statistiques") { // onglet(_T('onglet_evolution_visite_mod'), "statistiques_visites.php3", "evolution", $onglet, "statistiques-24.gif"); // onglet(_T('titre_liens_entrants'), "statistiques_referers.php3", "referers", $onglet, "referers-24.gif"); } if ($rubrique == "repartition") { if (lire_meta('multi_articles') == 'oui' OR lire_meta('multi_rubriques') == 'oui') { onglet(_T('onglet_repartition_rubrique'), "statistiques.php3", "rubriques", $onglet, "rubrique-24.gif"); onglet(_T('onglet_repartition_lang'), "statistiques_lang.php3", "langues", $onglet, "langues-24.gif"); } } if ($rubrique == "rep_depuis") { onglet(_T('icone_repartition_actuelle'), "statistiques_lang.php3", "popularite", $onglet); onglet(_T('onglet_repartition_debut'), "statistiques_lang.php3?critere=debut", "debut", $onglet); } if ($rubrique == "stat_depuis") { onglet(_T('icone_repartition_actuelle'), "statistiques.php3", "popularite", $onglet); onglet(_T('onglet_repartition_debut'), "statistiques.php3?critere=debut", "debut", $onglet); } if ($rubrique == "administration"){ onglet(_T('onglet_save_restaur_base'), "admin_tech.php3", "sauver", $onglet, "base-24.gif"); onglet(_T('onglet_affacer_base'), "admin_effacer.php3", "effacer", $onglet, "supprimer.gif"); } if ($rubrique == "auteur"){ $activer_messagerie = lire_meta("activer_messagerie"); $activer_imessage = lire_meta("activer_imessage"); onglet(_T('onglet_auteur'), "auteurs_edit.php3?id_auteur=$id_auteur", "auteur", $onglet, "redacteurs-24.gif"); onglet(_T('onglet_informations_personnelles'), "auteur_infos.php3?id_auteur=$id_auteur", "infos", $onglet, "fiche-perso-24.gif"); if ($activer_messagerie!="non" AND $connect_id_auteur == $id_auteur) onglet(_T('onglet_messagerie'), "auteur_messagerie.php3?id_auteur=$id_auteur", "messagerie", $onglet, "messagerie-24.gif"); } if ($rubrique == "configuration"){ onglet(_T('onglet_contenu_site'), "configuration.php3", "contenu", $onglet, "racine-site-24.gif"); onglet(_T('onglet_interactivite'), "config-contenu.php3", "interactivite", $onglet, "forum-interne-24.gif"); onglet(_T('onglet_fonctions_avances'), "config-fonctions.php3", "fonctions", $onglet, "image-24.gif"); } if ($rubrique == "config_lang") { onglet(_T('info_langue_principale'), "config-lang.php3", "langues", $onglet, "langues-24.gif"); onglet(_T('info_multilinguisme'), "config-multilang.php3", "multi", $onglet, "traductions-24.gif"); if (lire_meta('multi_articles') == "oui" OR lire_meta('multi_rubriques') == "oui") { onglet(_T('module_fichiers_langues'), "lang_raccourcis.php3", "fichiers", $onglet, "traductions-24.gif"); } } if ($rubrique == "forums") { onglet(_T('titre_forum'), "forum.php3", "privrac", $onglet, "forum-interne-24.gif"); onglet(_T('icone_forum_administrateur'), "forum_admin.php3", "privadm", $onglet, "forum-admin-24.gif"); } if ($rubrique == "suivi_forum"){ onglet(_T('onglet_messages_publics'), "controle_forum.php3?page=public", "public", $onglet, "racine-site-24.gif"); onglet(_T('onglet_messages_internes'), "controle_forum.php3?page=interne", "interne", $onglet, "forum-interne-24.gif"); $query_forum = "SELECT * FROM spip_forum WHERE statut='publie' AND texte='' LIMIT 0,1"; $result_forum = spip_query($query_forum); if ($row = spip_fetch_array($result_forum)) { onglet(_T('onglet_messages_vide'), "controle_forum.php3?page=vide", "sans", $onglet); } } fin_onglet(); } function largeur_icone_bandeau_principal($texte) { global $spip_display, $spip_ecran ; global $connect_statut, $connect_toutes_rubriques; if ($spip_display == 1){ $largeur = 80; } else if ($spip_display == 3){ $largeur = 60; } else { if (count(explode(" ", $texte)) > 1) $largeur = 84; else $largeur = 80; $alt = " alt=\" \""; } if ($spip_ecran == "large") $largeur = $largeur + 30; if (!($connect_statut == "0minirezo" AND $connect_toutes_rubriques)) { $largeur = $largeur + 30; } return $largeur; } function icone_bandeau_principal($texte, $lien, $fond, $rubrique_icone = "vide", $rubrique = "", $lien_noscript = "", $sous_rubrique_icone = "", $sous_rubrique = ""){ global $spip_display, $spip_ecran, $couleur_foncee ; global $menu_accesskey, $compteur_survol; $largeur = largeur_icone_bandeau_principal($texte); if ($spip_display == 1){ } else if ($spip_display == 3){ $title = " title=\"$texte\""; $alt = " alt=\"$texte\""; } else { $alt = " alt=\" \""; } if (!$menu_accesskey) $menu_accesskey = 1; if ($menu_accesskey < 10) { $accesskey = " accesskey='$menu_accesskey'"; $menu_accesskey++; } else if ($menu_accesskey == 10) { $accesskey = " accesskey='0'"; $menu_accesskey++; } if ($sous_rubrique_icone == $sous_rubrique) $class_select = " class='selection'"; if (eregi("^javascript:",$lien)) { $a_href = "<a$accesskey onClick=\"$lien; return false;\" href='$lien_noscript' target='spip_aide'$class_select>"; } else { $a_href = "<a$accesskey href=\"$lien\"$class_select>"; } $compteur_survol ++; if ($spip_display != 1) { echo "<td class='cellule48' onMouseOver=\"changestyle('bandeau$rubrique_icone', 'visibility', 'visible');\" width='$largeur'>$a_href<img src='img_pack/$fond' width='48' height='48'$alt$title>"; if ($spip_display != 3) { echo "<span>$texte</span>"; } } else echo "<td class='cellule-texte' onMouseOver=\"changestyle('bandeau$rubrique_icone', 'visibility', 'visible');\" width='$largeur'>$a_href".$texte; echo "</a></td>\n"; } function icone_bandeau_secondaire($texte, $lien, $fond, $rubrique_icone = "vide", $rubrique, $aide=""){ global $spip_display; global $menu_accesskey, $compteur_survol; if ($spip_display == 1) { //$hauteur = 20; $largeur = 80; } else if ($spip_display == 3){ //$hauteur = 26; $largeur = 40; $title = " title=\"$texte\""; $alt = " alt=\"$texte\""; } else { //$hauteur = 68; if (count(explode(" ", $texte)) > 1) $largeur = 80; else $largeur = 70; $alt = " alt=\" \""; } if ($aide AND $spip_display != 3) { $largeur += 50; //$texte .= aide($aide); } if ($spip_display != 3 AND strlen($texte)>16) $largeur += 20; if (!$menu_accesskey) $menu_accesskey = 1; if ($menu_accesskey < 10) { $accesskey = " accesskey='$menu_accesskey'"; $menu_accesskey++; } else if ($menu_accesskey == 10) { $accesskey = " accesskey='0'"; $menu_accesskey++; } if ($spip_display == 3) $accesskey_icone = $accesskey; if ($rubrique_icone == $rubrique) $class_select = " class='selection'"; $compteur_survol ++; $a_href = "<a$accesskey href=\"$lien\"$class_select>"; if ($spip_display != 1) { echo "<td class='cellule36' style='width: ".$largeur."px;'>"; echo "$a_href<img src='img_pack/$fond'$alt$title>"; if ($aide AND $spip_display != 3) echo aide($aide)." "; if ($spip_display != 3) { echo "<span>$texte</span>"; } } else echo "<td class='cellule-texte' width='$largeur'>$a_href".$texte; echo "</a>"; echo "</td>\n"; } function icone($texte, $lien, $fond, $fonction="", $align="", $afficher='oui'){ global $spip_display, $couleur_claire, $couleur_foncee, $compteur_survol; if (strlen($fonction) < 3) $fonction = "rien.gif"; if (strlen($align) > 2) $aligner = " ALIGN='$align' "; if ($spip_display == 1){ $hauteur = 20; $largeur = 100; $alt = " alt=\"\""; } else if ($spip_display == 3){ $hauteur = 30; $largeur = 30; $title = " title=\"$texte\""; $alt = " alt=\"$texte\""; } else { $hauteur = 70; $largeur = 100; } if ($fonction == "supprimer.gif") { $style = '-danger'; } else { $style = ''; } $compteur_survol ++; $icone .= "\n<table cellpadding='0' class='pointeur' cellspacing='0' border='0' $aligner width='$largeur'>"; $icone .= "<tr><td class='icone36$style' style='text-align:center;'><a href='$lien'>"; if ($spip_display != 1){ if ($fonction != "rien.gif"){ $icone .= "<img src='img_pack/$fonction'$alt$title style='background: url(img_pack/$fond) no-repeat center center;' width='24' height='24' border='0'>"; } else { $icone .= "<img src='img_pack/$fond'$alt$title width='24' height='24' border='0'>"; } } if ($spip_display != 3){ $icone .= "<span>$texte</span>"; } $icone .= "</a></td></tr>"; $icone .= "</table>"; if ($afficher == 'oui') echo $icone; else return $icone; } function icone_horizontale($texte, $lien, $fond = "", $fonction = "") { global $spip_display, $couleur_claire, $couleur_foncee, $compteur_survol; if (!$fonction) $fonction = "rien.gif"; $danger = ($fonction == "supprimer.gif"); if ($danger) echo "<div class='danger'>"; if ($spip_display != 1) { echo "<a href='$lien' class='cellule-h'><table cellpadding='0' valign='middle'><tr>\n"; echo "<td><a href='$lien'><div class='cell-i'><img style='background: url(\"img_pack/$fond\") center center no-repeat;' src='img_pack/$fonction' alt=''></div></a></td>\n"; echo "<td class='cellule-h-lien'><a href='$lien' class='cellule-h'>$texte</a></td>\n"; echo "</tr></table></a>\n"; } else { echo "<a href='$lien' class='cellule-h-texte'><div>$texte</div></a>\n"; } if ($danger) echo "</div>"; } function bandeau_barre_verticale(){ echo "<td class='separateur'></td>\n"; } // lien changement de couleur function lien_change_var($lien, $set, $couleur, $coords, $titre, $mouseOver="") { $lien->addVar($set, $couleur); return "\n<area shape='rect' href='". $lien->getUrl() ."' coords='$coords' title=\"$titre\" $mouseOver>"; } // // Debut du corps de la page // function bandeau_rubrique ($id_rubrique, $titre_rubrique, $z = 1) { global $zdecal; global $spip_ecran, $spip_display; global $spip_lang, $spip_lang_rtl, $spip_lang_left, $spip_lang_right; // Calcul du nombre max de sous-menus $zdecal = $zdecal + 1; if ($spip_ecran == "large") $zmax = 8; else $zmax= 6; // Limiter volontairement le nombre de sous-menus $zmax = 3; if ($zindex < 1) $zindex = 1; if ($zdecal == 1) $image = "secteur-12.gif"; else $image = "rubrique-12.gif"; $result_rub = spip_query("SELECT * FROM spip_rubriques WHERE id_parent=$id_rubrique ORDER BY titre"); $i = spip_num_rows($result_rub); if ($i > 0 AND $zdecal < $zmax) { // echo "<div style='position: relative; z-index: $z;' onMouseOver=\"findObj('bandeau_rub$id_rubrique').style.visibility = 'visible';\" onMouseOut=\"findObj('bandeau_rub$id_rubrique').style.visibility = 'hidden';\">\n"; echo "<div style='position: relative; z-index: $z;' onMouseOver=\"setvisibility('bandeau_rub$id_rubrique', 'visible');\" onMouseOut=\"setvisibility('bandeau_rub$id_rubrique', 'hidden');\">\n"; echo "<div style='background: url(img_pack/triangle-droite$spip_lang_rtl.gif) $spip_lang_right center no-repeat;'><a href='naviguer.php3?coll=$id_rubrique' class='bandeau_rub' style='background-image: url(img_pack/$image);'>$titre_rubrique</a></div>\n"; echo "<div class='bandeau_rub' style='z-index: ".($z+1).";' id='bandeau_rub$id_rubrique'>"; while ($row_rub = spip_fetch_array($result_rub)) { $id_rub = $row_rub["id_rubrique"]; $titre_rub = supprimer_numero(typo($row_rub["titre"])); //echo "<a href='naviguer.php3?coll=$id_rub' class='bandeau_rub'>$titre_rub</a>"; bandeau_rubrique ($id_rub, $titre_rub, ($z+$i)); $i = $i - 1; } echo "</div>"; echo "</div></n>"; } else { echo "<div><a href='naviguer.php3?coll=$id_rubrique' class='bandeau_rub' style='background-image: url(img_pack/$image); padding-$spip_lang_right: 2px;'>$titre_rubrique</a></div>"; } $zdecal = $zdecal - 1; } function debut_page($titre = "", $rubrique = "asuivre", $sous_rubrique = "asuivre", $onLoad = "") { global $couleur_foncee; global $couleur_claire; global $adresse_site; global $connect_id_auteur; global $connect_statut; global $connect_activer_messagerie; global $connect_toutes_rubriques; global $auth_can_disconnect, $connect_login; global $options, $spip_display, $spip_ecran; global $spip_lang, $spip_lang_rtl, $spip_lang_left, $spip_lang_right; $activer_messagerie = lire_meta("activer_messagerie"); global $clean_link; if ($spip_ecran == "large") $largeur = 974; else $largeur = 750; // nettoyer le lien global $clean_link->delVar('var_lang'); $clean_link->delVar('set_options'); $clean_link->delVar('set_couleur'); $clean_link->delVar('set_disp'); $clean_link->delVar('set_ecran'); if (strlen($adresse_site)<10) $adresse_site="../"; debut_html($titre, $rubrique, $onLoad); $ctitre = _T('titre_changer_couleur_interface'); echo "\n<map name='map_couleur'>"; echo lien_change_var ($clean_link, 'set_couleur', 6, '0,0,10,10', $ctitre, "onMouseOver=\"changestyle('bandeauinterface','visibility', 'visible');\""); echo lien_change_var ($clean_link, 'set_couleur', 1, '12,0,22,10', $ctitre, "onMouseOver=\"changestyle('bandeauinterface','visibility', 'visible');\""); echo lien_change_var ($clean_link, 'set_couleur', 2, '24,0,34,10', $ctitre, "onMouseOver=\"changestyle('bandeauinterface','visibility', 'visible');\""); echo lien_change_var ($clean_link, 'set_couleur', 3, '36,0,46,10', $ctitre, "onMouseOver=\"changestyle('bandeauinterface','visibility', 'visible');\""); echo lien_change_var ($clean_link, 'set_couleur', 4, '48,0,58,10', $ctitre, "onMouseOver=\"changestyle('bandeauinterface','visibility', 'visible');\""); echo lien_change_var ($clean_link, 'set_couleur', 5, '60,0,70,10', $ctitre, "onMouseOver=\"changestyle('bandeauinterface','visibility', 'visible');\""); echo "\n</map>"; echo "\n<map name='map_layout'>"; echo lien_change_var ($clean_link, 'set_disp', 1, '1,0,18,15', _T('lien_afficher_texte_seul'), "onMouseOver=\"changestyle('bandeauvide','visibility', 'visible');\""); echo lien_change_var ($clean_link, 'set_disp', 2, '19,0,40,15', _T('lien_afficher_texte_icones'), "onMouseOver=\"changestyle('bandeauvide','visibility', 'visible');\""); echo lien_change_var ($clean_link, 'set_disp', 3, '41,0,59,15', _T('lien_afficher_icones_seuls'), "onMouseOver=\"changestyle('bandeauvide','visibility', 'visible');\""); echo "\n</map>"; // Icones principales echo "<div id='haut-page'>"; echo "<div class='bandeau-principal' align='center'>\n"; echo "<div class='bandeau-icones' >\n"; echo "<table width='$largeur' cellpadding='0' cellspacing='0' border='0' align='center'><tr>\n"; icone_bandeau_principal (_T('icone_a_suivre'), "index.php3", "asuivre-48.png", "asuivre", $rubrique, "", "asuivre", $sous_rubrique); icone_bandeau_principal (_T('icone_edition_site'), "naviguer.php3", "documents-48$spip_lang_rtl.png", "documents", $rubrique, "", "rubriques", $sous_rubrique); icone_bandeau_principal (_T('titre_forum'), "forum.php3", "messagerie-48.png", "redacteurs", $rubrique, "", "forum-interne", $sous_rubrique); icone_bandeau_principal (_T('icone_auteurs'), "auteurs.php3", "redacteurs-48.png", "auteurs", $rubrique, "", "redacteurs", $sous_rubrique); if ($connect_statut == "0minirezo" AND $connect_toutes_rubriques AND lire_meta("activer_statistiques") != 'non') { //bandeau_barre_verticale(); icone_bandeau_principal (_T('icone_statistiques_visites'), "statistiques_visites.php3", "statistiques-48.png", "suivi", $rubrique, "", "statistiques", $sous_rubrique); } if ($connect_statut == '0minirezo' and $connect_toutes_rubriques) { icone_bandeau_principal (_T('icone_configuration_site'), "configuration.php3", "administration-48.png", "administration", $rubrique, "", "configuration", $sous_rubrique); } echo "<td> </td>"; icone_bandeau_principal (_T('icone_aide_ligne'), "javascript:window.open('aide_index.php3?var_lang=$spip_lang', 'aide_spip', 'scrollbars=yes,resizable=yes,width=740,height=580');", "aide-48$spip_lang_rtl.png", "vide", "", "aide_index.php3?var_lang=$spip_lang", "aide-en-ligne", $sous_rubrique); icone_bandeau_principal (_T('icone_visiter_site'), "$adresse_site", "visiter-48$spip_lang_rtl.png", "visiter","", "visiter", $sous_rubrique); echo "</tr></table>\n"; echo "</div>\n"; echo "<div style='text-align: $spip_lang_left; width: ".$largeur."px; position: relative; z-index: 2000;'>"; // Icones secondaires $activer_messagerie = lire_meta("activer_messagerie"); $connect_activer_messagerie = $GLOBALS["connect_activer_messagerie"]; if ($rubrique == "asuivre"){ $class = "visible_au_chargement"; } else { $class = "invisible_au_chargement"; } $decal = largeur_icone_bandeau_principal(_T('icone_a_suivre')); if ($rubrique == "documents"){ $class = "visible_au_chargement"; } else { $class = "invisible_au_chargement"; } if ($connect_statut == "0minirezo" AND $connect_toutes_rubriques) { echo "<div class='$class' id='bandeaudocuments' style='position: absolute; $spip_lang_left: ".$decal."px;'><div class='bandeau_sec'><table class='gauche'><tr>\n"; //icone_bandeau_secondaire (_T('icone_rubriques'), "naviguer.php3", "rubrique-24.gif", "rubriques", $sous_rubrique); $nombre_articles = spip_num_rows(spip_query("SELECT art.id_article FROM spip_articles AS art, spip_auteurs_articles AS lien WHERE lien.id_auteur = '$connect_id_auteur' AND art.id_article = lien.id_article LIMIT 0,1")); if ($nombre_articles > 0) { icone_bandeau_secondaire (_T('icone_articles'), "articles_page.php3", "article-24.gif", "articles", $sous_rubrique); } $activer_breves=lire_meta("activer_breves"); if ($activer_breves != "non"){ icone_bandeau_secondaire (_T('icone_breves'), "breves.php3", "breve-24.gif", "breves", $sous_rubrique); } if ($options == "avancees"){ $articles_mots = lire_meta('articles_mots'); if ($articles_mots != "non") { icone_bandeau_secondaire (_T('icone_mots_cles'), "mots_tous.php3", "mot-cle-24.gif", "mots", $sous_rubrique); } $activer_sites = lire_meta('activer_sites'); if ($activer_sites<>'non') icone_bandeau_secondaire (_T('icone_sites_references'), "sites_tous.php3", "site-24.gif", "sites", $sous_rubrique); if (@spip_num_rows(spip_query("SELECT * FROM spip_documents_rubriques LIMIT 0,1")) > 0) { icone_bandeau_secondaire (_T('icone_doc_rubrique'), "documents_liste.php3", "doc-24.gif", "documents", $sous_rubrique); } } echo "</tr></table></div></div>"; } $decal = $decal + largeur_icone_bandeau_principal(_T('icone_edition_site')); if ($connect_statut == "0minirezo" AND $connect_toutes_rubriques) { if ($rubrique == "redacteurs") { $class = "visible_au_chargement"; } else { $class = "invisible_au_chargement"; } echo "<div class='$class' id='bandeauredacteurs' style='position: absolute; $spip_lang_left: ".$decal."px;'><div class='bandeau_sec'><table class='gauche'><tr>\n"; if ($connect_toutes_rubriques) { icone_bandeau_secondaire (_T('icone_suivi_forums'), "controle_forum.php3", "suivi-forum-24.gif", "forum-controle", $sous_rubrique); icone_bandeau_secondaire (_T('icone_suivi_pettions'), "controle_petition.php3", "petition-24.gif", "suivi-petition", $sous_rubrique); } echo "</tr></table></div></div>"; } $decal = $decal + largeur_icone_bandeau_principal(_T('icone_discussions')); $decal = $decal + largeur_icone_bandeau_principal(_T('icone_auteurs')); // decalage pour barre verticale //$decal = $decal + 11; if ($connect_statut == "0minirezo" AND $connect_toutes_rubriques AND lire_meta("activer_statistiques") != 'non') { if ($rubrique == "suivi") { $class = "visible_au_chargement"; } else { $class = "invisible_au_chargement"; } echo "<div class='$class' id='bandeausuivi' style='position: absolute; $spip_lang_left: ".$decal."px;'><div class='bandeau_sec'><table class='gauche'><tr>\n"; if ($connect_toutes_rubriques) bandeau_barre_verticale(); icone_bandeau_secondaire (_T('icone_repartition_visites'), "statistiques.php3", "rubrique-24.gif", "repartition", $sous_rubrique); icone_bandeau_secondaire (_T('titre_liens_entrants'), "statistiques_referers.php3", "referers-24.gif", "referers", $sous_rubrique); echo "</tr></table></div></div>"; $decal = $decal + largeur_icone_bandeau_principal(_T('icone_suivi_actualite')); } if ($connect_statut == '0minirezo' and $connect_toutes_rubriques) { if ($rubrique == "administration") { $class = "visible_au_chargement"; } else { $class = "invisible_au_chargement"; } echo "<div class='$class' id='bandeauadministration' style='position: absolute; $spip_lang_left: ".$decal."px;'><div class='bandeau_sec'><table class='gauche'><tr>\n"; //icone_bandeau_secondaire (_T('icone_configuration_site'), "configuration.php3", "administration-24.gif", "configuration", $sous_rubrique); icone_bandeau_secondaire (_T('icone_gestion_langues'), "config-lang.php3", "langues-24.gif", "langues", $sous_rubrique); bandeau_barre_verticale(); if ($options == "avancees") { icone_bandeau_secondaire (_T('icone_maintenance_site'), "admin_tech.php3", "base-24.gif", "base", $sous_rubrique); icone_bandeau_secondaire (_T('onglet_vider_cache'), "admin_vider.php3", "cache-24.gif", "cache", $sous_rubrique); } else { icone_bandeau_secondaire (_T('icone_sauver_site'), "admin_tech.php3", "base-24.gif", "base", $sous_rubrique); } echo "</tr></table></div></div>"; } echo "</div>"; echo "</div>\n"; // Bandeau if ($rubrique == "administration") { $style = "background: url(img_pack/rayures-danger.png); background-color: $couleur_foncee"; echo "<style>a.icone26 { color: white; }</style>"; } else { $style = "background-color: $couleur_claire"; } echo "\n<div style=\"max-height: 40px; width: 100%; border-bottom: solid 1px white;$style\">"; echo "<table align='center' cellpadding='0' background='' width='$largeur'><tr width='$largeur'>"; echo "<td valign='middle' class='bandeau_couleur' style='text-align: $spip_lang_left;'>"; echo "<a href='articles_tous.php3' class='icone26' onMouseOver=\"changestyle('bandeautoutsite','visibility','visible');\"><img src='img_pack/tout-site.gif' border='0'></a>"; $id_rubrique = $GLOBALS['id_rubrique']; if ($id_rubrique > 0) echo "<a href='brouteur.php3?id_rubrique=$id_rubrique' class='icone26' onMouseOver=\"changestyle('bandeaunavrapide','visibility','visible');\"><img src='img_pack/naviguer-site.gif' alt='' width='26' height='20' border='0'></a>"; else echo "<a href='brouteur.php3' class='icone26' onMouseOver=\"changestyle('bandeaunavrapide','visibility','visible');\" ><img src='img_pack/naviguer-site.gif' alt='' width='26' height='20' border='0'></a>"; echo "<a href='recherche.php3' class='icone26' onMouseOver=\"changestyle('bandeaurecherche','visibility','visible');\" ><img src='img_pack/loupe.gif' alt='' width='26' height='20' border='0'></a>"; echo"<img src='img_pack/rien.gif' width='10' />"; echo "<a href='calendrier.php3' class='icone26' onMouseOver=\"changestyle('bandeauagenda','visibility','visible');\"><img src='img_pack/cal-rv.gif' alt='' width='26' height='20' border='0'></a>"; echo "<a href='messagerie.php3' class='icone26' onMouseOver=\"changestyle('bandeaumessagerie','visibility','visible');\"><img src='img_pack/cal-messagerie.gif' alt='' width='26' height='20' border='0'></a>"; echo "<a href='synchro.php3' class='icone26' onMouseOver=\"changestyle('bandeausynchro','visibility','visible');\"><img src='img_pack/cal-suivi.gif' alt='' width='26' height='20' border='0'></a>"; echo "<img src='img_pack/rien.gif' width='10' />"; echo "<a href='auteurs_edit.php3?id_auteur=$connect_id_auteur' class='icone26' onMouseOver=\"changestyle('bandeauinfoperso','visibility','visible');\"><img src='img_pack/fiche-perso.gif' border='0' onMouseOver=\"changestyle('bandeauvide','visibility', 'visible');\">"; echo "</a>"; echo "</td>"; echo "<td valign='middle' class='bandeau_couleur' style='text-align: $spip_lang_left;'>"; // overflow pour masquer les noms tres longs (et eviter debords, notamment en ecran etroit) if ($spip_ecran == "large") $largeur_nom = 300; else $largeur_nom= 110; echo "<div style='width: ".$largeur_nom."px; height: 14px; overflow: hidden;'>"; // Redacteur connecte echo typo($GLOBALS["connect_nom"]); echo "</div>"; echo "</td>"; echo "<td> </td>"; echo "<td class='bandeau_couleur' style='text-align: $spip_lang_right;' valign='middle'>"; // Choix display // echo"<img src='img_pack/rien.gif' width='10' />"; if ($options != "avancees") { $lien = $clean_link; $lien->addVar('set_options', 'avancees'); $simple = "<b>"._T('icone_interface_simple')."</b>/"._T('icone_interface_complet'); } else { $lien = $clean_link; $lien->addVar('set_options', 'basiques'); $simple = _T('icone_interface_simple')."/<b>"._T('icone_interface_complet')."</b>"; } echo "<a href='". $lien->getUrl() ."' class='icone26' onMouseOver=\"changestyle('bandeaudisplay','visibility', 'visible');\"><img src='img_pack/interface-display.gif' alt='' width='26' height='20' border='0'></a>"; echo "<img src='img_pack/rien.gif' width='10' height='1' />"; echo "<img src='img_pack/choix-layout$spip_lang_rtl".($spip_lang=='he'?'_he':'').".png' alt='abc' class='format_png' align='middle' width='59' height='15' usemap='#map_layout' border='0' />"; echo "<img src='img_pack/rien.gif' width='10' height='1' />"; // grand ecran $lien = $clean_link; if ($spip_ecran == "large") { $lien->addVar('set_ecran', 'etroit'); echo "<a href='". $lien->getUrl() ."' class='icone26' onMouseOver=\"changestyle('bandeauecran','visibility', 'visible');\" title=\""._T('info_petit_ecran')."\"><img src='img_pack/set-ecran-etroit.gif' alt=\""._T('info_petit_ecran')."\" width='26' height='20' border='0'></a>"; $ecran = "<div>"._T('info_petit_ecran')."/<b>"._T('info_grand_ecran')."</b></div>"; } else { $lien->addVar('set_ecran', 'large'); echo "<a href='". $lien->getUrl() ."' class='icone26' onMouseOver=\"changestyle('bandeauecran','visibility', 'visible');\" title=\""._T('info_grand_ecran')."\"><img src='img_pack/set-ecran.gif' alt=\""._T('info_grand_ecran')."\" width='26' height='20' border='0'></a>"; $ecran = "<div><b>"._T('info_petit_ecran')."</b>/"._T('info_grand_ecran')."</div>"; } // choix de la couleur echo "<img src='img_pack/rien.gif' width='10' height='1' />"; echo "<img src='img_pack/barre-couleurs.gif' onMouseOver=\"changestyle('bandeauinterface','visibility', 'visible');\" alt='' width='70' height='10' border='0' usemap='#map_couleur'>"; // echo "<img src='img_pack/rien.gif' width='10' height='1' />"; echo "</td>"; // // choix de la langue // if ($GLOBALS['all_langs']) { echo "<td class='bandeau_couleur' style='width: 100px; text-align: $spip_lang_right;' valign='middle'>"; echo menu_langues('var_lang_ecrire'); echo "</td>"; } echo "<td class='bandeau_couleur' style='text-align: $spip_lang_right; width: 28px;' valign='middle'>"; if ($auth_can_disconnect) { echo "<a href='../spip_cookie.php3?logout=$connect_login' class='icone26' onMouseOver=\"changestyle('bandeaudeconnecter','visibility', 'visible');\"><img src='img_pack/deconnecter-24$spip_lang_rtl.gif' border='0'></a>"; } echo "</td>"; echo "</tr></table>"; echo "<table width='$largeur' cellpadding='0' cellspacing='0'' align='center'><tr><td>"; echo "<div style='position: relative; z-index: 1000;'>"; echo "<div id='bandeautoutsite' class='bandeau_couleur_sous' style='$spip_lang_left: 0px; width: 170px;'>"; echo _T('icone_site_entier'); $result_racine = spip_query("SELECT * FROM spip_rubriques WHERE id_parent=0 ORDER BY titre"); $i = spip_num_rows($result_racine); if ($i > 0) { echo "<div> </div>"; echo "<div class='bandeau_rubriques' style='z-index: 1;'>"; while ($row = spip_fetch_array($result_racine)) { $id_rubrique = $row["id_rubrique"]; $titre_rubrique = supprimer_numero(typo($row["titre"])); bandeau_rubrique ($id_rubrique, $titre_rubrique, $i); $i = $i - 1; } echo "</div>"; } echo "</div>"; echo "<div id='bandeaunavrapide' class='bandeau_couleur_sous' style='$spip_lang_left: 30px; width: 300px;'>"; echo _T('icone_brouteur'); $vos_articles = spip_query("SELECT articles.id_article, articles.titre, articles.statut FROM spip_articles AS articles, spip_auteurs_articles AS lien WHERE articles.id_article=lien.id_article ". "AND lien.id_auteur=$connect_id_auteur AND articles.statut='prepa' ORDER BY articles.date DESC LIMIT 0,5"); if (spip_num_rows($vos_articles) > 0) { echo "<div> </div>"; echo "<div class='bandeau_rubriques' style='z-index: 1;'>"; bandeau_titre_boite2(_T('info_en_cours_validation'), "article-24.gif"); echo "<div class='plan-articles'>"; while($row = spip_fetch_array($vos_articles)) { $id_article = $row['id_article']; $titre = typo($row['titre']); $statut = $row['statut']; echo "<a class='$statut' style='font-size: 10px;' href='articles.php3?id_article=$id_article'>$titre</a>"; } echo "</div>"; echo "</div>"; } $vos_articles = spip_query("SELECT articles.id_article, articles.titre, articles.statut FROM spip_articles AS articles WHERE articles.statut='prop' ". " ORDER BY articles.date DESC LIMIT 0,5"); if (spip_num_rows($vos_articles) > 0) { echo "<div> </div>"; echo "<div class='bandeau_rubriques' style='z-index: 1;'>"; bandeau_titre_boite2(_T('info_articles_proposes'), "article-24.gif"); echo "<div class='plan-articles'>"; while($row = spip_fetch_array($vos_articles)) { $id_article = $row['id_article']; $titre = typo($row['titre']); $statut = $row['statut']; echo "<a class='$statut' style='font-size: 10px;' href='articles.php3?id_article=$id_article'>$titre</a>"; } echo "</div>"; echo "</div>"; } $vos_articles = spip_query("SELECT * FROM spip_breves WHERE statut='prop' ". " ORDER BY date_heure DESC LIMIT 0,5"); if (spip_num_rows($vos_articles) > 0) { echo "<div> </div>"; echo "<div class='bandeau_rubriques' style='z-index: 1;'>"; bandeau_titre_boite2(_T('info_breves_valider'), "breve-24.gif", "$couleur_foncee", "white"); echo "<div class='plan-articles'>"; while($row = spip_fetch_array($vos_articles)) { $id_breve = $row['id_breve']; $titre = typo($row['titre']); $statut = $row['statut']; echo "<a class='$statut' style='font-size: 10px;' href='breves_voir.php3?id_breve=$id_breve'>$titre</a>"; } echo "</div>"; echo "</div>"; } $query = "SELECT id_rubrique FROM spip_rubriques LIMIT 0,1"; $result = spip_query($query); if (spip_num_rows($result) > 0) { $id_rubrique = $GLOBALS['id_rubrique']; if ($id_rubrique > 0) $dans_rub = "&id_rubrique=$id_rubrique"; echo "<table><tr>"; echo "<td>"; icone_horizontale(_T('icone_ecrire_article'), "articles_edit.php3?new=oui$dans_rub", "article-24.gif","creer.gif"); echo "</td>"; echo "<td> </td>"; echo "<td>"; $activer_breves = lire_meta("activer_breves"); if ($activer_breves != "non") { icone_horizontale(_T('icone_nouvelle_breve'), "breves_edit.php3?new=oui$dans_rub", "breve-24.gif","creer.gif"); } echo "</td>"; echo "</tr></table>"; } echo "</div>"; echo "<div id='bandeaurecherche' class='bandeau_couleur_sous' style='width: 100px; $spip_lang_left: 60px;'>"; global $recherche; $recherche_aff = _T('info_rechercher'); $onfocus = "onfocus=this.value='';"; echo "<form method='get' style='margin: 0px;' action='recherche.php3'>"; echo '<input type="text" size="10" value="'.$recherche_aff.'" name="recherche" class="spip_recherche" accesskey="r" '.$onfocus.'>'; echo "</form>"; echo "</div>"; $today = getdate(time()); $jour_today = $today["mday"]; $mois_today = $today["mon"]; $annee_today = $today["year"]; $date = date("Y-m-d", mktime(0,0,0,$mois_today, 1, $annee_today)); $mois = mois($date); $annee = annee($date); $jour = jour($date); // Taches $result_pb = spip_query("SELECT * FROM spip_messages AS messages WHERE id_auteur=$connect_id_auteur AND statut='publie' AND type='pb' AND rv!='oui'"); $result_rv = spip_query("SELECT messages.* FROM spip_messages AS messages, spip_auteurs_messages AS lien WHERE ((lien.id_auteur='$connect_id_auteur' AND lien.id_message=messages.id_message) OR messages.type='affich') AND messages.rv='oui' AND messages.date_heure > DATE_SUB(NOW(), INTERVAL 1 DAY) AND messages.date_heure < DATE_ADD(NOW(), INTERVAL 1 MONTH) AND messages.statut='publie' GROUP BY messages.id_message ORDER BY messages.date_heure"); if (spip_num_rows($result_pb) OR spip_num_rows($result_rv)) { $largeur = "410px"; $afficher_cal = true; } else { $largeur = "200px"; $afficher_cal = false; } echo "<div id='bandeauagenda' class='bandeau_couleur_sous' style='width: $largeur; $spip_lang_left: 100px;'>"; echo _T('icone_agenda'); include_ecrire("inc_agenda.php3"); echo "<table><tr>"; echo "<td valign='top' width='200'>"; echo "<div>"; agenda ($mois_today, $annee_today, $jour_today, $mois_today, $annee_today); echo "</div>"; echo "</td>"; if ($afficher_cal) { echo "<td valign='top' width='10'> </td>"; echo "<td valign='top' width='200'>"; echo "<div> </div>"; echo "<div style='color: black;'>"; afficher_taches(); echo "</div>"; echo "</td>"; } /* echo "<div style='color: white;'>"; // rendez-vous personnels dans le mois calendrier_jour($jour_today,$mois_today,$annee_today, "col"); echo "</div>"; */ echo "</tr></table>"; echo "</div>"; echo "<div id='bandeaumessagerie' class='bandeau_couleur_sous' style='$spip_lang_left: 130px; width: 200px;'>"; echo _T('icone_messagerie_personnelle'); echo "<div> </div>"; //debut_cadre_relief(); icone_horizontale(_T('lien_nouvea_pense_bete'),"message_edit.php3?new=oui&type=pb", "pense-bete.gif"); icone_horizontale(_T('lien_nouveau_message'),"message_edit.php3?new=oui&type=normal", "message.gif"); if ($connect_statut == "0minirezo") { icone_horizontale(_T('lien_nouvelle_annonce'),"message_edit.php3?new=oui&type=affich", "annonce.gif"); } //fin_cadre_relief(); echo "</div>"; echo "<div id='bandeausynchro' class='bandeau_couleur_sous' style='$spip_lang_left: 160px;'>"; echo _T('icone_suivi_activite'); echo "</div>"; echo "<div id='bandeauinfoperso' class='bandeau_couleur_sous' style='width: 200px; $spip_lang_left: 200px;'>"; echo _T('icone_informations_personnelles'); echo "</div>"; echo "<div id='bandeaudisplay' class='bandeau_couleur_sous' style='$spip_lang_right: 310px; text-align: $spip_lang_right;'>"; echo $simple; echo "</div>"; echo "<div id='bandeauecran' class='bandeau_couleur_sous' style='width: 200px; $spip_lang_right: 237px; text-align: $spip_lang_right;'>"; echo $ecran; echo "</div>"; echo "<div id='bandeauinterface' class='bandeau_couleur_sous' style='$spip_lang_right: 150px; text-align: $spip_lang_right;'>"; echo _T('titre_changer_couleur_interface'); echo "</div>"; echo "<div class='bandeau_couleur_sous' id='bandeaudeconnecter' style='$spip_lang_right: 0px;'>"; echo _T('icone_deconnecter').aide("deconnect"); echo "</div>"; echo "</div>"; echo "</td></tr></table>"; echo "</div>"; echo "</div>"; // Ouverture de la partie "principale" de la page // Petite verif pour ne pas fermer le formulaire de recherche pendant qu'on l'edite echo "<center onMouseOver=\"if (findObj('bandeaurecherche').style.visibility == 'visible') { ouvrir_recherche = true; } else { ouvrir_recherche = false; } changestyle('bandeauvide', 'visibility', 'hidden'); if (ouvrir_recherche == true) { changestyle('bandeaurecherche','visibility','visible'); }\">"; if ($activer_messagerie != 'non' AND $connect_activer_messagerie != 'non') { $result_messages = spip_query("SELECT * FROM spip_messages AS messages, spip_auteurs_messages AS lien WHERE lien.id_auteur=$connect_id_auteur AND vu='non' AND statut='publie' AND type='normal' AND lien.id_message=messages.id_message"); $total_messages = @spip_num_rows($result_messages); if ($total_messages == 1) { while($row = @spip_fetch_array($result_messages)) { $ze_message=$row['id_message']; echo "<div class='messages'><a href='message.php3?id_message=$ze_message'><font color='$couleur_foncee'>"._T('info_nouveau_message')."</font></a></div>"; } } if ($total_messages > 1) echo "<div class='messages'><a href='messagerie.php3'><font color='$couleur_foncee'>"._T('info_nouveaux_messages', array('total_messages' => $total_messages))."</font></a></div>"; } // Afficher les auteurs recemment connectes global $changer_config; global $activer_messagerie; global $activer_imessage; global $connect_activer_messagerie; global $connect_activer_imessage; if ($changer_config!="oui"){ $activer_messagerie=lire_meta("activer_messagerie"); $activer_imessage=lire_meta("activer_imessage"); } if ($activer_imessage != "non" AND ($connect_activer_imessage != "non" OR $connect_statut == "0minirezo")) { $query2 = "SELECT id_auteur, nom FROM spip_auteurs WHERE id_auteur!=$connect_id_auteur AND imessage!='non' AND en_ligne>DATE_SUB(NOW(),INTERVAL 15 MINUTE)"; $result_auteurs = spip_query($query2); $nb_connectes = spip_num_rows($result_auteurs); } $flag_cadre = (($nb_connectes > 0) OR $rubrique == "messagerie"); if ($flag_cadre) echo "<div class='messages' style='color: #666666;'>"; if ($nb_connectes > 0) { if ($nb_connectes > 0) { echo "<b>"._T('info_en_ligne')."</b>"; while ($row = spip_fetch_array($result_auteurs)) { $id_auteur = $row["id_auteur"]; $nom_auteur = typo($row["nom"]); echo " ".bouton_imessage($id_auteur,$row)." <a href='auteurs_edit.php3?id_auteur=$id_auteur' style='color: #666666;'>$nom_auteur</a>"; } } } if ($flag_cadre) echo "</div>"; } function gros_titre($titre, $ze_logo=''){ global $couleur_foncee; echo "<div class='verdana2' style='font-size: 18px; color: $couleur_foncee; font-weight: bold;'>"; if (strlen($ze_logo) > 3) echo "<img src='img_pack/$ze_logo' alt='' border=0 align='middle'> "; echo typo($titre); echo "</div>\n"; } // // Cadre centre (haut de page) // function debut_grand_cadre(){ global $spip_ecran; if ($spip_ecran == "large") $largeur = 974; else $largeur = 750; echo "\n<br><br><table width='$largeur' cellpadding='0' cellspacing='0' border='0'>"; echo "\n<tr>"; echo "<td width='$largeur' class='serif'>"; } function fin_grand_cadre(){ echo "\n</td></tr></table>"; } // Cadre formulaires function debut_cadre_formulaire(){ echo "\n<div class='cadre-formulaire'>"; } function fin_cadre_formulaire(){ echo "</div>\n"; } // // Debut de la colonne de gauche // function debut_gauche($rubrique = "asuivre") { global $connect_statut, $cookie_admin; global $options; global $connect_id_auteur; global $spip_ecran; global $flag_3_colonnes, $flag_centre_large; global $spip_lang_rtl; $flag_3_colonnes = false; $largeur = 200; // Ecran panoramique ? if ($spip_ecran == "large") { $largeur_ecran = 974; // Si edition de texte, formulaires larges if (ereg('((articles|breves|rubriques)_edit|forum_envoi)\.php3', $GLOBALS['REQUEST_URI'])) { $flag_centre_large = true; } $flag_3_colonnes = true; $rspan = " rowspan=2"; } else { $largeur_ecran = 750; } echo "<br><table width='$largeur_ecran' cellpadding=0 cellspacing=0 border=0> <tr><td width='$largeur' valign='top' class='serif' $rspan>\n"; } // // Presentation de l''interface privee, marge de droite // function creer_colonne_droite($rubrique=""){ global $deja_colonne_droite; global $changer_config; global $activer_messagerie; global $activer_imessage; global $connect_activer_messagerie; global $connect_activer_imessage; global $connect_statut, $cookie_admin; global $options; global $connect_id_auteur, $spip_ecran; global $flag_3_colonnes, $flag_centre_large; global $spip_lang_rtl, $lang_left; if ($flag_3_colonnes AND !$deja_colonne_droite) { $deja_colonne_droite = true; if ($flag_centre_large) { $espacement = 17; $largeur = 140; } else { $espacement = 37; $largeur = 200; } echo "<td width=$espacement rowspan=2> </td>"; echo "<td rowspan=1></td>"; echo "<td width=$espacement rowspan=2> </td>"; echo "<td width=$largeur rowspan=2 align='$lang_left' valign='top'><p />"; } } function debut_droite($rubrique="") { global $options, $spip_ecran, $deja_colonne_droite; global $connect_id_auteur, $connect_statut, $connect_toutes_rubriques, $clean_link; global $flag_3_colonnes, $flag_centre_large, $couleur_foncee, $couleur_claire; global $lang_left; if ($options == "avancees") { // liste des articles bloques if (lire_meta("articles_modif") != "non") { $query = "SELECT id_article, titre FROM spip_articles WHERE auteur_modif = '$connect_id_auteur' AND date_modif > DATE_SUB(NOW(), INTERVAL 1 HOUR) ORDER BY date_modif DESC"; $result = spip_query($query); $num_articles_ouverts = spip_num_rows($result); if ($num_articles_ouverts) { echo "<p>"; debut_cadre_enfonce('article-24.gif'); //echo "<font face='Verdana,Arial,Sans,sans-serif' size='2'>"; echo "<div class='verdana2' style='padding: 2px; background-color:$couleur_foncee; color: white; font-weight: bold;'>"; echo _T('info_cours_edition')." :".aide('artmodif'); echo "</div>"; while ($row = @spip_fetch_array($result)) { $ze_article = $row['id_article']; $ze_titre = typo($row['titre']); if ($ifond == 1) { $couleur = $couleur_claire; $ifond = 0; } else { $couleur = "#eeeeee"; $ifond = 1; } echo "<div style='padding: 3px; background-color: $couleur;'>"; echo "<div class='verdana1'><b><a href='articles.php3?id_article=$ze_article'>$ze_titre</a></div></b>"; // ne pas proposer de debloquer si c'est l'article en cours d'edition if ($ze_article != $GLOBALS['id_article_bloque']) { $nb_liberer ++; $lien = $clean_link; $lien->addVar('debloquer_article', $ze_article); echo "<div class='arial1' style='text-align:right;'><a href='". $lien->getUrl() ."' title='"._T('lien_liberer')."'>"._T('lien_liberer')." <img src='img_pack/croix-rouge.gif' alt='X' width='7' height='7' border='0' align='middle'></a></div>"; } echo "</div>"; } if ($nb_liberer >= 4) { $lien = $clean_link; $lien->addVar('debloquer_article', 'tous'); echo "<div class='arial2' style='text-align:right; padding:2px; border-top: 1px solid $couleur_foncee;'><a href='". $lien->getUrl() ."'>"._T('lien_liberer_tous')." <img src='img_pack/croix-rouge.gif' alt='' width='7' height='7' border='0' align='middle'></a></div>"; } //echo "</font>"; fin_cadre_enfonce(); } } if (!$deja_colonne_droite) creer_colonne_droite($rubrique); } echo "<div> </div></td>"; if (!$flag_3_colonnes) { echo "<td width=50> </td>"; } else { if (!$deja_colonne_droite) { creer_colonne_droite($rubrique); } echo "</td></tr><tr>"; } if ($spip_ecran == 'large' AND $flag_centre_large) $largeur = 600; else $largeur = 500; echo '<td width="'.$largeur.'" valign="top" align="'.$lang_left.'" rowspan="1" class="serif">'; // touche d'acces rapide au debut du contenu echo "\n<a name='saut' href='#saut' accesskey='s'></a>\n"; } // // Presentation de l'interface privee, fin de page et flush() // function fin_html() { echo "</font>"; // rejouer le cookie de session si l'IP a change if ($GLOBALS['spip_session'] && $GLOBALS['auteur_session']['ip_change']) { echo "<img name='img_session' src='img_pack/rien.gif' width='0' height='0'>\n"; echo "<script type='text/javascript'><!-- \n"; echo "document.img_session.src='../spip_cookie.php3?change_session=oui';\n"; echo "// --></script>\n"; } echo "</body></html>\n"; flush(); } function fin_page($credits='') { global $spip_version_affichee; global $connect_id_auteur; global $multi_popup; echo "</td></tr></table>"; // ici le javascript des popup multilingues. if ($multi_popup) { echo "<script type='text/javascript'><!-- \n"; echo "function openmulti(i) {\n"; /* // desactivation de ce truc pas fini ; il faudrait // afficher le texte i dans une fenetre du type // http://www.dynamicdrive.com/dynamicindex11/abox.htm echo "textes_multi = new Array;\n"; echo $multi_popup; echo "alert (textes_multi[i]);"; */ echo "}\n"; echo "// --></script>\n"; } debut_grand_cadre(); echo "<div align='right' class='verdana2'>"; echo "<b>SPIP $spip_version_affichee</b> "; echo _T('info_copyright'); echo "<br>"._T('info_copyright_doc'); if (ereg("jimmac", $credits)) echo "<br>"._T('lien_icones_interface'); echo "</div><p>"; fin_grand_cadre(); echo "</center>"; fin_html(); } // // Afficher la hierarchie des rubriques // function afficher_parents($id_rubrique) { global $parents, $couleur_foncee, $lang_dir; $parents = ereg_replace("(~+)","\\1~",$parents); if ($id_rubrique) { $query = "SELECT id_rubrique, id_parent, titre, lang FROM spip_rubriques WHERE id_rubrique=$id_rubrique"; $result = spip_query($query); while ($row = spip_fetch_array($result)) { $id_rubrique = $row['id_rubrique']; $id_parent = $row['id_parent']; $titre = $row['titre']; changer_typo($row['lang']); $parents = " <a href='naviguer.php3?coll=$id_rubrique'><span class='verdana3' style='color: $couleur_foncee;' dir='$lang_dir'>".typo($titre)."</span></a><br>\n".$parents; if (acces_restreint_rubrique($id_rubrique)) $parents = " <img src='img_pack/admin-12.gif' alt='' width='12' height='12' title='"._T('info_administrer_rubriques')."'> ".$parents; if (!$id_parent) $parents = "~ <IMG SRC='img_pack/secteur-24.gif' alt='' WIDTH=24 HEIGHT=24 BORDER=0 align='middle'> ".$parents; else $parents = "~ <IMG SRC='img_pack/rubrique-24.gif' alt='' WIDTH=24 HEIGHT=24 BORDER=0 align='middle'> ".$parents; } afficher_parents($id_parent); } } // // Presentation des pages d'installation et d'erreurs // function install_debut_html($titre = 'AUTO') { global $spip_lang_rtl; if ($titre=='AUTO') $titre=_T('info_installation_systeme_publication'); if (!$charset = lire_meta('charset')) $charset = 'utf-8'; @Header("Content-Type: text/html; charset=$charset"); echo "<html><head> <title>$titre</title> <meta http-equiv='Expires' content='0'> <meta http-equiv='cache-control' content='no-cache,no-store'> <meta http-equiv='pragma' content='no-cache'> <meta http-equiv='Content-Type' content='text/html; charset=$charset'> <style> <!-- a {text-decoration: none; } A:Hover {color:#FF9900; text-decoration: underline;} .forml {width: 100%; background-color: #FFCC66; background-position: center bottom; float: none; color: #000000} .formo {width: 100%; background-color: #FFF0E0; background-position: center bottom; weight: bold; float: none; color: #000000} .fondl {background-color: #FFCC66; background-position: center bottom; float: none; color: #000000} .fondo {background-color: #FFF0E0; background-position: center bottom; float: none; color: #000000} .fondf {background-color: #FFFFFF; border-style: solid ; border-width: 1; border-color: #E86519; color: #E86519} .serif { font-family: Georgia, Garamond, Times New Roman, serif; } --> </style> </head> <body bgcolor='#FFFFFF' text='#000000' link='#E86519' vlink='#6E003A' alink='#FF9900' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'"; if ($spip_lang_rtl) echo " dir='rtl'"; echo "><br><br><br> <center> <table width='450'> <tr><td width='450' class='serif'> <font face='Verdana,Arial,Sans,sans-serif' size='4' color='#970038'><B>$titre</b></font>\n<p>"; } function install_fin_html() { echo ' </font> </td></tr></table> </center> </body> </html> '; } ?>