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


PHP xajax类代码示例

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


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

示例1: __construct

 function __construct()
 {
     $GLOBALS['phpgw_info']['flags']['noframework'] = true;
     require_once PHPGW_SERVER_ROOT . '/felamimail/inc/xajax.inc.php';
     $xajax = new xajax($GLOBALS['phpgw']->link('/felamimail/xajax.php', false, true), 'xajax_', 'utf-8');
     $xajax->waitCursorOff();
     $xajax->registerFunction("doXMLHTTP");
     $GLOBALS['phpgw_info']['flags']['java_script'] .= $xajax->getJavascript($GLOBALS['phpgw_info']['server']['webserver_url'] . '/felamimail/js/');
     $GLOBALS['phpgw']->js->validate_file('jsapi', 'jsapi', 'felamimail');
     $this->displayCharset = 'utf-8';
     if (!isset($_POST['composeid']) && !isset($_GET['composeid'])) {
         // create new compose session
         $this->bocompose = CreateObject('felamimail.bocompose', '', $this->displayCharset);
         $this->composeID = $this->bocompose->getComposeID();
     } else {
         // reuse existing compose session
         if (isset($_POST['composeid'])) {
             $this->composeID = $_POST['composeid'];
         } else {
             $this->composeID = $_GET['composeid'];
         }
         $this->bocompose = CreateObject('felamimail.bocompose', $this->composeID, $this->displayCharset);
     }
     $this->t = CreateObject('phpgwapi.Template', PHPGW_APP_TPL);
     $this->bofelamimail = CreateObject('felamimail.bofelamimail', $this->displayCharset);
     $this->mailPreferences = ExecMethod('felamimail.bopreferences.getPreferences');
     $this->t->set_unknowns('remove');
     $this->rowColor[0] = $GLOBALS['phpgw_info']["theme"]["bg01"];
     $this->rowColor[1] = $GLOBALS['phpgw_info']["theme"]["bg02"];
     if (!isset($GLOBALS['phpgw']->css) || !is_object($GLOBALS['phpgw']->css)) {
         $GLOBALS['phpgw']->css = createObject('phpgwapi.css');
     }
     $GLOBALS['phpgw']->css->validate_file('app', 'felamimail');
 }
开发者ID:HaakonME,项目名称:porticoestate,代码行数:34,代码来源:class.uicompose.inc.php

示例2: _moduleContent

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;
}
开发者ID:hardikk,项目名称:HNH,代码行数:56,代码来源:index.php

示例3: createXajax

 public function createXajax(array $config)
 {
     $xajax = new \xajax();
     $xajax->configureMany($config);
     return $xajax;
     //        $xajax->configure('debug', isset($this->config['xajax']['debug']) ? $this->config['xajax']['debug'] : FALSE);
     //        $xajax->configure("characterEncoding", isset($this->config['xajax']['characterEncoding']) ? $this->config['xajax']['characterEncoding'] : "utf-8");
     //        $xajax->configure('javascript URI', isset($this->config['xajax']['javascript URI']) ? $this->config['xajax']['javascript URI'] : '');
     //        $xajax->configure('responseType', isset($this->config['xajax']['responseType']) ? $this->config['xajax']['responseType'] : 'JSON');
     //        return $xajax;
 }
开发者ID:php-nik,项目名称:core,代码行数:11,代码来源:Fabrika.php

