當前位置: 首頁>>代碼示例>>PHP>>正文


PHP xajax::configureMany方法代碼示例

本文整理匯總了PHP中xajax::configureMany方法的典型用法代碼示例。如果您正苦於以下問題:PHP xajax::configureMany方法的具體用法?PHP xajax::configureMany怎麽用?PHP xajax::configureMany使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在xajax的用法示例。


在下文中一共展示了xajax::configureMany方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: 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

示例2: xajax

        }
        $content = <<<END
            <select name="auswahl" id="nl_auswahl">
                <option selected="selected" disabled="disabled">Bitte treffen Sie eine Auswahl</option>
                    {$listeG}
            </select>
\t\t\t<input type="checkbox" name="andhigher" id="cb_andhigher" value="1" />
\t\t\t<label for="cb_andhigher">und f&uuml;r alle h&ouml;heren Rechte</label>
END;
    }
    $objResponse->assign('list', 'innerHTML', $content);
    $objResponse->setEvent('nl_auswahl', 'onchange', 'checkEmail();');
    return $objResponse;
}
$xajax = new xajax('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'] . '?newsletter=0');
$xajax->configureMany(array('characterEncoding' => 'ISO-8859-1', 'decodeUTF8Input' => true));
$xajax->registerFunction('XAJAX_changeList');
$xajax->processRequest();
$design = new design('Ilch Admin-Control-Panel :: Newsletter', '', 2);
$design->header();
if (isset($_POST['SEND']) and chk_antispam('adminuser_action', true)) {
    $mailopm = substr($_POST['auswahl'], 0, 1);
    $usrogrp = substr($_POST['auswahl'], 1, 1);
    if ($_POST['auswahl'] == 'Enews') {
        $q = "SELECT `email` FROM `prefix_newsletter`";
    } elseif ($usrogrp == 'u') {
        $q = "SELECT `email`,`name` as `uname`,`id` as `uid` FROM `prefix_user` WHERE `recht` <= '-1'";
    } elseif ($usrogrp == 'g') {
        $gid = substr($_POST['auswahl'], 2, strlen($_POST['auswahl']) - 1);
        $q = "SELECT `b`.`email`, `b`.`name` as `uname`, `b`.`id` as `uid` FROM `prefix_groupusers` `a` LEFT JOIN `prefix_user` `b` ON `a`.`uid` = `b`.`id` WHERE `a`.`gid` = '{$gid}'";
    } elseif ($usrogrp == 'r') {
開發者ID:rjdesign,項目名稱:Ilch-1.2,代碼行數:31,代碼來源:newsletter.php


注:本文中的xajax::configureMany方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。