source: trunk/client/temi/spectral/index.php@ 242

Last change on this file since 242 was 241, checked in by luc, 9 years ago

Aggiunta del widget Privacy e CookieLaw per l'informativa sui cookie - Aggiunto Tema Realistic - Aggiunto Tema Spectral

  • Property svn:executable set to *
File size: 3.7 KB
Line 
1<?php
2# tema default
3# for eleonline
4include_once("modules/Elezioni/funzioni.php");
5include_once("temi/inc/button.php");
6
7
8########## no blocco x grafici e risultati
9if (!isset($param['op'])) $param['op']='';
10if($blocco!=1 || $param['op']=="graf_gruppo" || $param['op']=="gruppo_circo" || $param['op']=="gruppo_sezione"
11|| $param['op']=="lista_circo" || $param['op']=="lista_sezione" || $param['op']=="candidato_circo" || $param['op']=="candidato_sezione"
12)$blocco=''; else $blocco=1;
13
14function testata(){
15global $tema,$file,$sitename,$blocco,$dbi,$prefix,$id_comune,$descr_cons,$op;
16
17$res = mysql_query("SELECT descrizione,simbolo FROM ".$prefix."_ele_comuni where id_comune='$id_comune' ", $dbi);
18 list($descr_com,$simbolo) = mysql_fetch_row($res);
19 $descr_com =stripslashes($descr_com);
20
21
22?>
23
24<!-- Page Wrapper -->
25 <div id="page-wrapper">
26
27 <!-- Header -->
28 <header id="header">
29 <h3><a href="index.php"><?php echo "$descr_com";?></a></h3>
30 <nav class="nav">
31 <ul>
32 <li class="special">
33 <a href="#menu" class="menuToggle"><span>Menu</span></a>
34 <div id="menu">
35<?php
36if ($file=="index") menu();
37
38?>
39
40
41
42 </div>
43 </li>
44 </ul>
45
46
47 </nav>
48
49
50 </header>
51<?php
52/*
53 <!-- Banner -->
54 <section id="banner">
55 <div class="inner">
56 <h2>Elezioni on Line</h2>
57 <p><?php echo "Comune di $descr_com";?><br />
58 site template freebie<br />
59 crafted by <a href="http://html5up.net">HTML5 UP</a>.</p>
60 <ul class="actions">
61 <li><a href="#" class="button special">Activate</a></li>
62 </ul>
63 </div>
64 <a href="#one" class="more scrolly">Learn More</a>
65 </section>
66*/
67?>
68
69
70
71 <!-- Main -->
72
73 <article id="main">
74 <?php
75 if($op=="gruppo"){
76
77 echo '<header>
78 <h2>'.$descr_cons.'</h2>
79 <p>Elezioni on line in tempo reale</p>
80 <p style="font-size:0.5em;"><i><a href="http://www.eleonline.it">Software Eleonine by Luciano Apolito & Roberto Gigli</a></i></span>
81 </header>';
82 }
83 ?>
84 <!-- One -->
85 <section id="one" class="wrapper style5">
86 <div class="inner">
87
88
89<?php
90
91
92
93
94
95
96
97
98
99 $check=check_block("dx"); // check exist box
100
101
102
103}
104
105function piede(){
106global $blocco,$tema;
107
108
109 echo' <section id="three" class="wrapper style3 special">
110 <div class="inner">
111 <ul class="features">';
112
113 $check=check_block("dx");
114 if ($blocco=='1' && $check!=0)block_qua("dx");
115 $check=check_block("sx");
116 if ($blocco=='1' && $check!=0)block_qua("sx");
117
118 echo '</div></div></section>';
119 echo "</div></section></article>";
120
121
122
123
124
125
126
127
128
129
130if($tema=="spectral"){
131 echo '<!-- Scripts -->
132 <script src="temi/'.$tema.'/assets/js/jquery.min.js"></script>
133 <script src="temi/'.$tema.'/assets/js/jquery.scrollex.min.js"></script>
134 <script src="temi/'.$tema.'/assets/js/jquery.scrolly.min.js"></script>
135 <script src="temi/'.$tema.'/assets/js/skel.min.js"></script>
136 <script src="temi/'.$tema.'/assets/js/util.js"></script>
137 <!--[if lte IE 8]><script src="temi/'.$tema.'/assets/js/ie/respond.min.js"></script><![endif]-->
138 <script src="temi/'.$tema.'/assets/js/main.js"></script>
139 ';
140}
141
142}
143
144function block_qua($pos){
145
146global $prefix,$dbi;
147
148 if($pos=="dx") $p=0; elseif($pos=="sx")$p=1;else $p='';
149
150 $resblk = mysql_query("SELECT * FROM ".$prefix."_ele_widget where pos_or='$p' and attivo='1' order by pos_ver asc", $dbi);
151 if($resblk){
152
153 while ($row = mysql_fetch_array($resblk)) {
154 $id_w=$row['id'];
155 $nome=$row['nome_file'];
156 if($id_w>=1){
157 echo '<li class="icon fa-laptop">';
158 include ("modules/Elezioni/blocchi/$nome");
159 echo '</li>';
160 }
161 }
162
163 }
164}
165
166
167
168
169
170?>
Note: See TracBrowser for help on using the repository browser.