printJavascript() public method

This should be used to print the javascript code between the HEAD and /HEAD tags at the top of the page. The javascript code output by this function is dependent on the plugins that are included and the functions that are registered.
public printJavascript ( )
Beispiel #1
0
function _moduleContent(&$smarty, $module_name)
{
    //include elastix framework
    include_once "libs/paloSantoGrid.class.php";
    include_once "libs/paloSantoValidar.class.php";
    include_once "libs/paloSantoConfig.class.php";
    include_once "libs/misc.lib.php";
    include_once "libs/paloSantoForm.class.php";
    include_once "libs/xajax/xajax.inc.php";
    //include module files
    include_once "modules/{$module_name}/configs/default.conf.php";
    include_once "modules/{$module_name}/libs/paloSantoDeleteModule.class.php";
    global $arrConf;
    //include lang local module
    global $arrLangModule;
    $lang = get_language();
    $lang_file = "modules/{$module_name}/lang/{$lang}.lang";
    $base_dir = dirname($_SERVER['SCRIPT_FILENAME']);
    if (file_exists("{$base_dir}/{$lang_file}")) {
        include_once $lang_file;
    } else {
        include_once "modules/{$module_name}/lang/en.lang";
    }
    //folder path for custom templates
    $base_dir = dirname($_SERVER['SCRIPT_FILENAME']);
    $templates_dir = isset($arrConfig['templates_dir']) ? $arrConfig['templates_dir'] : 'themes';
    $local_templates_dir = "{$base_dir}/modules/{$module_name}/" . $templates_dir . '/' . $arrConf['theme'];
    require_once 'libs/paloSantoDB.class.php';
    $pDB_acl = new paloDB($arrConf['elastix_dsn']['acl']);
    if (!empty($pDB_acl->errMsg)) {
        echo "ERROR DE DB: {$pDB_acl->errMsg} <br>";
    }
    $pDB_menu = new paloDB($arrConf['elastix_dsn']['menu']);
    if (!empty($pDB_menu->errMsg)) {
        echo "ERROR DE DB: {$pDB_menu->errMsg} <br>";
    }
    $xajax = new xajax();
    $xajax->registerFunction("mostrar_menu");
    $xajax->processRequests();
    $content = $xajax->printJavascript("libs/xajax/");
    $delete = isset($_POST['delete']) ? $_POST['delete'] : '';
    if ($delete != '') {
        $accion = 'delete_module';
    } else {
        $accion = "report_delete_module";
    }
    switch ($accion) {
        case 'delete_module':
            $content .= delete_module($smarty, $module_name, $local_templates_dir, $arrLangModule, $pDB_acl, $pDB_menu);
            break;
        default:
            $content .= report_delete_module($smarty, $module_name, $local_templates_dir, $arrLangModule, $pDB_acl);
            break;
    }
    return $content;
}
Beispiel #2
0
function _moduleContent(&$smarty, $module_name)
{
    //include module files
    include_once "modules/{$module_name}/configs/default.conf.php";
    include_once "modules/{$module_name}/libs/paloSantoIncomingcallsmonitoring.class.php";
    // incluci� del xajax
    $xajax = new xajax();
    $xajax->waitCursorOff();
    $xajax->registerFunction("create_report");
    $xajax->processRequests();
    $content = $xajax->printJavascript("libs/xajax/");
    //include file language agree to elastix configuration
    //if file language not exists, then include language by default (en)
    $lang = get_language();
    $base_dir = dirname($_SERVER['SCRIPT_FILENAME']);
    $lang_file = "modules/{$module_name}/lang/{$lang}.lang";
    if (file_exists("{$base_dir}/{$lang_file}")) {
        include_once "{$lang_file}";
    } else {
        include_once "modules/{$module_name}/lang/en.lang";
    }
    //global variables
    global $arrConf;
    global $arrConfModule;
    global $arrLang;
    global $arrLangModule;
    $arrConf = array_merge($arrConf, $arrConfModule);
    $arrLang = array_merge($arrLang, $arrLangModule);
    //folder path for custom templates
    $templates_dir = isset($arrConf['templates_dir']) ? $arrConf['templates_dir'] : 'themes';
    $local_templates_dir = "{$base_dir}/modules/{$module_name}/" . $templates_dir . '/' . $arrConf['theme'];
    //conexion resource
    $pDB = new paloDB($arrConf['dsn_conn_database']);
    //     $pDB = "";
    //actions
    $accion = getAction();
    switch ($accion) {
        default:
            $content .= '<div id="body_report">' . reportIncomingcallsmonitoring($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrLang) . '</div>';
            break;
    }
    return $content;
}
Beispiel #3
0
define('PEERSITE', $root_url . '/');
include 'jaagnavtable.php';
$xajax = new xajax();
include TREEVIEW_SOURCE . "ajax/ajax.php";
//Enables real-time update. Must be called before any headers or HTML output have been sent.
$xajax->processRequests();
//Define identify name(s) to your treeview(s); Add more comma separated names to create more than one treeview. The treeview names must always be unique. You can´t even use the same treeview names on different php sites.
require_once 'treebuilder.php';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Url TreeView</title>
<?php 
$xajax->printJavascript(TREEVIEW_SOURCE . "ajax/framework");
//Enables real-time update.
?>

                
<!-- some basic css properties to make it look ok -->
<link href="<?php 
echo TREEVIEW_SOURCE;
?>
css/style.css" rel="stylesheet" type="text/css"/>
</head>
  <body class='<?php 
