source: trunk/admin/modules/Elezioni/aggiorna.php@ 404

Last change on this file since 404 was 2, checked in by root, 15 years ago

importo il progetto

File size: 1.7 KB
RevLine 
[2]1<?php
2
3/************************************************************************/
4/* copia lista elezioni 1999 a elezioni 99 candidati, liste, gruppi */
5/* 2003 */
6/************************************************************************/
7if (!defined('ADMIN_FILE')) {
8 die ("You can't access this file directly...");
9}
10
11
12$perms=ChiSei($id_cons_gen);
13if ($perms>128) {
14
15 if (!IsSet($mainfile)) { include ("mainfile.php"); }
16 $res = sql_query("SELECT tipo_cons FROM ".$prefix."_ele_consultazione where id_cons=$id_cons " , $dbi);
17 list($tipo_cons) = sql_fetch_row($res, $dbi);
18
19 include("modules/Elezioni/language/lang-$currentlang.php");
20 include("includes/javascript.php");
21 include("modules/Elezioni/funzionidata.php");
22 include("modules/Elezioni/ele.php");
23
24 global $admin, $bgcolor1, $bgcolor2, $bgcolor6, $prefix, $dbi, $offset, $min, $id_cons;
25
26
27/*
28 $res=sql_query("select * from ".$prefix."_ele_lista where id_cons='12'", $dbi);
29 while (list($id_cons2,$id_lista,$num_lista,$id_gruppo,$id_circ,$descrizione,$simbolo)=sql_fetch_row($res,$dbi)){
30sql_query("insert into ".$prefix."_ele_lista values ('22','','$num_lista','$id_gruppo','$id_circ','$descrizione','nulla.jpg')", $dbi);
31 // echo "Lista= $descrizione [$id_lista] [$id_cons2] <br>";
32}
33*/
34
35 $res=sql_query("select * from ".$prefix."_ele_candidati where id_cons='12'", $dbi);
36 while (list($id,$id_cons2,$id_lista,$cognome,$nome,$note,$simbolo,$num_cand)=sql_fetch_row($res,$dbi)){
37sql_query("insert into ".$prefix."_ele_candidati values ('','22','','$cognome','$nome','$note','nulla.jpg','$num_cand')", $dbi);
38// echo "Candidato= $cognome $nome [$id] [$id_cons2] [$id_lista]<br>";
39}
40
41
42}
43?>
Note: See TracBrowser for help on using the repository browser.