Пример #1
0
 public function grilla_informativo($p)
 {
     $obj = new Main();
     //        $obj->table = $p['table'];
     ////        $obj->criterio = $p['criterio1'];
     //        $obj->criterio = $p['criterio'];
     //        $obj->filtro = $p['filtro'];
     //        $obj->filtro1 = $p['filtro1'];
     $data = array();
     $data['rows'] = $obj->getDatos_web_informativo();
     $data['rows2'] = $obj->getDatos_web_evento();
     $data['rows3'] = $obj->getDatos_web_noticias();
     $data['rows4'] = $obj->getDatos_web_contenido();
     $data['rows5'] = $obj->getDatos_web_desarrolladores();
     $data['name'] = $p['name'];
     $data['id'] = $p['id'];
     $data['code'] = $p['code'];
     $data['disabled'] = $p['disabled'];
     $view = new View();
     $view->setData($data);
     $view->setTemplate('../contenido.php');
     return $view->renderPartial();
 }
Пример #2
0
<?php

include 'lib/dbfactory.php';
include 'model/Main.php';
$obj = new Main();
$data = array();
$data['rows'] = $obj->getDatos_web_informativo();
$data['rows2'] = $obj->getDatos_web_evento();
$data['rows3'] = $obj->getDatos_web_noticias();
$data['rows4'] = $obj->getDatos_web_contenido();
$data['rows5'] = $obj->getDatos_web_desarrolladores();
$data['name'] = $p['name'];
$data['id'] = $p['id'];
$data['code'] = $p['code'];
$data['disabled'] = $p['disabled'];
?>
<script>
    $(function () {
        $("#cambio_contrasena").dialog({
            autoOpen: false,
            width: 400,
              show: {
                effect: "blind",
                duration: 1000
              },
              hide: {
                effect: "explode",
                duration: 1000
              },
      
            buttons: [