Changeset 192 for trunk


Ignore:
Timestamp:
Mar 3, 2014, 6:18:00 PM (11 years ago)
Author:
roby
Message:

spostato lo script per l'aggiornamnto delle fasce nel file delle associazioni

Location:
trunk/admin/modules/Elezioni
Files:
2 edited

Legend:

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

    r189 r192  
    8282     echo "</script>\n";
    8383 
     84echo "<script type=\"text/javascript\" language=\"JavaScript\" >\n\n<!--\n"
     85     ."//-->\n";
     86echo "function showdate(str,posiz,tempo)\n";
     87echo "{\n";
     88echo "if (str==\"\")\n";
     89echo "  {\n";
     90echo "  document.getElementById(posiz).innerHTML=\"\";\n";
     91echo "  return;\n";
     92echo "  }\n";
     93echo "if (window.XMLHttpRequest)\n";
     94echo "  {// code for IE7+, Firefox, Chrome, Opera, Safari\n";
     95echo "  xmlhttp=new XMLHttpRequest();\n";
     96echo "  }\n";
     97echo "else\n";
     98echo "  {// code for IE6, IE5\n";
     99echo "  xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\n";
     100echo "  }\n";
     101echo "xmlhttp.onreadystatechange=function()\n";
     102echo "  {\n";
     103echo "  if (xmlhttp.readyState==4 && xmlhttp.status==200 && posiz!=null)\n";
     104echo "    {\n";
     105echo "    document.getElementById(posiz).innerHTML=xmlhttp.responseText;\n";
     106echo "    }\n";
     107echo "  }\n";
     108echo "xmlhttp.open(\"GET\",str,true);\n";
     109echo "xmlhttp.send();\n";
     110
     111echo "}\n";
     112echo "</script>\n";
    84113
    85114#########################
  • trunk/admin/modules/Elezioni/funzionidata.php

    r189 r192  
    108108}
    109109
    110 ?>
    111110
    112 <script type="text/javascript" language="JavaScript" >
    113 function showdate(str,posiz,tempo)
    114 {
    115 if (str=="")
    116   {
    117   document.getElementById(posiz).innerHTML="";
    118   return;
    119   }
    120 if (window.XMLHttpRequest)
    121   {// code for IE7+, Firefox, Chrome, Opera, Safari
    122   xmlhttp=new XMLHttpRequest();
    123   }
    124 else
    125   {// code for IE6, IE5
    126   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    127   }
    128 xmlhttp.onreadystatechange=function()
    129   {
    130   if (xmlhttp.readyState==4 && xmlhttp.status==200 && posiz!=null)
    131     {
    132     document.getElementById(posiz).innerHTML=xmlhttp.responseText;
    133     }
    134   }
    135 xmlhttp.open("GET",str,true);
    136 xmlhttp.send();
    137111
    138 }
    139 </script>
    140 <?php
     112
    141113#########################################
    142114
Note: See TracChangeset for help on using the changeset viewer.