本文整理汇总了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;
}
示例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ür alle hö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') {