Skip to content
Extraits de code Groupes Projets
Valider 165a8908 rédigé par cerdic's avatar cerdic
Parcourir les fichiers

evacuer encore plus de toiles (plus que 3 restantes)

parent 4d312735
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -410,4 +410,12 @@ ul ul ul ul ul .forum-chapo { background: #FFF; }
/* Couleurs des liens
/* ------------------------------------------ */
a { text-decoration: none; color: #333; }
a:hover { text-decoration: underline; }
\ No newline at end of file
a:hover { text-decoration: underline;}
/* menu langues */
#menu_langues {
vertical-align: top;
max-height: 24px;
margin-bottom: 5px;
width: 120px;
}
\ No newline at end of file
......@@ -1810,6 +1810,40 @@ td.message, a.message {
.jour_gris { background:#eee;color:#000;}
.jour_pris { background:#fff;color:#000;}
.calendrier-cadreagenda { background:#GET{claire};}
div.navigation-calendrier { background-color:#GET{foncee}; }
/* lang_raccourcis */
#raccourcis .titrem {background:#GET{claire};}
/* exec=mesage */
#participants table.spip {border:0;}
#participants .cadre_padding {padding:0 0 4px 0;}
/* editer_auteurs */
.option_separateur_statut_auteur {background:#GET{claire};}
/* menu langues */
#menu_langues.lang_ecrire {
max-height: 24px;
border: 1px solid white;
color: white; width: 100px;
background:#GET{foncee};
}
/* selecteur ajax */
#choix_parent_principal {
background:#fff;
border:1px solid #GET{foncee};
position: relative;
height: 170px;
overflow: auto;}
#selection_rubrique .informer {background:#fff;}
#selection_auteur .informer {background:#fff;padding: 5px; border-top: 0px;}
/* legender */
.legender {
background:#fff;
border:1px solid #GET{foncee};
padding:5px;
margin:3px;
}
\ No newline at end of file
......@@ -106,11 +106,6 @@ function http_auteurs_ressemblants($cherche_auteur, $id_message)
}
}
// http://doc.spip.org/@http_visualiser_participants
function http_visualiser_participants($auteurs_tmp){
return bouton_block_depliable(_T('info_nombre_partcipants'),false,"auteurs,ajouter_auteur");
}
// http://doc.spip.org/@http_ajouter_participants
function http_ajouter_participants($ze_auteurs, $id_message)
{
......@@ -185,6 +180,8 @@ function http_message_avec_participants($id_message, $statut, $forcer_dest, $che
. http_auteurs_ressemblants($cherche_auteur , $id_message)
. "\n</div>";
}
$bouton = bouton_block_depliable(_T('info_nombre_partcipants'),true,"auteurs,ajouter_auteur");
echo debut_cadre_enfonce("redacteurs-24.gif", true, '', $bouton, 'participants');
//
// Liste des participants
......@@ -195,7 +192,6 @@ function http_message_avec_participants($id_message, $statut, $forcer_dest, $che
$total_dest = spip_num_rows($result_auteurs);
if ($total_dest > 0) {
$couleurs = array('toile_gris_leger','toile_claire');
$auteurs_tmp = array();
$ze_auteurs = array();
$ifond = 0;
......@@ -206,8 +202,7 @@ function http_message_avec_participants($id_message, $statut, $forcer_dest, $che
$id_auteur = $row["id_auteur"];
$nom_auteur = typo($row["nom"]);
$ze_auteurs[] = $id_auteur;
$couleur = $couleurs[$ifond];
$ifond = 1 - $ifond;
$class = alterner (++$ifond,'row_even','row_odd');
$aut = "<a href='" .
generer_url_ecrire('auteur_infos',"id_auteur=" . $id_auteur) ."'>". $nom_auteur . "</a>";
......@@ -216,28 +211,28 @@ function http_message_avec_participants($id_message, $statut, $forcer_dest, $che
$auteurs_tmp[] = $aut;
else $exp = "<div><span class='arial0' style='margin-left: 10px'>". _T('info_auteur_message') ."</span> $aut</div>";
list($status, $mail, $nom, $site,) = $formater_auteur($id_auteur);
$res .= "<tr>\n<td class='$couleur verdana1 spip_small'>$status $amil $nom $site</td>" .
"\n<td align='right' class='$couleur verdana1 spip_x-small'>" . (($id_auteur == $connect_id_auteur) ? "&nbsp;" : ("[<a href='" . redirige_action_auteur("editer_message","$id_message/-$id_auteur", 'message', "id_message=$id_message") . "'>$t</a>]")) . "</td></tr>\n";
}
echo
http_visualiser_participants(join(', ', $auteurs_tmp) . $exp),
debut_block_depliable(false,"auteurs"),
"\n<table border='0' cellspacing='0' cellpadding='3' width='100%'>",
$res,
"</table>\n",
fin_block();
}
if ($statut == 'redac' OR $forcer_dest)
echo http_ajouter_participants(join(',', $ze_auteurs), $id_message);
else {
echo
debut_block_depliable(false,"ajouter_auteur"),
"<br />\n<div style='text-align: right' class='verdana1 spip_small'><a href='" . generer_url_ecrire("message","id_message=$id_message&forcer_dest=oui") . "'>"._T('lien_ajouter_participant')."</a></div>",
fin_block();
list($status, $mail, $nom, $site,) = $formater_auteur($id_auteur, $row);
$res .= "<tr class='$class'>\n<td class='nom'>$status $amil $nom $site</td>" .
"\n<td align='right' class='lien'>" . (($id_auteur == $connect_id_auteur) ? "&nbsp;" : ("[<a href='" . redirige_action_auteur("editer_message","$id_message/-$id_auteur", 'message', "id_message=$id_message") . "'>$t</a>]")) . "</td></tr>\n";
}
return $total_dest;
echo
debut_block_depliable(true,"auteurs"),
"\n<table class='spip' width='100%'>",
$res,
"</table>\n",
fin_block();
}
if ($statut == 'redac' OR $forcer_dest)
echo http_ajouter_participants(join(',', $ze_auteurs), $id_message);
else {
echo
debut_block_depliable(true,"ajouter_auteur"),
"<br />\n<div style='text-align: right' class='verdana1 spip_small'><a href='" . generer_url_ecrire("message","id_message=$id_message&forcer_dest=oui") . "'>"._T('lien_ajouter_participant')."</a></div>",
fin_block();
}
echo fin_cadre_enfonce(true);
return $total_dest;
}
// http://doc.spip.org/@http_affiche_message
......@@ -282,11 +277,8 @@ function http_affiche_message($id_message, $expediteur, $statut, $type, $texte,
// Message avec participants
//
if ($type == 'normal') {
echo debut_cadre_enfonce("redacteurs-24.gif", true);
if ($type == 'normal')
$total_dest = http_message_avec_participants($id_message, $statut, $forcer_dest, $cherche_auteur, $expediteur);
fin_cadre_enfonce();
}
if ($rv != "non") http_afficher_rendez_vous($date_heure, $date_fin);
......@@ -295,9 +287,8 @@ function http_affiche_message($id_message, $expediteur, $statut, $type, $texte,
// Le message lui-meme
//
echo "\n<table width='100%' cellpadding='0' cellspacing='0' border='0'>",
"<tr><td>",
"<div class='serif'>$texte</div>";
echo "\n<br />"
. "<div class='serif'>$texte</div>";
if ($les_notes) {
echo debut_cadre_relief();
......
......@@ -104,7 +104,9 @@ $result = spip_query("SELECT auteurs.id_auteur, auteurs.nom, COUNT(*) AS total F
if (spip_num_rows($result) > 0) {
echo "<div style='height: 12px;'></div>";
echo debut_cadre('liste',"redacteurs-24.gif",'',_T('info_principaux_correspondants'));
$bouton = bouton_block_depliable(_T('info_principaux_correspondants'),true,'principaux');
echo debut_cadre('liste',"redacteurs-24.gif",'',$bouton);
echo debut_block_depliable(true,'principaux');
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td valign='top' style='width: 50%'>";
$count = 0;
......@@ -116,9 +118,10 @@ if (spip_num_rows($result) > 0) {
echo "<div class='tr_liste'\nonmouseover=\"changeclass(this,'tr_liste_over');\"\nonmouseout=\"changeclass(this,'tr_liste');\"\nstyle='padding: 2px; padding-left: 10px; border-bottom: 1px solid #cccccc;'><div class='verdana1'><img src='" . _DIR_IMG_PACK . "redac-12.gif'\nstyle='border: 0px' alt=' ' /> <a href='" . generer_url_ecrire("auteur_infos","id_auteur=$id_auteur"), "'>",
$nom,
"</a> ($total)</div></div>";
if ($count == ceil(spip_num_rows($result)/2)) echo "</td><td valign='top' style='width: 50%' class='toile_gris_leger'>";
if ($count == ceil(spip_num_rows($result)/2)) echo "</td><td valign='top' style='width: 50%'>";
}
echo "</td></tr></table>";
echo fin_block();
echo fin_cadre('liste');
}
......
......@@ -238,7 +238,7 @@ function inc_afficher_objets_dist($type, $titre_table,$requete,$formater='', $fo
$fonction_ligne = "afficher_objet_boucle";
$arg = array($type,id_table_objet($type),$afficher_langue, $affrub, $langue_defaut);
}
return affiche_tranche_bandeau($requete, icone_table($type), 'toile_foncee', "ligne_blanche", $tmp_var, $titre_table, $force, $largeurs, $styles, $fonction_ligne, $arg);
return affiche_tranche_bandeau($requete, icone_table($type), NULL, NULL, $tmp_var, $titre_table, $force, $largeurs, $styles, $fonction_ligne, $arg);
}
// http://doc.spip.org/@afficher_objet_boucle
......
......@@ -949,10 +949,9 @@ function http_calendrier_navigation($annee, $mois, $jour, $echelle, $partie_cal,
$id = 'nav-agenda' .preg_replace('/[^\w\d]/', '', $ancre);
// 2 div pour que toile_foncee s'applique bien qu'issue d'une CSS
// anterieure a celle de navigation-calendrier
return
"\n<div class='navigation-calendrier calendrier-moztop8'><div class='toile_foncee'>\n"
"\n<div class='navigation-calendrier calendrier-moztop8'>"
. "<div style='float: $spip_lang_right; padding-left: 5px; padding-right: 5px;'>"
. (($type == "mois") ? '' :
(calendrier_href($script, $annee, $mois, $jour, $type, "&amp;echelle=$echelle&amp;partie_cal=" . DEFAUT_PARTIE_R, $ancre,
......@@ -1012,7 +1011,7 @@ function http_calendrier_navigation($annee, $mois, $jour, $echelle, $partie_cal,
. "&nbsp;&nbsp;"
. $nom
. (!test_espace_prive() ? '' : aide("messcalen"))
. "</div></div>"
. "</div>"
. http_calendrier_invisible($annee, $mois, $jour, $script, "&amp;echelle=$echelle&amp;partie_cal=$partie_cal", $ancre, $id);
}
......
......@@ -305,7 +305,7 @@ function objet_auteur_select($result)
if ($statut != $statut_old) {
$res .= "\n<option value=\"x\" />";
$res .= "\n<option value=\"x\" class='toile_claire'> $statut</option>";
$res .= "\n<option value=\"x\" class='option_separateur_statut_auteur'> $statut</option>";
}
if ($premiere != $premiere_old AND ($statut != _T('info_administrateurs') OR !$premiere_old))
......
......@@ -58,9 +58,9 @@ function inc_informer_dist($id, $col, $exclus, $rac, $type)
. entites_html($titre)
. "\" />"
. "</div>"
. "<div class='arial2 bordure_foncee toile_blanche' style='padding: 5px; border-top: 0px;'>"
. "<div class='informer' style='padding: 5px; border-top: 0px;'>"
. (!$res ? '' : $res)
. "<div><p><b>$titre</b></p></div>"
. "<p><b>$titre</b></p>"
. (!$descriptif ? '' : "<div>$descriptif</div>")
. "<div style='text-align: $spip_lang_right;'>"
. "<input type='submit' class='fondo' value='"
......
......@@ -51,7 +51,7 @@ function inc_informer_auteur_dist($id)
}
}
return "<div class='arial2 bordure_foncee toile_blanche' style='padding: 5px; border-top: 0px;'>"
return "<div class='informer'>"
. (!$res ? '' : $res)
. "<div><a href='"
. generer_url_ecrire('auteur_infos', "id_auteur=$id")
......
......@@ -130,11 +130,11 @@ function menu_langues($nom_select) {
// http://doc.spip.org/@select_langues
function select_langues($nom_select, $change, $options)
{
return "<select name='$nom_select' "
return "<select name='$nom_select' id='menu_langues'"
. ((!test_espace_prive()) ?
("class='forml' style='vertical-align: top; max-height: 24px; margin-bottom: 5px; width: 120px;'") :
("class='forml'") :
(($nom_select == 'var_lang_ecrire') ?
("class='verdana1 toile_foncee' style='max-height: 24px; border: 1px solid white; color: white; width: 100px;'") :
("class='lang_ecrire'") :
"class='fondl'"))
. $change
. ">\n"
......
......@@ -146,10 +146,7 @@ function inc_legender_dist($id_document, $document, $script, $type, $id, $ancre,
if (!($id < 0) && $document['vu']=='non')
$corps .= icone_horizontale($texte, $action, $supp, "supprimer.gif", false);
$corps = "<div class='verdana1 toile_blanche ligne_foncee bordure_foncee' style='padding: 5px; margin: 3px;'>"
. block_parfois_visible("legender-aff-$id_document", $entete, $corps, "text-align:center;", $flag)
. "</div>";
$corps = block_parfois_visible("legender-aff-$id_document", $entete, $corps, "text-align:center;", $flag);
return ajax_action_greffe("legender", $id_document, $corps,'');
}
......
......@@ -30,7 +30,7 @@ function afficher_messages($titre, $from, $where, &$messages_vus, $afficher_aute
}
$res = affiche_tranche_bandeau($requete, "messagerie-24.gif", 'toile_foncee', "ligne_blanche", $tmp_var, $titre, false, $largeurs, $styles, 'afficher_message_boucles', $afficher_auteurs);
$res = affiche_tranche_bandeau($requete, "messagerie-24.gif", NULL, NULL, $tmp_var, $titre, false, $largeurs, $styles, 'afficher_message_boucles', $afficher_auteurs);
$result = spip_query("SELECT messages.id_message FROM " . $requete['FROM'] . ' WHERE ' . $requete['WHERE']);
......
......@@ -447,7 +447,7 @@ function afficher_tranches_requete($num_rows, $tmp_var, $url='', $nb_aff = 10, $
return $texte;
}
// $fg et $bg ne sont plus utilisees
// http://doc.spip.org/@affiche_tranche_bandeau
function affiche_tranche_bandeau($requete, $icone, $fg, $bg, $tmp_var, $titre, $force, $largeurs, $styles, $skel, $own='')
{
......
......@@ -105,7 +105,7 @@ function construire_selectionner_hierarchie($idom, $liste, $racine, $url, $name,
. " />"
. "\n</td></tr></table><div id='"
. $idom2
. "' class='toile_blanche bordure_foncee' style='position: relative; height: 170px; overflow: auto;'><div id='$idom4'"
. "'><div id='$idom4'"
. " class='arial1'>"
. $liste
. "</div></div>\n<div id='$idom3'></div></div>\n";
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter