source: trunk/admin/temi/facebook/tema.php@ 364

Last change on this file since 364 was 34, checked in by roby, 15 years ago

widget: invertiti dx e sx, visualizzazione googlemaps

File size: 1.0 KB
Line 
1<?php
2
3if (!defined('ADMIN_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]);
39 $content .= "<li><a href=\"modules.php?name=Elezioni&amp;id_comune=$id_comune&amp;id_cons_gen=$id_cons_gen&amp;op=$op&amp;id_circ=$id_circ&amp;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.