Commit 073e2447ee41eecfc9373ffc299734c06701fcee
1 parent
96380b07
Exists in
master
and in
7 other branches
$1
Showing
3 changed files
with
5 additions
and
4 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin/php/classe_metaestat.php
@@ -2596,12 +2596,13 @@ class Metaestat{ | @@ -2596,12 +2596,13 @@ class Metaestat{ | ||
2596 | if($ihora != ""){ | 2596 | if($ihora != ""){ |
2597 | $hora = $linha[$ihora]; | 2597 | $hora = $linha[$ihora]; |
2598 | } | 2598 | } |
2599 | - $linhas[] = "INSERT INTO i3geo_metaestat.".$medidavariavel["tabela"]." (id_medida_variavel,codigoregiao,".$medidavariavel["colunavalor"].",ano,mes,dia,hora) VALUES ('$id_medida_variavel','".$linha[$icodigoregiao]."','".$linha[$ivalor]."','".$ano."','".$mes."','".$dia."','".$hora."')"; | 2599 | + $li = "INSERT INTO i3geo_metaestat.".$medidavariavel["tabela"]." (id_medida_variavel,codigoregiao,".$medidavariavel["colunavalor"].",ano,mes,dia,hora) VALUES ('$id_medida_variavel','".$linha[$icodigoregiao]."','".$linha[$ivalor]."','".$ano."','".$mes."','".$dia."','".$hora."')"; |
2600 | + $linhas[] = str_replace("''",'null',$li); | ||
2600 | } | 2601 | } |
2601 | } | 2602 | } |
2602 | } | 2603 | } |
2603 | fclose ($handle); | 2604 | fclose ($handle); |
2604 | - //var_dump($linhas); | 2605 | + //var_dump($linhas[0]);exit; |
2605 | //pega a conexao | 2606 | //pega a conexao |
2606 | $c = $this->listaConexao($medidavariavel["codigo_estat_conexao"],true); | 2607 | $c = $this->listaConexao($medidavariavel["codigo_estat_conexao"],true); |
2607 | //gera o objeto pdo | 2608 | //gera o objeto pdo |
ferramentas/metaestat/upload.html
@@ -34,7 +34,7 @@ body { | @@ -34,7 +34,7 @@ body { | ||
34 | </form> | 34 | </form> |
35 | <br> | 35 | <br> |
36 | <div id="i3GEOadminEditorColunas" style="left: -5px;"></div> | 36 | <div id="i3GEOadminEditorColunas" style="left: -5px;"></div> |
37 | - <iframe id="i3GEOuploadiframe" name="i3GEOuploadiframe" src="#" style="width: 0; height: 0; border: 0px solid #fff;"></iframe> | 37 | + <iframe id="i3GEOuploadiframe" name="i3GEOuploadiframe" src="#" style="width: 0px; height: 0px; border: 1px solid #fff;"></iframe> |
38 | <div id=logajax style="display: block"></div> | 38 | <div id=logajax style="display: block"></div> |
39 | <script> | 39 | <script> |
40 | //recupera a variavel escolhida se existir | 40 | //recupera a variavel escolhida se existir |
@@ -61,4 +61,4 @@ body { | @@ -61,4 +61,4 @@ body { | ||
61 | i3GEO.login.verificaOperacao("admin/html/menus",i3GEO.configura.locaplic, temp, "sessao"); | 61 | i3GEO.login.verificaOperacao("admin/html/menus",i3GEO.configura.locaplic, temp, "sessao"); |
62 | */ | 62 | */ |
63 | </script> | 63 | </script> |
64 | -</body> | ||
65 | \ No newline at end of file | 64 | \ No newline at end of file |
65 | +</body> |