echo BODY_CLASS;
?>
;'>
        
Beispiel #4
0
$facebook = remplacetas('empresa', 'id', '1', 'facebook');
$twitter = remplacetas('empresa', 'id', '1', 'twitter');
$slogan = remplacetas('empresa', 'id', '1', 'slogan');
$web = remplacetas('empresa', 'id', '1', 'web');
?>
<!DOCTYPE html>
<html lang="en">
   <head >
    <meta charset="utf-8">
    <meta name="viewport" content="user-scalable=no, width=device-width,  maximum-scale=1,  initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="fredyrivera" >
     <?php 
$xajax->printJavascript("milfs/xajax/");
?>
    <link rel="shortcut icon" href="favicon-152.png">
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700,300' rel='stylesheet' type='text/css'>
	<link rel="apple-touch-icon-precomposed" href="favicon-152.png">
	<link href="milfs/css/font-awesome/css/font-awesome.css" rel="stylesheet">
<!--  <link href="http://getbootstrap.com/examples/sticky-footer-navbar/sticky-footer-navbar.css" rel="stylesheet"> -->

<!-- <script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script> -->

<!-- <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" /> -->
<link href="milfs/css/bootstrap.min.css" rel="stylesheet">
<link href="milfs/css/estilos.php" rel="stylesheet">

