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_circo.php

    r2 r80  
    4646   global $admin, $bgcolor1, $bgcolor2, $prefix, $dbi, $offset, $min, $id_cons,$id_cons_gen,$do,$id_circ;
    4747        echo "<center><font class=\"title\"><br><b>"._CIRCO."</b></font><br><br>";
     48        echo "<form name=\"circo\" action=\"admin.php\">"
     49        ."<input type=\"hidden\" name=\"op\" value=\"circo\">"
     50        ."<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">";
    4851        echo "<table border=\"0\" width=\"100%\"><tr>";
    4952        echo "<td bgcolor=\"$bgcolor1\" align=\"center\" width=\"5%\"><b>"._NUM."</b></td>"
     
    5154        ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._FUNZIONI."</b></td></tr>";
    5255
    53         echo "<form name=\"circo\" action=\"admin.php\">"
    54         ."<input type=\"hidden\" name=\"op\" value=\"circo\">"
    55         ."<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">";
    5656        if ($do == "modify"){
    5757                $res = mysql_query("SELECT * FROM ".$prefix."_ele_circoscrizione where id_circ='$id_circ'", $dbi);
     
    6666                $numc=mysql_num_rows($result);
    6767                $numc++;
    68                 echo "<input type=\"hidden\" name=\"do\" value=\"add\">";
    69                 echo "<tr><td align=\"right\"><input type=\"text\" name=\"num_circ\"  maxlength=\"3\" size=\"3\" value=\"$numc\"></td>"
     68                echo "<tr><td align=\"right\"><input type=\"hidden\" name=\"do\" value=\"add\"><input type=\"text\" name=\"num_circ\"  maxlength=\"3\" size=\"3\" value=\"$numc\"></td>"
    7069                ."<td><input type=\"text\" name=\"descr_circ\" maxlength=\"100\" size=\"40\"></td>";
    7170                echo "<td align=\"center\"><input type=\"submit\" name=\"add\" value=\""._ADD."\"></td></tr>";
    7271        }       
    73         echo "</form><tr></tr>";
    7472        $res = mysql_query("SELECT * FROM ".$prefix."_ele_circoscrizione where id_cons='$id_cons'  ", $dbi);
    7573        $max = mysql_num_rows($res);
     
    8381                ."</td><td align=\"center\" nowrap>[<a
    8482                        href=\"admin.php?op=circo&amp;do=modify&amp;id_circ=$id_circ&amp;id_cons=$id_cons&amp;id_cons_gen=$id_cons_gen\"><img src=\"modules/Elezioni/images/edit.gif\"
    85                         border=\"0\" align=\"center\"> "._EDIT."</a>]";
     83                        border=\"0\" align=\"middle\" alt=\"edit\"> "._EDIT."</a>]";
    8684                        if (!$numtemp)
    87                                 echo "[<a href=\"admin.php?op=circo&amp;do=delete&amp;id_circ=$id_circ&amp;descr_circ=$descr_circ&amp;id_cons=$id_cons&amp;id_cons_gen=$id_cons_gen\">"._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\"center\"></a>]";
     85                                echo "[<a href=\"admin.php?op=circo&amp;do=delete&amp;id_circ=$id_circ&amp;descr_circ=$descr_circ&amp;id_cons=$id_cons&amp;id_cons_gen=$id_cons_gen\">"._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\"center\" alt=\"delete\"></a>]";
    8886                        else
    89                                 echo "["._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\"center\">]";
     87                                echo "["._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\"middle\" alt=\"delete\">]";
    9088                echo "</td></tr>";
    9189        }
    92         echo "</table></center>";
     90        echo "</table></form></center>";
    9391        #'Pagina precedente' e 'Pagina Successiva'
     92        if ($max>$offset){
    9493        echo"<table align=\"center\" width=\"100%\" ><tr>";
    9594        $prev=$min-$offset;
     
    108107        }
    109108        echo "</tr></table><br>";
     109        }
    110110       
    111111}
Note: See TracChangeset for help on using the changeset viewer.