Ignore:
Timestamp:
May 19, 2010, 8:16:43 PM (15 years ago)
Author:
roby
Message:

client - correzione per consultazione predefinita
admin - eliminati altri notice, modificata la funzione di visualizzazione della barra di elenco delle sezioni, aggiunti help per Scarica liste e Importa liste, corrette alcune incompatibilità con xhtml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/ele_sezione.php

    r2 r80  
    4545function all() {
    4646   global $admin, $bgcolor1, $bgcolor2, $prefix, $dbi, $offset, $min, $id_cons,$id_cons_gen;
    47         OpenTable();
     47#       OpenTable();
    4848        $y=0;
    49    echo "<center><font class=\"title\"><a NAME=riga><b>"._SEZIONE."</b></a></font><br><br><table border=\"0\" width=\"95%\">"
     49   echo "<center><font class=\"title\"><a NAME=riga><b>"._SEZIONE."</b></a></font><br><br><table border=\"0\" width=\"95%\"><tr>"
    5050        ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._NUM."</b></td>"
    5151        ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._INDIRIZZO."</b></td>"
     
    5656    $res = mysql_query("SELECT * FROM ".$prefix."_ele_sezioni where id_cons='$id_cons'  ", $dbi);
    5757    $max = mysql_num_rows($res);
     58        echo "<tr align=\"center\"><form name=\"sezi\" action=\"admin.php\">"
     59        ."<input type=\"hidden\" name=\"op\" value=\"sezione\">"
     60        ."<input type=\"hidden\" name=\"do\" value=\"add\">";
    5861   
    5962        $nuova= $max+1;
    6063        $res = mysql_query("SELECT id_sede FROM ".$prefix."_ele_sezioni where id_cons='$id_cons' and num_sez='$max'  ", $dbi);
    6164        list($id_sede_old) = mysql_fetch_row($res);
    62         echo "<form name=\"sezi\" action=\"admin.php\">"
    63         ."<input type=\"hidden\" name=\"op\" value=\"sezione\">"
    64         ."<input type=\"hidden\" name=\"do\" value=\"add\">";
    65 
    66         echo "<tr align=\"center\"><td><input type=\"text\" name=\"num_sez\" value=\"$nuova\" size=\"5\"></td>";
     65
     66        echo "<td><input type=\"text\" name=\"num_sez\" value=\"$nuova\" size=\"5\"></td>";
    6767
    6868        echo "<td><select name=\"id_sede\">";
     
    8484        echo "<td><input type=\"text\" name=\"femmine\" size=\"4\"></td>";
    8585
    86         echo "<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">";
     86        echo "<td><input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">";
    8787        echo "<input type=\"hidden\" name=\"min\" value=\"$min\">"
    88         ."<td></td><td><input type=\"submit\" name=\"add\" value=\""._ADD."\"></td></tr>"
     88        ."</td><td><input type=\"submit\" name=\"add\" value=\""._ADD."\"></td></tr>"
    8989        ."</form>";
    9090   
     
    109109    ."<input type=\"hidden\" name=\"num_sez\" value=\"$num_sez\">";
    110110
    111         echo "<tr bgcolor=\"$bgcolor1\"><td align=\"right\"><b>$num_sez</b></td>";
    112         echo "<td align=\"right\"><select name=\"id_sede\">";
     111        echo "<tr bgcolor=\"$bgcolor1\"><td align=\"right\" size=\"90\"><b>$num_sez</b></td>";
     112        echo "<td align=\"right\" size=\"120\"><select name=\"id_sede\">";
    113113        $res= mysql_query("SELECT id_sede,indirizzo FROM ".$prefix."_ele_sede where id_cons='$id_cons' order by indirizzo", $dbi);
    114114        while(list($id,$indir) = mysql_fetch_row($res)) {
     
    159159      }
    160160     echo "</tr></table><br>";
    161 CloseTable();
    162 include("footer.php");
     161#CloseTable();
     162#include("footer.php");
    163163}
    164164
     
    210210ele();
    211211all();
     212        echo"</td></tr></table>";
    212213include ("footer.php");
    213214
Note: See TracChangeset for help on using the changeset viewer.