source: trunk/admin/header.php

Last change on this file was 369, checked in by roby, 2 years ago

admin:
la consultazione iniziale per utente abilitato a gestire la singola sede non viene fissata correttamente. Risolto
la visualizzazione delle rilevazioni oraire mostra tutti gli orari ma deve mostrare solo il prossimo da inserire. Risolto

File size: 2.8 KB
Line 
1<?php
2/************************************************************************/
3/* Eleonline - Raccolta e diffusione dei dati elettorali */
4/* by Roberto Gigli & Luciano Apolito */
5/* http://www.eleonline.it */
6/* info@eleonline.it luciano@aniene.net rgigli@libero.it */
7/************************************************************************/
8#aggiornare il db: ALTER TABLE `soraldo_ele_operatori` ADD `id_circ` INT(11) NOT NULL DEFAULT '0' AFTER `aid`, ADD `id_sez` INT(11) NOT NULL DEFAULT '0' AFTER `id_circ`;
9
10if (!defined('ADMIN_FILE')) {
11 die ("You can't access this file directly...");
12}
13if(isset($_SESSION['aid'])){
14include_once("modules/Elezioni/query.sql");
15global $language;
16$row=setconsultazione();
17if(isset($row[0])) {
18 $tipo_cons=$row[0]; $descr_cons=$row[1]; $id_cons_gen=$row[2];
19} else {
20 $tipo_cons=0; $descr_cons=''; $id_cons_gen=0;
21}
22$row=tipocons();
23if(isset($row[0])) {
24 $genere=$row[0];$votog=$row[1];$votol=$row[2];$votoc=$row[3];$conscirc=$row[4];
25} else {
26 $genere=0;$votog=0;$votol=0;$votoc=0;$conscirc=0;
27}
28}
29 if(!isset($language) or strlen($language)!=2)
30 $language='it';
31if (isset($param['language']) and strlen($param['language']==2)) {
32 $_SESSION['lang']=substr($param['language'],0,2);
33 $lang=$_SESSION['lang'];
34}
35elseif (strlen($_SESSION['lang'])==2) $lang=$_SESSION['lang'];
36else {$lang=$language; $_SESSION['lang']=$lang;}
37include_once("modules/Elezioni/language/lang-$lang.php");
38
39###############
40if(!isset($nocell))$nocell='';
41### tema mobile Futura 2
42include("inc/mobile.php"); // riconoscimento mobile
43$is_mobile=is_mobile();
44
45if($is_mobile && $nocell!=1){
46 global $id_sez;
47 $tema="Futura2";
48} elseif (isset($_SESSION['tema']))
49 $tema=$_SESSION['tema'];
50$_SESSION['tema']=$tema;
51#else
52# $tema='Futura2';
53#include("temi/$tema/index.php");
54
55$bgcolor1="#b0b0b0";
56function head() {
57 global $csv,$tema,$id_cons_gen;
58 # echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
59 echo "<!DOCTYPE HTML>\n";
60 echo "<html>\n";
61 echo "<head>\n";
62# echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso8859-1\">\n";
63 echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n";
64 echo "<meta http-equiv=\"Pragma\" content=\"no-cache\">\n";
65 echo "<title>Eleonline - Elezioni on line</title>\n";
66 echo "<script type=\"text/javascript\" src=\"inc/ckeditor/ckeditor.js\"></script>"; //ckeditor 2015
67 echo "<link rel=\"StyleSheet\" href=\"temi/$tema/style.css\" type=\"text/css\">\n\n\n";
68 if (file_exists("temi/$tema/themeutils.php")) {
69 include("temi/$tema/themeutils.php"); #incluso x tema mobile
70 }
71 echo "\n\n\n</head>\n<body style=\"background-image: url(temi/$tema/images/sfondo.jpg);\">";
72 # if (!$csv)testata($tema);
73
74
75}
76
77
78head();
79
80
81?>
Note: See TracBrowser for help on using the repository browser.