Changeset 31663

Show
Ignore:
Timestamp:
09/19/09 11:33:07 (11 months ago)
Author:
neofutur777@…
Message:

reinsertion dans la zone des ameliorations du code de  http://trac.ww7.be/trac.ww7.be/browser/trunk/spipfeeder, inclue la mise en conformite avec spip 2.1 ( svn ), reste a tester, audit bienvenu ;)

Location:
_squelettes_/SpipFeeder
Files:
5 added
4 modified

Legend:

Unmodified
Added
Removed
  • _squelettes_/SpipFeeder/mes_fonctions.php3

    r2652 r31663  
    11<?php 
    22 
    3 function print_array($array) { 
    4   echo "<pre>"; 
    5   print_r($array); 
    6   echo "</pre>"; 
    7   exit(); 
    8 } 
    9  
    10 function getInfosFromWeek($week, $year) {  
    11   $nb_weeks = intval(strftime("%V", mktime(0, 0, 0, 1, 1, $year))); 
    12   if ($nb_weeks == 1) 
    13     $week_mktime = mktime(0, 0, 0, 1, (1 + (($week - 1) * 7)), $year); 
    14   elseif ($nb_weeks == 53) 
    15     $week_mktime = mktime(0, 0, 0, 1, (1 + (($week + 1) * 7)), $year); 
    16   else 
    17     $week_mktime = mktime(0, 0, 0, 1, (1 + (($week) * 7)), $year); 
    18  
    19   if (date("w", $week_mktime) > 1) 
    20     $decalage = ((date("w", $week_mktime)) * 60 * 60 * 24); 
    21  
    22   echo "<pre>"; 
    23   echo intval(strftime("%V", mktime(0, 0, 0, 1, 1, $year)))."<br />"; 
    24   echo "* ".date("Y-m-d", $week_mktime); 
    25   echo "<br />"; 
    26   echo "* ".date("Y-m-d", $week_mktime - $decalage); 
    27   echo "</pre>"; 
    28  
    29   $dimanche = $week_mktime - $decalage; 
    30   $lundi = $dimanche - (6 * 60 * 60 * 24); 
    31  
    32   $ret = array( 
    33     'date_debut' => date("Y-m-d", $lundi), 
    34     'date_fin' => date("Y-m-d", $dimanche), 
    35     'mois_debut' => date("m", $lundi), 
    36     'mois_fin' => date("m", $dimanche), 
    37     'annee_debut' => date("Y", $lundi), 
    38     'annee_fin' => date("Y", $dimanche), 
    39     'numero' => $week 
    40   ); 
    41  
    42   print_array($ret); 
    43  
    44   return ($ret); 
     3function is_date($date) 
     4{ 
     5  $date_expl = explode('-', $date); 
     6  if (count($date_expl) == 3) 
     7    if (is_numeric($date_expl[0]) && strlen($date_expl[0]) == 4 && 
     8        is_numeric($date_expl[1]) && $date_expl[1] >= 1 && $date_expl[1] <= 12 && 
     9        is_numeric($date_expl[2]) && $date_expl[2] >= 1 && $date_expl[2] <= 31) 
     10      return true; 
     11  return false; 
    4512} 
    4613 
    4714function monCalendrier($sortie) { 
    4815 
    49   // quelques variables ��nir 
     16// quelques variables a definir 
    5017  $onlydayofmonth = true;  // si true, on affiche que les jours de ce mois 
    51   $displayweeknumber = false;  // affiche ou non le n� de la semaine �auche // En cours d'am�oration ; laisser �alse pour le moment 
    52   $displayweekdays = true;  // affiche ou non L M M J V S D en haut 
    53   $sortie = ""; 
    54   $filtre = ""; 
    55  
    56   $clicableformat = "%Y-%m-%d";  // format de la fa� dont sont pass�les arguments - NE PLUS TOUCHER SVP 
     18// url de votre page listant tous les articles d'un jour donn�x "http://www.angers.org/agenda.php3?cal_date=" 
    5719  $clicable = $_SERVER['PHP_SELF'].'?'; 
    5820  foreach ($_GET as $k => $v) 
     
    6022      $clicable .= "$k=$v&amp;"; 
    6123  $clicable .= "cal_date="; 
    62  
    63   // on remplit $jActif[] de 1 pour chaque jour du mois courant ayant au moins un article publi�  // on remplit $sActif[] de 1 pour chaque semaine du mois courant ayant au moins un article publi�  $WeekInfos = false; 
    64   $IdRubrique = $_GET['id_rubrique']; 
     24  $clicableformat = "%Y-%m-%d";  // format de la facon dont sont passes les arguments 
     25  $displayweeknumber = false;  // affiche ou non le no de la semaine a gauche 
     26  $displayweekdays = true;  // affiche ou non L M M J V S D en haut 
     27  $sortie = ""; 
     28  $filtre = ""; 
     29// on remplit $jActif[] de 1 pour chaque jour du mois courrant ayant un article publie 
     30 
     31//  $IdRubrique = $_GET['id_rubrique']; 
     32  $IdRubrique = $rubrique; 
     33  if (!empty($IdRubrique) && !is_numeric($IdRubrique)) 
     34    die('Param�e au mauvais format.'); 
    6535  $IdSyndic = $_GET['id_syndic']; 
    66  
    67   // Si on est sur une semaine 
    68   if (ereg("^([0-9]{4})-([0-9]{2})$", $_GET['cal_date'])) { 
    69     $dt = explode("-", $_GET['cal_date']);  
    70     $WeekInfos = getInfosFromWeek(intval($dt[1]), $dt[0]); 
    71     $_GET['cal_date'] = $WeekInfos['date_debut']; 
    72   } 
    73  
    74   $date_req = ($_GET['cal_date'] ? substr($_GET['cal_date'], 0, 7)  : date("Y-m")); 
     36  if (!empty($IdSyndic) && !is_numeric($IdSyndic)) 
     37    die('Param�e au mauvais format.'); 
     38  $tmpdate = addslashes($_GET['cal_date']); 
     39  if (!empty($tmpdate) && !is_date($tmpdate)) 
     40    die('Param�e au mauvais format.'); 
     41  //$date_req = ($_GET['cal_date'] ? substr($_GET['cal_date'], 0, 7)  : date("Y-m")); 
     42  $date_req = ($tmpdate ? substr($tmpdate, 0, 7)  : date("Y-m")); 
    7543 
    7644  if ($IdRubrique) 
    77     $filtre .= "AND ss.id_rubrique = ".intval($IdRubrique); 
     45    $filtre .= "AND ss.id_rubrique = $IdRubrique "; 
    7846  if ($IdSyndic) 
    79     $filtre .= "AND ss.id_syndic = ".intval($IdSyndic); 
     47    $filtre .= "AND ss.id_syndic = $IdSyndic "; 
    8048 
    8149  $query = 
    82     "SELECT ". 
    83       "DISTINCT(DATE_FORMAT(ssa.date, '%d')) AS jour ". 
    84       ($displayweeknumber === true ? 
    85       ", DATE_FORMAT(ssa.date, '%v') AS semaine " : ""). 
     50    "SELECT DISTINCT(DATE_FORMAT(ssa.date, '%d')) AS jour ". 
    8651    "FROM ". 
    8752      "spip_syndic_articles AS ssa, ". 
     
    8954    "WHERE ss.id_syndic = ssa.id_syndic ". 
    9055    "AND ssa.statut = 'publie' ". 
    91     "AND DATE_FORMAT(ssa.date, '%Y-%m') = '".addslashes($date_req)."' ". 
     56    "AND DATE_FORMAT(ssa.date, '%Y-%m') = '".$date_req."' ". 
    9257    $filtre. 
    93     "ORDER BY ssa.date DESC"; 
    94   //$sortie .= "'$query'<br />"; 
     58    "ORDER BY ssa.date DESC LIMIT 1000"; 
    9559  $result = spip_query($query); 
    96   while($row = spip_fetch_array($result)) { 
     60  while($row = spip_fetch_array($result)) 
    9761    $jActif[intval($row['jour'])] = 1; 
    98     if ($displayweeknumber === true) 
    99       $sActif[$row['semaine']] = 1; 
    100   } 
    10162 
    10263  // on affiche le calendrier 
    103   $date = ($_GET['cal_date'] ? getdate(strtotime($_GET['cal_date'])) : getdate()); 
    104  
    105   //On recupere le premier du mois 
    106   $pmtime = mktime(10, 0, 0, $date["mon"], 1, $date["year"]); 
    107   $pm = getdate($pmtime); 
    108  
    109   //Puis le numero du premier jour 
    110   $nj = $pm["wday"]; 
    111   $mois = array(1 => 'Janvier', 'F�ier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Aout', 'Septembre', 'Octobre', 'Novembre', 'D�mbre'); 
    112   //On affiche les titres 
    113   $tomonth = intval(strftime("%m", $pmtime)); 
    114  
    115   $url_month_prev = $clicable.date("Y-m-d", mktime(0, 0, 0, $tomonth - 1, 1, $date["year"])); 
    116   $url_month_next = $clicable.date("Y-m-d", mktime(0, 0, 0, $tomonth + 1, 1, $date["year"])); 
    117  
    118   $sortie .= "<table border='0' cellspacing='1' cellpadding='0' width='130'>\n"; 
    119   $aff_mois = ($tomonth == date("n") ? "<span class='calendrier-ce-mois'>".$mois[$tomonth]."</span>" : $mois[$tomonth]); 
    120   $sortie .=  
    121       "            <tr>\n". 
    122       "              <td class='calendrier-mois'><a href='$url_month_prev'>&lt;</a></td>\n". 
    123       "              <td class='calendrier-mois' colspan='".($displayweeknumber ? 6 : 5)."'>".$aff_mois."</td>\n". 
    124       "              <td class='calendrier-mois'><a href='$url_month_next'>&gt;</a></td>\n". 
    125       "            </tr>\n"; 
    126   if ($displayweekdays) { 
    127     $sortie .= "            <tr>\n"; 
    128     if ($displayweeknumber) 
    129       $sortie .= "              <td class='calendrier'><br /></td>\n"; 
    130     $daysinits = array('L', 'M', 'M', 'J', 'V', 'S', 'D'); 
    131     foreach ($daysinits as $da) 
    132       $sortie .= "              <td class='calendrier-jour'>".$da."</td>\n"; 
    133     $sortie .= "            </tr>\n"; 
    134   } 
    135  
    136   $today = date("Ynj"); 
    137  
    138   //Correction: Le mois peut s'etaler sur 6 semaines 
    139   $end = false; 
    140   $debut = 0; 
    141   if ($nj < 1) 
    142     $debut = -1; 
    143   for ($sem = $debut; !$end && $sem <= 5; $sem++) { 
    144     $sortie .= "            <tr>\n"; 
    145     for ($j = 1; $j <= 7; $j++) { 
    146       $jjdate = @mktime(10, 0, 0, $date["mon"], 1 - $nj + $sem * 7 + $j, $date["year"]); 
    147       $jj = @getdate($jjdate); 
    148  
    149       if ($j == 1 && $displayweeknumber === true) { 
    150         $a = strftime("%V", $jjdate); 
    151         if ($a == '') { 
    152           $a = strftime("%W", $jjdate); 
     64//echo $_GET['cal_date']; 
     65 
     66    $date = ($_GET['cal_date'] ? getdate(strtotime($_GET['cal_date'])) : getdate()); 
     67   
     68    //On recupere le premier du mois 
     69//var_dump( $date ); 
     70    $pmtime = mktime(10, 0, 0, $date["mon"], 1, $date["year"]); 
     71    $pm = getdate($pmtime); 
     72     
     73    //Puis le numero du premier jour 
     74    $nj = $pm["wday"]; 
     75    $mois = array(1 => 'Janvier', 'F&eacute;vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Aout', 'Septembre', 'Octobre', 'Novembre', 'D&eacute;cembre'); 
     76    //On affiche les titres 
     77    $tomonth = intval(strftime("%m", $pmtime)); 
     78 
     79    $monthprevzero = ($tomonth - 1 < 10 ? '0' : ''); 
     80    $monthnextzero = ($tomonth + 1 < 10 ? '0' : ''); 
     81    $url_month_prev = $clicable.date("Y")."-$monthprevzero".($tomonth - 1)."-01"; 
     82    $url_month_next = $clicable.date("Y")."-$monthnextzero".($tomonth + 1)."-01"; 
     83 
     84    $sortie .= "<table summary='calendrier' border='0' cellspacing='1' cellpadding='0' width='130'>\n"; 
     85//var_dump( $mois); 
     86// echo " - ".$tomonth;  echo " - ".$mois[$tomonth]; 
     87 
     88    $sortie .=  
     89        "            <tr>\n". 
     90          "<td class='calendrier-mois'><a href='$url_month_prev'>&lt;</a></td>\n". 
     91        "              <td class='calendrier-mois' colspan='".($displayweeknumber ? 6 : 5)."'>".$mois[$tomonth]."</td>\n". 
     92          "<td class='calendrier-mois'><a href='$url_month_next'>&gt;</a></td>\n". 
     93        "            </tr>\n"; 
     94    if ($displayweekdays) { 
     95      $sortie .= "            <tr>\n"; 
     96      if ($displayweeknumber) 
     97        $sortie .= "              <td class='calendrier'><br /></td>\n"; 
     98      $sortie .= "              <td class='calendrier-semaine'>L</td>\n"; 
     99      $sortie .= "              <td class='calendrier-semaine'>M</td>\n"; 
     100      $sortie .= "              <td class='calendrier-semaine'>M</td>\n"; 
     101      $sortie .= "              <td class='calendrier-semaine'>J</td>\n"; 
     102      $sortie .= "              <td class='calendrier-semaine'>V</td>\n"; 
     103      $sortie .= "              <td class='calendrier-semaine'>S</td>\n"; 
     104      $sortie .= "              <td class='calendrier-semaine'>D</td>\n"; 
     105      $sortie .= "            </tr>\n"; 
     106    } 
     107 
     108    //Correction: Le mois peut s'etaler sur 6 semaines 
     109    $end=false; 
     110    $debut=0; 
     111    if ($nj<1) $debut=-1; 
     112    for ($sem=$debut; !$end && $sem<=5; $sem++) { 
     113      $sortie .= "            <tr>\n"; 
     114      for ($j=1; $j<=7; $j++) { 
     115        $jjdate=@mktime(10,0,0,$date["mon"],1-$nj+$sem*7+$j,$date["year"]); 
     116        $jj=@getdate($jjdate); 
     117 
     118        if ($j==1 && $displayweeknumber) { 
     119          $a=strftime("%V", $jjdate); 
     120          if ($a=='') {$a=strftime("%W", $jjdate); 
     121          } 
     122        $sortie.= "              <td><b>$a</b>"; 
    153123        } 
    154         if ($sActif[$a]) 
    155           $sortie .= "              <td class='calendrier-activesemaine'><a style='color:white;' href=\"$clicable".strftime("%Y-", $jjdate).$a."\">$a</a>"; 
    156         else 
    157           $sortie .= "              <td class='calendrier-semaine'>$a"; 
    158       } 
    159  
    160       $sortie .= "              <td "; 
    161       if ($jj["mon"] != $date["mon"]) { 
     124 
     125      $sortie.="              <td "; 
     126      if ($jj["mon"]!=$date["mon"]) { 
    162127        $sortie .= "class='outday'"; 
    163       } 
    164       else { 
    165         if ($jj["yday"] == $date["yday"]) 
    166           $sortie .= "class='select-day'"; 
    167         else { 
     128        } else { 
     129        if ($jj["yday"]==$date["yday"]) { 
     130          $sortie .= "class='today'"; 
     131          } else { 
    168132          if ($jActif[$jj['mday']]) { 
    169             if ($j > 5) 
     133            if ($j>5) { 
    170134              $sortie .= "class='activeweekendday'"; 
    171             else 
     135              } else { 
    172136              $sortie .= "class='activeday'"; 
    173           } 
    174           else { 
    175             if ($j > 5) 
     137              } 
     138            } else { 
     139            if ($j>5) { 
    176140              $sortie .= "class='weekendday'"; 
    177             else 
     141              } else { 
    178142              $sortie .= "class='weekday'"; 
     143              } 
     144            } 
    179145          } 
    180146        } 
    181       } 
    182147      $sortie .= ">"; 
    183  
    184       if (!$onlydayofmonth || $jj["mon"] == $date["mon"]) { 
    185         if (($jActif[$jj['mday']]) && ($jj["mon"] == $date["mon"])) 
    186           $sortie .= "<a style='color:white;' href=\"$clicable".strftime($clicableformat, $jjdate)."\">"; 
    187  
    188         if ($jj['year'].$jj['mon'].$jj['mday'] == $today) { 
    189           $sortie .= "<span class='today'>"; 
     148      if (!$onlydayofmonth || $jj["mon"]==$date["mon"]) { 
     149                if (($jActif[$jj['mday']]) && ($jj["mon"]==$date["mon"])) $sortie.="<a style='color:white;' href=\"$clicable".strftime($clicableformat, $jjdate)."\">"; 
     150 
     151        if ($jj["yday"]==$date["yday"]) $sortie.="<b>".$jj["mday"]."</b>"; 
     152          else $sortie.=$jj["mday"]; 
     153                 
     154        if (($jActif[$jj['mday']]) && ($jj["mon"]==$date["mon"])) $sortie.="</a>"; 
     155              } else $sortie.="<br />"; 
     156              $sortie.="</td>\n\r"; 
    190157        } 
    191  
    192         if ($jj["yday"] == $date["yday"]) 
    193           $sortie .= "<b>".$jj["mday"]."</b>"; 
    194         else 
    195           $sortie .= $jj["mday"]; 
    196  
    197         if ($jj['year'].$jj['mon'].$jj['mday'] == $today) { 
    198           $sortie .= "</span>"; 
    199         } 
    200  
    201         if (($jActif[$jj['mday']]) && ($jj["mon"] == $date["mon"])) 
    202           $sortie .= "</a>"; 
    203       } 
    204       else 
    205         $sortie.="<br />"; 
    206  
    207       $sortie.="</td>\n\r"; 
    208     } 
    209     $sortie .= "            </tr>\n"; 
     158      $sortie.="            </tr>\n"; 
    210159 
    211160    //Cas des mois sur 5 semaines 
    212     $jj = @getdate(@mktime(10, 0, 0, $date["mon"], 1 - $nj + $sem * 7 + 8, $date["year"])); 
    213     if ($jj["mon"]>$date["mon"] && $jj["year"] == $date["year"] || $jj["year"] > $date["year"]) 
    214       $end = true; 
     161    $jj=@getdate(@mktime(10,0,0,$date["mon"],1-$nj+$sem*7+8,$date["year"])); 
     162    if($jj["mon"]>$date["mon"] && $jj["year"]==$date["year"] || $jj["year"]>$date["year"]) $end=true; 
     163 
    215164  } 
    216   $sortie .= "          </table>"; 
    217  
    218   return ($sortie);   
    219 } 
    220  
    221 function monDrawSyndic() { 
     165  $sortie.="          </table>"; 
     166 
     167  return $sortie;   
     168} 
     169 
     170function monDrawSyndic( $url, $rubrique, $syndic ) { 
     171// global $rubrique; 
     172// global $get_id_rub; 
     173 
    222174  $jours = array('Mon' => 'Lundi', 'Tue' => 'Mardi', 'Wed' => 'Mercredi', 'Thu' => 'Jeudi', 'Fri' => 'Vendredi', 'Sat' => 'Samedi', 'Sun' => 'Dimanche'); 
    223   $mois = array('Jan' => 'Janvier', 'Feb' => 'F�ier', 'Mar' => 'Mars', 'Apr' => 'Avril', 'May' => 'Mai', 'Jun' => 'Juin', 'Jul' => 'Juillet', 'Aug' => 'Ao�'Sep' => 'Septembre', 'Oct' => 'Octobre', 'Nov' => 'Novembre', 'Dec' => 'D�mbre'); 
    224  
    225   $IdRubrique = $_GET['id_rubrique']; 
    226   $IdSyndic = $_GET['id_syndic']; 
    227   $CalDate = ($_GET['cal_date'] ? $_GET['cal_date'] : ($IdSyndic ? '' : date('Y-m-d'))); 
     175  $mois = array('Jan' => 'Janvier', 'Feb' => 'F&eacute;vrier', 'Mar' => 'Mars', 'Apr' => 'Avril', 'May' => 'Mai', 'Jun' => 'Juin', 'Jul' => 'Juillet', 'Aug' => 'Ao&ucirc;t', 'Sep' => 'Septembre', 'Oct' => 'Octobre', 'Nov' => 'Novembre', 'Dec' => 'D&eacute;cembre'); 
     176 
     177  $IdRubrique = $rubrique; 
     178  if (!empty($IdRubrique) && !is_numeric($IdRubrique)) 
     179    die('Param�e au mauvais format.'); 
     180  $IdSyndic = $syndic; 
     181  if (!empty($IdSyndic) && !is_numeric($IdSyndic)) 
     182    die('Param�e au mauvais format.'); 
     183//        $IdRubrique = $get_id_rub; 
     184        //echo "id_rub = ".$rubrique; 
     185        //echo "id_syndic = ".$syndic; 
     186 
     187//  $CalDate = ($_GET['cal_date'] ? $_GET['cal_date'] : ($IdSyndic ? '' : date('Y-m-d'))); 
     188// date de la veille pour spanish : 
     189  $CalDate = ($_GET['cal_date'] ? $_GET['cal_date'] : ($IdSyndic ? '' : date('Y-m-d', time() - 3600 * 24))); 
     190  if (!empty($CalDate) && !is_date($CalDate)) 
     191    die('Param�e au mauvais format.'); 
     192//echo $CalDate; 
    228193  $DebutSyndic = ($_GET['debut_syndic'] ? $_GET['debut_syndic'] : 0); 
    229   $NbSyndic = 25; 
     194  if (!is_numeric($DebutSyndic)) 
     195    die('Param�e au mauvais format.'); 
     196  $NbSyndic = 44; 
    230197  $ret = ""; 
    231198 
    232199  $filtre = ""; 
    233200  if ($IdRubrique) 
    234     $filtre .= "AND ss.id_rubrique = ".intval($IdRubrique); 
     201    $filtre .= "AND ss.id_rubrique = $IdRubrique "; 
    235202  if ($IdSyndic) 
    236     $filtre .= "AND ss.id_syndic = ".intval($IdSyndic); 
    237   if ($CalDate) { 
    238     if (ereg("^([0-9]{4})-([0-9]{2})-([0-9]{2})$", $CalDate)) { 
    239       $DateType = "jour"; 
    240       $DateFormat = "%Y-%m-%d"; 
    241     } 
    242     elseif (ereg("^([0-9]{4})-([0-9]{2})$", $CalDate)) { 
    243       $DateType = "semaine"; 
    244       $DateFormat = "%Y-%v"; 
    245     } 
    246     $filtre .= "AND DATE_FORMAT(ssa.date , '$DateFormat') = '".addslashes($CalDate)."' "; 
    247   } 
    248  
    249   $ReqGlb = 
    250     "SELECT SQL_CALC_FOUND_ROWS SQL_BIG_RESULT ". 
    251       "DISTINCT ( ssa.url ) AS url_article, ". 
     203    $filtre .= "AND ss.id_syndic = $IdSyndic "; 
     204  if ($CalDate) 
     205    $filtre .= "AND DATE_FORMAT(ssa.date , '%Y-%m-%d') = '$CalDate' "; 
     206 
     207  $ReqGlb =  
     208    "SELECT SQL_CALC_FOUND_ROWS ". 
     209                        "DISTINCT ( ssa.url) AS url_article, ". 
    252210      "ssa.titre AS titre, ". 
    253211      "ssa.lesauteurs AS auteurs, ". 
    254212      "ssa.descriptif AS descr, ". 
    255213      "ss.nom_site AS site, ". 
     214      "ss.id_syndic AS id_syndic, ". 
     215      "ss.descriptif AS descriptif, ". 
    256216      "ss.url_site AS url_site, ". 
    257217      "ss.url_syndic AS url_syndic, ". 
     
    262222    "WHERE ss.id_syndic = ssa.id_syndic ". 
    263223    "AND ssa.statut = 'publie' ". 
     224                "AND ss.statut= 'publie'". 
    264225    $filtre. 
    265     "GROUP BY ssa.date, ssa.url DESC ". 
     226    "ORDER BY ssa.date DESC ". 
    266227    "LIMIT $DebutSyndic, $NbSyndic"; 
    267  
     228//        var_dump( $ReqGlb ); 
    268229  $ResGlb = spip_query($ReqGlb); 
    269230 
     
    276237    if ($k != 'debut_syndic') 
    277238      $url .= "$k=$v&amp;"; 
    278  
    279   $pagination = "<p class='centre'>"; 
     239  $ret .= "<p class='centre'>"; 
     240        $ret.="<b style='text-decoration : blink'>Ce jour : $NbFnd informations libres :</b> "; 
     241        $thelinks=""; 
    280242  for ($numero = 0; $numero < $NbFnd; $numero = $numero + $NbSyndic) { 
    281243    $NumFin = $numero + $NbSyndic; 
    282244    if ($NumFin > $NbFnd) 
    283245      $NumFin = $NbFnd; 
    284     if ($numero == $DebutSyndic) 
    285       $pagination .= " [".($numero+1)."-$NumFin] "; 
    286     else 
    287       $pagination .= "[<a href='$url"."debut_syndic=$numero'>".($numero+1)."-$NumFin</a>] "; 
     246    if ($numero == $DebutSyndic) { $thelinks .= "[".($numero+1)."-$NumFin] "; } 
     247    else { $thelinks .= " [<a href='$url"."debut_syndic=$numero'>".($numero+1)."-$NumFin</a>] "; } 
     248 
    288249  } 
    289   $pagination .= "</p>\n\r"; 
    290  
    291   $ret .= $pagination; 
    292  
    293   while ($RowGlb = spip_fetch_array($ResGlb)) { 
     250                $ret .= $thelinks; 
     251  $ret .= "</p>\n\r"; 
     252 
     253  while($RowGlb = spip_fetch_array($ResGlb)) { 
    294254    $dt_expl = explode(';', $RowGlb['date_format']); 
    295255    $date_format = $jours[$dt_expl[0]].' '.$dt_expl[1].' '.$mois[$dt_expl[2]].' '.$dt_expl[3]; 
    296256    $ret .=  
    297257      "      <p class='contentTitle'>\n\r". 
    298       "        <span class='header'><a href='".$RowGlb['url_article']."'>".$RowGlb['titre']."</a></span>\n\r". 
    299       "        $date_format :: <a href='".$RowGlb['url_site']."'>".$RowGlb['site']."</a> :: <a href='".$RowGlb['url_syndic']."'>RSS</a>\n\r". 
     258      "        <span class='header'><a href='".$RowGlb['url_article']."'>".safehtml($RowGlb['titre'])."</a>"; 
     259                if ( $RowGlb['auteurs'] != "" ) 
     260                { 
     261                 $ret .= " par <b>".$RowGlb['auteurs']."</b></span>\n\r"; 
     262                }else { $ret .= "</span>\n\r"; } 
     263                //var_dump( $RowGlb ); // BUG !!! TODO !!! on a pas l'url de l'article en page site !!!! 
     264                $ret.="        $date_format :: <a href='spip.php?site".$RowGlb['id_syndic']."' title=\"".safehtml($RowGlb['descriptif'])."\">".$RowGlb['site']." </a> :: <a href='".htmlentities($RowGlb['url_syndic'])."'>RSS</a>\n\r". 
    300265      "      </p>\n\r". 
    301       "      <p class='contentTexte'>".$RowGlb['descr']." <a href='".$RowGlb['url_article']."'>(Lire la suite)</a> ".($RowGlb['auteurs'] ? "<a>".$RowGlb['auteurs']."</a>" : "")."</p>\n\r"; 
     266//"<a href='spip.php?site".$RowGlb['id_syndic']."' title='".safehtml($RowGlb['descriptif'])."'>".$RowGlb['site']."</a>". 
     267      "      <p class='contentTexte' />".safehtml($RowGlb['descr'])." <a href='".$RowGlb['url_article']."'>(Lire la suite)".$dump." </a> ".($RowGlb['auteurs'] ? "<a>".$RowGlb['auteurs']."</a>" : "")."\n\r"; 
    302268  } 
    303269 
    304   $ret .= $pagination; 
     270  $ret .= "      <p class='centre'>"; 
     271               $ret .= $thelinks; 
     272 
     273/*  for ($numero = 0; $numero < $NbFnd; $numero = $numero + $NbSyndic) { 
     274    $NumFin = $numero + $NbSyndic; 
     275    if ($NumFin > $NbFnd) 
     276      $NumFin = $NbFnd; 
     277    if ($numero == $DebutSyndic) 
     278      $ret .= " [".($numero+1)."-$NumFin] "; 
     279    else 
     280      $ret .= "[<a href='$url"."debut_syndic=$numero'>".($numero+1)."-$NumFin</a>] "; 
     281  }*/ 
     282  $ret .= "</p>\n\r"; 
    305283 
    306284  return ($ret); 
    307285} 
    308286 
     287function pourcent($valeur) { 
     288   return $valeur / 100; 
     289} 
     290 
     291function affdateYmd($date) { 
     292  return date("Y-m-d", strtotime($date)); 
     293} 
     294 
    309295?> 
  • _squelettes_/SpipFeeder/rubrique.html

    r1835 r31663  
    11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    22<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" lang="#LANG"> 
     3 
    34<!-- 
    4  _______________________________________________________ 
    5 |                                                       | 
    6 |    DESIGN + http://fullahead.org                      | 
    7 |      DATE + 2005.05.12                                | 
    8 | COPYRIGHT + free use if this notice is kept in place  | 
    9 |                                                       | 
    10 | ADAPTATION SPIP + ERIC NOEL + NE0FUTUR + TATANKA      | 
    11 |      DATE + 2005.07.19 + 2006.02.05                   | 
    12 |_______________________________________________________| 
     5 _________________________________________________________ 
     6|                                                         | 
     7|    DESIGN + http://fullahead.org                        | 
     8|      DATE + 2005.05.12                                  | 
     9| COPYRIGHT + free use if this notice is kept in place    | 
     10|                                                         | 
     11|       ADAPTATION SPIP + ERIC NOEL + neofutur + tatanka  | 
     12|                       DATE    + 2005.07.19              | 
     13|_________________________________________________________| 
    1314 
    1415--> 
     16 
    1517<head> 
     18 
     19  <meta http-equiv="content-type" content="application/xhtml+xml; charset=#CHARSET" /> 
     20  <meta name="author" content="Fullahead + Eric Noel + neofutur + Tatanka" /> 
     21  <meta name="keywords" content="feeder, news, RSS, SpipFeeder, Spip, infos, blogs, aggregateur" /> 
     22  <meta name="description" content="SpipFeeder aggregateur de News" /> 
     23  <meta name="Robots" content="Index, Follow" /> 
     24 <!-- Lien vers le backend pour navigateurs eclaires --> 
     25  <link rel="alternate" type="application/rss+xml" title="<:syndiquer_site:>" href="spip.php?page=backend" /> 
     26  <link rel="alternate" type="application/rss+xml" title="<:syndiquer_rubrique:>" href="spip.php?page=backend&amp;id_rubrique=#ID_RUBRIQUE" /> 
    1627  <title>[#NOM_SITE_SPIP]</title> 
    17   <meta http-equiv="content-type" content="application/xhtml+xml; charset=#CHARSET" /> 
    18   <meta name="author" content="Fullahead + Eric Noel + ne0futur + Tatanka" /> 
    19   <meta name="keywords" content="reflection,fullahead,pat,OSWD,more,keywords,separated,with,commas" /> 
    20   <meta name="description" content="OSWD reflection XHTML template by fullahead.org" /> 
    21   <!-- Lien vers les backends pour navigateurs eclaires --> 
    22   <link rel="alternate" type="application/atom+xml" href="atom1.php3" title="#NOM_SITE_SPIP _ Fil Atom 1.0" /> 
    23   <link rel="alternate" type="application/rss+xml" href="rss2.php3" title="#NOM_SITE_SPIP _ Fil RSS 2.0" /> 
    24   <link rel="stylesheet" type="text/css" href="#DOSSIER_SQUELETTE/styles/screen_aqua.css" media="screen, tv, projection" /> 
     28  <link rel="stylesheet" type="text/css" href="#DOSSIER_SQUELETTE/screen_aqua.css" media="screen, tv, projection" /> 
     29<link rel="stylesheet" href="#DOSSIER_SQUELETTE/dialog.css" media="screen" /> 
     30<link rel="stylesheet" href="#DOSSIER_SQUELETTE/example-variants.css" media="screen" /> 
     31 
    2532</head> 
     33 
    2634<body> 
    2735<!-- Main site container --> 
     
    3038  <div id="header"> 
    3139    <!-- top rounded corner --> 
    32     <img src="#DOSSIER_SQUELETTE/images/corner_tl.gif" alt="corner" style="float:left;" /> 
     40    <img src="images/corner_tl.gif" alt="corner" style="float:left;" /> 
    3341    <!-- Site title and subTitle --> 
    3442    <span class="title"> 
     
    4149    <a href="/" title="Accueil">Accueil<span class="desc">Bienvenue</span></a> 
    4250  </div> 
     51  <INCLURE{fond=banner}> 
     52  <?php 
     53   $rubrique = #ENV{id_rubrique}; 
     54   $get_id_rub = #ENV{id_rubrique}; 
     55   //$_GET['id_rubrique']=$get_id_rub; 
     56   //echo $rubrique; 
     57  ?> 
    4358  <!-- Content begins --> 
    4459  <div id="content"> 
    4560    <!-- Left side menu : side bar links/news/search/etc. --> 
    4661    <div id="contentLeft"> 
     62   <INCLURE{fond=menu1}> 
    4763      <p><span class="header">Rubriques des inscrits</span></p> 
    4864      <BOUCLE_rubriques(RUBRIQUES) {par titre}> 
     
    5066        <?php 
    5167          $spip_id_rub = "#ID_RUBRIQUE"; 
    52           $get_id_rub = $_GET['id_rubrique']; 
    5368          if ($spip_id_rub == $get_id_rub) { 
    5469            $spip_titre_rub = "#TITRE"; 
     
    5671        ?> 
    5772        <BOUCLE_syndic_sites(SITES) {id_rubrique} {par nom_site} {tout}> 
    58           <div class="menu_gauche_s"><a href="site.php3?id_rubrique=#ID_RUBRIQUE&amp;id_syndic=#ID_SYNDIC" class="menunoItem" title="#DESCRIPTIF">#NOM_SITE</a></div> 
     73          <div class="menu_gauche_s"><a href="spip.php?page=site&amp;id_rubrique=#ID_RUBRIQUE&amp;id_syndic=#ID_SYNDIC" class="menunoItem" title="#DESCRIPTIF">#NOM_SITE</a></div> 
    5974        </BOUCLE_syndic_sites> 
    6075        <?php 
     
    6277        ?> 
    6378      </BOUCLE_rubriques> 
     79   <INCLURE{fond=menu2}> 
    6480      <p><span class="header">Syndication</span></p> 
    65       <div class="menu_gauche"><a href="atom1.php3" class="menunoItem">Fil Atom 1.0</a></div> 
    66       <div class="menu_gauche"><a href="rss2.php3" class="menunoItem">Fil RSS 2.0</a></div> 
     81      <div class="menu_gauche_d"><a href="spip.php?page=backend" class="menunoItem">Fil rss</a></div> 
    6782      <!-- Creates the rounded corner on the bottom of the left menu --> 
    68       <div class="bottomCorner"><img src="#DOSSIER_SQUELETTE/images/corner_sub_br.gif" alt="bottom corner" class="vBottom"/></div> 
     83      <div class="bottomCorner"><img src="images/corner_sub_br.gif" alt="bottom corner" class="vBottom"/></div> 
    6984    </div> 
    7085    <!-- Right side main content --> 
    7186    <div id="contentRight"> 
    72       <div id="contentTopRight"> 
    73         <div id="cal"> 
    74           [(#URL_SITE_SPIP|monCalendrier)] 
    75         </div> 
    76         <div id="edito"> 
    77           <span class="headerTop"><?php echo $spip_titre_rub; ?></span><br /> 
     87     <table id="contentTopRight" summary="contenu principal"><tr> 
     88      <td id="edito"> 
     89        <INCLURE{fond=message}> <hr /> 
     90          <span class="header"><?php echo $spip_titre_rub; ?></span> 
    7891          <?php echo $spip_desc_rub; ?> 
    79         </div> 
    80       </div> 
    81       [(#URL_SITE_SPIP|monDrawSyndic)] 
     92      </td> 
     93      <td id="cal"> 
     94       [(#URL_SITE_SPIP|monCalendrier)] 
     95      </td> 
     96     </tr></table> 
     97      [(#URL_SITE_SPIP|monDrawSyndic{#ENV{id_rubrique},0})] 
    8298      <!-- Creates bottom left rounded corner --> 
    83       <img src="#DOSSIER_SQUELETTE/images/corner_sub_bl.gif" alt="bottom corner" class="vBottom" /> 
     99      <img src="images/corner_sub_bl.gif" alt="bottom corner" class="vBottom" /> 
     100     </div>  
    84101    </div> 
     102   <!-- Footer begins --> 
     103   <div id="footer"> 
     104    <INCLURE{fond=footer}> 
     105   </div> 
    85106  </div> 
    86   <!-- Footer begins --> 
    87   <div id="footer"> 
    88     <div id="footerLeft"> 
    89       &nbsp;&nbsp;design <a href="http://oswd.org/userinfo.phtml?user=snop" title="OSWD design work">snop</a> <span class="grey">+</span> photo <a href="http://www.sxc.hu/browse.phtml?f=profile&amp;l=plasticboy&amp;p=1" title="stock.xchng">plasticboy</a> <span class="grey">+</span> syst� de publication <a href="http://www.spip.net/fr" title="powered by spip">spip</a> <span class="grey">=</span> valid <a href="http://validator.w3.org/check?uri=referer" title="validate XHTML">XHTML Strict 1.0</a> &amp; <a href="http://jigsaw.w3.org/css-validator/validator?uri=(#URL_SITE_SPIP|entites_html)%2F(#DOSSIER_SQUELETTE|entites_html)%2Fscreen_aqua.css&amp;usermedium=all" title="validate CSS">CSS 2.1</a> 
    90     </div> 
    91     <div id="footerRight"> 
    92       &nbsp;Modifi�em>un peu</em> par <a href="http://www.neofutur.net/">ne0futur</a> et <a href="http://suivinfo.free.fr/">Tatanka</a>&nbsp;&nbsp; 
    93     </div> 
    94   </div> 
    95 </div> 
    96 </body> 
     107 </body> 
    97108</html> 
  • _squelettes_/SpipFeeder/site.html

    r1835 r31663  
    1 <BOUCLE_site(SITES) {id_syndic}> 
    2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" lang="#LANG"> 
     1<BOUCLE_site(SITES){id_syndic}> 
     2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
     3    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
     4 
     5<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="#LANG"> 
     6 
    47<!-- 
    5  _______________________________________________________ 
    6 |                                                       | 
    7 |    DESIGN + http://fullahead.org                      | 
    8 |      DATE + 2005.05.12                                | 
    9 | COPYRIGHT + free use if this notice is kept in place  | 
    10 |                                                       | 
    11 | ADAPTATION SPIP + ERIC NOEL + NE0FUTUR + TATANKA      | 
    12 |      DATE + 2005.07.19 + 2006.02.05                   | 
    13 |_______________________________________________________| 
     8 _________________________________________________________ 
     9|                                                         | 
     10|    DESIGN + http://fullahead.org                        | 
     11|      DATE + 2005.05.12                                  | 
     12| COPYRIGHT + free use if this notice is kept in place    | 
     13|                                                         | 
     14|       ADAPTATION SPIP + ERIC NOEL + neofutur + tatanka  | 
     15|                       DATE    + 2005.07.19              | 
     16|_________________________________________________________| 
    1417 
    1518--> 
     19 
    1620<head> 
     21 
     22  <meta http-equiv="content-type" content="application/xhtml+xml; charset=#CHARSET" /> 
     23  <meta name="author" content="fullahead.org" /> 
     24  <meta name="keywords" content="reflection, fullahead, pat, OSWD, more, keywords, separated, with, commas" /> 
     25  <meta name="description" content="OSWD reflection XHTML template by fullahead.org" /> 
     26<!-- Lien vers le backend pour navigateurs eclaires --> 
     27<link rel="alternate" type="application/rss+xml" title="<:syndiquer_site:>" href="spip.php?page=backend" /> 
    1728  <title>[#NOM_SITE_SPIP]</title> 
    18   <meta http-equiv="content-type" content="application/xhtml+xml; charset=#CHARSET" /> 
    19   <meta name="author" content="Fullahead + Eric Noel + ne0futur + Tatanka" /> 
    20   <meta name="keywords" content="reflection,fullahead,pat,OSWD,more,keywords,separated,with,commas" /> 
    21   <meta name="description" content="OSWD reflection XHTML template by fullahead.org" /> 
    22   <!-- Lien vers les backends pour navigateurs eclaires --> 
    23   <link rel="alternate" type="application/atom+xml" href="atom1.php3" title="#NOM_SITE_SPIP _ Fil Atom 1.0" /> 
    24   <link rel="alternate" type="application/rss+xml" href="rss2.php3" title="#NOM_SITE_SPIP _ Fil RSS 2.0" /> 
    25   <link rel="stylesheet" type="text/css" href="#DOSSIER_SQUELETTE/styles/screen_aqua.css" media="screen, tv, projection" /> 
     29 
     30  <link rel="stylesheet" type="text/css" href="#DOSSIER_SQUELETTE/screen_aqua.css" media="screen, tv, projection" /> 
     31<link rel="stylesheet" href="#DOSSIER_SQUELETTE/dialog.css" media="screen, tv, projection" /> 
     32<link rel="stylesheet" href="#DOSSIER_SQUELETTE/example-variants.css" media="screen, tv, projection" /> 
     33 
    2634</head> 
     35 
    2736<body> 
     37 
    2838<!-- Main site container --> 
    2939<div id="siteBox"> 
    30   <!-- Main site header : holds the img, title and top tabbed menu --> 
    31   <div id="header"> 
    32     <!-- top rounded corner --> 
    33     <img src="#DOSSIER_SQUELETTE/images/corner_tl.gif" alt="corner" style="float:left;" /> 
    34     <!-- Site title and subTitle --> 
    35     <span class="title"> 
    36       <span class="white">#NOM_SITE_SPIP</span> 
    37       <span class="subTitle">#URL_SITE_SPIP</span> 
    38     </span> 
    39     <!-- Menu is displayed in reverse order from how you define it (caused by float: right) --> 
    40     <a href="[mailto:(#EMAIL_WEBMASTER|antispam)]" title="contact" class="lastMenuItem">Contact<span class="desc">Courriel</span></a> 
    41     <a href="/ecrire" title="services">Priv�pan class="desc">R�ction</span></a> 
    42     <a href="/" title="Accueil">Accueil<span class="desc">Bienvenue</span></a> 
     40 
     41 <!-- Main site header : holds the img, title and top tabbed menu --> 
     42 <div id="header"> 
     43 
     44  <!-- top rounded corner --> 
     45  <img src="images/corner_tl.gif" alt="corner" style="float:left;" /> 
     46  <!-- Site title and subTitle --> 
     47  <span class="title"> 
     48   <span class="Orange">#NOM_SITE_SPIP</span> 
     49   <span class="subTitle"> 
     50    #URL_SITE_SPIP 
     51   </span> 
     52  </span> 
     53 
     54  <!-- Menu is displayed in reverse order from how you define it (caused by float: right) --> 
     55  <a href="mailto:feeder.ww7.be@waisse.org" title="contact" class="lastMenuItem">Contact<span class="desc">Courriel</span></a> 
     56  <a href="/ecrire" title="services">Priv�pan class="desc">R�ction</span></a> 
     57  <a href="/" title="Accueil">Accueil<span class="desc">Bienvenue</span></a> 
     58 </div> 
     59 <INCLURE{fond=banner}> 
     60 
     61 <!-- Content begins --> 
     62 <div id="content"> 
     63  <!-- Left side menu : side bar links/news/search/etc. --> 
     64  <div id="contentLeft"> 
     65   <p><span class="header">Rubriques des inscrits</span></p> 
     66   <BOUCLE_rubriques(RUBRIQUES) {par titre}> 
     67    <div class="menu_gauche"><b><a href="#URL_RUBRIQUE" class="menunoItem">#TITRE</a></b></div> 
     68    <?php $spip_id_rub = "#ID_RUBRIQUE"; $get_id_rub = $_GET['id_rubrique']; if ($spip_id_rub == $get_id_rub || !$get_id_rub) { ?> 
     69    <BOUCLE_syndic_sites(SITES) {id_rubrique} {par nom_site}> 
     70     <div class="menu_gauche_s"><a href="spip.php?page=site&amp;id_rubrique=#ID_RUBRIQUE&amp;id_syndic=#ID_SYNDIC" class="menunoItem" title="#DESCRIPTIF">#NOM_SITE</a></div> 
     71    </BOUCLE_syndic_sites> 
     72    <?php } ?> 
     73   </BOUCLE_rubriques> 
     74   <INCLURE{fond=menu1}> 
     75   <p> <span class="header">Syndication</span></p> 
     76   <div class="menu_gauche_d"><a href="spip.php?page=backend" class="menunoItem">Fil rss</a></div> 
     77   <!-- Creates the rounded corner on the bottom of the left menu --> 
     78   <div class="bottomCorner"><img src="images/corner_sub_br.gif" alt="bottom corner" class="vBottom"/></div> 
     79   <INCLURE{fond=menu2}> 
     80   <INCLURE{fond=your_ads}> 
    4381  </div> 
    44   <!-- Content begins --> 
    45   <div id="content"> 
    46     <!-- Left side menu : side bar links/news/search/etc. --> 
    47     <div id="contentLeft"> 
    48         <p><span class="header">Rubriques des inscrits</span></p> 
    49         <BOUCLE_rubriques(RUBRIQUES) {par titre}> 
    50           <div class="menu_gauche"><b><a href="#URL_RUBRIQUE" class="menunoItem">#TITRE</a></b></div> 
    51           <?php 
    52             $spip_id_rub = "#ID_RUBRIQUE"; 
    53             $get_id_rub = $_GET['id_rubrique']; 
    54             if ($spip_id_rub == $get_id_rub || !$get_id_rub) { 
    55           ?> 
    56           <BOUCLE_syndic_sites(SITES) {id_rubrique} {par nom_site}> 
    57             <div class="menu_gauche_s"><a href="site.php3?id_rubrique=#ID_RUBRIQUE&amp;id_syndic=#ID_SYNDIC" class="menunoItem" title="#DESCRIPTIF">#NOM_SITE</a></div> 
    58           </BOUCLE_syndic_sites> 
    59           <?php 
    60             } 
    61           ?> 
    62          </BOUCLE_rubriques> 
    63       <p> 
    64       <span class="header">Syndication</span></p> 
    65       <div class="menu_gauche"><a href="atom1.php3" class="menunoItem">Fil Atom 1.0</a></div> 
    66       <div class="menu_gauche"><a href="rss2.php3" class="menunoItem">Fil RSS 2.0</a></div> 
    67       <!-- Creates the rounded corner on the bottom of the left menu --> 
    68       <div class="bottomCorner"><img src="#DOSSIER_SQUELETTE/images/corner_sub_br.gif" alt="bottom corner" class="vBottom"/></div> 
    69     </div> 
    70     <!-- Right side main content --> 
    71     <div id="contentRight"> 
    72       <div id="contentTopRight"> 
    73         <div id="cal"> 
    74           [(#URL_SITE_SPIP|monCalendrier)] 
    75         </div> 
    76         <div id="edito"> 
    77           <span class="headerTop"><a href="#URL_SITE">#NOM_SITE</a> :: <BOUCLE_rss(SITES){id_syndic}><a href="#URL_SYNDIC">RSS</a></BOUCLE_rss></span><br /> 
    78           #DESCRIPTIF 
    79         </div> 
    80       </div> 
    81       [(#URL_SITE_SPIP|monDrawSyndic)] 
    82        <!-- Creates bottom left rounded corner --> 
    83       <img src="#DOSSIER_SQUELETTE/images/corner_sub_bl.gif" alt="bottom corner" class="vBottom" /> 
    84     </div> 
     82 
     83  <!-- Right side main content --> 
     84 
     85  <div id="contentRight"> 
     86   <table id="contentTopRight" summary="contenu principal"><tr> 
     87    <td id="edito"> 
     88        <INCLURE{fond=message}> <hr /> 
     89        <span class="header"><a href="#URL_SITE">#NOM_SITE</a> :: <BOUCLE_rss(SITES){id_syndic}><a href="#URL_SYNDIC">RSS</a></BOUCLE_rss></span> 
     90     #DESCRIPTIF 
     91    </td> 
     92    <td id="cal"> 
     93     [(#URL_SITE_SPIP|monCalendrier)] 
     94    </td> 
     95   </tr></table> 
     96   [(#URL_SITE_SPIP|monDrawSyndic{0,#ENV{id_syndic}})] 
     97   <!-- Creates bottom left rounded corner --> 
     98   <img src="images/corner_sub_bl.gif" alt="bottom corner" class="vBottom" /> 
    8599  </div> 
    86100  <!-- Footer begins --> 
    87101  <div id="footer"> 
    88     <div id="footerLeft"> 
    89       &nbsp;&nbsp;design <a href="http://oswd.org/userinfo.phtml?user=snop" title="OSWD design work">snop</a> <span class="grey">+</span> photo <a href="http://www.sxc.hu/browse.phtml?f=profile&amp;l=plasticboy&amp;p=1" title="stock.xchng">plasticboy</a> <span class="grey">+</span> syst� de publication <a href="http://www.spip.net/fr" title="powered by spip">spip</a> <span class="grey">=</span> valid <a href="http://validator.w3.org/check?uri=referer" title="validate XHTML">XHTML Strict 1.0</a> &amp; <a href="http://jigsaw.w3.org/css-validator/validator?uri=(#URL_SITE_SPIP|entites_html)%2F(#DOSSIER_SQUELETTE|entites_html)%2Fscreen_aqua.css&amp;usermedium=all" title="validate CSS">CSS 2.1</a> 
    90     </div> 
    91     <div id="footerRight"> 
    92       &nbsp;Modifi�em>un peu</em> par <a href="http://www.neofutur.net/">ne0futur</a> et <a href="http://suivinfo.free.fr/">Tatanka</a>&nbsp;&nbsp; 
    93     </div> 
     102   <INCLURE{fond=footer}> 
    94103  </div> 
     104 </div> 
    95105</div> 
    96106</body> 
  • _squelettes_/SpipFeeder/sommaire.html

    r1835 r31663  
     1#CACHE{0.5*3600} 
    12<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    23<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" lang="#LANG"> 
     
    89| COPYRIGHT + free use if this notice is kept in place  | 
    910|                                                       | 
    10 | ADAPTATION SPIP + ERIC NOEL + NE0FUTUR + TATANKA      | 
    11 |      DATE + 2005.07.19 + 2006.02.05                   | 
     11| ADAPTATION SPIP + ERIC NOEL + TATANKA                 | 
     12|      DATE + 2005.07.19 + 2005.10.23                   | 
    1213|_______________________________________________________| 
    1314 
     
    1617  <title>[#NOM_SITE_SPIP]</title> 
    1718  <meta http-equiv="content-type" content="application/xhtml+xml; charset=#CHARSET" /> 
    18   <meta name="author" content="Fullahead + Eric Noel + ne0futur + Tatanka" /> 
    19   <meta name="keywords" content="reflection,fullahead,pat,OSWD,more,keywords,separated,with,commas" /> 
    20   <meta name="description" content="OSWD reflection XHTML template by fullahead.org" /> 
    21   <!-- Lien vers les backends pour navigateurs eclaires --> 
    22   <link rel="alternate" type="application/atom+xml" href="atom1.php3" title="#NOM_SITE_SPIP _ Fil Atom 1.0" /> 
    23   <link rel="alternate" type="application/rss+xml" href="rss2.php3" title="#NOM_SITE_SPIP _ Fil RSS 2.0" /> 
    24   <link rel="stylesheet" type="text/css" href="#DOSSIER_SQUELETTE/styles/screen_aqua.css" media="screen, tv, projection" /> 
     19  <meta name="author" content="Fullahead + Eric Noel + Tatanka + neofutur" /> 
     20  <meta name="keywords" content="reflection, fullahead, pat, OSWD, more, keywords, separated, with, commas" /> 
     21  <link rel="stylesheet" type="text/css" href="#DOSSIER_SQUELETTE/screen_aqua.css" media="screen, tv, projection" /> 
     22  <link rel="stylesheet" href="#DOSSIER_SQUELETTE/dialog.css" media="screen, tv, projection" /> 
     23  <link rel="stylesheet" href="#DOSSIER_SQUELETTE/example-variants.css" media="screen, tv, projection" /> 
     24<!-- Lien vers le backend pour navigateurs eclaires --> 
     25  <meta name="description" content="Syndication de fils RSS d'informations" /> 
     26  <meta name="Robots" content="Index, Follow" /> 
     27  <!-- Lien vers le backend pour navigateurs eclaires --> 
     28  <link rel="alternate" type="application/rss+xml" title="<:syndiquer_site:>" href="spip.php?page=backend" /> 
    2529</head> 
    2630<body> 
     
    3034  <div id="header"> 
    3135    <!-- top rounded corner --> 
    32     <img src="#DOSSIER_SQUELETTE/images/corner_tl.gif" alt="corner" style="float:left;" /> 
     36    <img src="images/corner_tl.gif" alt="corner" style="float:left;" /> 
    3337    <!-- Site title and subTitle --> 
    3438    <span class="title"> 
     
    3943    <a href="[mailto:(#EMAIL_WEBMASTER|antispam)]" title="contact" class="lastMenuItem">Contact<span class="desc">Courriel</span></a> 
    4044    <a href="/ecrire" title="services">Priv�pan class="desc">R�ction</span></a> 
    41     <a href="/" title="Accueil" class="active">Accueil<span class="desc">Bienvenue</span></a> 
     45    <a href="/" title="Accueil">Accueil<span class="desc">Bienvenue</span></a> 
    4246  </div> 
     47  <INCLURE{fond=banner}> 
     48 
    4349  <!-- Content begins --> 
    4450  <div id="content"> 
    4551    <!-- Left side menu : side bar links/news/search/etc. --> 
    4652    <div id="contentLeft"> 
    47       <INCLURE(menu_haut.php3)> <?php /* Fichier �emplir si vous souhaitez personnaliser la partie haute du menu */ ?> 
    4853      <p><span class="header">Rubriques des inscrits</span></p> 
    4954      <BOUCLE_rubriques(RUBRIQUES) {par titre}> 
    50       <div class="menu_gauche"><a href="#URL_RUBRIQUE" class="menunoItem">#TITRE</a></div> 
     55        <div class="menu_gauche"><a href="#URL_RUBRIQUE" class="menunoItem">#TITRE</a></div> 
    5156      </BOUCLE_rubriques> 
     57<INCLURE{fond=menu1}> 
    5258      <p><span class="header">Carnet des inscrits</span></p> 
    5359      <BOUCLE_syndic_sites(SITES) {par nom_site} {tout}> 
    54       <div class="menu_gauche"><a href="site.php3?id_rubrique=#ID_RUBRIQUE&amp;id_syndic=#ID_SYNDIC" class="menunoItem" title="#DESCRIPTIF">#NOM_SITE</a></div> 
     60 
     61        <div class="menu_gauche"><a href="spip.php?site#ID_SYNDIC" class="menunoItem" title="#DESCRIPTIF">#NOM_SITE</a></div>  
    5562      </BOUCLE_syndic_sites> 
     63 
    5664      <p><span class="header">Syndication</span></p> 
    57       <div class="menu_gauche"><a href="atom1.php3" class="menunoItem">Fil Atom 1.0</a></div> 
    58       <div class="menu_gauche"><a href="rss2.php3" class="menunoItem">Fil RSS 2.0</a></div> 
    59       <INCLURE(menu_bas.php3)> <?php /* Fichier �emplir si vous souhaitez personnaliser la partie basse du menu */ ?> 
     65      <div class="menu_gauche_d"><a href="spip.php?page=backend" class="menunoItem">Fil rss</a></div> 
    6066      <!-- Creates the rounded corner on the bottom of the left menu --> 
    61       <div class="bottomCorner"><img src="#DOSSIER_SQUELETTE/images/corner_sub_br.gif" alt="bottom corner" class="vBottom"/></div> 
     67      <div class="bottomCorner"><img src="images/corner_sub_br.gif" alt="bottom corner" class="vBottom"/></div> 
     68      <INCLURE{fond=leftfooter}> 
    6269    </div> 
    6370    <!-- Right side main content --> 
    64     <div id="contentRight"> 
    65       <div id="contentTopRight"> 
    66         <div id="cal"> 
    67           [(#URL_SITE_SPIP|monCalendrier)] 
    68         </div> 
    69         <div id="edito"> 
    70           <BOUCLE_breves(BREVES) {par date} {inverse} {0,1}> 
    71             <span class="headerTop">#TITRE :: [(#DATE|nom_jour)] [(#DATE|affdate)]</span><br /> 
    72             [(#TEXTE|textebrut)] 
    73           </BOUCLE_breves> 
    74         </div> 
    75       </div> 
    76       [(#URL_SITE_SPIP|monDrawSyndic)] 
    77       <!-- Creates bottom left rounded corner --> 
    78       <img src="#DOSSIER_SQUELETTE/images/corner_sub_bl.gif" alt="bottom corner" class="vBottom" /> 
    79     </div> 
     71<div id="contentRight"> 
     72   <table id="contentTopRight" summary="contenu principal"><tr> 
     73    <td id="edito"> 
     74        <INCLURE{fond=message}> <hr /> 
     75        <span class="header"><a href="#URL_SITE">#NOM_SITE</a> :: <BOUCLE_rss(SITES){id_syndic}><a href="#URL_SYNDIC">RSS</a></BOUCLE_rss></span> 
     76     #DESCRIPTIF 
     77    </td> 
     78    <td id="cal"> 
     79     [(#URL_SITE_SPIP|monCalendrier)] 
     80    </td> 
     81   </tr></table> 
     82   [(#URL_SITE_SPIP|monDrawSyndic{0,0})] 
     83   <!-- Creates bottom left rounded corner --> 
     84   <img src="images/corner_sub_bl.gif" alt="bottom corner" class="vBottom" /> 
    8085  </div> 
     86   
    8187  <!-- Footer begins --> 
    8288  <div id="footer"> 
    83     <div id="footerLeft"> 
    84       &nbsp;&nbsp;design <a href="http://oswd.org/userinfo.phtml?user=snop" title="OSWD design work">snop</a> <span class="grey">+</span> photo <a href="http://www.sxc.hu/browse.phtml?f=profile&amp;l=plasticboy&amp;p=1" title="stock.xchng">plasticboy</a> <span class="grey">+</span> syst� de publication <a href="http://www.spip.net/fr" title="powered by spip">spip</a> <span class="grey">=</span> valid <a href="http://validator.w3.org/check?uri=referer" title="validate XHTML">XHTML Strict 1.0</a> &amp; <a href="http://jigsaw.w3.org/css-validator/validator?uri=(#URL_SITE_SPIP|entites_html)%2F(#DOSSIER_SQUELETTE|entites_html)%2Fscreen_aqua.css&amp;usermedium=all" title="validate CSS">CSS 2.1</a> 
    85     </div> 
    86     <div id="footerRight"> 
    87       &nbsp;Modifi�em>un peu</em> par <a href="http://www.neofutur.net/">ne0futur</a> et <a href="http://suivinfo.free.fr/">Tatanka</a>&nbsp;&nbsp; 
    88     </div> 
     89  <INCLURE{fond=footer}> 
    8990  </div> 
     91 </div> 
    9092</div> 
    9193</body>