示例4: router

 public static function router($app, $module, $event, $params, $ajax_conf = array(), $name_utility = '')
 {
     $security = APP_PATH . $app . DS . 'security.php';
     include $security;
     # Es una utilidad?
     if ($name_utility) {
         $pathScript = ROOT_PATH . DS . 'resources' . DS . 'utility' . DS . $name_utility . '.php';
         include $pathScript;
     } else {
         $pathModel = APP_PATH . $app . DS . $module . DS . 'dataModel.php';
         $pathHandler = APP_PATH . $app . DS . $module . DS . 'handlerEvent.php';
         $pathIndex = APP_PATH . $app . DS . $module . DS . 'index.php';
         if (file_exists($pathIndex)) {
             include $pathModel;
             include $pathHandler;
             if (class_exists('controller')) {
                 global $objAjax;
                 switch (AJAX_ENGINE) {
                     case 'xajax':
                         require PLUGINS_PATH . 'xajax/xajax_core/xajax.inc.php';
                         # Agilizar el rendimiento
                         $objxAjax = new xajax();
                         $objxAjax->setFlag("debug", $ajax_conf[AJAX_ENGINE]['debug']);
                         $objxAjax->setFlag('decodeUTF8Input', $ajax_conf[AJAX_ENGINE]['decodeUTF8Input']);
                         $objxAjax->setWrapperPrefix($ajax_conf[AJAX_ENGINE]['wrapper_prefix']);
                         $GLOBALS['objAjax'] = $objxAjax;
                         define('PATH_XAJAX_JS', 'plugin/xajax/');
                         break;
                 }
                 $controller = new controller();
                 $controller->processRequest();
                 if (method_exists($controller, $event)) {
                     $reflectionMethod = new ReflectionMethod('controller', $event);
                     $reflectionMethod->invokeArgs($controller, $params);
                 } else {
                     if ($event != 'default_event') {
                         $msgError = '<div class="error"><b>' . OPF_myLang::getPhrase('ERROR_LABEL') . ':</b>&nbsp;' . OPF_myLang::getPhrase('ROUTER_METHOD_NOT_FOUND') . '&nbsp;&quot;' . $event . '&quot;</div>';
                         die($msgError);
                     }
                 }
                 include $pathIndex;
             } else {
                 $msgError = '<div class="error"><b>' . OPF_myLang::getPhrase('ERROR_LABEL') . ':</b>&nbsp;' . OPF_myLang::getPhrase('ROUTER_CLASS_NOT_FOUND') . '&nbsp;&quot;' . 'controller' . '&quot;</div>';
                 die($msgError);
             }
         } else {
             die('Error: 404 / The module "' . $app . '/' . $module . '" does not exist.');
         }
     }
 }
开发者ID:nextbook438,项目名称:osezno-php-framework,代码行数:50,代码来源:router.php

示例5: xajax

<?php

/*
	File: theFrame.php
	
	Test script that runs in an iframe and communicates with the parent frame.
*/
require '../../xajax_core/xajax.inc.php';
$xajax = new xajax();
$xajax->configure('requestURI', basename(__FILE__));
$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>
开发者ID:asad345100,项目名称:mis-pos,代码行数:31,代码来源:theFrame.php

示例6: define

<?
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

示例7: define

<?php

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';
global $xajax;
if (!$xajax) {
    $xajax = new xajax('/xajax/verify.server.php');
    $xajax->configure('decodeUTF8Input', true);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    $xajax->register(XAJAX_FUNCTION, 'addSubscribe');
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:12,代码来源:verify.common.php

示例8: isset

<?php

/* For licensing terms, see /license.txt */
/**
 * @package chamilo.admin
 * @todo use formvalidator
 */
// name of the language file that needs to be included
$language_file = 'admin';
// resetting the course id
$cidReset = true;
require_once '../inc/global.inc.php';
$id_session = isset($_GET['id_session']) ? intval($_GET['id_session']) : null;
SessionManager::protect_session_edit($id_session);
$xajax = new xajax();
$xajax->registerFunction(array('search_courses', 'AddCourseToSession', 'search_courses'));
// Setting the section (for the tabs)
$this_section = SECTION_PLATFORM_ADMIN;
// setting breadcrumbs
$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('Sessions'));
$interbreadcrumb[] = array('url' => 'session_list.php', 'name' => get_lang('SessionList'));
$interbreadcrumb[] = array('url' => "resume_session.php?id_session=" . $id_session, "name" => get_lang('SessionOverview'));
// Database Table Definitions
$tbl_session_rel_course_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER);
$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);
$tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);
$tbl_session_rel_course = Database::get_main_table(TABLE_MAIN_SESSION_COURSE);
$tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);
// setting the name of the tool
$tool_name = get_lang('SubscribeCoursesToSession');
$add_type = 'multiple';
开发者ID:ilosada,项目名称:chamilo-lms-icpna,代码行数:31,代码来源:add_courses_to_session.php

示例9: header

