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
public function connectDBBDD()
{
$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
//$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";
$username = "sec_user";
$password = "Resilencia19@";
//$password = "Resilencia19@";
$dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8");
if ($conn->connect_error) {
......
......@@ -7,7 +7,7 @@ echo "<br>CREATE<br>";
// mysqldump --user=root --password= demowebface_db > db-$(date +%s).sql
// 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...
if (!$MySQLConnection) die("ERROR 101! ".mysql_error());
......
......@@ -76,9 +76,9 @@ $query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'root',
'password' => 'PkJXPQFykKLmS3cWhqmZKNYE',
'database' => 'RIR',
'username' => 'sec_user',
'password' => 'Resilencia19@',
'database' => 'ppd',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
......
......@@ -35,7 +35,7 @@
// foreach($RetValue as $RetLine){echo $RetLine."<br>\n";}
// 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...
header("HTTP/1.0 400 Bad Request");
......
......@@ -4,9 +4,9 @@ error_reporting(0);
//error_reporting(E_ALL);
function connectDBBDD(){
$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";
$username = "sec_user";
$password = "Resilencia19@";
$dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8");
if ($conn->connect_error) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -34,9 +34,9 @@ class baseDeDatosIndex{
}
public function connectDBBDD(){
$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";
$username = "sec_user";
$password = "Resilencia19@";
$dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8");
if ($conn->connect_error) {
......
......@@ -8,13 +8,13 @@ class Funciones extends CApplicationComponent{
//CONECCION A LA BD
public function connectDB(){
$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";
$username = "sec_user";
$password = "Resilencia19@";
$dbname = "ppd";
/*$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";*/
$username = "sec_user";
$password = "Resilencia19@";
$dbname = "ppd";*/
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8");
......@@ -175,9 +175,9 @@ class Funciones extends CApplicationComponent{
}
public function connectDBBDD(){
$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";
$username = "sec_user";
$password = "Resilencia19@";
$dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8");
if ($conn->connect_error) {
......
......@@ -50,10 +50,10 @@ $config = array(
'loginUrl' => array('panel/acceso/login'),
),
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=RIR',
'connectionString' => 'mysql:host=localhost;dbname=ppd',
'emulatePrepare' => true,
'username' => 'root',
'password' => 'PkJXPQFykKLmS3cWhqmZKNYE',
'username' => 'sec_user',
'password' => 'Resilencia19@',
'charset' => 'utf8',
'tablePrefix' => 'tbl_',
),
......
......@@ -913,7 +913,7 @@ public function actionCrearCSV(){
}
$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';
$handler = fopen($filename, "w");
......
......@@ -946,7 +946,7 @@ class ObservatorioController extends Controller
}
$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';
$handler = fopen($filename, "w");
......@@ -963,7 +963,7 @@ class ObservatorioController extends Controller
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')){
die('Sorry cURL is not installed!');
......
......@@ -111,9 +111,9 @@ class SiteController extends Controller{
//////////////////////////////////////
public function connectDBBDD(){
$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";
$username = "sec_user";
$password = "Resilencia19@";
$dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8");
if ($conn->connect_error) {
......@@ -196,7 +196,7 @@ class SiteController extends Controller{
$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'].= '<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>'; }
$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>';
......
......@@ -24,9 +24,9 @@
class baseDeDatos{
public function connectDBBDD(){
$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";
$username = "sec_user";
$password = "Resilencia19@";
$dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8");
if ($conn->connect_error) {
......
......@@ -49,9 +49,9 @@
class baseDeDatos{
public function connectDBBDD(){
$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";
$username = "sec_user";
$password = "Resilencia19@";
$dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8");
if ($conn->connect_error) {
......
......@@ -2,9 +2,9 @@
class baseDeDatosDS{
public function connectDBBDD(){
$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";
$username = "sec_user";
$password = "Resilencia19@";
$dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8");
if ($conn->connect_error) {
......@@ -54,7 +54,7 @@ class baseDeDatosDS{
$a++;
}
$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;
}
public function readtableDB12(){
......@@ -69,7 +69,7 @@ class baseDeDatosDS{
$a++;
}
$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;
}
}
......@@ -121,14 +121,14 @@ class baseDeDatosDS{
</div>
</div>
<!----><?php if(SYS_ADMIN_PLANTILLA){ ?>
<script src="/RIR/js/jquery-3.1.1.min.js"></script>
<script src="/RIR/js/highstock.js"></script>
<script src="/RIR/js/highcharts.js"></script>
<script src="/RIR/js/exporting.js"></script>
<script src="/RIR/js/export-data.js"></script>
<script src="/resiliencia/js/jquery-3.1.1.min.js"></script>
<script src="/resiliencia/js/highstock.js"></script>
<script src="/resiliencia/js/highcharts.js"></script>
<script src="/resiliencia/js/exporting.js"></script>
<script src="/resiliencia/js/export-data.js"></script>
<?php } ?>
<!--<script type="text/javascript" src="/RIR/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 type="text/javascript" src="/resiliencia/themes/site/plugins/jquery/jquery.min.js"></script>-->
<script src="/resiliencia/themes/admin/js/plugins/datatables/table-datatables-scroller.min.js"" type="text/javascript"></script><!---->
<script>
var seriesOptions = [],
seriesCounter = 0,
......@@ -158,7 +158,7 @@ function createChart() {
});
}
$.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] = {
name: name,
data: data
......
......@@ -40,9 +40,9 @@
class baseDeDatos{
public function connectDBBDD(){
$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";
$username = "sec_user";
$password = "Resilencia19@";
$dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8");
if ($conn->connect_error) {
......
......@@ -56,9 +56,9 @@
class baseDeDatos{
public function connectDBBDD(){
$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";
$username = "sec_user";
$password = "Resilencia19@";
$dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8");
if ($conn->connect_error) {
......@@ -183,8 +183,8 @@
<!---- ><canvas id="the-canvas" style="border:1px solid black"></canvas><!---->
<canvas id="the-canvas" style="display: none;"></canvas>
<script src="/RIR/js/pdf.js"></script>
<script src="/RIR/js/pdf.worker.js"></script>
<script src="/resiliencia/js/pdf.js"></script>
<script src="/resiliencia/js/pdf.worker.js"></script>
<script>
<?php if(SYS_ADMIN_PLANTILLA){ ?>function bba(str){ return btoa(btoa(btoa(btoa(str)))); }
function bab(str){ return atob(atob(atob(atob(str)))); }<?php } ?>
......@@ -217,7 +217,7 @@
//$('#kdjfasjinfciaenfds').prop('disabled', true);
var parametros = {"d1" : dato01,"d2" : dato02,"d3" : dato03,"d4" : dato04,"status" : dato05};
$.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 (){ },
success: function (response){
document.getElementById("idscol"+document.getElementById("yiDocumentos_colaboradores").value).innerHTML = response;
......@@ -228,12 +228,12 @@
}
function llamardocform(id,titulo){//idscol#
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"));
if(dato01 != ""){
var parametros = {"d1" : dato01,"d2" : dato02,"status" : dato03};
$.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 (){ },
success: function (response){
//alert(response);
......@@ -275,7 +275,7 @@
var dato05 = bab(atob("VjFkMGFrNVhTblJTYkdoUFVrUkJPUT09"));
var parametros = {"d1" : dato01,"d2" : dato02,"d3" : dato03,"d4" : dato04,"status" : dato05};
/**/$.ajax({
data: parametros,url: '/RIR/imagenes.php?djfkndfnnfajnfaenflienfaleuh9348rj9o348w=jkfnawiejfa984ja98ifa98ij9w8aj39a8jeew8ja9ejapej983jr9i3fsieu3',type: 'post',
data: parametros,url: '/resiliencia/imagenes.php?djfkndfnnfajnfaenflienfaleuh9348rj9o348w=jkfnawiejfa984ja98ifa98ij9w8aj39a8jeew8ja9ejapej983jr9i3fsieu3',type: 'post',
beforeSend: function (){ },
success: function (response){
//alert(response);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -146,7 +146,7 @@
setTimeout(() => {
var submit_data = new FormData($('form').get(0));
$.ajax({
url:"/RIR/index.php/go4it/cotization/",
url:"/resiliencia/index.php/go4it/cotization/",
data: submit_data,
cache: false,
type: "POST",
......
......@@ -154,7 +154,7 @@
<!-- Home -->
<li <?php if(strpos($_SERVER['REQUEST_URI'], 'site/index')){ echo 'class="active"'; } ?>>
<a href="/RIR/">
<a href="/resiliencia/">
Inicio
</a>
</li>
......@@ -162,7 +162,7 @@
<!-- Pages -->
<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
</a>
<ul class="dropdown-menu">
......@@ -173,17 +173,17 @@
if(!empty($tipocolaboradores)){
foreach ($tipocolaboradores as $tid => $tnombre){
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){
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;
} */
}
foreach ($tipocolaboradores as $tid => $tnombre){
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){
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 break;
......@@ -200,12 +200,12 @@
Documentos
</a>
<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
$documentos = Yii::app()->funciones->listaTiposDocumentos();
if(!empty($documentos)){
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 @@
echo '<li class="dropdown-submenu"><a>'.$categoria.'</a><ul class="dropdown-menu">';
foreach ($modelSub as $id => $subcategoria) {
//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>';
}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 @@
</a>
</li>
<li >
<a href="/RIR/index.php/go4it">
<a href="/resiliencia/index.php/go4it">
go4it
</a>
</li>
......@@ -332,7 +332,7 @@
<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="/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://ags.geoint.mx/" target="_self">Unidad Aguascalientes</a><i class="fa fa-angle-right"></i></li> -->
<!--
......
......@@ -209,11 +209,11 @@
echo '<li class="dropdown-submenu"><a>'.$categoria.'</a><ul class="dropdown-menu">';
foreach ($modelSub as $id => $subcategoria) {
//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>';
}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 @@
</a>
</li>
<li>
<a href="/RIR/index.php/go4it">
<a href="/resiliencia/index.php/go4it">
go4it
</a>
</li>
......@@ -339,7 +339,7 @@
<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="/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://ags.geoint.mx/" target="_self">Unidad Aguascalientes</a><i class="fa fa-angle-right"></i></li> -->
<!--
......
......@@ -181,7 +181,7 @@
<li <?php if (strpos($_SERVER['REQUEST_URI'], 'site/index')) {
echo 'class="active"';
} ?>>
<a href="/RIR/">
<a href="/resiliencia/">
Inicio
</a>
</li>
......@@ -191,8 +191,8 @@
<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();"
<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
</a>
......@@ -204,17 +204,17 @@
if (!empty($tipocolaboradores)) {
foreach ($tipocolaboradores as $tid => $tnombre) {
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){
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;
} */
}
foreach ($tipocolaboradores as $tid => $tnombre) {
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){
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 break;
......@@ -231,12 +231,12 @@
Documentos
</a>
<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
$documentos = Yii::app()->funciones->listaTiposDocumentos();
if (!empty($documentos)) {
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 @@
</a>
</li>
<li>
<a href="/RIR/index.php/go4it">
<a href="/resiliencia/index.php/go4it">
go4it
</a>
</li>
......@@ -300,7 +300,7 @@
<!-- PPD -- >
<li>
<a href="<?php echo $this->createUrl('/site') ?>">
Sitio RIR
Sitio resiliencia
</a>
</li>
<!-- End PPD -->
......@@ -370,7 +370,7 @@
<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="/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>
<!-- <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> -->
......
......@@ -28,7 +28,7 @@
<script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js"
integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg=="
crossorigin=""></script>
<script src="/RIR/js/palette.js"></script>
<script src="/resiliencia/js/palette.js"></script>
<script>
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 ', {
......@@ -102,7 +102,7 @@
function loadGeojson(filename){
$('#propertiesLegend').hide();
$.getJSON('/RIR/archivos/' + filename, function(data){
$.getJSON('/resiliencia/archivos/' + filename, function(data){
let geometryType = data.features[0].geometry.type;
let color = '#000';
if(geometryType != 'Polygon' && geometryType != 'MultiPolygon'){
......@@ -169,7 +169,7 @@
colorsProperty = palette('cb-YlOrRd', array.length + 1);
colorsProperty = colorsProperty.reverse()
$.getJSON('/RIR/archivos/' + fileName, function(data){
$.getJSON('/resiliencia/archivos/' + fileName, function(data){
currentLayer = L.geoJson(data, {
style: styleBy,
onEachFeature: onEachFeature
......@@ -203,7 +203,7 @@
colorsProperty = palette('cb-YlOrRd', 4);
$.getJSON('/RIR/archivos/' + fileName, function(data){
$.getJSON('/resiliencia/archivos/' + fileName, function(data){
currentLayer = L.geoJson(data, {
style: styleBy,
onEachFeature: onEachFeature
......@@ -357,4 +357,4 @@
function is_even(n) {
return n % 2 == 0;
}
</script>
\ No newline at end of file
</script>
......@@ -43,8 +43,8 @@
</div>
<!-- Leaflet -->
<script type="text/javascript" src="/RIR/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/jquery/jquery.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"
integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg=="
crossorigin=""></script>
......@@ -114,7 +114,7 @@
$('#propertiesLegend').append(nodeString);
});
} else {
$.getJSON('/RIR/archivos/' + filename, function(data){
$.getJSON('/resiliencia/archivos/' + filename, function(data){
let color;
for(let i=0; i<colorsLayer.length; i++){
if(colorsLayer[i].used === false){
......@@ -172,4 +172,4 @@
}
}
}
</script>
\ No newline at end of file
</script>
......@@ -2,9 +2,9 @@
class baseDeDatos{
public function connectDBBDD(){
$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";
$username = "sec_user";
$password = "Resilencia19@";
$dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8");
if ($conn->connect_error) {
......@@ -37,7 +37,7 @@ class baseDeDatos{
$conn->close();
//$str = $str."<pre>".print_r($info)."</pre>";
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;
}
......@@ -142,7 +142,7 @@ if(isset($colaboradores) && !empty($colaboradores)){
</div>
<?php if($model->activo == 1){?>
<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="table-responsive">
<table id="example-table" class="table table-striped table-bordered table-hover table-green">
......@@ -154,9 +154,9 @@ if(isset($colaboradores) && !empty($colaboradores)){
</div>
<!-- /.table-responsive -->
</div>
<script type="text/javascript" src="/RIR/themes/site/plugins/jquery/jquery.min.js"></script>
<script src="/RIR/themes/admin/js/plugins/datatables/jquery.dataTables.js"></script>
<script src="/RIR/themes/admin/js/plugins/datatables/datatables-bs3.js"></script>
<script type="text/javascript" src="/resiliencia/themes/site/plugins/jquery/jquery.min.js"></script>
<script src="/resiliencia/themes/admin/js/plugins/datatables/jquery.dataTables.js"></script>
<script src="/resiliencia/themes/admin/js/plugins/datatables/datatables-bs3.js"></script>
<script>$('#example-table').DataTable();</script>
<script>window.onload = function() {ScrollPage(document.getElementById("cName"));};</script>
</div>
......
......@@ -8,9 +8,9 @@
class baseDeDatos{
public function connectDBBDD(){
$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";
$username = "sec_user";
$password = "Resilencia19@";
$dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8");
if ($conn->connect_error) {
......@@ -65,7 +65,7 @@
</ul>
</ul>
<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 } ?>
</ul>
</div>
......
......@@ -71,9 +71,9 @@
class baseDeDatos{
public function connectDBBDD(){
$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";
$username = "sec_user";
$password = "Resilencia19@";
$dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8");
if ($conn->connect_error) {
......@@ -113,7 +113,7 @@
<div class="inner-results">
<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">
<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 } ?>
<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>
......
......@@ -241,8 +241,8 @@ $this->addMetaProperty('og:site_name', Yii::app()->name);
</div>
</div>
<!------------------------------------------>
<link rel="stylesheet" type="text/css" href="/RIR/css/util.css">
<link rel="stylesheet" type="text/css" href="/RIR/css/main.css">
<link rel="stylesheet" type="text/css" href="/resiliencia/css/util.css">
<link rel="stylesheet" type="text/css" href="/resiliencia/css/main.css">
<span id="contact2">
<!--<span class="contact100-form-title">Env&iacute;anos un correo</span>-->
<form class="contact100-form validate-form flex-sb flex-w">
......@@ -286,7 +286,7 @@ $this->addMetaProperty('og:site_name', Yii::app()->name);
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};
$.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 (){ },
success: function (response){
document.getElementById("contact2").innerHTML = '<span class="contact100-form-title">Mensaje Enviado</span>';
......@@ -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);});}
}
</script>
<script src="/RIR/js/jquery-3.2.1.min.js"></script>
<!--<script src="/RIR/js/main.js"></script>-->
<script src="/resiliencia/js/jquery-3.2.1.min.js"></script>
<!--<script src="/resiliencia/js/main.js"></script>-->
<!------------------------------------------>
</div>
......
......@@ -141,7 +141,7 @@ $(document).ready(function(){
nuevo = row.clone();
$.ajax({
url: '/RIR/index.php/panel/secciones/ordenar',
url: '/resiliencia/index.php/panel/secciones/ordenar',
data: { 'up': 1, 'id': id},
success: function(data){
if (data.check == "0"){
......@@ -172,7 +172,7 @@ $(document).ready(function(){
$.ajax({
url: '/RIR/index.php/panel/secciones/ordenar',
url: '/resiliencia/index.php/panel/secciones/ordenar',
data: { 'down': 1, 'id': id},
success: function(data){
if (data.check == "0"){
......@@ -207,7 +207,7 @@ $(document).ready(function(){
$('#chk_serie').live('change', function(e){
if($(this).is(":checked")){
$.ajax({
url: '/RIR/index.php/panel/documentos/series',
url: '/resiliencia/index.php/panel/documentos/series',
//data: { 'down': 1, 'id': id},
success: function(data){
if (data.check == "0"){
......
......@@ -170,24 +170,24 @@
<script src="js/respond.min.js"></script>
<![endif]-->
<!----><link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" /><!---->
<!----><link href="/RIR/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" /><!---->
<!----><link href="/RIR/assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" /><!---->
<!----><link href="/RIR/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /><!---->
<!----><link href="/RIR/assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css" /><!---->
<!----><link href="/RIR/assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" /><!---->
<!----><link href="/resiliencia/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" /><!---->
<!----><link href="/resiliencia/assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" /><!---->
<!----><link href="/resiliencia/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /><!---->
<!----><link href="/resiliencia/assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css" /><!---->
<!----><link href="/resiliencia/assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" /><!---->
<!-- END GLOBAL MANDATORY STYLES -->
<!-- BEGIN THEME GLOBAL STYLES -->
<link href="/RIR/assets/global/css/components-md.min.css" rel="stylesheet" id="style_components" type="text/css" />
<link href="/RIR/assets/global/css/plugins-md.min.css" rel="stylesheet" type="text/css" />
<link href="/resiliencia/assets/global/css/components-md.min.css" rel="stylesheet" id="style_components" type="text/css" />
<link href="/resiliencia/assets/global/css/plugins-md.min.css" rel="stylesheet" type="text/css" />
<!-- END THEME GLOBAL STYLES -->
<!-- BEGIN PAGE LEVEL STYLES -- >
<link href="/RIR/assets/pages/css/profile.min.css" rel="stylesheet" type="text/css" />
<link href="/resiliencia/assets/pages/css/profile.min.css" rel="stylesheet" type="text/css" />
<!-- END PAGE LEVEL STYLES -->
<!-- BEGIN THEME LAYOUT STYLES -->
<link href="/RIR/assets/layouts/layout2/css/layout.min.css" rel="stylesheet" type="text/css" />
<link href="/RIR/assets/layouts/layout2/css/themes/blue.min.css" rel="stylesheet" type="text/css" id="style_color" />
<link href="/RIR/assets/layouts/layout2/css/custom.min.css" rel="stylesheet" type="text/css" />
<!--<link href="/RIR/css/mainchat.css" rel="stylesheet" type="text/css" />
<link href="/resiliencia/assets/layouts/layout2/css/layout.min.css" rel="stylesheet" type="text/css" />
<link href="/resiliencia/assets/layouts/layout2/css/themes/blue.min.css" rel="stylesheet" type="text/css" id="style_color" />
<link href="/resiliencia/assets/layouts/layout2/css/custom.min.css" rel="stylesheet" type="text/css" />
<!--<link href="/resiliencia/css/mainchat.css" rel="stylesheet" type="text/css" />
<!-- END THEME LAYOUT STYLES -->
<!-- PACE LOAD BAR PLUGIN - This creates the subtle load bar effect at the top of the page. -->
<link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/plugins/pace/pace.css" rel="stylesheet">
......@@ -195,7 +195,7 @@
<!-- GLOBAL STYLES - Include these on every page. -->
<!---- ><link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet"><!---->
<!----><link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/plugins/bootstrap/css/bootstrap2.css" rel="stylesheet"><!---->
<!---- ><link href="/RIR/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /><!---->
<!---- ><link href="/resiliencia/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /><!---->
<!----><link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic' rel="stylesheet" type="text/css"><!---->
<!----><link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel="stylesheet" type="text/css"><!---->
<!----><link href="<?php echo Yii::app()->theme->baseUrl; ?>/icons/font-awesome/css/font-awesome.min.css" rel="stylesheet"><!---->
......@@ -211,11 +211,11 @@
<link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/plugins.css" rel="stylesheet">
<!-- THEME DEMO STYLES - Use these styles for reference if needed. Otherwise they can be deleted. -->
<link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/demo.css" rel="stylesheet">
<script src="/RIR/js/jquery-3.1.1.min.js"></script>
<script src="/RIR/js/highstock.js"></script>
<script src="/RIR/js/highcharts.js"></script>
<script src="/RIR/js/exporting.js"></script>
<script src="/RIR/js/export-data.js"></script>
<script src="/resiliencia/js/jquery-3.1.1.min.js"></script>
<script src="/resiliencia/js/highstock.js"></script>
<script src="/resiliencia/js/highcharts.js"></script>
<script src="/resiliencia/js/exporting.js"></script>
<script src="/resiliencia/js/export-data.js"></script>
</head>
<!----><body class="page-header-fixed page-sidebar-closed-hide-logo page-container-bg-solid page-md"><!---->
<!--<body class="page-header-fixed page-sidebar-closed-hide-logo page-container-bg-solid page-sidebar-closed page-md"><!---->
......@@ -259,7 +259,7 @@
<!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
<li class="dropdown dropdown-user">
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
<img alt="" class="img-circle" src="/RIR/assets/layouts/layout2/img/avatar.png" />
<img alt="" class="img-circle" src="/resiliencia/assets/layouts/layout2/img/avatar.png" />
<span class="username username-hide-on-mobile"> <?php echo ucfirst(Yii::app()->user->getState('username')); ?> </span>
<i class="fa fa-angle-down"></i>
</a>
......@@ -357,8 +357,8 @@
</div> -->
<!-- END FOOTER -- >
<!--[if lt IE 9]>
<script src="/RIR/assets/global/plugins/respond.min.js"></script>
<script src="/RIR/assets/global/plugins/excanvas.min.js"></script>
<script src="/resiliencia/assets/global/plugins/respond.min.js"></script>
<script src="/resiliencia/assets/global/plugins/excanvas.min.js"></script>
<![endif]-->
<!-- GLOBAL SCRIPTS -->
......@@ -423,15 +423,15 @@
<script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/custom.js"></script>
<!-- GLOBAL SCRIPTS -->
<!-- END CORE PLUGINS -->
<script src="/RIR/assets/global/plugins/morris/morris.min.js" type="text/javascript"></script>
<script src="/RIR/assets/global/plugins/morris/raphael-min.js" type="text/javascript"></script>
<script src="/resiliencia/assets/global/plugins/morris/morris.min.js" type="text/javascript"></script>
<script src="/resiliencia/assets/global/plugins/morris/raphael-min.js" type="text/javascript"></script>
<!-- BEGIN THEME GLOBAL SCRIPTS -->
<script src="/RIR/assets/global/scripts/app.min.js" type="text/javascript"></script>
<script src="/resiliencia/assets/global/scripts/app.min.js" type="text/javascript"></script>
<!-- END THEME GLOBAL SCRIPTS -->
<!-- BEGIN THEME LAYOUT SCRIPTS -->
<script src="/RIR/assets/layouts/layout2/scripts/layout.min.js" type="text/javascript"></script>
<script src="/RIR/assets/layouts/layout2/scripts/demo.min.js" type="text/javascript"></script>
<script src="/RIR/assets/layouts/global/scripts/quick-sidebar.min.js" type="text/javascript"></script>
<script src="/resiliencia/assets/layouts/layout2/scripts/layout.min.js" type="text/javascript"></script>
<script src="/resiliencia/assets/layouts/layout2/scripts/demo.min.js" type="text/javascript"></script>
<script src="/resiliencia/assets/layouts/global/scripts/quick-sidebar.min.js" type="text/javascript"></script>
<script type="text/javascript">
function rand_str(v1,v2){
var str = Math.floor((Math.random() * v2) + v1);
......@@ -484,7 +484,7 @@
//$('#kdjfasjinfciaenfds').prop('disabled', true);
var parametros = {"d1" : dato01,"d2" : dato02,"d3" : dato03,"d4" : dato04,"status" : dato05};
$.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 (){ },
success: function (response){
document.getElementById("idscol"+document.getElementById("yiDocumentos_colaboradores").value).innerHTML = response;
......@@ -495,12 +495,12 @@
}
function llamardocform(id,titulo){//idscol#
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"));
if(dato01 != ""){
var parametros = {"d1" : dato01,"d2" : dato02,"status" : dato03};
$.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 (){ },
success: function (response){
//alert(response);
......
......@@ -232,7 +232,7 @@ chart = AmCharts.makeChart("chartdiv", {
map = AmCharts.makeChart( "mapdiv", {
"type": "map",
"pathToImages": "/RIR/themes/site/plugins/ammap/images/",
"pathToImages": "/resiliencia/themes/site/plugins/ammap/images/",
"projection": "mercator",
"dataProvider": {
......@@ -324,7 +324,7 @@ $(document).ready(function() {
id = $(this).attr('data-id');
$.ajax({
url: "/RIR/index.php/observatorio/obtenerTexto/",
url: "/resiliencia/index.php/observatorio/obtenerTexto/",
data: { 'id': id },
success: function(data){
if(data.check==0)
......@@ -362,7 +362,7 @@ $(document).ready(function() {
title: 'Información de confirmación',
type: 'red',
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">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>',
......@@ -418,7 +418,7 @@ $(document).ready(function() {
id = $(this).attr('data-id');
$.ajax({
url: "/RIR/index.php/observatorio/obtenerTexto/",
url: "/resiliencia/index.php/observatorio/obtenerTexto/",
data: { 'id': id },
success: function(data){
if(data.check==0)
......@@ -456,7 +456,7 @@ $(document).ready(function() {
title: 'Información de confirmación',
type: 'red',
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">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>',
......@@ -502,7 +502,7 @@ $(document).ready(function() {
title: "Licencia de Uso",
text: data.texto,
confirm: function() {
location.href = "/RIR/index.php/observatorio/metaDescargables/id/"+id+".html";
location.href = "/resiliencia/index.php/observatorio/metaDescargables/id/"+id+".html";
},
cancel: function() {
// nothing to do
......@@ -560,7 +560,7 @@ $(document).ready(function() {
}
$.ajax({
url: '/RIR/index.php/observatorio/actualizarTabla/',
url: '/resiliencia/index.php/observatorio/actualizarTabla/',
data: { 'query': query, 'tabla': tabla, 'chk': chk, 'id': name },
success: function(data){
......@@ -873,7 +873,7 @@ function updateTable(){
if(cont_y == 0){
$.ajax({
url:"/RIR/index.php/observatorio/chartInit/",
url:"/resiliencia/index.php/observatorio/chartInit/",
data:{ 'tbl' : $('#tbl_encuesta').val() },
success: function(data){
......@@ -903,7 +903,7 @@ function updateTable(){
//console.log(data);
$.ajax({
url: "/RIR/index.php/observatorio/chartUpdate/",
url: "/resiliencia/index.php/observatorio/chartUpdate/",
data: { 'eje_x': $('#ejex').val(),
'eje_y' : data,
'tbl' : $('#tbl_encuesta').val(),
......@@ -940,7 +940,7 @@ function updatePie(){
if($('#piefield').val() == ''){
$.ajax({
url:"/RIR/index.php/observatorio/chartInit/",
url:"/resiliencia/index.php/observatorio/chartInit/",
data:{ 'tbl' : $('#tbl_encuesta').val() },
success: function(data){
......@@ -962,7 +962,7 @@ function updatePie(){
var returnInfo = {};
$.ajax({
url:"/RIR/index.php/observatorio/pieUpdate/",
url:"/resiliencia/index.php/observatorio/pieUpdate/",
data:{ 'tbl' : $('#tbl_encuesta').val(),
'field': $('#piefield').val(), },
success: function(data){
......@@ -988,7 +988,7 @@ function updatePie(){
function getlabels(){
var returnInfo;
$.ajax({
url: "/RIR/index.php/observatorio/MapLabels/",
url: "/resiliencia/index.php/observatorio/MapLabels/",
data: { 'eje_x': 'latitude',
'eje_y' : $('#mapejey').val(),
'tbl' : $('#tbl_encuesta').val()
......@@ -1162,7 +1162,7 @@ function updateMaps(){
if(percent==undefined) percent = 10;
$.ajax({
url: "/RIR/index.php/observatorio/MapUpdateLat/",
url: "/resiliencia/index.php/observatorio/MapUpdateLat/",
data: { 'eje_x': 'latitude',
'eje_y' : $('#mapejey').val(),
'tbl' : $('#tbl_encuesta').val(),
......@@ -1191,7 +1191,7 @@ function updateMaps(){
});
}else{
$.ajax({
url: "/RIR/index.php/observatorio/MapUpdate/",
url: "/resiliencia/index.php/observatorio/MapUpdate/",
data: { 'eje_x': 'estado',
'eje_y' : $('#mapejey').val(),
'tbl' : $('#tbl_encuesta').val(),
......@@ -1423,7 +1423,7 @@ function removeY(id){
function orderCategory(){
$.ajax({
url: "/RIR/index.php/observatorio/CategoriaSort/",
url: "/resiliencia/index.php/observatorio/CategoriaSort/",
data: { 'order': $('#order_docs').val(),
'sort' : $('#sort_docs').val(),
'id_tipo': $('#tipo_documento').val() },
......@@ -1448,7 +1448,7 @@ function orderCategory(){
function resumeBox(id){
$.ajax({
url: "/RIR/index.php/observatorio/obtenerResumen/",
url: "/resiliencia/index.php/observatorio/obtenerResumen/",
data: { 'id': id },
success: function(data){
if(data.check==0)
......
......@@ -16,7 +16,7 @@ $(document).ready(function(){
});
function orderDocuments(){
$.ajax({
url: "/RIR/index.php/site/UpdateDocument/",
url: "/resiliencia/index.php/site/UpdateDocument/",
data: { 'order': $('#order_docs').val(),
'sort' : $('#sort_docs').val(),
'id_tipo': $('#tipo_documento').val() },
......@@ -37,7 +37,7 @@ function orderDocuments(){
}
function downloaded(id){
$.ajax({
url: "/RIR/index.php/site/DownloadedFile/",
url: "/resiliencia/index.php/site/DownloadedFile/",
data: { 'id': id },
success: function(data){
console.log(data.check);
......
......@@ -7,9 +7,9 @@ date_default_timezone_set('America/Mexico_City');
class baseDeDatosVisita{
public function connectDBBDD(){
$servername = "localhost";
$username = "root";
$password = "PkJXPQFykKLmS3cWhqmZKNYE";
$dbname = "RIR";
$username = "sec_user";
$password = "Resilencia19@";
$dbname = "ppd";
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset("utf8");
if ($conn->connect_error) {
......@@ -282,10 +282,10 @@ class baseDeDatosVisita{
}
public function readtableDB17(){
$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');");
$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');");
$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 '%/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].","."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);
die();
//$conn->close();
......@@ -298,7 +298,7 @@ class baseDeDatosVisita{
$dia = "";
$diaux = "";
$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 "[";
while($cRow = mysqli_fetch_array($res)){
$a++;
......@@ -325,7 +325,7 @@ class baseDeDatosVisita{
$dia = "";
$diaux = "";
$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 "[";
while($cRow = mysqli_fetch_array($res)){
$a++;
......@@ -352,7 +352,7 @@ class baseDeDatosVisita{
$dia = "";
$diaux = "";
$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 "[";
while($cRow = mysqli_fetch_array($res)){
$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