<!--   <script src="http://code.jquery.com/jquery-2.1.0.min.js"></script> -->
<!--   <link rel="points" type="application/json" href="json.php?id=<?php 
Beispiel #5
0
*/
defined('_JEXEC') or die('Restricted Access');
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'xajax' . DS . 'xajax_core' . DS . 'xajax.inc.php';
$xajax = new xajax('index3.php?option=com_jdefender&controller=' . JRequest::getVar('controller'));
$xajax->registerFunction("jdBlockParam");
$xajax->registerFunction("jdStartScan");
$xajax->registerFunction("jdScanEnd");
$xajax->registerFunction("jdGetScanStatus");
$xajax->registerFunction("jdPublishBlock");
$xajax->registerFunction("jdPublishRule");
$xajax->registerFunction("jdReadFile");
//$xajax->registerFunction("open_folder");
//$xajax->registerFunction("close_folder");
//$xajax->registerFunction("jdGetDirectory");
$xajax->processRequest();
$xajax->printJavascript('components/com_jdefender/xajax/');
function jdGetScanStatus()
{
    require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'log.php';
    $objResponse = new xajaxResponse();
    $controller = new JDefenderControllerScan();
    $scanStatus = $controller->scan($doLog = JD_Scan_Helper::isLogging());
    $scanInfo = JD_Vars_Helper::getGroup('jdefender_scan');
    if (empty($scanInfo)) {
        $scanInfo = array();
    }
    unset($scanInfo['status']);
    $progress = 0;
    if (!empty($scanInfo['total'])) {
        $scanned = 0;
        $scanned += @$scanInfo['files'];
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/Source/serviciotecnico/utilidades/xajax/xajax.inc.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/Source/eventos/consultasHome.php';
$xajax = new xajax();
$xajax->registerFunction("mostrarCompras");
$xajax->registerFunction("mostrarVentas");
$xajax->processRequests();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Sistema EDUGER</title>
        <?php 
$xajax->printJavascript("../serviciotecnico/utilidades/xajax/");
?>
        <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
        <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
        <style type="text/css">
            <!--
            .style8 {	font-family: Verdana, Arial, Helvetica, sans-serif;
                font-size: 10px;
                color: #FFFFFF;
            }
            -->
        </style>
    </head>
    <body>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
$xajax = new xajax();
//$xajax->debugOn();
$myObj = new myObjectTest();
$myObj->myNumber = 50;
$xajax->registerFunction(array("testForm", &$myObj, "testInstanceMethod"));
$xajax->registerFunction(array("testForm2", "myObjectTest", "testClassMethod"));
$myObj->myNumber = 56;
$xajax->processRequests();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Register Object Test | xajax Tests</title>
<?php 
$xajax->printJavascript("../");
?>
</head>
<body>

<h2><a href="index.php">xajax Tests</a></h2>
<h1>Register Object Test</h1>

<form id="testForm1" onsubmit="return false;">
<p><input type="text" id="textBox1" name="textBox1" value="This is some text" /></p>
<p><input type="submit" value="Submit to Instance Method" onclick="xajax_testForm(xajax.getFormValues('testForm1')); return false;" /></p>
<p><input type="submit" value="Submit to Class Method" onclick="xajax_testForm2(xajax.getFormValues('testForm1')); return false;" /></p>
</form>

<div id="submittedDiv"></div>
Beispiel #8
0
        die($conn->ErrorMsg());
    }
} else {
    $proc_data['name'] = '';
    $proc_data['description'] = '';
}
?>
<html>
<head>
  <title><?php 
_("Business Processes");
?>
</title>
  <link rel="stylesheet" href="../style/style.css"/>