********************************************************************************/
header('Content-Type: text/html; charset=utf-8');
header('Expires: Sat, 01 Jan 2000 00:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
session_cache_limiter('public, no-store');
session_set_cookie_params(0);
if (!session_id()) {
    session_start();
}
setcookie('PHPSESSID', session_id());
require_once 'include/localization.class.php';
if ($_SESSION['curuser']['usertype'] == 'clid' || $_SESSION['curuser']['usertype'] == '') {
    header("Location: index.php");
} elseif ($_SESSION['curuser']['usertype'] != 'admin' && $_SESSION['curuser']['usertype'] != 'reseller' && $_SESSION['curuser']['usertype'] != 'groupadmin') {
    header("Location: systemstatus.php");
}
require_once "include/xajax.inc.php";
$GLOBALS['locate'] = new Localization($_SESSION['curuser']['country'], $_SESSION['curuser']['language'], 'import');
$xajax = new xajax("import.server.php");
$xajax->registerFunction("selectTable");
$xajax->registerFunction("init");
$xajax->registerFunction("submitForm");
$xajax->registerFunction("showDivMainRight");
$xajax->registerFunction("setGroup");
$xajax->registerFunction("deleteFile");
define("ROWSXPAGE", 5);
// Number of rows show it per page.
define("MAXROWSXPAGE", 25);
// Total number of rows show it when click on "Show All" button.
开发者ID:ljhcj,项目名称:IRISCC,代码行数:31,代码来源:import.common.php

示例10: xajaxResponse

    $provlist = $view_controller->xajaxObjCall($value, 'LOC', 'province');
    $objResponse = new xajaxResponse();
    $xajaxFiller = new xajaxElementFiller();
    $xajaxFiller->setDefaultOptionName($GLOBALS['lang_Common_Select']);
    if ($provlist) {
        $objResponse->addAssign('lrState', 'innerHTML', '<select name="txtState" id="txtState"><option value="0">--- ' . $GLOBALS['lang_Common_Select'] . ' ---</option></select>');
        $objResponse = $xajaxFiller->cmbFillerById($objResponse, $provlist, 1, 'lrState', 'txtState');
    } else {
        $objResponse->addAssign('lrState', 'innerHTML', '<input type="text" name="txtState" id="txtState" value="">');
    }
    $objResponse->addScript('document.getElementById("txtState").Focus();');
    $objResponse->addScript("document.frmLocation.txtDistrict.options.length = 1;");
    $objResponse->addAssign('status', 'innerHTML', '');
    return $objResponse->getXML();
}
$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();
    ?>
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:locations.php

示例11: header

header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
session_cache_limiter('public, no-store');
session_set_cookie_params(0);
if (!session_id()) {
    session_start();
}
setcookie('PHPSESSID', session_id());
if ($_SESSION['curuser']['usertype'] != 'admin' && $_SESSION['curuser']['usertype'] != 'groupadmin' && !is_array($_SESSION['curuser']['privileges']['note_leads'])) {
    header("Location: portal.php");
}
require_once "include/xajax.inc.php";
require_once 'include/localization.class.php';
$GLOBALS['locate'] = new Localization($_SESSION['curuser']['country'], $_SESSION['curuser']['language'], 'astercrm');
$xajax = new xajax("note_leads.server.php");
$xajax->registerFunction("init");
$xajax->registerFunction("showGrid");
$xajax->registerFunction("export");
$xajax->registerFunction("delete");
$xajax->registerFunction("edit");
$xajax->registerFunction("save");
$xajax->registerFunction("showCustomer");
$xajax->registerFunction("showContact");
$xajax->registerFunction("update");
$xajax->registerFunction("add");
$xajax->registerFunction("searchFormSubmit");
$xajax->registerFunction("deleteByButton");
define("ROWSXPAGE", 10);
// Number of rows show it per page.
define("MAXROWSXPAGE", 25);
开发者ID:ljhcj,项目名称:IRISCC,代码行数:31,代码来源:note_leads.common.php

示例12: define

