Commit 4f3ad461 authored by Irving Sánchez's avatar Irving Sánchez

Update database and url's

parent f3fb3292
...@@ -4,10 +4,10 @@ class Database2 ...@@ -4,10 +4,10 @@ class Database2
public function connectDBBDD() public function connectDBBDD()
{ {
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
//$password = "PkJXPQFykKLmS3cWhqmZKNYE"; //$password = "Resilencia19@";
$dbname = "RIR"; $dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
......
...@@ -7,7 +7,7 @@ echo "<br>CREATE<br>"; ...@@ -7,7 +7,7 @@ echo "<br>CREATE<br>";
// mysqldump --user=root --password= demowebface_db > db-$(date +%s).sql // mysqldump --user=root --password= demowebface_db > db-$(date +%s).sql
// Creamos una conexión con el usuario root... // Creamos una conexión con el usuario root...
$MySQLConnection = mysql_connect("localhost","root","PkJXPQFykKLmS3cWhqmZKNYE"); $MySQLConnection = mysql_connect("localhost","sec_user","Resilencia19@");
// Verificamos la conexión... // Verificamos la conexión...
if (!$MySQLConnection) die("ERROR 101! ".mysql_error()); if (!$MySQLConnection) die("ERROR 101! ".mysql_error());
......
...@@ -76,9 +76,9 @@ $query_builder = TRUE; ...@@ -76,9 +76,9 @@ $query_builder = TRUE;
$db['default'] = array( $db['default'] = array(
'dsn' => '', 'dsn' => '',
'hostname' => 'localhost', 'hostname' => 'localhost',
'username' => 'root', 'username' => 'sec_user',
'password' => 'PkJXPQFykKLmS3cWhqmZKNYE', 'password' => 'Resilencia19@',
'database' => 'RIR', 'database' => 'ppd',
'dbdriver' => 'mysqli', 'dbdriver' => 'mysqli',
'dbprefix' => '', 'dbprefix' => '',
'pconnect' => FALSE, 'pconnect' => FALSE,
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
// foreach($RetValue as $RetLine){echo $RetLine."<br>\n";} // foreach($RetValue as $RetLine){echo $RetLine."<br>\n";}
// Mostramos el link de la gráfica... // Mostramos el link de la gráfica...
echo "http://www.datanlab.com/RIR/R/Graphs/".$ID.".html"; echo "http://www.datanlab.com/resiliencia/R/Graphs/".$ID.".html";
}else{ // No se recibieron los parámetros adecuados... }else{ // No se recibieron los parámetros adecuados...
header("HTTP/1.0 400 Bad Request"); header("HTTP/1.0 400 Bad Request");
......
...@@ -4,9 +4,9 @@ error_reporting(0); ...@@ -4,9 +4,9 @@ error_reporting(0);
//error_reporting(E_ALL); //error_reporting(E_ALL);
function connectDBBDD(){ function connectDBBDD(){
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
$dbname = "RIR"; $dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
......
This diff is collapsed.
...@@ -34,9 +34,9 @@ class baseDeDatosIndex{ ...@@ -34,9 +34,9 @@ class baseDeDatosIndex{
} }
public function connectDBBDD(){ public function connectDBBDD(){
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
$dbname = "RIR"; $dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
......
...@@ -8,13 +8,13 @@ class Funciones extends CApplicationComponent{ ...@@ -8,13 +8,13 @@ class Funciones extends CApplicationComponent{
//CONECCION A LA BD //CONECCION A LA BD
public function connectDB(){ public function connectDB(){
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
$dbname = "RIR"; $dbname = "ppd";
/*$servername = "localhost"; /*$servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
$dbname = "RIR";*/ $dbname = "ppd";*/
// Create connection // Create connection
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
...@@ -175,9 +175,9 @@ class Funciones extends CApplicationComponent{ ...@@ -175,9 +175,9 @@ class Funciones extends CApplicationComponent{
} }
public function connectDBBDD(){ public function connectDBBDD(){
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
$dbname = "RIR"; $dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
......
...@@ -50,10 +50,10 @@ $config = array( ...@@ -50,10 +50,10 @@ $config = array(
'loginUrl' => array('panel/acceso/login'), 'loginUrl' => array('panel/acceso/login'),
), ),
'db'=>array( 'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=RIR', 'connectionString' => 'mysql:host=localhost;dbname=ppd',
'emulatePrepare' => true, 'emulatePrepare' => true,
'username' => 'root', 'username' => 'sec_user',
'password' => 'PkJXPQFykKLmS3cWhqmZKNYE', 'password' => 'Resilencia19@',
'charset' => 'utf8', 'charset' => 'utf8',
'tablePrefix' => 'tbl_', 'tablePrefix' => 'tbl_',
), ),
......
...@@ -913,7 +913,7 @@ public function actionCrearCSV(){ ...@@ -913,7 +913,7 @@ public function actionCrearCSV(){
} }
$file = 'logs_'.date('Ymd_His'); $file = 'logs_'.date('Ymd_His');
$filename = $_SERVER['DOCUMENT_ROOT'].'/RIR/R/Files/'.$file.'.csv'; $filename = $_SERVER['DOCUMENT_ROOT'].'/resiliencia/R/Files/'.$file.'.csv';
//$filename = dirname(__FILE__).'/R/files/id.csv'; //$filename = dirname(__FILE__).'/R/files/id.csv';
$handler = fopen($filename, "w"); $handler = fopen($filename, "w");
......
...@@ -946,7 +946,7 @@ class ObservatorioController extends Controller ...@@ -946,7 +946,7 @@ class ObservatorioController extends Controller
} }
$file = date('Ymd_His'); $file = date('Ymd_His');
$filename = $_SERVER['DOCUMENT_ROOT'].'/RIR/R/Files/'.$file.'.csv'; $filename = $_SERVER['DOCUMENT_ROOT'].'/resiliencia/R/Files/'.$file.'.csv';
//$filename = dirname(__FILE__).'/R/files/id.csv'; //$filename = dirname(__FILE__).'/R/files/id.csv';
$handler = fopen($filename, "w"); $handler = fopen($filename, "w");
...@@ -963,7 +963,7 @@ class ObservatorioController extends Controller ...@@ -963,7 +963,7 @@ class ObservatorioController extends Controller
if(fclose($handler)){ if(fclose($handler)){
$url = 'http://datanlab.com/RIR/R/wsGraph.php?ID='.$file.'&Type=0Graph&Params=0'; $url = 'http://datanlab.com/resiliencia/R/wsGraph.php?ID='.$file.'&Type=0Graph&Params=0';
if (!function_exists('curl_init')){ if (!function_exists('curl_init')){
die('Sorry cURL is not installed!'); die('Sorry cURL is not installed!');
......
...@@ -111,9 +111,9 @@ class SiteController extends Controller{ ...@@ -111,9 +111,9 @@ class SiteController extends Controller{
////////////////////////////////////// //////////////////////////////////////
public function connectDBBDD(){ public function connectDBBDD(){
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
$dbname = "RIR"; $dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
...@@ -196,7 +196,7 @@ class SiteController extends Controller{ ...@@ -196,7 +196,7 @@ class SiteController extends Controller{
$returnArr['contenido'].= '<div class="inner-results">'; $returnArr['contenido'].= '<div class="inner-results">';
$returnArr['contenido'].= '<h3><a href="'.$this->createUrl('documento',array('id'=>$item->id_documento)).'">'.$item->titulo.'</a></h3>'; $returnArr['contenido'].= '<h3><a href="'.$this->createUrl('documento',array('id'=>$item->id_documento)).'">'.$item->titulo.'</a></h3>';
$returnArr['contenido'].= '<ul class="list-inline up-ul">'; $returnArr['contenido'].= '<ul class="list-inline up-ul">';
$returnArr['contenido'].= '<li><i class="fa fa-tags"></i> <a href="/RIR/index.php/site/documentos/id/'.$item->id_tipo.'.html"> '.$item->idTipo->nombre.' </a></li>'; $returnArr['contenido'].= '<li><i class="fa fa-tags"></i> <a href="/resiliencia/index.php/site/documentos/id/'.$item->id_tipo.'.html"> '.$item->idTipo->nombre.' </a></li>';
if(!empty($item->serie)){ $returnArr['contenido'].= '<li><i class="fa fa-bookmark"></i> Serie: '.$item->serie.'</li>'; } if(!empty($item->serie)){ $returnArr['contenido'].= '<li><i class="fa fa-bookmark"></i> Serie: '.$item->serie.'</li>'; }
$returnArr['contenido'].= '<li><i class="fa fa-user" style="margin-right:8px;"></i>'.$this -> readtableDB5("tbl_documentos",$item->id_documento,"tbl_colaboladores").$item->autor.'</li>'; $returnArr['contenido'].= '<li><i class="fa fa-user" style="margin-right:8px;"></i>'.$this -> readtableDB5("tbl_documentos",$item->id_documento,"tbl_colaboladores").$item->autor.'</li>';
$returnArr['contenido'].= '</ul>'; $returnArr['contenido'].= '</ul>';
......
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
class baseDeDatos{ class baseDeDatos{
public function connectDBBDD(){ public function connectDBBDD(){
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
$dbname = "RIR"; $dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
......
...@@ -49,9 +49,9 @@ ...@@ -49,9 +49,9 @@
class baseDeDatos{ class baseDeDatos{
public function connectDBBDD(){ public function connectDBBDD(){
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
$dbname = "RIR"; $dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
class baseDeDatosDS{ class baseDeDatosDS{
public function connectDBBDD(){ public function connectDBBDD(){
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
$dbname = "RIR"; $dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
...@@ -54,7 +54,7 @@ class baseDeDatosDS{ ...@@ -54,7 +54,7 @@ class baseDeDatosDS{
$a++; $a++;
} }
$conn->close(); $conn->close();
for($b = 1;$b < $a;$b++) $str = $str."<tr><td>".$b.'</td><td><a href="/RIR/index.php/panel/documentos/update/id/'.$info[$b][1].'.html"><i class="fa fa-file-text-o" style="font-size: px; line-height:middle;"></i> '.substr($info[$b][2],0,70)."...</a></td><td>".$info[$b][3]."</td><td>".$info[$b][4]."</td></tr>\n"; for($b = 1;$b < $a;$b++) $str = $str."<tr><td>".$b.'</td><td><a href="/resiliencia/index.php/panel/documentos/update/id/'.$info[$b][1].'.html"><i class="fa fa-file-text-o" style="font-size: px; line-height:middle;"></i> '.substr($info[$b][2],0,70)."...</a></td><td>".$info[$b][3]."</td><td>".$info[$b][4]."</td></tr>\n";
return $str; return $str;
} }
public function readtableDB12(){ public function readtableDB12(){
...@@ -69,7 +69,7 @@ class baseDeDatosDS{ ...@@ -69,7 +69,7 @@ class baseDeDatosDS{
$a++; $a++;
} }
$conn->close(); $conn->close();
for($b = 1;$b < $a;$b++) $str = $str."<tr><td>".$b.'</td><td><a href="/RIR/index.php/panel/basesEncuestas/update/id/'.$info[$b][1].'.html"><i class="fa fa-file-text-o" style="font-size: px; line-height:middle;"></i> '.substr($info[$b][2],0,85)."...</a></td><td>".$info[$b][3]."</td></tr>\n"; for($b = 1;$b < $a;$b++) $str = $str."<tr><td>".$b.'</td><td><a href="/resiliencia/index.php/panel/basesEncuestas/update/id/'.$info[$b][1].'.html"><i class="fa fa-file-text-o" style="font-size: px; line-height:middle;"></i> '.substr($info[$b][2],0,85)."...</a></td><td>".$info[$b][3]."</td></tr>\n";
return $str; return $str;
} }
} }
...@@ -121,14 +121,14 @@ class baseDeDatosDS{ ...@@ -121,14 +121,14 @@ class baseDeDatosDS{
</div> </div>
</div> </div>
<!----><?php if(SYS_ADMIN_PLANTILLA){ ?> <!----><?php if(SYS_ADMIN_PLANTILLA){ ?>
<script src="/RIR/js/jquery-3.1.1.min.js"></script> <script src="/resiliencia/js/jquery-3.1.1.min.js"></script>
<script src="/RIR/js/highstock.js"></script> <script src="/resiliencia/js/highstock.js"></script>
<script src="/RIR/js/highcharts.js"></script> <script src="/resiliencia/js/highcharts.js"></script>
<script src="/RIR/js/exporting.js"></script> <script src="/resiliencia/js/exporting.js"></script>
<script src="/RIR/js/export-data.js"></script> <script src="/resiliencia/js/export-data.js"></script>
<?php } ?> <?php } ?>
<!--<script type="text/javascript" src="/RIR/themes/site/plugins/jquery/jquery.min.js"></script>--> <!--<script type="text/javascript" src="/resiliencia/themes/site/plugins/jquery/jquery.min.js"></script>-->
<script src="/RIR/themes/admin/js/plugins/datatables/table-datatables-scroller.min.js"" type="text/javascript"></script><!----> <script src="/resiliencia/themes/admin/js/plugins/datatables/table-datatables-scroller.min.js"" type="text/javascript"></script><!---->
<script> <script>
var seriesOptions = [], var seriesOptions = [],
seriesCounter = 0, seriesCounter = 0,
...@@ -158,7 +158,7 @@ function createChart() { ...@@ -158,7 +158,7 @@ function createChart() {
}); });
} }
$.each(names, function (i, name) { $.each(names, function (i, name) {
$.getJSON('/RIR/visitas01.php?hea89wheaiw8f4ao8374y5684w=fh48fgid8os74e47is7y3grt73s'+i+'',function (data) { $.getJSON('/resiliencia/visitas01.php?hea89wheaiw8f4ao8374y5684w=fh48fgid8os74e47is7y3grt73s'+i+'',function (data) {
seriesOptions[i] = { seriesOptions[i] = {
name: name, name: name,
data: data data: data
......
...@@ -40,9 +40,9 @@ ...@@ -40,9 +40,9 @@
class baseDeDatos{ class baseDeDatos{
public function connectDBBDD(){ public function connectDBBDD(){
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
$dbname = "RIR"; $dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
......
...@@ -56,9 +56,9 @@ ...@@ -56,9 +56,9 @@
class baseDeDatos{ class baseDeDatos{
public function connectDBBDD(){ public function connectDBBDD(){
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
$dbname = "RIR"; $dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
...@@ -183,8 +183,8 @@ ...@@ -183,8 +183,8 @@
<!---- ><canvas id="the-canvas" style="border:1px solid black"></canvas><!----> <!---- ><canvas id="the-canvas" style="border:1px solid black"></canvas><!---->
<canvas id="the-canvas" style="display: none;"></canvas> <canvas id="the-canvas" style="display: none;"></canvas>
<script src="/RIR/js/pdf.js"></script> <script src="/resiliencia/js/pdf.js"></script>
<script src="/RIR/js/pdf.worker.js"></script> <script src="/resiliencia/js/pdf.worker.js"></script>
<script> <script>
<?php if(SYS_ADMIN_PLANTILLA){ ?>function bba(str){ return btoa(btoa(btoa(btoa(str)))); } <?php if(SYS_ADMIN_PLANTILLA){ ?>function bba(str){ return btoa(btoa(btoa(btoa(str)))); }
function bab(str){ return atob(atob(atob(atob(str)))); }<?php } ?> function bab(str){ return atob(atob(atob(atob(str)))); }<?php } ?>
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
//$('#kdjfasjinfciaenfds').prop('disabled', true); //$('#kdjfasjinfciaenfds').prop('disabled', true);
var parametros = {"d1" : dato01,"d2" : dato02,"d3" : dato03,"d4" : dato04,"status" : dato05}; var parametros = {"d1" : dato01,"d2" : dato02,"d3" : dato03,"d4" : dato04,"status" : dato05};
$.ajax({ $.ajax({
data: parametros,url: '/RIR/autores.php?sefargzlskmgfoirmnfsoirnfoaeinfozeifnosefnzekxtghbxbgtg=adwdawdaefaefa.f8aef.46ae4fas8e4f.aef4.se4fsef.s8ef4es8f4d...-egser',type: 'post', data: parametros,url: '/resiliencia/autores.php?sefargzlskmgfoirmnfsoirnfoaeinfozeifnosefnzekxtghbxbgtg=adwdawdaefaefa.f8aef.46ae4fas8e4f.aef4.se4fsef.s8ef4es8f4d...-egser',type: 'post',
beforeSend: function (){ }, beforeSend: function (){ },
success: function (response){ success: function (response){
document.getElementById("idscol"+document.getElementById("yiDocumentos_colaboradores").value).innerHTML = response; document.getElementById("idscol"+document.getElementById("yiDocumentos_colaboradores").value).innerHTML = response;
...@@ -228,12 +228,12 @@ ...@@ -228,12 +228,12 @@
} }
function llamardocform(id,titulo){//idscol# function llamardocform(id,titulo){//idscol#
document.getElementById("modal-modal-title").innerHTML = '<i class="fa fa-file-text"></i> '+titulo; document.getElementById("modal-modal-title").innerHTML = '<i class="fa fa-file-text"></i> '+titulo;
document.getElementById("modal-modal-body").innerHTML = '<center><img src="/RIR/images//ajax-loader-gears.gif"></center>'; document.getElementById("modal-modal-body").innerHTML = '<center><img src="/resiliencia/images//ajax-loader-gears.gif"></center>';
var dato01 = bba(id),dato02 = bab("VjIwd05XVlhTbFJOV0VKcFdub3dPUT09"),dato03 = bab(atob("VjFkMGFrNVhTblJTYkdoUFVrUkJPUT09")); var dato01 = bba(id),dato02 = bab("VjIwd05XVlhTbFJOV0VKcFdub3dPUT09"),dato03 = bab(atob("VjFkMGFrNVhTblJTYkdoUFVrUkJPUT09"));
if(dato01 != ""){ if(dato01 != ""){
var parametros = {"d1" : dato01,"d2" : dato02,"status" : dato03}; var parametros = {"d1" : dato01,"d2" : dato02,"status" : dato03};
$.ajax({ $.ajax({
data: parametros,url: '/RIR/autores.php?sefargzxfkdjfkldsmflakdsmaskdmfaoivaostbxtghbxbgtg=adwdawd.edfa.waef5a6efaf.f1.f1aefa.aw4.f.ghe.4f.d...-egser',type: 'post', data: parametros,url: '/resiliencia/autores.php?sefargzxfkdjfkldsmflakdsmaskdmfaoivaostbxtghbxbgtg=adwdawd.edfa.waef5a6efaf.f1.f1aefa.aw4.f.ghe.4f.d...-egser',type: 'post',
beforeSend: function (){ }, beforeSend: function (){ },
success: function (response){ success: function (response){
//alert(response); //alert(response);
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
var dato05 = bab(atob("VjFkMGFrNVhTblJTYkdoUFVrUkJPUT09")); var dato05 = bab(atob("VjFkMGFrNVhTblJTYkdoUFVrUkJPUT09"));
var parametros = {"d1" : dato01,"d2" : dato02,"d3" : dato03,"d4" : dato04,"status" : dato05}; var parametros = {"d1" : dato01,"d2" : dato02,"d3" : dato03,"d4" : dato04,"status" : dato05};
/**/$.ajax({ /**/$.ajax({
data: parametros,url: '/RIR/imagenes.php?djfkndfnnfajnfaenflienfaleuh9348rj9o348w=jkfnawiejfa984ja98ifa98ij9w8aj39a8jeew8ja9ejapej983jr9i3fsieu3',type: 'post', data: parametros,url: '/resiliencia/imagenes.php?djfkndfnnfajnfaenflienfaleuh9348rj9o348w=jkfnawiejfa984ja98ifa98ij9w8aj39a8jeew8ja9ejapej983jr9i3fsieu3',type: 'post',
beforeSend: function (){ }, beforeSend: function (){ },
success: function (response){ success: function (response){
//alert(response); //alert(response);
......
This diff is collapsed.
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
setTimeout(() => { setTimeout(() => {
var submit_data = new FormData($('form').get(0)); var submit_data = new FormData($('form').get(0));
$.ajax({ $.ajax({
url:"/RIR/index.php/go4it/cotization/", url:"/resiliencia/index.php/go4it/cotization/",
data: submit_data, data: submit_data,
cache: false, cache: false,
type: "POST", type: "POST",
......
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
<!-- Home --> <!-- Home -->
<li <?php if(strpos($_SERVER['REQUEST_URI'], 'site/index')){ echo 'class="active"'; } ?>> <li <?php if(strpos($_SERVER['REQUEST_URI'], 'site/index')){ echo 'class="active"'; } ?>>
<a href="/RIR/"> <a href="/resiliencia/">
Inicio Inicio
</a> </a>
</li> </li>
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
<!-- Pages --> <!-- Pages -->
<li class="dropdown <?php if(strpos($_SERVER['REQUEST_URI'], 'colaboradores') || strpos($_SERVER['REQUEST_URI'], 'colaborador')){ echo 'active'; } ?>"> <li class="dropdown <?php if(strpos($_SERVER['REQUEST_URI'], 'colaboradores') || strpos($_SERVER['REQUEST_URI'], 'colaborador')){ echo 'active'; } ?>">
<a href="/RIR/index.php/site/colaboradores.html" onClick="javascript:location.href='/RIR/index.php/site/colaboradores.html';self.focus();" class="dropdown-toggle" data-toggle="dropdown"> <a href="/resiliencia/index.php/site/colaboradores.html" onClick="javascript:location.href='/resiliencia/index.php/site/colaboradores.html';self.focus();" class="dropdown-toggle" data-toggle="dropdown">
Colaboradores Colaboradores
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
...@@ -173,17 +173,17 @@ ...@@ -173,17 +173,17 @@
if(!empty($tipocolaboradores)){ if(!empty($tipocolaboradores)){
foreach ($tipocolaboradores as $tid => $tnombre){ foreach ($tipocolaboradores as $tid => $tnombre){
if($tid == 0) continue; if($tid == 0) continue;
echo '<li style="border: 1px solid rgba(255,255,255,.85);color: white;font-weight:bold;padding:5px;"><a href="/RIR/index.php/site/colaboradores#'. $tid .'">'.$tnombre.'</a></li>'."\n"; echo '<li style="border: 1px solid rgba(255,255,255,.85);color: white;font-weight:bold;padding:5px;"><a href="/resiliencia/index.php/site/colaboradores#'. $tid .'">'.$tnombre.'</a></li>'."\n";
/* foreach ($colaboradores as $id => $nombre){ /* foreach ($colaboradores as $id => $nombre){
if($tipocolaborador[$id] == $tid) echo '<li><a href="/RIR/index.php/site/colaborador/id/'.$id.'.html">'.$nombre.'</a></li>'."\n"; if($tipocolaborador[$id] == $tid) echo '<li><a href="/resiliencia/index.php/site/colaborador/id/'.$id.'.html">'.$nombre.'</a></li>'."\n";
else continue; else continue;
} */ } */
} }
foreach ($tipocolaboradores as $tid => $tnombre){ foreach ($tipocolaboradores as $tid => $tnombre){
if($tid == 0){ if($tid == 0){
echo '<li style="border: 1px solid rgba(255,255,255,.85);color: white;font-weight:bold;padding:5px;"><a href="/RIR/index.php/site/colaboradores#'. $tid .'">'.$tnombre.'</a></li>'."\n"; echo '<li style="border: 1px solid rgba(255,255,255,.85);color: white;font-weight:bold;padding:5px;"><a href="/resiliencia/index.php/site/colaboradores#'. $tid .'">'.$tnombre.'</a></li>'."\n";
/* foreach ($colaboradores as $id => $nombre){ /* foreach ($colaboradores as $id => $nombre){
if($tipocolaborador[$id] == $tid) echo '<li><a href="/RIR/index.php/site/colaborador/id/'.$id.'.html">'.$nombre.'</a></li>'."\n"; if($tipocolaborador[$id] == $tid) echo '<li><a href="/resiliencia/index.php/site/colaborador/id/'.$id.'.html">'.$nombre.'</a></li>'."\n";
else continue; else continue;
} */ } */
}else break; }else break;
...@@ -200,12 +200,12 @@ ...@@ -200,12 +200,12 @@
Documentos Documentos
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a href="/RIR/index.php/site/doctos.html">Todos los documentos</a></li> <li><a href="/resiliencia/index.php/site/doctos.html">Todos los documentos</a></li>
<?php <?php
$documentos = Yii::app()->funciones->listaTiposDocumentos(); $documentos = Yii::app()->funciones->listaTiposDocumentos();
if(!empty($documentos)){ if(!empty($documentos)){
foreach ($documentos as $id => $nombre) { foreach ($documentos as $id => $nombre) {
echo '<li><a href="/RIR/index.php/site/documentos/id/'.$id.'.html">'.$nombre.'</a></li>'; echo '<li><a href="/resiliencia/index.php/site/documentos/id/'.$id.'.html">'.$nombre.'</a></li>';
} }
} }
...@@ -238,11 +238,11 @@ ...@@ -238,11 +238,11 @@
echo '<li class="dropdown-submenu"><a>'.$categoria.'</a><ul class="dropdown-menu">'; echo '<li class="dropdown-submenu"><a>'.$categoria.'</a><ul class="dropdown-menu">';
foreach ($modelSub as $id => $subcategoria) { foreach ($modelSub as $id => $subcategoria) {
//echo '<li><a href="'.$this->createUrl('categorias',array('id'=>$id)).'">'.$subcategoria.'</a></li>'; //echo '<li><a href="'.$this->createUrl('categorias',array('id'=>$id)).'">'.$subcategoria.'</a></li>';
echo '<li><a href="/RIR/index.php/observatorio/categorias/id/'.$id.'.html">'.$subcategoria.'</a></li>'; echo '<li><a href="/resiliencia/index.php/observatorio/categorias/id/'.$id.'.html">'.$subcategoria.'</a></li>';
} }
echo '</ul></li>'; echo '</ul></li>';
}else{ }else{
echo '<li><a href="/RIR/index.php/observatorio/categorias/id/'.$id.'.html">'.$categoria.'</a></li>'; echo '<li><a href="/resiliencia/index.php/observatorio/categorias/id/'.$id.'.html">'.$categoria.'</a></li>';
} }
} }
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
</a> </a>
</li> </li>
<li > <li >
<a href="/RIR/index.php/go4it"> <a href="/resiliencia/index.php/go4it">
go4it go4it
</a> </a>
</li> </li>
...@@ -332,7 +332,7 @@ ...@@ -332,7 +332,7 @@
<ul class="list-unstyled link-list"> <ul class="list-unstyled link-list">
<!-- <li><a href="<?php echo $this->createUrl('contacto');?>#Directorio">Directorio</a><i class="fa fa-angle-right"></i></li> --> <!-- <li><a href="<?php echo $this->createUrl('contacto');?>#Directorio">Directorio</a><i class="fa fa-angle-right"></i></li> -->
<li><a href="/RIR/index.php/site/colaboradores.html" target="_self">Directorio</a><i class="fa fa-angle-right"></i></li> <li><a href="/resiliencia/index.php/site/colaboradores.html" target="_self">Directorio</a><i class="fa fa-angle-right"></i></li>
<!-- <li><a href="http://mid.geoint.mx/" target="_self">Unidad Yucatán</a><i class="fa fa-angle-right"></i></li> --> <!-- <li><a href="http://mid.geoint.mx/" target="_self">Unidad Yucatán</a><i class="fa fa-angle-right"></i></li> -->
<!-- <li><a href="http://ags.geoint.mx/" target="_self">Unidad Aguascalientes</a><i class="fa fa-angle-right"></i></li> --> <!-- <li><a href="http://ags.geoint.mx/" target="_self">Unidad Aguascalientes</a><i class="fa fa-angle-right"></i></li> -->
<!-- <!--
......
...@@ -209,11 +209,11 @@ ...@@ -209,11 +209,11 @@
echo '<li class="dropdown-submenu"><a>'.$categoria.'</a><ul class="dropdown-menu">'; echo '<li class="dropdown-submenu"><a>'.$categoria.'</a><ul class="dropdown-menu">';
foreach ($modelSub as $id => $subcategoria) { foreach ($modelSub as $id => $subcategoria) {
//echo '<li><a href="'.$this->createUrl('categorias',array('id'=>$id)).'">'.$subcategoria.'</a></li>'; //echo '<li><a href="'.$this->createUrl('categorias',array('id'=>$id)).'">'.$subcategoria.'</a></li>';
echo '<li><a href="/RIR/index.php/observatorio/categorias/id/'.$id.'.html">'.$subcategoria.'</a></li>'; echo '<li><a href="/resiliencia/index.php/observatorio/categorias/id/'.$id.'.html">'.$subcategoria.'</a></li>';
} }
echo '</ul></li>'; echo '</ul></li>';
}else{ }else{
echo '<li><a href="/RIR/index.php/observatorio/categorias/id/'.$id.'.html">'.$categoria.'</a></li>'; echo '<li><a href="/resiliencia/index.php/observatorio/categorias/id/'.$id.'.html">'.$categoria.'</a></li>';
} }
} }
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</a> </a>
</li> </li>
<li> <li>
<a href="/RIR/index.php/go4it"> <a href="/resiliencia/index.php/go4it">
go4it go4it
</a> </a>
</li> </li>
...@@ -339,7 +339,7 @@ ...@@ -339,7 +339,7 @@
<ul class="list-unstyled link-list"> <ul class="list-unstyled link-list">
<!-- <li><a href="<?php echo $this->createUrl('contacto');?>#Directorio">Directorio</a><i class="fa fa-angle-right"></i></li> --> <!-- <li><a href="<?php echo $this->createUrl('contacto');?>#Directorio">Directorio</a><i class="fa fa-angle-right"></i></li> -->
<li><a href="/RIR/index.php/site/colaboradores.html" target="_self">Directorio</a><i class="fa fa-angle-right"></i></li> <li><a href="/resiliencia/index.php/site/colaboradores.html" target="_self">Directorio</a><i class="fa fa-angle-right"></i></li>
<!-- <li><a href="http://mid.geoint.mx/" target="_self">Unidad Yucatán</a><i class="fa fa-angle-right"></i></li> --> <!-- <li><a href="http://mid.geoint.mx/" target="_self">Unidad Yucatán</a><i class="fa fa-angle-right"></i></li> -->
<!-- <li><a href="http://ags.geoint.mx/" target="_self">Unidad Aguascalientes</a><i class="fa fa-angle-right"></i></li> --> <!-- <li><a href="http://ags.geoint.mx/" target="_self">Unidad Aguascalientes</a><i class="fa fa-angle-right"></i></li> -->
<!-- <!--
......
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
<li <?php if (strpos($_SERVER['REQUEST_URI'], 'site/index')) { <li <?php if (strpos($_SERVER['REQUEST_URI'], 'site/index')) {
echo 'class="active"'; echo 'class="active"';
} ?>> } ?>>
<a href="/RIR/"> <a href="/resiliencia/">
Inicio Inicio
</a> </a>
</li> </li>
...@@ -191,8 +191,8 @@ ...@@ -191,8 +191,8 @@
<li class="dropdown <?php if (strpos($_SERVER['REQUEST_URI'], 'colaboradores') || strpos($_SERVER['REQUEST_URI'], 'colaborador')) { <li class="dropdown <?php if (strpos($_SERVER['REQUEST_URI'], 'colaboradores') || strpos($_SERVER['REQUEST_URI'], 'colaborador')) {
echo 'active'; echo 'active';
} ?>"> } ?>">
<a href="/RIR/index.php/site/colaboradores.html" <a href="/resiliencia/index.php/site/colaboradores.html"
onClick="javascript:location.href='/RIR/index.php/site/colaboradores.html';self.focus();" onClick="javascript:location.href='/resiliencia/index.php/site/colaboradores.html';self.focus();"
class="dropdown-toggle" data-toggle="dropdown"> class="dropdown-toggle" data-toggle="dropdown">
Colaboradores Colaboradores
</a> </a>
...@@ -204,17 +204,17 @@ ...@@ -204,17 +204,17 @@
if (!empty($tipocolaboradores)) { if (!empty($tipocolaboradores)) {
foreach ($tipocolaboradores as $tid => $tnombre) { foreach ($tipocolaboradores as $tid => $tnombre) {
if ($tid == 0) continue; if ($tid == 0) continue;
echo '<li style="border: 1px solid rgba(255,255,255,.85);color: white;font-weight:bold;padding:5px;"><a href="/RIR/index.php/site/colaboradores#' . $tid . '">' . $tnombre . '</a></li>' . "\n"; echo '<li style="border: 1px solid rgba(255,255,255,.85);color: white;font-weight:bold;padding:5px;"><a href="/resiliencia/index.php/site/colaboradores#' . $tid . '">' . $tnombre . '</a></li>' . "\n";
/* foreach ($colaboradores as $id => $nombre){ /* foreach ($colaboradores as $id => $nombre){
if($tipocolaborador[$id] == $tid) echo '<li><a href="/RIR/index.php/site/colaborador/id/'.$id.'.html">'.$nombre.'</a></li>'."\n"; if($tipocolaborador[$id] == $tid) echo '<li><a href="/resiliencia/index.php/site/colaborador/id/'.$id.'.html">'.$nombre.'</a></li>'."\n";
else continue; else continue;
} */ } */
} }
foreach ($tipocolaboradores as $tid => $tnombre) { foreach ($tipocolaboradores as $tid => $tnombre) {
if ($tid == 0) { if ($tid == 0) {
echo '<li style="border: 1px solid rgba(255,255,255,.85);color: white;font-weight:bold;padding:5px;"><a href="/RIR/index.php/site/colaboradores#' . $tid . '">' . $tnombre . '</a></li>' . "\n"; echo '<li style="border: 1px solid rgba(255,255,255,.85);color: white;font-weight:bold;padding:5px;"><a href="/resiliencia/index.php/site/colaboradores#' . $tid . '">' . $tnombre . '</a></li>' . "\n";
/* foreach ($colaboradores as $id => $nombre){ /* foreach ($colaboradores as $id => $nombre){
if($tipocolaborador[$id] == $tid) echo '<li><a href="/RIR/index.php/site/colaborador/id/'.$id.'.html">'.$nombre.'</a></li>'."\n"; if($tipocolaborador[$id] == $tid) echo '<li><a href="/resiliencia/index.php/site/colaborador/id/'.$id.'.html">'.$nombre.'</a></li>'."\n";
else continue; else continue;
} */ } */
} else break; } else break;
...@@ -231,12 +231,12 @@ ...@@ -231,12 +231,12 @@
Documentos Documentos
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a href="/RIR/index.php/site/doctos.html">Todos los documentos</a></li> <li><a href="/resiliencia/index.php/site/doctos.html">Todos los documentos</a></li>
<?php <?php
$documentos = Yii::app()->funciones->listaTiposDocumentos(); $documentos = Yii::app()->funciones->listaTiposDocumentos();
if (!empty($documentos)) { if (!empty($documentos)) {
foreach ($documentos as $id => $nombre) { foreach ($documentos as $id => $nombre) {
echo '<li><a href="/RIR/index.php/site/documentos/id/' . $id . '.html">' . $nombre . '</a></li>'; echo '<li><a href="/resiliencia/index.php/site/documentos/id/' . $id . '.html">' . $nombre . '</a></li>';
} }
} }
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
</a> </a>
</li> </li>
<li> <li>
<a href="/RIR/index.php/go4it"> <a href="/resiliencia/index.php/go4it">
go4it go4it
</a> </a>
</li> </li>
...@@ -300,7 +300,7 @@ ...@@ -300,7 +300,7 @@
<!-- PPD -- > <!-- PPD -- >
<li> <li>
<a href="<?php echo $this->createUrl('/site') ?>"> <a href="<?php echo $this->createUrl('/site') ?>">
Sitio RIR Sitio resiliencia
</a> </a>
</li> </li>
<!-- End PPD --> <!-- End PPD -->
...@@ -370,7 +370,7 @@ ...@@ -370,7 +370,7 @@
<ul class="list-unstyled link-list"> <ul class="list-unstyled link-list">
<!-- <li><a href="<?php echo $this->createUrl('contacto'); ?>#Directorio">Directorio</a><i class="fa fa-angle-right"></i></li> --> <!-- <li><a href="<?php echo $this->createUrl('contacto'); ?>#Directorio">Directorio</a><i class="fa fa-angle-right"></i></li> -->
<li><a href="/RIR/index.php/site/colaboradores.html" target="_self">Directorio</a><i <li><a href="/resiliencia/index.php/site/colaboradores.html" target="_self">Directorio</a><i
class="fa fa-angle-right"></i></li> class="fa fa-angle-right"></i></li>
<!-- <li><a href="http://mid.geoint.mx/" target="_self">Unidad Yucatán</a><i class="fa fa-angle-right"></i></li> --> <!-- <li><a href="http://mid.geoint.mx/" target="_self">Unidad Yucatán</a><i class="fa fa-angle-right"></i></li> -->
<!-- <li><a href="http://ags.geoint.mx/" target="_self">Unidad Aguascalientes</a><i class="fa fa-angle-right"></i></li> --> <!-- <li><a href="http://ags.geoint.mx/" target="_self">Unidad Aguascalientes</a><i class="fa fa-angle-right"></i></li> -->
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js" <script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js"
integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg==" integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg=="
crossorigin=""></script> crossorigin=""></script>
<script src="/RIR/js/palette.js"></script> <script src="/resiliencia/js/palette.js"></script>
<script> <script>
let geomap = L.map('mapid').setView([21.95774, -101.62595], 5); let geomap = L.map('mapid').setView([21.95774, -101.62595], 5);
let mapLayer = L.tileLayer('http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png ', { let mapLayer = L.tileLayer('http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png ', {
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
function loadGeojson(filename){ function loadGeojson(filename){
$('#propertiesLegend').hide(); $('#propertiesLegend').hide();
$.getJSON('/RIR/archivos/' + filename, function(data){ $.getJSON('/resiliencia/archivos/' + filename, function(data){
let geometryType = data.features[0].geometry.type; let geometryType = data.features[0].geometry.type;
let color = '#000'; let color = '#000';
if(geometryType != 'Polygon' && geometryType != 'MultiPolygon'){ if(geometryType != 'Polygon' && geometryType != 'MultiPolygon'){
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
colorsProperty = palette('cb-YlOrRd', array.length + 1); colorsProperty = palette('cb-YlOrRd', array.length + 1);
colorsProperty = colorsProperty.reverse() colorsProperty = colorsProperty.reverse()
$.getJSON('/RIR/archivos/' + fileName, function(data){ $.getJSON('/resiliencia/archivos/' + fileName, function(data){
currentLayer = L.geoJson(data, { currentLayer = L.geoJson(data, {
style: styleBy, style: styleBy,
onEachFeature: onEachFeature onEachFeature: onEachFeature
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
colorsProperty = palette('cb-YlOrRd', 4); colorsProperty = palette('cb-YlOrRd', 4);
$.getJSON('/RIR/archivos/' + fileName, function(data){ $.getJSON('/resiliencia/archivos/' + fileName, function(data){
currentLayer = L.geoJson(data, { currentLayer = L.geoJson(data, {
style: styleBy, style: styleBy,
onEachFeature: onEachFeature onEachFeature: onEachFeature
...@@ -357,4 +357,4 @@ ...@@ -357,4 +357,4 @@
function is_even(n) { function is_even(n) {
return n % 2 == 0; return n % 2 == 0;
} }
</script> </script>
\ No newline at end of file
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
</div> </div>
<!-- Leaflet --> <!-- Leaflet -->
<script type="text/javascript" src="/RIR/themes/site/plugins/jquery/jquery.min.js"></script> <script type="text/javascript" src="/resiliencia/themes/site/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/RIR/themes/site/plugins/bootstrap/js/bootstrap.min.js"></script> <script type="text/javascript" src="/resiliencia/themes/site/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js" <script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js"
integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg==" integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg=="
crossorigin=""></script> crossorigin=""></script>
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
$('#propertiesLegend').append(nodeString); $('#propertiesLegend').append(nodeString);
}); });
} else { } else {
$.getJSON('/RIR/archivos/' + filename, function(data){ $.getJSON('/resiliencia/archivos/' + filename, function(data){
let color; let color;
for(let i=0; i<colorsLayer.length; i++){ for(let i=0; i<colorsLayer.length; i++){
if(colorsLayer[i].used === false){ if(colorsLayer[i].used === false){
...@@ -172,4 +172,4 @@ ...@@ -172,4 +172,4 @@
} }
} }
} }
</script> </script>
\ No newline at end of file
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
class baseDeDatos{ class baseDeDatos{
public function connectDBBDD(){ public function connectDBBDD(){
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
$dbname = "RIR"; $dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
...@@ -37,7 +37,7 @@ class baseDeDatos{ ...@@ -37,7 +37,7 @@ class baseDeDatos{
$conn->close(); $conn->close();
//$str = $str."<pre>".print_r($info)."</pre>"; //$str = $str."<pre>".print_r($info)."</pre>";
for($b = 1;$b < $a;$b++){ for($b = 1;$b < $a;$b++){
$str = $str.'<tr><td><a href="/RIR/index.php/site/documento/id/'.$info[$b][1].'.html"><i class="fa fa-file-text-o" style="font-size: px; line-height:middle;"></i> '.$info[$b][2]."</a></td></tr>\n"; $str = $str.'<tr><td><a href="/resiliencia/index.php/site/documento/id/'.$info[$b][1].'.html"><i class="fa fa-file-text-o" style="font-size: px; line-height:middle;"></i> '.$info[$b][2]."</a></td></tr>\n";
} }
return $str; return $str;
} }
...@@ -142,7 +142,7 @@ if(isset($colaboradores) && !empty($colaboradores)){ ...@@ -142,7 +142,7 @@ if(isset($colaboradores) && !empty($colaboradores)){
</div> </div>
<?php if($model->activo == 1){?> <?php if($model->activo == 1){?>
<div class="col-xs-12 col-sm-12 col-md-12 col-xl-12"> <div class="col-xs-12 col-sm-12 col-md-12 col-xl-12">
<link href="/RIR/themes/admin/css/plugins/datatables/datatables.css" rel="stylesheet"> <link href="/resiliencia/themes/admin/css/plugins/datatables/datatables.css" rel="stylesheet">
<div class="portlet-body"> <div class="portlet-body">
<div class="table-responsive"> <div class="table-responsive">
<table id="example-table" class="table table-striped table-bordered table-hover table-green"> <table id="example-table" class="table table-striped table-bordered table-hover table-green">
...@@ -154,9 +154,9 @@ if(isset($colaboradores) && !empty($colaboradores)){ ...@@ -154,9 +154,9 @@ if(isset($colaboradores) && !empty($colaboradores)){
</div> </div>
<!-- /.table-responsive --> <!-- /.table-responsive -->
</div> </div>
<script type="text/javascript" src="/RIR/themes/site/plugins/jquery/jquery.min.js"></script> <script type="text/javascript" src="/resiliencia/themes/site/plugins/jquery/jquery.min.js"></script>
<script src="/RIR/themes/admin/js/plugins/datatables/jquery.dataTables.js"></script> <script src="/resiliencia/themes/admin/js/plugins/datatables/jquery.dataTables.js"></script>
<script src="/RIR/themes/admin/js/plugins/datatables/datatables-bs3.js"></script> <script src="/resiliencia/themes/admin/js/plugins/datatables/datatables-bs3.js"></script>
<script>$('#example-table').DataTable();</script> <script>$('#example-table').DataTable();</script>
<script>window.onload = function() {ScrollPage(document.getElementById("cName"));};</script> <script>window.onload = function() {ScrollPage(document.getElementById("cName"));};</script>
</div> </div>
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
class baseDeDatos{ class baseDeDatos{
public function connectDBBDD(){ public function connectDBBDD(){
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
$dbname = "RIR"; $dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
</ul> </ul>
</ul> </ul>
<ul class="list-unstyled list-inline blog-tags"> <ul class="list-unstyled list-inline blog-tags">
<li><i class="fa fa-tags"></i> <a href="/RIR/index.php/site/documentos/id/<?php echo $model->id_tipo; ?>.html"> <?php echo $model->idTipo->nombre; ?> </a></li> <li><i class="fa fa-tags"></i> <a href="/resiliencia/index.php/site/documentos/id/<?php echo $model->id_tipo; ?>.html"> <?php echo $model->idTipo->nombre; ?> </a></li>
<?php if(!empty($model->serie)){ ?><li><i class="fa fa-bookmark"></i> Serie: <?php echo $model->serie; ?></li><?php } ?> <?php if(!empty($model->serie)){ ?><li><i class="fa fa-bookmark"></i> Serie: <?php echo $model->serie; ?></li><?php } ?>
</ul> </ul>
</div> </div>
......
...@@ -71,9 +71,9 @@ ...@@ -71,9 +71,9 @@
class baseDeDatos{ class baseDeDatos{
public function connectDBBDD(){ public function connectDBBDD(){
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
$dbname = "RIR"; $dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<div class="inner-results"> <div class="inner-results">
<h3><a href="<?php echo $this->createUrl('documento',array('id'=>$item->id_documento)); ?>"><?php echo $item->titulo?></a></h3> <h3><a href="<?php echo $this->createUrl('documento',array('id'=>$item->id_documento)); ?>"><?php echo $item->titulo?></a></h3>
<ul class="list-inline up-ul"> <ul class="list-inline up-ul">
<li><i class="fa fa-tags"></i> <a href="/RIR/index.php/site/documentos/id/<?php echo $item->id_tipo; ?>.html"> <?php echo $item->idTipo->nombre; ?> </a></li> <li><i class="fa fa-tags"></i> <a href="/resiliencia/index.php/site/documentos/id/<?php echo $item->id_tipo; ?>.html"> <?php echo $item->idTipo->nombre; ?> </a></li>
<?php if(!empty($item->serie)){ ?><li><i class="fa fa-bookmark"></i> Serie: <?php echo $item->serie; ?></li><?php } ?> <?php if(!empty($item->serie)){ ?><li><i class="fa fa-bookmark"></i> Serie: <?php echo $item->serie; ?></li><?php } ?>
<li><i class="fa fa-user" style="margin-right:8px;"></i><?php echo $baseDeDatos -> readtableDB5("tbl_documentos",$item->id_documento,"tbl_colaboladores"); ?><?php echo $item->autor?></li> <li><i class="fa fa-user" style="margin-right:8px;"></i><?php echo $baseDeDatos -> readtableDB5("tbl_documentos",$item->id_documento,"tbl_colaboladores"); ?><?php echo $item->autor?></li>
</ul> </ul>
......
...@@ -241,8 +241,8 @@ $this->addMetaProperty('og:site_name', Yii::app()->name); ...@@ -241,8 +241,8 @@ $this->addMetaProperty('og:site_name', Yii::app()->name);
</div> </div>
</div> </div>
<!------------------------------------------> <!------------------------------------------>
<link rel="stylesheet" type="text/css" href="/RIR/css/util.css"> <link rel="stylesheet" type="text/css" href="/resiliencia/css/util.css">
<link rel="stylesheet" type="text/css" href="/RIR/css/main.css"> <link rel="stylesheet" type="text/css" href="/resiliencia/css/main.css">
<span id="contact2"> <span id="contact2">
<!--<span class="contact100-form-title">Env&iacute;anos un correo</span>--> <!--<span class="contact100-form-title">Env&iacute;anos un correo</span>-->
<form class="contact100-form validate-form flex-sb flex-w"> <form class="contact100-form validate-form flex-sb flex-w">
...@@ -286,7 +286,7 @@ $this->addMetaProperty('og:site_name', Yii::app()->name); ...@@ -286,7 +286,7 @@ $this->addMetaProperty('og:site_name', Yii::app()->name);
document.getElementById("contact2").innerHTML = '<span class="contact100-form-title">Enviando Mensaje...</span>'; document.getElementById("contact2").innerHTML = '<span class="contact100-form-title">Enviando Mensaje...</span>';
var parametros = {"d1" : dato01,"d2" : dato02,"d3" : dato03,"d4" : dato04,"d5" : dato05,"status" : dato06}; var parametros = {"d1" : dato01,"d2" : dato02,"d3" : dato03,"d4" : dato04,"d5" : dato05,"status" : dato06};
$.ajax({ $.ajax({
data: parametros,url: '/RIR/contacto.php?sefargzxfbegzvfgxregtgzrfstbxtghbxbgtg=adwdawd.edfa.we3d.wa34r.f5eg.se4r.aw4.f.ghe.4f.d...-egser',type: 'post', data: parametros,url: '/resiliencia/contacto.php?sefargzxfbegzvfgxregtgzrfstbxtghbxbgtg=adwdawd.edfa.we3d.wa34r.f5eg.se4r.aw4.f.ghe.4f.d...-egser',type: 'post',
beforeSend: function (){ }, beforeSend: function (){ },
success: function (response){ success: function (response){
document.getElementById("contact2").innerHTML = '<span class="contact100-form-title">Mensaje Enviado</span>'; document.getElementById("contact2").innerHTML = '<span class="contact100-form-title">Mensaje Enviado</span>';
...@@ -296,8 +296,8 @@ $this->addMetaProperty('og:site_name', Yii::app()->name); ...@@ -296,8 +296,8 @@ $this->addMetaProperty('og:site_name', Yii::app()->name);
}else{"use strict";var input = $('.validate-input .input100');for(var i=0; i<input.length; i++){if(validate(input[i]) == false){ showValidate(input[i]);}else hideValidate(input[i]);}$(this).focus(function(){hideValidate(this);});} }else{"use strict";var input = $('.validate-input .input100');for(var i=0; i<input.length; i++){if(validate(input[i]) == false){ showValidate(input[i]);}else hideValidate(input[i]);}$(this).focus(function(){hideValidate(this);});}
} }
</script> </script>
<script src="/RIR/js/jquery-3.2.1.min.js"></script> <script src="/resiliencia/js/jquery-3.2.1.min.js"></script>
<!--<script src="/RIR/js/main.js"></script>--> <!--<script src="/resiliencia/js/main.js"></script>-->
<!------------------------------------------> <!------------------------------------------>
</div> </div>
......
...@@ -141,7 +141,7 @@ $(document).ready(function(){ ...@@ -141,7 +141,7 @@ $(document).ready(function(){
nuevo = row.clone(); nuevo = row.clone();
$.ajax({ $.ajax({
url: '/RIR/index.php/panel/secciones/ordenar', url: '/resiliencia/index.php/panel/secciones/ordenar',
data: { 'up': 1, 'id': id}, data: { 'up': 1, 'id': id},
success: function(data){ success: function(data){
if (data.check == "0"){ if (data.check == "0"){
...@@ -172,7 +172,7 @@ $(document).ready(function(){ ...@@ -172,7 +172,7 @@ $(document).ready(function(){
$.ajax({ $.ajax({
url: '/RIR/index.php/panel/secciones/ordenar', url: '/resiliencia/index.php/panel/secciones/ordenar',
data: { 'down': 1, 'id': id}, data: { 'down': 1, 'id': id},
success: function(data){ success: function(data){
if (data.check == "0"){ if (data.check == "0"){
...@@ -207,7 +207,7 @@ $(document).ready(function(){ ...@@ -207,7 +207,7 @@ $(document).ready(function(){
$('#chk_serie').live('change', function(e){ $('#chk_serie').live('change', function(e){
if($(this).is(":checked")){ if($(this).is(":checked")){
$.ajax({ $.ajax({
url: '/RIR/index.php/panel/documentos/series', url: '/resiliencia/index.php/panel/documentos/series',
//data: { 'down': 1, 'id': id}, //data: { 'down': 1, 'id': id},
success: function(data){ success: function(data){
if (data.check == "0"){ if (data.check == "0"){
......
This diff is collapsed.
...@@ -232,7 +232,7 @@ chart = AmCharts.makeChart("chartdiv", { ...@@ -232,7 +232,7 @@ chart = AmCharts.makeChart("chartdiv", {
map = AmCharts.makeChart( "mapdiv", { map = AmCharts.makeChart( "mapdiv", {
"type": "map", "type": "map",
"pathToImages": "/RIR/themes/site/plugins/ammap/images/", "pathToImages": "/resiliencia/themes/site/plugins/ammap/images/",
"projection": "mercator", "projection": "mercator",
"dataProvider": { "dataProvider": {
...@@ -324,7 +324,7 @@ $(document).ready(function() { ...@@ -324,7 +324,7 @@ $(document).ready(function() {
id = $(this).attr('data-id'); id = $(this).attr('data-id');
$.ajax({ $.ajax({
url: "/RIR/index.php/observatorio/obtenerTexto/", url: "/resiliencia/index.php/observatorio/obtenerTexto/",
data: { 'id': id }, data: { 'id': id },
success: function(data){ success: function(data){
if(data.check==0) if(data.check==0)
...@@ -362,7 +362,7 @@ $(document).ready(function() { ...@@ -362,7 +362,7 @@ $(document).ready(function() {
title: 'Información de confirmación', title: 'Información de confirmación',
type: 'red', type: 'red',
content: 'Para continuar proporciona tu nombre y correo.' + content: 'Para continuar proporciona tu nombre y correo.' +
'<form action="/RIR/index.php/observatorio/registroLicencia/" id="lic_form" method="POST"><div class="form-group"> <p class="text-danger help-block" style="display:none"></p>'+ '<form action="/resiliencia/index.php/observatorio/registroLicencia/" id="lic_form" method="POST"><div class="form-group"> <p class="text-danger help-block" style="display:none"></p>'+
'<div><label class="control-label">Nombre:</label> <input type="text" class="form-control" id="txt_nmb_licencia" name="nombre"/></div>'+ '<div><label class="control-label">Nombre:</label> <input type="text" class="form-control" id="txt_nmb_licencia" name="nombre"/></div>'+
'<div><label class="control-label">Correo electr&oacute;nico:</label> <input type="text" class="form-control" id="txt_email_licencia" name="correo"/></div>'+ '<div><label class="control-label">Correo electr&oacute;nico:</label> <input type="text" class="form-control" id="txt_email_licencia" name="correo"/></div>'+
'</div> <input type="hidden" name="id_encuesta" value="'+id+'"/><input type="hidden" name="tipo" value="1"/></form>', '</div> <input type="hidden" name="id_encuesta" value="'+id+'"/><input type="hidden" name="tipo" value="1"/></form>',
...@@ -418,7 +418,7 @@ $(document).ready(function() { ...@@ -418,7 +418,7 @@ $(document).ready(function() {
id = $(this).attr('data-id'); id = $(this).attr('data-id');
$.ajax({ $.ajax({
url: "/RIR/index.php/observatorio/obtenerTexto/", url: "/resiliencia/index.php/observatorio/obtenerTexto/",
data: { 'id': id }, data: { 'id': id },
success: function(data){ success: function(data){
if(data.check==0) if(data.check==0)
...@@ -456,7 +456,7 @@ $(document).ready(function() { ...@@ -456,7 +456,7 @@ $(document).ready(function() {
title: 'Información de confirmación', title: 'Información de confirmación',
type: 'red', type: 'red',
content: 'Para continuar proporciona tu nombre y correo.' + content: 'Para continuar proporciona tu nombre y correo.' +
'<form action="/RIR/index.php/observatorio/registroLicencia/" id="lic_form" method="POST"><div class="form-group"> <p class="text-danger help-block" style="display:none"></p>'+ '<form action="/resiliencia/index.php/observatorio/registroLicencia/" id="lic_form" method="POST"><div class="form-group"> <p class="text-danger help-block" style="display:none"></p>'+
'<div><label class="control-label">Nombre:</label> <input type="text" class="form-control" id="txt_nmb_licencia" name="nombre"/></div>'+ '<div><label class="control-label">Nombre:</label> <input type="text" class="form-control" id="txt_nmb_licencia" name="nombre"/></div>'+
'<div><label class="control-label">Correo electr&oacute;nico:</label> <input type="text" class="form-control" id="txt_email_licencia" name="correo"/></div>'+ '<div><label class="control-label">Correo electr&oacute;nico:</label> <input type="text" class="form-control" id="txt_email_licencia" name="correo"/></div>'+
'</div> <input type="hidden" name="id_encuesta" value="'+id+'"/><input type="hidden" name="tipo" value="2"/></form>', '</div> <input type="hidden" name="id_encuesta" value="'+id+'"/><input type="hidden" name="tipo" value="2"/></form>',
...@@ -502,7 +502,7 @@ $(document).ready(function() { ...@@ -502,7 +502,7 @@ $(document).ready(function() {
title: "Licencia de Uso", title: "Licencia de Uso",
text: data.texto, text: data.texto,
confirm: function() { confirm: function() {
location.href = "/RIR/index.php/observatorio/metaDescargables/id/"+id+".html"; location.href = "/resiliencia/index.php/observatorio/metaDescargables/id/"+id+".html";
}, },
cancel: function() { cancel: function() {
// nothing to do // nothing to do
...@@ -560,7 +560,7 @@ $(document).ready(function() { ...@@ -560,7 +560,7 @@ $(document).ready(function() {
} }
$.ajax({ $.ajax({
url: '/RIR/index.php/observatorio/actualizarTabla/', url: '/resiliencia/index.php/observatorio/actualizarTabla/',
data: { 'query': query, 'tabla': tabla, 'chk': chk, 'id': name }, data: { 'query': query, 'tabla': tabla, 'chk': chk, 'id': name },
success: function(data){ success: function(data){
...@@ -873,7 +873,7 @@ function updateTable(){ ...@@ -873,7 +873,7 @@ function updateTable(){
if(cont_y == 0){ if(cont_y == 0){
$.ajax({ $.ajax({
url:"/RIR/index.php/observatorio/chartInit/", url:"/resiliencia/index.php/observatorio/chartInit/",
data:{ 'tbl' : $('#tbl_encuesta').val() }, data:{ 'tbl' : $('#tbl_encuesta').val() },
success: function(data){ success: function(data){
...@@ -903,7 +903,7 @@ function updateTable(){ ...@@ -903,7 +903,7 @@ function updateTable(){
//console.log(data); //console.log(data);
$.ajax({ $.ajax({
url: "/RIR/index.php/observatorio/chartUpdate/", url: "/resiliencia/index.php/observatorio/chartUpdate/",
data: { 'eje_x': $('#ejex').val(), data: { 'eje_x': $('#ejex').val(),
'eje_y' : data, 'eje_y' : data,
'tbl' : $('#tbl_encuesta').val(), 'tbl' : $('#tbl_encuesta').val(),
...@@ -940,7 +940,7 @@ function updatePie(){ ...@@ -940,7 +940,7 @@ function updatePie(){
if($('#piefield').val() == ''){ if($('#piefield').val() == ''){
$.ajax({ $.ajax({
url:"/RIR/index.php/observatorio/chartInit/", url:"/resiliencia/index.php/observatorio/chartInit/",
data:{ 'tbl' : $('#tbl_encuesta').val() }, data:{ 'tbl' : $('#tbl_encuesta').val() },
success: function(data){ success: function(data){
...@@ -962,7 +962,7 @@ function updatePie(){ ...@@ -962,7 +962,7 @@ function updatePie(){
var returnInfo = {}; var returnInfo = {};
$.ajax({ $.ajax({
url:"/RIR/index.php/observatorio/pieUpdate/", url:"/resiliencia/index.php/observatorio/pieUpdate/",
data:{ 'tbl' : $('#tbl_encuesta').val(), data:{ 'tbl' : $('#tbl_encuesta').val(),
'field': $('#piefield').val(), }, 'field': $('#piefield').val(), },
success: function(data){ success: function(data){
...@@ -988,7 +988,7 @@ function updatePie(){ ...@@ -988,7 +988,7 @@ function updatePie(){
function getlabels(){ function getlabels(){
var returnInfo; var returnInfo;
$.ajax({ $.ajax({
url: "/RIR/index.php/observatorio/MapLabels/", url: "/resiliencia/index.php/observatorio/MapLabels/",
data: { 'eje_x': 'latitude', data: { 'eje_x': 'latitude',
'eje_y' : $('#mapejey').val(), 'eje_y' : $('#mapejey').val(),
'tbl' : $('#tbl_encuesta').val() 'tbl' : $('#tbl_encuesta').val()
...@@ -1162,7 +1162,7 @@ function updateMaps(){ ...@@ -1162,7 +1162,7 @@ function updateMaps(){
if(percent==undefined) percent = 10; if(percent==undefined) percent = 10;
$.ajax({ $.ajax({
url: "/RIR/index.php/observatorio/MapUpdateLat/", url: "/resiliencia/index.php/observatorio/MapUpdateLat/",
data: { 'eje_x': 'latitude', data: { 'eje_x': 'latitude',
'eje_y' : $('#mapejey').val(), 'eje_y' : $('#mapejey').val(),
'tbl' : $('#tbl_encuesta').val(), 'tbl' : $('#tbl_encuesta').val(),
...@@ -1191,7 +1191,7 @@ function updateMaps(){ ...@@ -1191,7 +1191,7 @@ function updateMaps(){
}); });
}else{ }else{
$.ajax({ $.ajax({
url: "/RIR/index.php/observatorio/MapUpdate/", url: "/resiliencia/index.php/observatorio/MapUpdate/",
data: { 'eje_x': 'estado', data: { 'eje_x': 'estado',
'eje_y' : $('#mapejey').val(), 'eje_y' : $('#mapejey').val(),
'tbl' : $('#tbl_encuesta').val(), 'tbl' : $('#tbl_encuesta').val(),
...@@ -1423,7 +1423,7 @@ function removeY(id){ ...@@ -1423,7 +1423,7 @@ function removeY(id){
function orderCategory(){ function orderCategory(){
$.ajax({ $.ajax({
url: "/RIR/index.php/observatorio/CategoriaSort/", url: "/resiliencia/index.php/observatorio/CategoriaSort/",
data: { 'order': $('#order_docs').val(), data: { 'order': $('#order_docs').val(),
'sort' : $('#sort_docs').val(), 'sort' : $('#sort_docs').val(),
'id_tipo': $('#tipo_documento').val() }, 'id_tipo': $('#tipo_documento').val() },
...@@ -1448,7 +1448,7 @@ function orderCategory(){ ...@@ -1448,7 +1448,7 @@ function orderCategory(){
function resumeBox(id){ function resumeBox(id){
$.ajax({ $.ajax({
url: "/RIR/index.php/observatorio/obtenerResumen/", url: "/resiliencia/index.php/observatorio/obtenerResumen/",
data: { 'id': id }, data: { 'id': id },
success: function(data){ success: function(data){
if(data.check==0) if(data.check==0)
......
...@@ -16,7 +16,7 @@ $(document).ready(function(){ ...@@ -16,7 +16,7 @@ $(document).ready(function(){
}); });
function orderDocuments(){ function orderDocuments(){
$.ajax({ $.ajax({
url: "/RIR/index.php/site/UpdateDocument/", url: "/resiliencia/index.php/site/UpdateDocument/",
data: { 'order': $('#order_docs').val(), data: { 'order': $('#order_docs').val(),
'sort' : $('#sort_docs').val(), 'sort' : $('#sort_docs').val(),
'id_tipo': $('#tipo_documento').val() }, 'id_tipo': $('#tipo_documento').val() },
...@@ -37,7 +37,7 @@ function orderDocuments(){ ...@@ -37,7 +37,7 @@ function orderDocuments(){
} }
function downloaded(id){ function downloaded(id){
$.ajax({ $.ajax({
url: "/RIR/index.php/site/DownloadedFile/", url: "/resiliencia/index.php/site/DownloadedFile/",
data: { 'id': id }, data: { 'id': id },
success: function(data){ success: function(data){
console.log(data.check); console.log(data.check);
......
...@@ -7,9 +7,9 @@ date_default_timezone_set('America/Mexico_City'); ...@@ -7,9 +7,9 @@ date_default_timezone_set('America/Mexico_City');
class baseDeDatosVisita{ class baseDeDatosVisita{
public function connectDBBDD(){ public function connectDBBDD(){
$servername = "localhost"; $servername = "localhost";
$username = "root"; $username = "sec_user";
$password = "PkJXPQFykKLmS3cWhqmZKNYE"; $password = "Resilencia19@";
$dbname = "RIR"; $dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname); $conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8"); $conn->set_charset("utf8");
if ($conn->connect_error) { if ($conn->connect_error) {
...@@ -282,10 +282,10 @@ class baseDeDatosVisita{ ...@@ -282,10 +282,10 @@ class baseDeDatosVisita{
} }
public function readtableDB17(){ public function readtableDB17(){
$conn = $this->connectDBBDD(); $conn = $this->connectDBBDD();
$res = mysqli_query($conn,"SELECT COUNT(id) FROM tbl_registro_general WHERE site NOT LIKE '%/RIR/index.php/panel/%' AND (date >= '".date('Y-m-d', strtotime('now'))." 00:00:00' AND date <= '".date('Y-m-d', strtotime('now'))." 23:59:59');"); $res = mysqli_query($conn,"SELECT COUNT(id) FROM tbl_registro_general WHERE site NOT LIKE '%/resiliencia/index.php/panel/%' AND (date >= '".date('Y-m-d', strtotime('now'))." 00:00:00' AND date <= '".date('Y-m-d', strtotime('now'))." 23:59:59');");
$res2 = mysqli_query($conn,"SELECT COUNT(id) FROM tbl_registro_general WHERE site NOT LIKE '%/RIR/index.php/panel/%' AND (date >= '".date('Y-m-d', strtotime('-1 week'))." 00:00:00' AND date <= '".date('Y-m-d', strtotime('now'))." 23:59:59');"); $res2 = mysqli_query($conn,"SELECT COUNT(id) FROM tbl_registro_general WHERE site NOT LIKE '%/resiliencia/index.php/panel/%' AND (date >= '".date('Y-m-d', strtotime('-1 week'))." 00:00:00' AND date <= '".date('Y-m-d', strtotime('now'))." 23:59:59');");
echo ((mysqli_fetch_array($res)[0])*100)/(mysqli_fetch_array($res2)[0]/6); echo ((mysqli_fetch_array($res)[0])*100)/(mysqli_fetch_array($res2)[0]/6);
//echo mysqli_fetch_array($res)[0].","."SELECT COUNT(id) FROM tbl_registro_general WHERE site NOT LIKE '%/RIR/index.php/panel/%' AND (date >= '".date('Y-m-d', strtotime('now'))." 00:00:00' AND date <= '".date('Y-m-d', strtotime('now'))." 23:59:59');"; //echo mysqli_fetch_array($res)[0].","."SELECT COUNT(id) FROM tbl_registro_general WHERE site NOT LIKE '%/resiliencia/index.php/panel/%' AND (date >= '".date('Y-m-d', strtotime('now'))." 00:00:00' AND date <= '".date('Y-m-d', strtotime('now'))." 23:59:59');";
//echo rand(0,100); //echo rand(0,100);
die(); die();
//$conn->close(); //$conn->close();
...@@ -298,7 +298,7 @@ class baseDeDatosVisita{ ...@@ -298,7 +298,7 @@ class baseDeDatosVisita{
$dia = ""; $dia = "";
$diaux = ""; $diaux = "";
$total = 1; $total = 1;
$res = mysqli_query($conn,"SELECT date,time,site FROM tbl_registro_general WHERE (site LIKE '%/RIR/index.php/panel/%') AND (date >= '".date('Y-m-d', strtotime('-1 year'))." 00:00:00' AND date <= '".date('Y-m-d', strtotime('now'))." 23:59:59') ORDER BY tbl_registro_general.date ASC LIMIT 0,100000;"); $res = mysqli_query($conn,"SELECT date,time,site FROM tbl_registro_general WHERE (site LIKE '%/resiliencia/index.php/panel/%') AND (date >= '".date('Y-m-d', strtotime('-1 year'))." 00:00:00' AND date <= '".date('Y-m-d', strtotime('now'))." 23:59:59') ORDER BY tbl_registro_general.date ASC LIMIT 0,100000;");
echo "["; echo "[";
while($cRow = mysqli_fetch_array($res)){ while($cRow = mysqli_fetch_array($res)){
$a++; $a++;
...@@ -325,7 +325,7 @@ class baseDeDatosVisita{ ...@@ -325,7 +325,7 @@ class baseDeDatosVisita{
$dia = ""; $dia = "";
$diaux = ""; $diaux = "";
$total = 1; $total = 1;
$res = mysqli_query($conn,"SELECT date,time,site FROM tbl_registro_general WHERE (site = '/RIR/') AND (date >= '".date('Y-m-d', strtotime('-1 year'))." 00:00:00' AND date <= '".date('Y-m-d', strtotime('now'))." 23:59:59') ORDER BY tbl_registro_general.date ASC LIMIT 0,100000;"); $res = mysqli_query($conn,"SELECT date,time,site FROM tbl_registro_general WHERE (site = '/resiliencia/') AND (date >= '".date('Y-m-d', strtotime('-1 year'))." 00:00:00' AND date <= '".date('Y-m-d', strtotime('now'))." 23:59:59') ORDER BY tbl_registro_general.date ASC LIMIT 0,100000;");
echo "["; echo "[";
while($cRow = mysqli_fetch_array($res)){ while($cRow = mysqli_fetch_array($res)){
$a++; $a++;
...@@ -352,7 +352,7 @@ class baseDeDatosVisita{ ...@@ -352,7 +352,7 @@ class baseDeDatosVisita{
$dia = ""; $dia = "";
$diaux = ""; $diaux = "";
$total = 1; $total = 1;
$res = mysqli_query($conn,"SELECT date,time,site FROM tbl_registro_general WHERE (site NOT LIKE '%/RIR/index.php/panel/%') AND (date >= '".date('Y-m-d', strtotime('-1 year'))." 00:00:00' AND date <= '".date('Y-m-d', strtotime('now'))." 23:59:59') ORDER BY tbl_registro_general.date ASC LIMIT 0,100000;"); $res = mysqli_query($conn,"SELECT date,time,site FROM tbl_registro_general WHERE (site NOT LIKE '%/resiliencia/index.php/panel/%') AND (date >= '".date('Y-m-d', strtotime('-1 year'))." 00:00:00' AND date <= '".date('Y-m-d', strtotime('now'))." 23:59:59') ORDER BY tbl_registro_general.date ASC LIMIT 0,100000;");
echo "["; echo "[";
while($cRow = mysqli_fetch_array($res)){ while($cRow = mysqli_fetch_array($res)){
$a++; $a++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment