<?php if (isset($_GET["Action"]) && $_GET["Action"] == "ViewPHP") { $Script = $_GET["Script"]; highlight_file($Script); exit; } if (isset($_GET["Action"]) && $_GET["Action"] == "ViewHTML") { $Script = $_GET["Script"]; writeHTML($Script); exit; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <script src='imagemap.js' type="text/javascript"></script> <title>pChart 2.x - Image map</title> <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/> <style> body { background-color: #F0F0F0; font-family: tahoma; font-size: 14px;} td { font-family: tahoma; font-size: 11px; } div.txt { font-family: tahoma; font-size: 11px; width: 660px; padding: 15px; } div.folder { cursor: hand; cursor: pointer; } a.smallLink:link { text-decoration: none; color: #6A6A6A; } a.smallLink:visited { text-decoration: none; color: #6A6A6A; } a.smallLink:hover { text-decoration: underline; color: #6A6A6A; } a.smallLinkGrey:link { text-decoration: none; color: #6A6A6A; } a.smallLinkGrey:visited { text-decoration: none; color: #6A6A6A; } a.smallLinkGrey:hover { text-decoration: underline; color: #6A6A6A; } a.smallLinkBlack:link { text-decoration: none; color: #000000; }
echo '<br /><img border="0" src="/images/provart_blanco.png">'; echo '<br /><span class="Pie">Le agradece su tiempo y colaboración.</span>'; echo '</p>'; exit; } } function writeHTML() { echo "<link rel='stylesheet' type='text/css' href='/modules/encuestas/generico/css/style_encuesta.css'>"; echo "<script>"; echo "showTitle(true, 'ENCUESTA');"; echo "</script>"; } writeHTML(); validateEncuestaActiva(); if (isVistaPrevia()) $sql = "SELECT * FROM rrhh.ren_encuestas WHERE en_id = ".$_REQUEST["encuestaid"]; else $sql = "SELECT * FROM rrhh.ren_encuestas WHERE en_activa = 'T' AND en_fechabaja IS NULL"; $stmt = DBExecSql($conn, $sql);
$results2 = array(); if ($handle = opendir('./data/')) { while (false !== ($file = readdir($handle))) { $myFile = $file; if ($myFile != "." && $myFile != "..") { $fh = fopen("./data/" . $myFile, 'r'); $theData = fgets($fh); fclose($fh); if ($theData != "") { $array = json_decode($theData); foreach ($array as $key => $value) { $string1 = date('Y', $value->join); $string2 = date('Ym', $value->join); if (!isset($results[$string1])) { $results[$string1] = 0; } if (!isset($results2[$string2])) { $results2[$string2] = 0; } $results[$string1] = $results[$string1] + 1; $results2[$string2] = $results2[$string2] + 1; } } writeHTML($myFile, "./charts/" . $myFile, $array); writeBarData($results2, "./charts/" . $myFile); writeData($results, "./charts/" . $myFile); $results = array(); } } closedir($handle); }