Accéder au contenu.
Menu Sympa

devel - [Devel] [Patch] Feuille Css

Objet : devel-adl

Archives de la liste

[Devel] [Patch] Feuille Css


Chronologique Discussions 
  • From: Erwan <air1 AT imaginair.net>
  • To: Developpement de l'Agenda du Libre <devel AT agendadulibre.org>
  • Subject: [Devel] [Patch] Feuille Css
  • Date: Thu, 04 Jan 2007 23:59:21 +0100
  • List-archive: <http://lolut.utbm.info/pipermail/devel>
  • List-id: Developpement de l'Agenda du Libre <devel.agendadulibre.org>

Salut et bonne année !

Je soumets un patch qui contient
- une nouvelle feuille de style (testé sur firefox, ie, opera)
- des corrections de xhtml (le formulaire des régions)
- des petites choses par ci par là....

J'espère que ça vous plaira ;-)

++

--
Erwan - www.imaginair.net

Index: trunk/funcs.inc.php
===================================================================
--- trunk/funcs.inc.php	(revision 198)
+++ trunk/funcs.inc.php	(working copy)
@@ -1,6 +1,6 @@
 <?php
 
-/* Copyright 2005-2006
+/* Copyright 2005-2007
  * - Mélanie Bats <melanie POINT bats CHEZ utbm POINT fr>
  * - Thomas Petazzoni <thomas POINT petazzoni CHEZ enix POINT org>
  *
@@ -69,8 +69,7 @@
 <head>
 	<title>L'Agenda du Libre - <?php echo $title;?></title>
 	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
-	<link rel="stylesheet" type="text/css" href="calendar.css" title="Officielle" />
-        <link rel="alternate stylesheet" type="text/css" href="air1.css" title="Air1" />
+	<link rel="stylesheet" type="text/css" href="calendar2.css" title="Officielle" />
         <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
 <?php
 
@@ -87,10 +86,10 @@
 <body>
 <div class="main">
 <div id="important">
- <p>Pour rester informé des évènements de l'agenda, utilisez les <a href="rsslist.php">flux RSS</a> ou les <a href="icallist.php">calendriers</a>&nbsp;!</p>
+ <p>Restez informé en utilisant les <a href="rsslist.php">flux RSS</a> ou les <a href="icallist.php">calendriers</a>&nbsp;!</p>
 </div>
 <h1><a href="index.php">L'Agenda du Libre</a></h1>
-<p id="subtitle"><i>L'agenda des évènements du Logiciel Libre en France</i></p>
+<p id="subtitle"><em>L'agenda des évènements du Logiciel Libre en France</em></p>
 <?php
    } //'
 
@@ -373,7 +372,7 @@
   if (has_event_in_future($db, $next_month, $next_year, $region))
     echo " <a href=\"?year=".$next_year."&amp;month=".$next_month."&amp;region=".$region."\"> &gt;&gt; </a>\n";
 
-  echo "<form>\n";
+  echo "</h2>\n<form method='get' action='index.php?year=" . $year . "&amp;month=".$month ."' class='calendar'><p>\n";
   echo "<select onchange=\"window.location='?year=" . $year . "&amp;month=" .
     $month . "&amp;region=' + this.options[this.selectedIndex].value\">\n";
 
@@ -391,17 +390,15 @@
     {
       if ($row->id == $region)
 	echo
-	  "<option value=\"" . $row->id . "\" selected=\"1\">" . $row->name . "</option>\n";
+	  "<option value=\"" . $row->id . "\" selected=\"selected\">" . $row->name . "</option>\n";
       else
 	echo
 	  "<option value=\"" . $row->id . "\">" . $row->name . "</option>\n";
     }
 
-  echo "</select>";
-  echo "</form>";
+  echo "</select></p>";
+  echo "</form>\n\n";
 
-  echo "</h2>\n\n";
-
   /*
    * Display the calendar
    */
