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