Example #1
0
function cuboVariaveis()
{
    global $CubosPorMedida, $VirtualCubeDimensionDaMedida;
    //var_dump($VirtualCubeDimensionDaMedida);exit;
    $xml = "";
    $chaves = array_keys($CubosPorMedida);
    foreach ($chaves as $c) {
        $xml .= '<VirtualCube name="' . converte($c) . '" >';
        $xml .= '<VirtualCubeDimension name="Tempo" />';
        $xml .= implode(" ", $VirtualCubeDimensionDaMedida[$c]);
        $xml .= implode(" ", $CubosPorMedida[$c]);
        $xml .= '</VirtualCube>';
    }
    return $xml;
}
    $cod = $data['tab01_id'];
    $sql = "select * from tab02_voto where tab01_id = '{$cod}' and tab00_id = '{$usuario_id}'";
    $data2 = query($sql, 1);
    // retorna matriz
    $ver_votar = $data2['tab00_id'] != $cod ? "<img id='votar' title='{$cod}' src=images/votar.jpg>" : "<img id='ver' title='{$cod}' src=images/ver.jpg>";
    ?>
              <tr title="<?php 
    echo $cod;
    ?>
">
                <td id="td_enquete_id" align="center" valign="top"><?php 
    echo $cod;
    ?>
</td>
                <td align="left"><?php 
    echo converte($data['tab01_pergunta']);
    ?>
</td>
                <td id="td_enquete_acao" align="cente">&nbsp;<?php 
    echo $ver_votar;
    ?>
&nbsp;</td>
              </tr>
<?php 
}
echo "</table>";
?>
<script language=javascript>
//  $(document).ready(function() {
	$("img").each(function(i) {
	  $(this).click(function(){
Example #3
0
     echo "<td>&aacute;rea em ha</td>";
 }
 echo "<tr>";
 foreach ($registros[$chave] as $linhas) {
     if (count($linhas) > 0) {
         //echo "<pre>";var_dump($linhas);
         echo "<tr style=background-color:{$cor} >";
         if ($statrel == "true") {
             echo "<td></td>";
         }
         $conta = 0;
         foreach ($linhas as $v) {
             if (is_numeric(trim($v))) {
                 echo "<td style='text-align:right'>" . number_format($v, 2, ",", ".") . "</td>";
             } else {
                 echo "<td style='text-align:left'>" . converte($v) . "</td>";
             }
             if ($statrel == "true") {
                 $v = trim($v);
                 if (!is_numeric($v)) {
                     $v = 0;
                 }
                 if ($v == $excluirvalor) {
                     $v = 0;
                 }
                 $soma[$conta] = $soma[$conta] + $v;
             }
             $conta++;
         }
         echo "<tr>";
         if ($cor == "rgb(240,240,240)") {
Example #4
0
function gravaComentario()
{
    //necess&aacute;rio para os includes do admin.php
    include_once dirname(__FILE__) . "/../../admin/php/conexao.php";
    if (!empty($esquemaadmin)) {
        $esquemaadmin = str_replace(".", "", $esquemaadmin) . ".";
    }
    $data = gmdate("d-m-Y\\TH:i:s\\Z");
    $id_tema = $dbh->query("select * from " . $esquemaadmin . "i3geoadmin_temas where codigo_tema = '" . $_SESSION["tema"] . "' ", PDO::FETCH_ASSOC);
    $id_tema = $id_tema->fetchAll();
    $id_tema = $id_tema[0]["id_tema"];
    $q = "INSERT INTO " . $esquemaadmin . "i3geoadmin_comentarios (comentario,data,openidnome,openidimagem,openidservico,openidusuario,openidurl,id_tema) VALUES ('" . converte($_POST["novocomentario"]) . "','" . $data . "','" . $_SESSION["openidnome"] . "','" . $_SESSION["openidimagem"] . "','" . $_SESSION["openidservico"] . "','" . $_SESSION["openidusuario"] . "','" . $_SESSION["openidurl"] . "','" . $id_tema . "')";
    $dbhw->query($q);
    $dbhw = null;
    $dbh = null;
}
Example #5
0
              <tr>
                <td valign="top">&nbsp;</td>
                <td align="left"></td>
                <td><input name="btn_login" type="button" id="btn_login" value="Entrar" /></td>
              </tr>
              <tr>
                <td colspan="3" valign="top">&nbsp;</td>
                </tr>
          </table>
		  	<div id="div_enquetes" style="border: 0px solid black; height:150px; overflow: auto;">
				<h2 align="center">Identifique-se.</h2>
		  	</div>          </td>
        </tr>
        <?php 
if ($votou != '') {
    echo "<tr><td><hr size='0' /></td></tr><tr><th>" . converte($votou) . "</th></tr>";
}
?>
        <tr>
          <td><hr size="0" /></td>
        </tr>
      </table>

	  <div id="div_enquete">ops!
	  </div>
      </td>
    </tr>
  </table>
</body>
</html>
<script language="javascript">votou = '<?php