@@ -549,6 +546,7 @@
 		       $submitter, $moderation = FALSE)
 {
   $title       = stripslashes($title);
+  $regionid    = $region;
   $region      = stripslashes(region_find($db, $region));
   $city        = stripslashes($city);
   $description = stripslashes($description);
@@ -568,7 +566,7 @@
   $result  = "<h2><i>" . $city . "</i> : " . $title . "</h2>\n\n";
   $result .= "<h3>Date et lieu</h3>\n";
   $result .= $date;
-  $result .= "<p>À <i><a href=\"http://fr.wikipedia.org/wiki/"; . $city . "\">" . $city . "</a></i>, <a href=\"http://fr.wikipedia.org/wiki/"; . $region . "\">" . $region . "</a></p>\n\n";
+  $result .= "<p>À <i><a href=\"http://fr.wikipedia.org/wiki/"; . $city . "\">" . $city . "</a></i>, <a href=\"index.php?region=" . $regionid . "\">" . $region . "</a></p>\n\n";
   $result .= "<h3>Description</h3>\n";
   $result .= $description . "\n\n";
   $result .= "<h3>Informations</h3>\n";
/* Copyright 2007
 * - Erwan Leherisse	<contact CHEZ imaginair POINT net>
 * - Mélanie Bats	<melanie POINT bats CHEZ utbm POINT fr>
 * - Thomas Petazzoni	<thomas POINT petazzoni CHEZ enix POINT org>
 * - Jean-Marie Favreau	<jeanmarie POINT favreau CHEZ free POINT fr>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 */

/* Supp des marges par defaut*/
* {
	margin: 0px;
	padding: 0px;
}

body {
	background-color: #c7e0ed;
	font-size: 14px;
	font-family: verdana,sans-serif;
	color: black;
	line-height: 24px;
}

/* Elements generaux */
h1 {
	margin: 5px 5px 5px 5px;
	text-align: center;
	font-size: 35px;
	font-family : georgia,verdana,sans-serif;
	letter-spacing: 2px;
}
h2 {	margin: 40px 0px 20px;
	text-align: center;
	font-size: 21px;
	font-weight: normal;
}
h3 {
	margin: 15px 0px 15px;
	font-size: 16px;
}

a:link, a:visited { 
	font-weight: bold; 
	text-decoration: none; 
	color: #336699;
}
a:hover, a:active { 
	color: #1280C7;
}

input,textarea,select {
	border: 1px solid #868686;
}
input:focus ,textarea:focus,select:focus {
	background: #F0F8FF;
}

ol,ul {	margin: 10px 0px 10px 35px; }

li {	margin-left: 2em;}

hr {	margin: 10px 20px;}

p {	margin: 15px 0px;}

/* Blocs principaux */
div.main {
	background: url('baby_gnu_adl.png') 30px 10px no-repeat white;
	border: 1px solid #ADCCE5;
	border-bottom-width: 0px;
	-moz-border-radius: 20px 20px 0px 0px;
	margin: 5px 5px 0px;
	padding: 10px 10px 20px;
}

div.footer {
	background-color: white;
	border: 1px solid #ADCCE5;
	border-top: 1px dotted #ADCCE5;
	-moz-border-radius: 0px 0px 20px 20px ;
	margin: 0px 5px 5px 5px;
	padding: 2px;
	text-align: center;
	font-size: 13px;
	color: black;
}

div.footer p {
	margin: 5px;
}
	
div.main p {
 text-align: justify; 
}

/* Info box rss/ical */
#important {
	position: absolute;
	top: 1.5em;
	right: 1.5em;
	width: 23%;
	border: 1px dashed black;
}

#important p {
	margin: 0px;
	padding: 2px;
	text-align: center;
	font-size: 12px;
}

#subtitle {
	margin-top: 10px;
	padding-bottom: 15px;
	text-align: center;
	font-size: 12px;
}

p.error {
	color: red;
	font-weight: bold;
}

h2.calendar {
	margin-top: 1em;
	color : #5d6064;
	font-size: 22px; 
	margin-bottom: 5px;
}
h2.calendar a {
	font-weight: normal;
}

h3.calendar {
	text-align: center;
}
/* Selection region */
form.calendar p {
	margin-bottom: 20px;
	text-align: center;
}
h2.calendar select {
	border: 1px solid #AAAAAA;
	}

/* Table principale */
table.calendar {
	width: 90%;
	margin: 0 auto;
}

table.calendar td {
	height: 6em;
	width: 14%;
	-moz-border-radius: 5px;
	-khtml-border-radius: 5px;
	vertical-align: top;
	text-align: left;
	font-size: 12px;
	color: #444444;
}

