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

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

widget: invertiti dx e sx, visualizzazione googlemaps

File size: 1.0 KB
RevLine 
[2]1<?php
2
[34]3if (!defined('ADMIN_FILE')) {
[2]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
[23]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&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.