<?php 
echo $xajax->printJavascript('', XAJAX_JS);
?>
<style type="text/css">
    .contents {
        width: 80%;
    }
    .row {
        clear: both;
    }
    .col1 {
        float: left;
        width: 50%;
    }
    .col2 {
        float: left;
        text-align: right;
Beispiel #9
0
    global $xajax;
    $xajax->_compile();
    $objResponse = new xajaxResponse();
    $objResponse->assign('submittedDiv', 'innerHTML', 'Compiled');
    return $objResponse;
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
    <head>
        <title>Performance Test</title>

        <?php 
$xajax->printJavascript('../');
?>

        <script type = 'text/javascript'>
            nCumulativeTime = 0;

            nTrips = 0;

            accumulateTime = function(nTime)
                {
                nCumulativeTime += (nTime * 1);
                nTrips += 1;
                }

            printTime = function()
                {
Beispiel #10
0
?>
	
<html>
	<title>玫瑰花苑</title>
	<head>
		<meta http-equiv="Pragma" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" href="../css/index.css">
		<script src="../js/util/util.js"></script>
		<script src="../js/index.js"></script>
		<script src="../js/util/comm.js"></script>
		<script>
			var t_time = 100;
		</script>
		<?php $xajax->printJavascript('../xajax/'); ?>
	</head>
		
	<body>
		<table align="center" valign="top" cellspacing="0" cellpadding="0"  background="../img/page_bg.jpg" height="863px" width="1280px">
			<tr valign="top">
				<td style="padding-left:40px; padding-top:100px" width="350px" height="100px">
					<table cellspacing="0" cellpadding="0">
						<tr>
							<td>&nbsp;</td>
						</tr>
					</table>
				</td>
				<td style="padding-top:85px">
					<table border="0px" cellspacing="0" cellpadding="0">
						<tr>
    $clase->email = $_REQUEST["email"];
    //llamar a funcion eliminar
    if ($clase->eliminar_usuario()) {
        $mensaje = "Eliminado con exito";
    } else {
        $mensaje = "No se ha podido Eliminar";
    }
}
?>


<!DOCTYPE html>
<html lang="en">
<head>
<?php 
$ajax->printJavascript('xajax/');
?>
<title>Bienvenido</title>
<title>Bienvenido</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="http://bootstraptaste.com" />
<!-- css -->
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/fancybox/jquery.fancybox.css" rel="stylesheet">
<link href="css/jcarousel.css" rel="stylesheet" />
<link href="css/flexslider.css" rel="stylesheet" />
<link href="css/style.css" rel="stylesheet" />

Beispiel #12
0
$xajax->registerFunction("exitTableProperty");
$xajax->registerFunction("editIndexProperty");
$xajax->registerFunction("exitIndexProperty");
$xajax->registerFunction("addIndexField");
$xajax->registerFunction("expandOSURow");
$xajax->registerFunction("collapseOSURow");
$xajax->registerFunction("collapseRow");
$xajax->registerFunction("expandRow");
// Process any requests.  Because our requestURI is the same as our html page,
// this must be called before any headers or HTML output have been sent
$xajax->processRequests();
$overwrite = true;
$jsfile = getcwd() . '/schema.js';
if (!file_exists($jsfile) || $overwrite) {
    ob_start();
    $xajax->printJavascript('../lib/xajax/');
    // output the xajax javascript. This must be called between the head tags
    $js = ob_get_contents();
    ob_end_clean();
    $pattern = '/(<script type="text\\/javascript">)(?P<jscript>[\\w\\W\\s]+)(<\\/script>)/U';
    if (preg_match($pattern, $js, $aMatch)) {
        $js = $aMatch['jscript'];
    } else {
        echo "Error parsing javascript generated by xAjax.  You should check the {$jsfile} manually.";
    }
    $fp = fopen($jsfile, 'w');
    if ($fp === false) {
        echo "Error opening output file {$jsfile} for writing.  Check permissions.";
        die;
    } else {
        fwrite($fp, $js);
Beispiel #13
0
<?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();
    }
}
Beispiel #14
0
function _moduleContent(&$smarty, $module_name)
{
    //include module files
    include_once "modules/{$module_name}/configs/default.conf.php";
    global $arrConf;
    $arrConf['cadena_dsn'] = "mysql://*****:*****@localhost/hispana";
    // _pre($arrConf);
    // _pre($_SESSION);
    /*
        global $arrLang;
    
        #incluir el archivo de idioma de acuerdo al que este seleccionado
        #si el archivo de idioma no existe incluir el idioma por defecto
        $lang=get_language();
    
        $script_dir=dirname($_SERVER['SCRIPT_FILENAME']);
    
        // Include language file for EN, then for local, and merge the two.
        include_once("modules/$module_name/lang/en.lang");
        $lang_file="modules/$module_name/lang/$lang.lang";
        if (file_exists("$script_dir/$lang_file")) {
            $arrLangModuleEN = $arrLangModule;
            include_once($lang_file);
            $arrLangModule = array_merge($arrLangModuleEN, $arrLangModule);
        }
    */
    load_language_module($module_name);
    require_once "modules/{$module_name}/libs/paloSantoDataForm.class.php";
    //folder path for custom templates
    $base_dir = dirname($_SERVER['SCRIPT_FILENAME']);
    $templates_dir = isset($arrConfig['templates_dir']) ? $arrConfig['templates_dir'] : 'themes';
    $local_templates_dir = "{$base_dir}/modules/{$module_name}/" . $templates_dir . '/' . $arrConf['theme'];
    // Definición del formulario de nueva formulario
    $smarty->assign("MODULE_NAME", $module_name);
    $smarty->assign("REQUIRED_FIELD", _tr('Required field'));
    $smarty->assign("CANCEL", _tr('Cancel'));
    $smarty->assign("APPLY_CHANGES", _tr('Apply changes'));
    $smarty->assign("SAVE", _tr('Save'));
    $smarty->assign("EDIT", _tr('Edit'));
    $smarty->assign("DESCATIVATE", _tr('Desactivate'));
    $smarty->assign("DELETE", _tr('Delete'));
    $smarty->assign("CONFIRM_CONTINUE", _tr('Are you sure you wish to continue?'));
    $smarty->assign("new_field", _tr('New Field'));
    $smarty->assign("add_field", _tr('Add Field'));
    $smarty->assign("update_field", _tr('Update Field'));
    $smarty->assign("CONFIRM_DELETE", _tr('Are you sure you wish to delete form?'));
    //Definicion de campos
    $formCampos = array('form_nombre' => array("LABEL" => _tr('Form Name'), "REQUIRED" => "yes", "INPUT_TYPE" => "TEXT", "INPUT_EXTRA_PARAM" => array("size" => "60"), "VALIDATION_TYPE" => "text", "VALIDATION_EXTRA_PARAM" => ""), 'form_description' => array("LABEL" => _tr('Form Description'), "REQUIRED" => "no", "INPUT_TYPE" => "TEXTAREA", "INPUT_EXTRA_PARAM" => "", "VALIDATION_TYPE" => "text", "VALIDATION_EXTRA_PARAM" => "", "COLS" => "33", "ROWS" => "2"), 'field_nombre' => array("LABEL" => _tr('Field Name'), "REQUIRED" => "yes", "INPUT_TYPE" => "TEXTAREA", "INPUT_EXTRA_PARAM" => "", "VALIDATION_TYPE" => "text", "VALIDATION_EXTRA_PARAM" => "", "COLS" => "50", "ROWS" => "2"), "order" => array("LABEL" => _tr('Order'), "REQUIRED" => "yes", "INPUT_TYPE" => "TEXT", "INPUT_EXTRA_PARAM" => array("size" => "3"), "VALIDATION_TYPE" => "numeric", "VALIDATION_EXTRA_PARAM" => ""));
    $smarty->assign("type", _tr('Type'));
    $smarty->assign("select_type", "type");
    $arr_type = array("VALUE" => array("TEXT", "LIST", "DATE", "TEXTAREA", "LABEL"), "NAME" => array(_tr('Type Text'), _tr('Type List'), _tr('Type Date'), _tr('Type Text Area'), _tr('Type Label')), "SELECTED" => "TEXT");
    $smarty->assign("option_type", $arr_type);
    $smarty->assign("item_list", _tr('List Item'));
    $smarty->assign("agregar", _tr('Add Item'));
    $smarty->assign("quitar", _tr('Remove Item'));
    $oForm = new paloForm($smarty, $formCampos);
    // print_r($_SESSION['ayuda']);
    $xajax = new xajax();
    $xajax->registerFunction("agregar_campos_formulario");
    $xajax->registerFunction("cancelar_formulario_ingreso");
    $xajax->registerFunction("guardar_formulario");
    $xajax->registerFunction("eliminar_campos_formulario");
    $xajax->registerFunction("editar_campo_formulario");
    $xajax->registerFunction("update_campo_formulario");
    $xajax->registerFunction("cancel_campo_formulario");
    $xajax->registerFunction("desactivar_formulario");
    $xajax->processRequests();
    $smarty->assign("xajax_javascript", $xajax->printJavascript("libs/xajax/"));
    $pDB = new paloDB($arrConf['cadena_dsn']);
    if (!is_object($pDB->conn) || $pDB->errMsg != "") {
        $smarty->assign("mb_message", _tr('Error when connecting to database') . " " . $pDB->errMsg);
    }
    if (isset($_POST['submit_create_form'])) {
        $contenidoModulo = new_form($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm);
    } else {
        if (isset($_POST['edit'])) {
            $contenidoModulo = edit_form($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm);
        } else {
            if (isset($_POST['delete'])) {
                $contenidoModulo = delete_form($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm);
            } else {
                if (isset($_GET['id']) && isset($_GET['action']) && $_GET['action'] == "view") {
                    $contenidoModulo = view_form($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm);
                } else {
                    if (isset($_GET['id']) && isset($_GET['action']) && $_GET['action'] == "activar") {
                        $contenidoModulo = activar_form($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm);
                    } else {
                        if (isset($_GET['id']) && isset($_GET['action']) && $_GET['action'] == "editarCampo") {
                            $contenidoModulo = editar_campo_status($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm);
                        } else {
                            $contenidoModulo = listadoForm($pDB, $smarty, $module_name, $local_templates_dir);
                        }
                    }
                }
            }
        }
    }
    return $contenidoModulo;
}
Beispiel #15
0
<?php 
require '/home/silvia.valdez/public_html/ECG/inc/vars.php';
require '/home/silvia.valdez/public_html/ECG/inc/grid.php';
require '/home/silvia.valdez/public_html/ECG/inc/scrollBar.php';
require '/home/silvia.valdez/public_html/ECG/inc/download.php';
?>

<!DOCTYPE HTML>
<html>
	<head>
		<title> ECG Signals Viewer </title>

		<?php 
#Indicamos al objeto xajax se encargue de generar el javascript necesario.
$xajax->printJavascript("/ECG/xajax/");
?>
 

		<script>		
		//Valida la entrada de dígitos en inputs.
	   	function validaDigitos(e) {
			var keynum = window.event ? window.event.keyCode : e.which;
			if (keynum == 8)
				return true;					 
			return /\d/.test(String.fromCharCode(keynum));
		};
		
		function actualizarIndices() {
			if(tabla == "") {
				pintarGrid();
$xajax->registerFunction("testFormFail");
$xajax->registerFunction("testFormExpire");
$xajax->processRequest();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
    <head>
        <title>Call Techniques Test | xajax Tests</title>

        <?php 
$xajax_files = array();
$xajax_files[] = array("xajax_js/xajax_core.js", "xajax");
//	$xajax_files[] = array("xajax_js/xajax_debug.js", "xajax.debug");
$xajax->printJavascript("../", $xajax_files);
?>

        <script type = "text/javascript">
            function setupCallback()
                {
                xajax.callback.global.onRequest = function()
                    {
                    alert('In global.onRequest');
                    };
                xajax.callback.global.onFailure = function(args)
                    {
                    alert("In global.onFailure...HTTP status code: " + args.request.status);
                    }
                xajax.callback.global.onComplete = function()
                    {
Beispiel #17
0
            return $objResponse;
        }
    } else {
        $objResponse->addAssign("srv_{$num}", "innerHTML", "<font color='red' size='1'><i>Can't connect to server.</i></font>");
        $objResponse->addScript('set_counter(1);');
        return $objResponse;
    }
}
$servers = $GLOBALS['db']->Execute("SELECT ip, port, rcon FROM " . DB_PREFIX . "_servers WHERE enabled = 1 ORDER BY modid, sid;");
$theme->assign('total', $servers->RecordCount());
$serverlinks = array();
$num = 0;
while (!$servers->EOF) {
    $info = array();
    $info['num'] = $num;
    $info['ip'] = $servers->fields["ip"];
    $info['port'] = $servers->fields["port"];
    array_push($serverlinks, $info);
    $num++;
    $servers->MoveNext();
}
$theme->assign('servers', $serverlinks);
$theme->assign('xajax_functions', $xajax->printJavascript("../scripts", "xajax.js"));
$theme->assign('check', $_GET["check"]);
// steamid or ip address
$theme->assign('type', $_GET['type']);
$theme->left_delimiter = "-{";
$theme->right_delimiter = "}-";
$theme->display('page_kickit.tpl');
$theme->left_delimiter = "{";
$theme->right_delimiter = "}";
Beispiel #18
0
 //name_of_function2: $a[9]=substr($a[9],0,-1);
 //require $address_from_bd_xajax_php;
 require 'x.php';
 $x = new xajax();
 $x->registerFunction('lang');
 $x->registerFunction('auth');
 $x->registerFunction('quit');
 $x->registerFunction('core');
 $x->registerFunction('init');
 $x->registerFunction('keep');
 $x->registerFunction('e404_page');
 $x->registerFunction('change');
 $x->registerFunction('wrap');
 $x->registerFunction('bd_add');
 $x->processRequest();
 $x->printJavascript(/*$address_from_bd_xajax_js*/);

 function lang(){$d = new xajaxResponse();foreach($text as $k=>$v)$d->script("\$lang['$k']='$v';");return $d;}

 function auth($e,$p)
 {
  $d = new xajaxResponse();
  require 'bd_users';
  $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
  require 'lang';
  for($i=0,$n=count($c);$i<$n;$i++)
   if($a[$i]==md5($e)&&$b[$i]==md5($p)&&$c[$i]==md5($e.$p))
   {
    $_SESSION['id']=++$i;
    $d->script("$('#auth_fond,#auth').remove();");
    return $d;
Beispiel #19
0
        $response->assign("result", "style.display", "block");
        return $response;
    }
    $response->script("document.location.href='tester_hangee.php'");
    return $response;
}
$xajax = new xajax();
$xajax->registerFunction("populate_pages");
$xajax->registerFunction("add_test_words");
$xajax->registerFunction("start_test");
$xajax->registerFunction("clear_list");
$xajax->registerFunction("register_new_test");
$xajax->processRequest();
###########################################################################
hangee_header("HanGEE: Tester");
$xajax->printJavascript("xajax");
?>

<script language='javascript' type='text/javascript'>
<!--//

function destroy_test_condition()
{
	if (confirm('Are you sure?'))
		xajax_register_new_test();
	return;
}

function show_mpref()
{
	var mpref = document.getElementById('mpref');
//$xajax->debugOn(); // Uncomment this line to turn debugging on
$xajax->debugOff();
// Uncomment this line to turn debugging on
//$xajax->registerFunction("testAjax");
$xajax->registerFunction("expandOSURow");
$xajax->registerFunction("collapseOSURow");
$xajax->registerFunction("sessionExpired");
// Process any requests.  Because our requestURI is the same as our html page,
// this must be called before any headers or HTML output have been sent
$xajax->processRequests();
$overwrite = true;
$jspath = MAX_PATH . '/var/templates_compiled/';
$jsfile = 'oxajax.js';
if (!file_exists($jspath . $jsfile) || $overwrite) {
    ob_start();
    $xajax->printJavascript($jspath, $jsfile);
    // output the xajax javascript. This must be called between the head tags
    $js = ob_get_contents();
    ob_end_clean();
    $pattern = '/(<script type="text\\/javascript">)(?P<jscript>[\\w\\W\\s]+)(<\\/script>)/U';
    if (preg_match($pattern, $js, $aMatch)) {
        $js = $aMatch['jscript'];
    } else {
        echo "Error parsing javascript generated by xAjax.  You should check the {$jspath}{$jsfile} manually.";
    }
    $fp = fopen($jspath . $jsfile, 'w');
    if ($fp === false) {
        echo "Error opening output file {$jspath}{$jsfile} for writing.  Check permissions.";
        die;
    } else {
        fwrite($fp, $js);
Beispiel #21
0
    if (isset($_GET["treeviewid"]) == true and isset($_GET["nodeid"]) == true) {
        if ($_GET["treeviewid"] == $treeid) {
            $_SESSION[$treeid]->HttpUpdateNodeById($_GET["nodeid"]);
        }
    }
}
include TREEVIEW_SOURCE . "treeviewcreate.php";
//Creates phptreeview objects.
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Url TreeView</title>
<?php 
$xajax->printJavascript("/peertest/phptreeview/ajax/framework");
//Enables real-time update.
?>
                
<!-- some basic css properties to make it look ok -->
<link href="<?php 
echo TREEVIEW_SOURCE;
?>
css/style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
        
<?php 
//IMPORTANT! To be able to see the changes you have made to the code you have to clean the session.
//(By uncomment the line below during one page load).
// Be sure to comment the line when publishing the treeview, or else the treeview won´t remember the old state throu page loads.
$xajax = new xajax();
//$xajax->debugOn();
$xajax->registerFunction("testForm");
$xajax->registerFunction("addInput");
$xajax->registerFunction("insertInput");
$xajax->registerFunction("insertInputAfter");
$xajax->registerFunction("removeInput");
$xajax->processRequests();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Create Form Input Test| xajax Tests</title>
		<?php 
$xajax->printJavascript("../", "xajax_js/xajax_uncompressed.js");
?>
	</head>
	<body>
		<h2><a href="index.php">xajax Tests</a></h2>
		<h1>Create Form Input Test</h1>
		
		<div>
			<form id="testForm1" onsubmit="return false;">
				<div><input type="submit" value="submit" onclick="xajax_testForm(xajax.getFormValues('testForm1')); return false;" /></div>
			</form>
		</div>

		<div style="margin-top: 20px;">
			<form id="testForm2" onsubmit="return false;">
				<div>type:</div>
Beispiel #23
0
}
$objAjax = new xajax();
$objAjax->registerFunction('populateStates');
$objAjax->processRequests();
$sysConst = new sysConf();
$locRights = $_SESSION['localRights'];
if (isset($this->getArr['capturemode']) && $this->getArr['capturemode'] == 'addmode') {
    ?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php 
    $objAjax->printJavascript();
    ?>
<script type="text/javascript" src="../../scripts/archive.js"></script>
<script>
	function goBack() {
		location.href = "./CentralController.php?uniqcode=<?php 
    echo $this->getArr['uniqcode'];
    ?>
&VIEW=MAIN";
	}

	function addSave() {

		var frm = document.frmLocation;

		if (frm.txtLocDescription.value == '') {
Beispiel #24
0
//debug mode
$xajax->configure("waitCursor", false);
//禁止漏斗提示
$xajax->register(XAJAX_FUNCTION, "play");
//$xajax->register(XAJAX_FUNCTION,"listdata");
//$xajax->register(XAJAX_FUNCTION,"reguser");
$xajax->processRequest();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML Transitional//EN"><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<HTML>
<HEAD>
<link rel="stylesheet" href="templates/default/images/box/box.css" type="text/css">
<script src="js/mootools.js" type="text/javascript"></script>
<script src="js/boxlist.js" type="text/javascript"></script>
<?php 
$xajax->printJavascript('js/');
?>
</HEAD>
<body>
<DIV id="Mng_div">
 <DIV id="listmng_div">
  列表管理&nbsp;<SPAN id="listmng_img"></SPAN>
 </DIV>
 <DIV id="list_div">
  <DIV class="LstDf_div_css" id="0" title="默认列表">
   默认列表
  </DIV>
  <DIV class="MenuPl_div_css">
   榜单家族
  </DIV>
  <DIV class="LstDf_div_css" id="100" title="中文金曲榜">
Beispiel #25
0
$xajax->configure('javascript URI', '../../');
class clsFunctions
{
    function clsFunctions()
    {
    }
    function confirm($seconds)
    {
        sleep($seconds);
        $objResponse = new xajaxResponse();
        $objResponse->append('outputDIV', 'innerHTML', '<br />confirmation from theFrame.php call');
        return $objResponse;
    }
}
$xajax->register(XAJAX_CALLABLE_OBJECT, new clsFunctions());
$xajax->processRequest();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>xajax Test iFrame</title>
		<?php 
$xajax->printJavascript();
?>
	</head>
	<body>
		<div>This is the iframe</div>
		<div id='outputDIV'></div>
	</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Custom Response Class Test| xajax Tests</title>
		<script type="text/javascript">
		//javascript function to add an option to a select box
		function addOption(selectId,optionId,txt,val)
		{
		    var objOption = new Option(txt,val);
		    objOption.id = optionId;
		    document.getElementById(selectId).options.add(objOption);
		}
		</script>

		<?php $xajax->printJavascript("../") ?>
	</head>
	<body>
		<h2><a href="index.php">xajax Tests</a></h2>
		<h1>Custom Response Class Test</h1>

		<div>
			<form id="testForm1" onsubmit="return false;">
				<div>Select</div>
				<select id="selectBox" name="selectBox">
				</select>
				<div><input type="submit" value="submit" onclick="xajax_testForm(xajax.getFormValues('testForm1')); return false;" /></div>
			</form>
		</div>

		<div style="margin-top: 20px;">