Example #1
1
 public static function get_menu_prt($opciones, $tipo_elemento = null)
 {
     if (!DB_Common::$debug_mode) {
         header('content-type: text/xml');
     }
     echo DHTMLX::get_menu($opciones, $tipo_elemento);
 }
Example #2
0
 /**
  * Permite regresar un XML con formato valido para DHTMLX
  * Ultima revision: 2012-02-22
  * Reviso: Martin Tlapa
  * @param type $respuesta
  * @param type $type
  * @param type $sid - ID para CRUD
  * @param type $tid - ID respuesta de CRUD. Ver Data Proceesor en DHTMLX
  * @return type 
  */
 function response_xml($respuesta = null, $type = null, $sid = null, $tid = null)
 {
     $sid = $sid ? $sid : $this->get_id();
     $tid = $tid ? $tid : $sid;
     return DHTMLX::response_xml($respuesta && $type ? $type : $this->get_cmd(), $respuesta && $type ? $respuesta : "", $sid, $tid);
 }
Example #3
0
    $menu[] = "parent=oferta_educativa,id=licenciatura,text=Licenciatura";
    $menu[] = "parent=oferta_educativa,id=maestria,text=Maestria";
    $menu[] = "parent=root,id=instalaciones,text=Instalaciones";
    $menu[] = "parent=root,id=calendario,text=Calendario";
    $menu[] = "parent=root,id=contactanos_root,text=Contactanos";
    $menu[] = "parent=contactanos_root,id=contactanos,text=E-mail de contacto";
    $menu[] = "parent=contactanos_root,id=l_contactanos,text=Listado de contactos";
    if ($_SESSION["auth_tipo_usuario"] == "1") {
        $menu[] = "parent=root,id=developer_root,text=Developer";
        $menu[] = "parent=developer_root,id=hDebug,text=Debug";
        $menu[] = "parent=developer_root,id=privilegios,text=Privilegios";
    }
    $menu[] = "parent=root,id=opciones_root,text=Opciones";
    $menu[] = "parent=opciones_root,id=ch_pass,text=Cambiar contraseña,img=menu/candado.gif";
    $menu[] = "parent=root,id=salir,text=Salir";
    $dhtmlx = new DHTMLX();
    //        $dhtmlx->set_debug_mode();
    $dhtmlx->get_menu_prt($menu);
    exit;
}
if ($_REQUEST["cmd"] == "test") {
    error_reporting(E_ALL);
    ini_set('display_errors', '1');
    new DHTMLX();
    header('content-type: text/xml');
    $dom = new DOMDocument('1.0', 'utf-8');
    $root = $dom->appendChild($dom->createElement("complete"));
    echo $dom->saveXML();
    exit;
}
phpinfo();