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

    r2 r80  
    5959   global $bgcolor1, $bgcolor2, $prefix, $dbi, $offset, $min,$id_cons,$id_cons_gen,$do,$id_sede,$id_circ;
    6060
    61    echo "<center><font class=\"title\"><br><b>"._SEDE."</b></font><br><br><table border=\"0\" width=\"100%\" >"
     61   echo "<center><font class=\"title\"><br><b>"._SEDE."</b></font><br><br>";
     62        echo "<form name=\"sede2\" enctype=\"multipart/form-data\"  action=\"admin.php\" method=\"post\">"
     63        ."<input type=\"hidden\" name=\"op\" value=\"sede\">"
     64        ."<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">";
     65   echo "<table border=\"0\" width=\"100%\" ><tr>"
    6266        ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._CIRCO."</b></td>"
    6367        ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._INDIRIZZO."</b></td>"
     
    6872        ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._FUNZIONI."</b></td></tr>";
    6973       
    70         echo "<form name=\"sede2\" enctype=\"multipart/form-data\"  action=\"admin.php\" method=\"post\">"
    71         ."<input type=\"hidden\" name=\"op\" value=\"sede\">"
    72         ."<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">";
    7374        if ($id_sede){
    7475                $res = mysql_query("SELECT * FROM ".$prefix."_ele_sede where id_sede='$id_sede'", $dbi);
     
    7879                $pro['responsabile']='';$pro['id_circ']='';
    7980        }
    80                 echo "<tr><td align=\"right\"><select name=\"id_circ\">";
     81                echo "<tr>";
     82                echo "<td align=\"right\"><select name=\"id_circ\">";
    8183                $res= mysql_query("SELECT id_circ,descrizione FROM ".$prefix."_ele_circoscrizione where id_cons='$id_cons' order by num_circ", $dbi);
    8284                while(list($id,$descr) = mysql_fetch_row($res)) {
     
    9092                echo "</select></td>";
    9193               
    92                 echo "<td><input type=\"text\" name=\"indir\" maxlength=\"40\" value=\"".$pro['indirizzo']."\"></td>"
     94                echo "<td><input type=\"text\" name=\"indir\" value=\"".$pro['indirizzo']."\"></td>"
    9395                ."<td><input type=\"file\" name=\"mappa\" size=\"12\" value=\"".$pro['filemappa']."\"></td>"
    9496      ."<td><input type=\"text\" name=\"tel1\" size=\"10\" value=\"".$pro['telefono1']."\"></td>"
    9597      ."<td><input type=\"text\" name=\"fax\" maxlength=\"12\" size=\"10\" value=\"".$pro['fax']."\"></td>"
    9698
    97       ."<td><input type=\"text\" name=\"resp\" maxlength=\"60\" value=\"".$pro['responsabile']."\"></td>";
     99      ."<td><input type=\"text\" name=\"resp\" size=\"10\" value=\"".$pro['responsabile']."\"></td>";
    98100        if ($do == "modify"){
    99                 echo "<input type=\"hidden\" name=\"id_sede\" value=\"$id_sede\">"
     101                echo "<td align=\"center\"><input type=\"hidden\" name=\"id_sede\" value=\"$id_sede\">"
    100102                ."<input type=\"hidden\" name=\"do\" value=\"update\">";
    101                 echo "<td align=\"center\"><input type=\"submit\" name=\"update\" value=\""._MODIFY."\"></td></tr>";
     103                echo "<input type=\"submit\" name=\"update\" value=\""._MODIFY."\"></td></tr>";
    102104        } else {
    103                 echo "<input type=\"hidden\" name=\"do\" value=\"add\">";
    104 
    105                
    106                
    107                
    108                 echo "<td align=\"center\"><input type=\"submit\" name=\"add\" value=\""._ADD."\"></td></tr>";
     105                echo "<td align=\"center\"><input type=\"hidden\" name=\"do\" value=\"add\"><input type=\"submit\" name=\"add\" value=\""._ADD."\"></td></tr>";
    109106        }       
    110         echo "</form><tr></tr>";       
     107#       echo "</table></form><table>"; 
    111108       
    112109       
     
    131128        ."</td><td align=\"center\" nowrap>[<a
    132129                href=\"admin.php?op=sede&amp;do=modify&amp;id_sede=$id_sede&amp;id_circ=$id_circ&amp;id_cons_gen=$id_cons_gen\"><img src=\"modules/Elezioni/images/edit.gif\"
    133                 border=\"0\" align=\"center\"> "._EDIT."</a>]";
     130                border=\"0\" align=\"middle\" alt=\"edit\"> "._EDIT."</a>]";
    134131                if (!$numtemp)
    135                         echo "[<a href=\"admin.php?op=sede&amp;do=delete&amp;id_sede=$id_sede&amp;id_circ=$id_circ&amp;id_cons_gen=$id_cons_gen&amp;indir=$indir\">"._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\"center\"></a>]";
     132                        echo "[<a href=\"admin.php?op=sede&amp;do=delete&amp;id_sede=$id_sede&amp;id_circ=$id_circ&amp;id_cons_gen=$id_cons_gen&amp;indir=$indir\">"._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\"middle\" alt=\"delete\"></a>]";
    136133                else
    137                         echo "["._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\"center\">]";
     134                        echo "["._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\"middle\" alt=\"delete\">]";
    138135            echo "</td></tr>";
    139136    }
    140     echo "</table></center>";
     137    echo "</table></form></center>";
    141138
    142139
    143140      #'Pagina precedente' e 'Pagina Successiva'
     141        if ($max>$offset){
    144142      echo"<table align=\"center\" width=\"100%\" ><tr>";
    145143      $prev=$min-$offset;
     
    152150      if ($next>=($offset-1)) {
    153151          if($next>=$max) $next = $max;
    154           else {
     152                  else {
    155153
    156154              echo "<td colspan=\"5\" align=\"center\" bgcolor=\"$bgcolor1\"><a href=\"admin.php?op=sede&amp;id_sede=$id_sede&amp;id_circ=$id_circ&amp;id_cons_gen=$id_cons_gen&amp;min=$next\">";
     
    159157      }
    160158     echo "</tr></table><br>";
    161 
     159        }
    162160}
    163161
Note: See TracChangeset for help on using the changeset viewer.