table.calendar td h1 {
	margin: 0px 1px 3px 1px;
	text-align: left;
	font-size: 9px;
	color : #727070;
	line-height: 1.1em;
}
table.calendar td:hover {
	border-color: #AAAAAA;
}
table.calendar td:hover h1 {
	color: #000;
}

table.calendar td ul {
	padding-left: 15px;
	margin: 0px;
	list-style-type: circle;
}

table.calendar td ul li {
	margin: 0px 0px 5px 0px;
	padding: 0px 0px 0px 0px;
	line-height: 1.1em;
}



/*
 * These attributes apply to all cells of the agenda
 */
td a:link, td a:visited {
	font-weight: normal;
	text-decoration: none;
	color: #444444;
}

td a:hover, td a:active {
	color: #1274C7;
}

/*
 * These attributes apply to the cells that correspond to the days
 * already past in the current month.
 */
td.past_month {
	background: #C9E2F5;
	border: 1px solid #ADCCE5;
}

td.past_month a:hover, td.past_month a:active {
        color: #000;
}

/*
 * These attributes apply to the cells that correspond to the future
 * days in the current month.
 */
td.current_month {
	background: #D1EAFF;/*e0faff--e6fbff--e5f6ff*/
	border : 1px solid #B4DDFF;
}

/*
 * These attributes apply to the cell corresponding to the current day
 */
td.today {
	background: #FFFCD2;
        border: 1px #E3C9AF solid;
}

table.calendar td.today h1 {
	font-size: 11px;
	color : #000;
}
table.calendar td.today a {
	color : #000;
}
table.calendar td.today a:hover {
	color : #1274C7;
}

/*
 * These attributes apply to the cells that correspond to days in the
 * previous or next month of the current month
 */
td.other_month {
	background: #ededed;
}

td.other_month a:link,  td.other_month a:visited {
	color: #777777;
}

td.other_month a:hover, td.other_month a:active { 
	color: #000;
}

/* Carte evenements/lugs */

#region-map {
	border: 0px;
	margin-left: 16em;
}

dl.region-map-event {
	position: absolute;
	background: #FFFCD2;
	border: 1px outset #000;
	-moz-border-radius: 10px;
	-khtml-border-radius: 10px;
	margin: 0.5em 0 0 0;
	padding: 3px;
	width: 16em;
	z-index: 2;
	text-align: left;
	overflow: hidden;
	list-style: none;
}

dl.region-map-event dt {
	border-bottom: 1px solid black;
	padding: 0;
	margin: 0;
	margin-bottom: 0.2em;
	font-size: 13px;
}

dl.region-map-event dd {
	border: none;
	padding: 0;
	margin-bottom: 0.3em;
	font-weight: normal;
	font-size: 12px;
}

dl.region-map-event ul {
	line-height: 1.2em;
}
dl.region-map-event li {
	margin-left: 0px;
}
/*
 * Advises for event submission. (used only in submit.php)
 */
#advises {
	background-color: #FFFCD2;
	border: 1px solid #ddd;
	-moz-border-radius: 20px;
	-khtml-border-radius: 20px;
	margin: 10px 100px 20px 100px;
	padding-left: 10px;
	padding-right: 10px;
}

#advises h1 {
	font-size: 20px;
	font-family: verdana,sans-serif;
	font-weight: normal;
	text-decoration: underline;
}

/*
 * Statistics (used only by stats.php)
 */

table.stats {
	width: 60%;
}

table.stats tr.odd {
	background-color: #D1EAFF;
}

table.stats tr.even {
	background-color: #C9E2F5;
}

table.stats td.item {
	width: 90%;
}

table.stats td.value {
	text-align: right;
}

/*
 * Lug list (used only by showevent.php)
 */
#lug-list {
	float: right;
	background: #FDFFDD;/*#FDFFDD*/
	border-top: 1px solid #ccc;
	border-left: 1px solid #ccc;
	border-right: 1px solid #666;
	border-bottom: 1px solid #666;
	-moz-border-radius: 10px;
	-khtml-border-radius: 10px;
	margin: 8em 1.2em 0px;
	padding: 5px;
	width: 15em;
	font-size: 12px;
}

#lug-list h1 {
	border-bottom: 1px black solid;
	padding-bottom: 2px;
	font-size: 12px;
	font-family: verdana,sans-serif;
}

#lug-list ul {
	line-height: 1.2em;
	margin-left:1em;
}



Archives gérées par MHonArc 2.6.16.

Haut de le page