当前位置: 首页>>代码示例>>PHP>>正文


PHP xajax::configure方法代码示例

本文整理汇总了PHP中xajax::configure方法的典型用法代码示例。如果您正苦于以下问题:PHP xajax::configure方法的具体用法?PHP xajax::configure怎么用?PHP xajax::configure使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在xajax的用法示例。


在下文中一共展示了xajax::configure方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct($sRequestURI = null, $sLanguage = null, $aConfig = array())
 {
     if (is_null(self::$oXajax)) {
         self::$oXajax = new xajax($sRequestURI, $sLanguage);
         self::$oXajax->configure('javascript URI', '/lib/xajax/');
         self::$oXajax->configure('statusMessages', true);
         self::$oXajax->configure('exitAllowed', false);
         //self::$oXajax->configure( 'debug', true );
         foreach ($aConfig as $sName => $mValue) {
             self::$oXajax->configure($sName, $mValue);
         }
     }
 }
开发者ID:maxwroc,项目名称:PHP,代码行数:13,代码来源:Xajax.php

示例2: calcFinish

<?php

$xajax = new xajax();
$xajax->configure('javascript URI', W2P_BASE_URL . '/lib/xajax/');
function calcFinish($start_date, $start_hour, $start_minute, $duration_type, $task_duration)
{
    global $AppUI;
    $df = $AppUI->getPref('SHDATEFORMAT');
    $year = substr($start_date, 0, 4);
    $month = substr($start_date, 4, 2);
    $day = substr($start_date, 6, 2);
    $date = new w2p_Utilities_Date($year . '-' . $month . '-' . $day);
    $date->setTime($start_hour, $start_minute);
    $finish = $date->calcFinish($task_duration, $duration_type);
    $response = new xajaxResponse();
    $response->assign('end_date', 'value', $finish->format($df));
    $response->assign('task_end_date', 'value', $finish->format(FMT_TIMESTAMP_DATE));
    $response->assign('end_hour', 'value', $finish->getHour());
    $minute = '0' == $finish->getMinute() ? '00' : $finish->getMinute();
    $response->assign('end_minute', 'value', $minute);
    if ($finish->getHour() > 11) {
        $response->assign('end_hour_ampm', 'value', 'pm');
    } else {
        $response->assign('end_hour_ampm', 'value', 'am');
    }
    return $response;
}
function calcDuration($start_date, $start_hour, $start_minute, $end_date, $end_hour, $end_minute, $duration_type, $duration_output_field = 'task_duration')
{
    $year = substr($start_date, 0, 4);
    $month = substr($start_date, 4, 2);
开发者ID:illuminate3,项目名称:web2project,代码行数:31,代码来源:ajax_functions.php

示例3: xajax

<?
define("XAJAX_DEFAULT_CHAR_ENCODING","windows-1251");
require_once($_SERVER['DOCUMENT_ROOT'] . "/xajax/xajax_core/xajax.inc.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/classes/config.php");
$xajax = new xajax("/xajax/employers.server.php");
//$xajax->debugOn();
//$xajax->waitCursorOff(); // Для Fp нужен...
$xajax->configure('decodeUTF8Input',true);
$xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
$xajax->register(XAJAX_FUNCTION, "ChangeCity");
$xajax->register(XAJAX_FUNCTION, "AddFav");
?>
开发者ID:notUserDeveloper,项目名称:fl-ru-damp,代码行数:12,代码来源:employers.common.php

示例4: xajax

<?php

require_once '../../lib/xajax_core/xajax.inc.php';
require_once "mod.php";
$xajax = new xajax();
$xajax->configure("debug", false);
session_start();
$n_url = "../solicitud_detalles/solicitud_detalles.php";
///////////////configuraciones mensajes validaciones////////////////
$n_nro_solicitud = '<div class="alert alert-danger alert-dismissable">
                                        <i class="fa fa-ban"></i>
                                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                                        <b>Error!</b> Debe indicar numero de solicitud
                                    </div>';
$n_fecha = '<div class="alert alert-danger alert-dismissable">
                                        <i class="fa fa-ban"></i>
                                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                                        <b>Error!</b> Debe indicar fecha
                                    </div>';
$n_user_id = '<div class="alert alert-danger alert-dismissable">
                                        <i class="fa fa-ban"></i>
                                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                                        <b>Error!</b> Debe indicar usuario
                                    </div>';
/////////////encabezado resultado busqueda grid/////////////////
$ng_nro_solicitud = 'nro_solicitud';
$ng_fecha = 'fecha';
$ng_user_id = 'user_id';
/////////////encabezado resultado busqueda grid/////////////////
class ctrl
{
开发者ID:EdgarPalomares,项目名称:arancel_online,代码行数:31,代码来源:ctrl.php

示例5: xajax

    nied@unicamp.br

------------------------------------------------------------------------------
-->
*/
/*==========================================================
  ARQUIVO : cursos/aplic/forum/forum.php
  ========================================================== */
$bibliotecas = "../bibliotecas/";
include $bibliotecas . "geral.inc";
include "forum.inc";
include "avaliacoes_forum.inc";
require_once "../xajax_0.5/xajax_core/xajax.inc.php";
//Estancia o objeto XAJAX
$objAjax = new xajax();
$objAjax->configure("characterEncoding", 'ISO-8859-1');
$objAjax->setFlag("decodeUTF8Input", true);
$objAjax->configure('javascript URI', "../xajax_0.5");
$objAjax->configure('errorHandler', true);
//Registre os nomes das funções em PHP que você quer chamar através do xajax
$objAjax->register(XAJAX_FUNCTION, "MudarConfiguracaoDinamic");
$objAjax->register(XAJAX_FUNCTION, "EditarTituloDinamic");
$objAjax->register(XAJAX_FUNCTION, "DecodificaString");
// Registra fun��es para uso de menu_principal.php
$objAjax->register(XAJAX_FUNCTION, "DeslogaUsuarioCursoDinamic");
// Manda o xajax executar os pedidos acima.
$objAjax->processRequest();
$cod_ferramenta = 9;
$cod_ferramenta_ajuda = $cod_ferramenta;
if (isset($status) && $status == 'D') {
    $cod_pagina_ajuda = 2;
开发者ID:andisantos,项目名称:TelEduc,代码行数:31,代码来源:forum.php

示例6: xajax

    $pagelist_id = (int) $_REQUEST["page"];
}
$submit = false;
if (isset($_POST["submitbutton"])) {
    $submit = true;
}
$apply = false;
if (isset($_POST["apply"])) {
    $apply = true;
}
$ajax = false;
if (isset($_POST['ajax']) && $_POST['ajax']) {
    $ajax = true;
}
$xajax = new xajax();
$xajax->configure('requestURI', $config['admin_url'] . '/editcontent.php?' . CMS_SECURE_PARAM_NAME . '=' . $_SESSION[CMS_USER_KEY] . '&content_id=' . $content_id);
$xajax->register(XAJAX_FUNCTION, 'ajaxpreview');
$headtext = $xajax->getJavascript('../lib/xajax') . "\n";
if (isset($_POST["cancel"])) {
    redirect("listcontent.php" . $urlext);
}
if ($apply) {
    $CMS_EXCLUDE_FROM_RECENT = 1;
}
#Get a list of content types and pick a default if necessary
$gCms = cmsms();
$contentops = $gCms->GetContentOperations();
$existingtypes = $contentops->ListContentTypes(false, true);
#Get current userid and make sure they have permission to add something
$userid = get_userid();
$access = check_ownership($userid, $content_id) || check_permission($userid, 'Modify Any Page') || check_permission($userid, 'Manage All Content');
开发者ID:rainbow-studio,项目名称:cmsms,代码行数:31,代码来源:editcontent.php

示例7: xajax

require_once 'common/xajax/xajax_core/xajax.inc.php';
$xajax = new xajax();
event::register('page_assembleheader', 'edk_xajax::insertHTML');
// if mods depend on xajax they can register to xajax_initialised
// it gets called after all mods have been initialized
//event::register('smarty_displayindex', 'edk_xajax::lateProcess');
//event::register('page_assembleheader', 'edk_xajax::lateProcess');
event::register('mods_initialised', 'edk_xajax::lateProcess');
//event::register('page_initialisation', 'edk_xajax::lateProcess');
$uri = html_entity_decode(edkURI::build(edkURI::parseURI()));
if (strpos($uri, "?") === false) {
    $uri .= "?xajax=1";
} else {
    $uri .= "&xajax=1";
}
$xajax->configure('requestURI', $uri);
/**
 * @package EDK
 */
class edk_xajax
{
    public static function xajax()
    {
        global $xajax_enable;
        $xajax_enable = true;
    }
    // on page assembly check whether or not xajax is needed
    public static function insertHTML($obj)
    {
        global $xajax_enable;
        if (!isset($xajax_enable)) {
开发者ID:biow0lf,项目名称:evedev-kb,代码行数:31,代码来源:xajax.php

示例8:

$xajax->register(XAJAX_FUNCTION, "azulon");
$xajax->register(XAJAX_FUNCTION, "azuloff");
$xajax->register(XAJAX_FUNCTION, "verdeon");
$xajax->register(XAJAX_FUNCTION, "verdeoff");
$xajax->register(XAJAX_FUNCTION, "rojoon");
$xajax->register(XAJAX_FUNCTION, "rojooff");
$xajax->register(XAJAX_FUNCTION, "amarilloon");
$xajax->register(XAJAX_FUNCTION, "amarillooff");
$xajax->register(XAJAX_FUNCTION, "controlazul");
$xajax->register(XAJAX_FUNCTION, "controlverde");
$xajax->register(XAJAX_FUNCTION, "controlrojo");
$xajax->register(XAJAX_FUNCTION, "controlamarillo");
/**
 * Indicamos la ruta del componenete Javascript de Xajax.
 */
$xajax->configure('javascript URI', './controlador/include/xajax/');
/**
 * El método processRequest procesa las peticiones que llegan a la página. Debe 
 * ser llamado antes del código HTML.
 */
$xajax->processRequest();
/**
 * EL método printJavascript() permite la inclusión de las funciones javascript
 * en el codigo.
 */
$xajax->printJavascript();
/**
 * Añadimos la pagina head.php con el contenido del head.
 */
require_once './vista/head.php';
/**
开发者ID:antoniohh,项目名称:antoniohh.github.io,代码行数:31,代码来源:index.php

示例9: xajax

}
/******************************************/
/* Load :: Header Content */
$tpl->display("header.tpl");
include 'php/js_root_dir.php';
/******************************************/
/* XAJAX :: Register Object AND Functions */
$xajax = new xajax(ROOT_DIR . "index.server.php");
//$xajax->registerFunction("page");
$xajax->register(XAJAX_FUNCTION, "move");
$xajax->register(XAJAX_FUNCTION, "page");
$xajax->register(XAJAX_FUNCTION, "delete");
$xajax->register(XAJAX_FUNCTION, "edit_comment");
//$xajax->configure('debug', true);
//$xajax->setFlag('debug',true);
$xajax->configure('javascript URI', ROOT_DIR . 'xajax/');
// $tpl->assign("xajax_javascript",$xajax->getJavascript(ROOT_DIR.'xajax/'));
$xajax->printJavascript();
/******************************************/
/* Load :: Left Frame Content */
$tpl->display("div_top.tpl");
// Styling correction
/* Twitter message */
if ($block["twitter"]["status"] == 1) {
    $tpl->display("twitter.tpl");
}
/************/
/* Settings :: Design AND Language */
if ($block["settings"]["status"] == 1) {
    include "modules/blocks/settings.php";
}
开发者ID:nbgmaster,项目名称:master2008,代码行数:31,代码来源:index.php

示例10: Copyright

*/
/*
    @package xajax
    @version $Id: errorHandlingTest.php 362 2007-05-29 15:32:24Z calltoconstruct $
    @copyright Copyright (c) 2005-2006 by Jared White & J. Max Wilson
    @license http://www.xajaxproject.org/bsd_license.txt BSD License
*/
/*
    Section: Standard xajax startup
    
    - include <xajax.inc.php>
    - instantiate the <xajax> object
*/
require_once "../xajax_core/xajax.inc.php";
$xajax = new xajax();
$xajax->configure('javascript URI', '../');
/*
    - enable deubgging if desired
*/
$xajax->configure('debug', true);
/*
    Section: Enable Error Handler
    
    - set <xajax->bErrorHandler> using <xajax->setFlag> or <xajax->setFlags>
    - set the log file using <xajax->setLogFile>
*/
$xajax->configure('errorHandler', true);
$xajax->configure('logFile', 'xajax_error_log.log');
/*
    Section: Define error ridden function
    
开发者ID:asad345100,项目名称:mis-pos,代码行数:30,代码来源:errorHandlingTest.php

示例11: showOutput

 <?php 
require_once "../xajax_core/xajax.inc.php";
$xajax = new xajax();
if ($xajax->canProcessRequest()) {
    echo ' ';
}
$xajax->configure('debug', true);
$xajax->configure('responseType', 'XML');
$xajax->register(XAJAX_FUNCTION, 'showOutput');
$xajax->processRequest();
$xajax->configure('javascript URI', '../');
function showOutput()
{
    $objResponse = new xajaxResponse();
    $objResponse->alert("Hello");
    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>PHP Whitespace Test | xajax Tests</title>

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

    <body>
开发者ID:udistrital,项目名称:serviciosacademicos_desarrollo,代码行数:31,代码来源:phpWhitespaceTest.php

示例12: transfield

<?php

if (isset($_POST['PHPSESSID'])) {
    session_id($_POST['PHPSESSID']);
}
session_start();
ini_set("display_errors", 1);
error_reporting(E_ALL ^ E_NOTICE);
if (!isset($_SESSION['foo'])) {
    $_SESSION['foo'] = 0;
}
$core = '../../xajax_core';
require_once $core . '/xajax.inc.php';
$xajax = new xajax();
require_once '../../xajax_plugins/response/swfupload/swfupload.inc.php';
$xajax->configure("javascript URI", "../../");
$xajax->configure("responseType", "XML");
$xajax->register(XAJAX_FUNCTION, "uploader", array("mode" => "'SWFupload'", "SWFform" => "'upload_form'"));
$xajax->register(XAJAX_FUNCTION, "transform");
$xajax->register(XAJAX_FUNCTION, "transfield");
$xajax->register(XAJAX_FUNCTION, "destroyfield");
$xajax->register(XAJAX_FUNCTION, "sync_test", array('mode' => "'synchronous'"));
$xajax->register(XAJAX_FUNCTION, "destroyform");
$_SESSION['foo']++;
$xajax->processRequest();
// This is dev code, you don't need these lines for using the SWFupload plugin.
$xajax->autoCompressJavaScript(null, true);
$xajax->autoCompressJavaScript('../../xajax_plugins/response/swfupload/swfupload.xajax.js', true);
$xajax->autoCompressJavaScript('../../xajax_plugins/response/swfupload/swfupload.js', true);
function transfield()
{
开发者ID:xajax,项目名称:xajax,代码行数:31,代码来源:swfupload.php

示例13: calcFinish

<?php

require_once $AppUI->getLibraryClass('xajax/xajax_core/xajax.inc');
$xajax = new xajax();
$xajax->configure('javascript URI', w2PgetConfig('base_url') . '/lib/xajax/');
function calcFinish($start_date, $start_hour, $start_minute, $duration_type, $task_duration)
{
    global $AppUI;
    $df = $AppUI->getPref('SHDATEFORMAT');
    $year = substr($start_date, 0, 4);
    $month = substr($start_date, 4, 2);
    $day = substr($start_date, 6, 2);
    $date = new w2p_Utilities_Date($year . '-' . $month . '-' . $day);
    $date->setTime($start_hour, $start_minute);
    $finish = $date->calcFinish($task_duration, $duration_type);
    $response = new xajaxResponse();
    $response->assign('end_date', 'value', $finish->format($df));
    $response->assign('task_end_date', 'value', $finish->format(FMT_TIMESTAMP_DATE));
    $response->assign('end_hour', 'value', $finish->getHour());
    $response->assign('end_minute', 'value', $finish->getMinute());
    if ($finish->getHour() > 11) {
        $response->assign('end_hour_ampm', 'value', 'pm');
    } else {
        $response->assign('end_hour_ampm', 'value', 'am');
    }
    return $response;
}
function calcDuration($start_date, $start_hour, $start_minute, $end_date, $end_hour, $end_minute, $duration_type)
{
    $year = substr($start_date, 0, 4);
    $month = substr($start_date, 4, 2);
开发者ID:viniciusbudines,项目名称:sisnuss,代码行数:31,代码来源:ajax_functions.php

示例14: header

if (@$_GET['refresh'] == "yes") {
    session_destroy();
    header("location: charEncodingTest.php");
    exit;
}
if (isset($_SESSION['useEncoding'])) {
    $useEncoding = $_SESSION['useEncoding'];
}
if (isset($_SESSION['htmlEntities'])) {
    $htmlEntities = $_SESSION['htmlEntities'];
}
if (isset($_SESSION['decodeUTF8'])) {
    $decodeUTF8 = $_SESSION['decodeUTF8'];
}
$xajax = new xajax();
$xajax->configure('javascript URI', '../');
$xajax->configure('characterEncoding', $useEncoding);
if ($htmlEntities) {
    $xajax->configure("outputEntities", true);
}
if ($decodeUTF8) {
    $xajax->configure("decodeUTF8Input", true);
}
$xajax->configure('debug', true);
$xajax->register(XAJAX_FUNCTION, 'setOptions');
$xajax->register(XAJAX_FUNCTION, 'testForm');
$xajax->processRequest();
$xajax->configure('javascript URI', '../');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
开发者ID:udistrital,项目名称:serviciosacademicos_desarrollo,代码行数:31,代码来源:charEncodingTest.php

示例15: unset

//function get_search_query_matrix($HTTP_VARS)
if (is_site_enabled()) {
    if (is_opendb_valid_session() || is_site_public_access()) {
        if (is_user_granted_permission(PERM_VIEW_LISTINGS)) {
            $v_item_types = get_list_item_types($HTTP_VARS['s_item_type_group'], $HTTP_VARS['s_item_type']);
            if (!is_array($HTTP_VARS['s_item_type']) && strlen($HTTP_VARS['s_item_type']) > 0 && is_not_empty_array($v_item_types)) {
                if (!is_item_type_in_item_type_r($v_item_types, $HTTP_VARS['s_item_type'])) {
                    unset($HTTP_VARS['s_item_type']);
                }
            }
            $show_interest_column = FALSE;
            if (is_user_granted_permission(PERM_USER_INTEREST)) {
                $show_interest_column = TRUE;
                //@TODO This should be moved to HTML_listing class.
                $xajax = new xajax();
                $xajax->configure('responseType', 'XML');
                $xajax->configure('javascript URI', 'lib/xajax/');
                $xajax->configure('debug', false);
                $xajax->configure('statusMessages', true);
                $xajax->configure('waitCursor', true);
                $xajax->register(XAJAX_FUNCTION, "ajax_update_interest_level");
                $xajax->register(XAJAX_FUNCTION, "ajax_remove_all_interest_level");
                $xajax->processRequest();
            }
            if (strlen($HTTP_VARS['owner_id']) > 0) {
                $show_owner_column = FALSE;
            } else {
                $show_owner_column = TRUE;
            }
            // Work out whether Item action checkboxes should be displayed.
            $show_checkbox_column = FALSE;
开发者ID:horrabin,项目名称:opendb,代码行数:31,代码来源:listings.php


注:本文中的xajax::configure方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。