source: trunk/client/temi/realistic/tema.php@ 421

Last change on this file since 421 was 403, checked in by roby, 9 months ago

Segue correzioni alla rev 400

File size: 1.0 KB
RevLine 
[241]1<?php
2
3if (!defined('MODULE_FILE')) {
4 die ("Non puoi accedere al file direttamente...");
5}
6
7global $id_circ;
8
9 if (! isset($content)) $content="";
10 if (! isset($tlist)) $tlist="";
11
12 $content .="<li><a href=\"#\"><strong>&nbsp; &nbsp;&nbsp;"._TEMA."</strong></a>
13 <ul>";
14
15
16
17 $path = "temi/";
18 $handle=opendir($path);
19 while ($file = readdir($handle)) {
20
21 if ( (preg_match('/^([_0-9a-zA-Z]+)([_0-9a-zA-Z]{3})$/',$file)) ) {
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]);
[403]39 $content .= "<li><a href=\"modules.php?name=Elezioni&amp;id_comune=$id_comune&amp;id_cons_gen=$id_cons_gen&amp;id_circ=$id_circ&amp;op=gruppo&amp;tema=$tlist[$i]\">$files</a></li>";
[241]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.