<?php require "GlobalSche.php"; set_include_dir(dirname(__FILE__) . "/../../Framework/Extensions/xajax/-"); if (empty($_POST) && !$_GET["oDataRequest"]) { require 'Extensions/wGui/wGui.includes.php'; } include 'xajax_core/xajax.inc.php'; require_once "Extensions/wGui/wUI.php"; require_once "gspanel_class.php"; $xajax = new xajax(); $FormWindow = new wWindow("FormWindow"); $FormWindow->title = "Tareas Definidas"; $FormWindow->setCSS("width", "900px"); $FormWindow->type = WINDOW . FIXED; $GSPAnel = new GSControlPanel($FormWindow, "Tareas", "gtask"); $GSPAnel->addTab("Pasos", "gstep", "gtask_id"); if (empty($_POST) && !$_GET["oDataRequest"]) { $FormWindow->render(); $xajax->printJavascript($SYS["ROOT"] . "/Framework/Extensions/xajax"); } else { if ($_GET["oDataRequest"]) { $GSPAnel->aj_RequestData($_GET["instance"]); } else { $xajax->processRequest(); } }
$FormWindow->setCSS("width", "1100px"); $GSPAnel = new GSControlPanel($FormWindow, "Tareas", "gtask"); $GSPAnel->addTab("Pasos", "gstep", "gtask_id"); $TestTaskButton = new wButton("runTestTask", $GSPAnel->aForms[1]->buttonPane); $TestTaskButton->label = "Probar"; $TestTaskButton->addListener("onclick", "runTestTask"); $TestTaskButton->Listener["onclick"]->addParameter(XAJAX_FORM_VALUES, $GSPAnel->aForms[1]->id); /* Programaciones */ $FormWindowSche = new wWindow("FormWindowSche", $mainPanel, false); $FormWindowSche->setCSS("display", "none"); $FormWindowSche->title = "Programaciones Definidas"; $FormWindowSche->setCSS("width", "1100px"); $GSPAnelSche = new GSControlPanel($FormWindowSche, "Planificaciones", "schedule"); /* Hosts */ $FormWindowHost = new wWindow("FormHost", $mainPanel, false); $FormWindowHost->setCSS("display", "none"); $FormWindowHost->title = "Conexiones"; $FormWindowHost->setCSS("width", "1100px"); $GSPAnelScheHost = new GSControlPanel($FormWindowHost, "Conexiones", "ghost"); if (empty($_POST) && !$_GET["oDataRequest"]) { $layout->render(); //$FormWindowSche->render(); $xajax->printJavascript($SYS["ROOT"] . "/Framework/Extensions/xajax"); } else { if ($_GET["oDataRequest"]) { /* Data Request */ if ($_GET["instance"] == "gtask" || $_GET["instance"] == "gstep") { $GSPAnel->aj_RequestData($_GET["instance"]); } else { if ($_GET["instance"] == "schedule") { $GSPAnelSche->aj_RequestData($_GET["instance"]);