<?php

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";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/stdf.php";
global $xajax;
if (!$xajax) {
    $xajax = new xajax("/xajax/masssending.server.php");
    $xajax->configure('decodeUTF8Input', TRUE);
    $xajax->configure('scriptLoadTimeout', XAJAX_LOAD_TIMEOUT);
    $xajax->register(XAJAX_FUNCTION, 'GetCities');
    $xajax->register(XAJAX_FUNCTION, 'DelFile');
    $xajax->register(XAJAX_FUNCTION, 'Calculate');
    $xajax->register(XAJAX_FUNCTION, 'CalculateFromSearch');
    $xajax->register(XAJAX_FUNCTION, 'MasssendingEdit');
    $xajax->register(XAJAX_FUNCTION, 'MasssendingSave');
}
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:18,代码来源:masssending.common.php

示例13: antiIE

<?
   include_once "init.php";
   antiIE();
   $_url = new URL_Reader();
   $_url->setParts('module', 'page');
   $_part = $_url->part;

   $_arr_module_accepted = $_SESSION[module][nama];

   $_xajax = new xajax();
   if(!$_part[module]) {
      header("LOCATION:".URL."index.html");
   } else {
      //if() {
      if(is_file(MODULES_DIR.$_part[module]."/index.php") && @in_array($_part[module], $_arr_module_accepted)) {
          
         //modules/setting
         include_once MODULES_DIR . $_part[module] . "/index.php";

         if(is_file(MODULES_DIR.$_part[module]."/".$_part[page].".php")) {
            //modules/setting/dokter.php
            include_once "chat.php";
            include_once MODULES_DIR.$_part[module]."/".$_part[page].".php";
            $_xajax->processRequests();

            if(is_file(HTML_DIR.$_part[module]."/html.".$_part[page].".php")) {
               //html/setting/html.dokter.php
               include_once HTML_DIR.$_part[module]."/html.".$_part[page].".php";
            }
         } else {
            include_once HTML_DIR.$_part[module]."/html.index.php";
开发者ID:reekoheek,项目名称:srmis,代码行数:31,代码来源:index.php

示例14: header

*	such as xajax_init()

	init					init html page

* Revision 0.01  2007/11/21 15:25:00  modified by solo
* Desc: page created

********************************************************************************/
header('Content-Type: text/html; charset=utf-8');
header('Expires: Sat, 01 Jan 2000 00:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
session_cache_limiter('public, no-store');
session_set_cookie_params(0);
if (!session_id()) {
    session_start();
}
setcookie('PHPSESSID', session_id());
error_reporting($_SESSION['error_report']);
require_once 'include/localization.class.php';
if ($_SESSION['curuser']['usertype'] != 'admin' && $_SESSION['curuser']['usertype'] != 'groupadmin' && !is_array($_SESSION['curuser']['privileges']['user_online'])) {
    header("Location: portal.php");
}
$GLOBALS['locate'] = new Localization($_SESSION['curuser']['country'], $_SESSION['curuser']['language'], 'user_online');
require_once "include/xajax.inc.php";
$xajax = new xajax("user_online.server.php");
$xajax->registerFunction("init");
$xajax->registerFunction("listReport");
$xajax->registerFunction("speedDate");
$xajax->registerFunction("getAgent");
开发者ID:ljhcj,项目名称:IRISCC,代码行数:31,代码来源:user_online.common.php

示例15: array

<?php

/* For licensing terms, see /license.txt */
/**
*	@package chamilo.admin
*/
// name of the language file that needs to be included
$language_file = array('admin', 'registration');
// resetting the course id
$cidReset = true;
// including some necessary files
////require_once '../inc/global.inc.php';
require_once '../inc/lib/xajax/xajax.inc.php';
$xajax = new xajax();
$xajax->registerFunction('search_users');
// setting the section (for the tabs)
$this_section = SECTION_PLATFORM_ADMIN;
$id_session = intval($_GET['id_session']);
$addProcess = isset($_GET['add']) ? Security::remove_XSS($_GET['add']) : null;
SessionManager::protect_session_edit($id_session);
// setting breadcrumbs
$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array('url' => 'session_list.php', 'name' => get_lang('SessionList'));
$interbreadcrumb[] = array('url' => "resume_session.php?id_session=" . $id_session, "name" => get_lang('SessionOverview'));
// Database Table Definitions
$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);
$tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);
$tbl_user = Database::get_main_table(TABLE_MAIN_USER);
$tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);
// setting the name of the tool
$tool_name = get_lang('SubscribeUsersToSession');
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:31,代码来源:add_users_to_session.php


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