Subversion Repositories Applications.papyrus

Rev

Rev 1087 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1087 Rev 1230
Line 1... Line 1...
1
<?php
1
<?php
2
// $Id: ezmlm-threads.php,v 1.4 2006-04-19 13:50:13 alexandre_tb Exp $
2
// $Id: ezmlm-threads.php,v 1.4.2.1 2007-02-16 13:40:21 alexandre_tb Exp $
3
//
3
//
4
// ezmlm-threads.php - ezmlm-php v2.0
4
// ezmlm-threads.php - ezmlm-php v2.0
5
// --------------------------------------------------------------
5
// --------------------------------------------------------------
6
// Builds, maintains & displays thread caches
6
// Builds, maintains & displays thread caches
7
// These cache files live in $ezmlm->tmpdir and are serialized
7
// These cache files live in $ezmlm->tmpdir and are serialized
8
// php objects that can be unserialized and displayed easily
8
// php objects that can be unserialized and displayed easily
9
// --------------------------------------------------------------
9
// --------------------------------------------------------------
Line 10... Line 10...
10
 
10
 
11
require_once("ezmlm.php");
11
require_once("ezmlm.php");
-
 
12
require_once("ezmlm-parser.php");
Line 12... Line 13...
12
require_once("ezmlm-parser.php");
13
require_once ('ezmlm-langue-fr.php');
13
 
14
 
Line 14... Line 15...
14
// CLASS: ezmlm_threads will build, maintain & display thread files (even if a thread is only 1 msg)
15
// CLASS: ezmlm_threads will build, maintain & display thread files (even if a thread is only 1 msg)
Line 51... Line 52...
51
		}
52
		}
52
        // Le lien par date et par thread
53
        // Le lien par date et par thread
53
        echo '[ '.$this->makelink('action=show_month&amp;actionargs[]='.$month, 'par date').' ]' ;
54
        echo '[ '.$this->makelink('action=show_month&amp;actionargs[]='.$month, 'par date').' ]' ;
54
		$months = array(1 => 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
55
		$months = array(1 => 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
55
        // remplacé par le tableau globals $mois dans ezmlm.php
56
        // remplacé par le tableau globals $mois dans ezmlm.php
56
		print '<h2>'.PROJET_FILE_DE_DISCUSSION.' pour '.$GLOBALS['mois'][((int)substr($month,4,2) / 1)] .', ' . substr($month,0,4) . '</h2>'."\n";
57
		print '<h2>'.FIL_DE_DISCUSSION.' pour '.$GLOBALS['mois'][((int)substr($month,4,2) / 1)] .', ' . substr($month,0,4) . '</h2>'."\n";
Line 57... Line 58...
57
		
58
		
58
		print '<table class="table_cadre">'."\n";
59
		print '<table class="table_cadre">'."\n";
59
		print '<tr><th>Num</th><th>De</th><th>Sujet</th><th>Date</th></tr>'."\n";
60
		print '<tr><th>Num</th><th>De</th><th>Sujet</th><th>Date</th></tr>'."\n";
60
		print '<tr><td colspan="3"><hr /></td></tr>'."\n";
61
		print '<tr><td colspan="3"><hr /></td></tr>'."\n";
Line 279... Line 280...
279
				$threadcount[$threadyear][$threadmonth] = $count;
280
				$threadcount[$threadyear][$threadmonth] = $count;
280
			}
281
			}
281
		}
282
		}
282
		closedir($dir);
283
		closedir($dir);
Line 283... Line 284...
283
 
284
 
Line 284... Line 285...
284
		arsort($threadcount);       // modifié par alex, car remplace l'année par 0 
285
#	arsort($threadcount);       // modifié par alex, car remplace l'année par 0 
285
        
286
        
286
        // La partie qui suit, simple, crée la table avec le nombre de message échangé chaque mois
287
        // La partie qui suit, simple, crée la table avec le nombre de message échangé chaque mois
287
		$res = '<table id="petit_calendrier">'."\n";
288
		$res = '<table id="petit_calendrier">'."\n";