source:
trunk/client/temi/facebook/tema.php@
318
Last change on this file since 318 was 17, checked in by , 15 years ago | |
---|---|
File size: 1.0 KB |
Rev | Line | |
---|---|---|
[2] | 1 | <?php |
2 | ||
3 | if (!defined('MODULE_FILE')) { | |
4 | die ("Non puoi accedere al file direttamente..."); | |
5 | } | |
6 | ||
7 | global $id_circ; | |
8 | ||
9 | if (! isset($content)) $content=""; | |
10 | if (! isset($tlist)) $tlist=""; | |
11 | ||
12 | $content .="<li><a href=\"#\"><strong> "._TEMA."</strong></a> | |
13 | <ul>"; | |
14 | ||
15 | ||
16 | ||
17 | $path = "temi/"; | |
18 | $handle=opendir($path); | |
19 | while ($file = readdir($handle)) { | |
20 | ||
[17] | 21 | if ( (preg_match('/^([_0-9a-zA-Z]+)([_0-9a-zA-Z]{3})$/',$file)) ) { |
[2] | 22 | |
23 | $tlist .= "$file "; | |
24 | } | |
25 | } | |
26 | ||
27 | closedir($handle); | |
28 | $tlist = explode(" ", $tlist); | |
29 | sort($tlist); | |
30 | for ($i=0; $i < sizeof($tlist); $i++) { | |
31 | if(($tlist[$i]!="") && ($tlist[$i]!="language")) { | |
32 | if ($tema == $tlist[$i]) { | |
33 | $sel = "selected"; | |
34 | } else { | |
35 | $sel = ""; | |
36 | } | |
37 | ||
38 | $files=ucfirst($tlist[$i]); | |
39 | $content .= "<li><a href=\"modules.php?name=Elezioni&id_comune=$id_comune&id_cons_gen=$id_cons_gen&op=$op&id_circ=$id_circ&tema=$tlist[$i]\">$files</a></li>"; | |
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | } | |
46 | } | |
47 | ||
48 | $content .="</ul></li>"; | |
49 | ||
50 | echo $content; | |
51 | ||
52 | ||
53 | ?> |
Note:
See TracBrowser
for help on using the repository browser.