亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ajax.php

?? Cake Framwork , Excellent
?? PHP
?? 第 1 頁 / 共 2 頁
字號:
<?php/* SVN FILE: $Id: ajax.php 7118 2008-06-04 20:49:29Z gwoo $ *//** * Helper for AJAX operations. * * Helps doing AJAX using the Prototype library. * * PHP versions 4 and 5 * * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/> * Copyright 2005-2008, Cake Software Foundation, Inc. *								1785 E. Sahara Avenue, Suite 490-204 *								Las Vegas, Nevada 89104 * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @filesource * @copyright		Copyright 2005-2008, Cake Software Foundation, Inc. * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project * @package			cake * @subpackage		cake.cake.libs.view.helpers * @since			CakePHP(tm) v 0.10.0.1076 * @version			$Revision: 7118 $ * @modifiedby		$LastChangedBy: gwoo $ * @lastmodified	$Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $ * @license			http://www.opensource.org/licenses/mit-license.php The MIT License *//** * AjaxHelper helper library. * * Helps doing AJAX using the Prototype library. * * @package		cake * @subpackage	cake.cake.libs.view.helpers */class AjaxHelper extends AppHelper {/** * Included helpers. * * @var array */	var $helpers = array('Html', 'Javascript', 'Form');/** * HtmlHelper instance * * @var object * @access public */	var $Html = null;/** * JavaScriptHelper instance * * @var object * @access public */	var $Javascript = null;/** * Names of Javascript callback functions. * * @var array */	var $callbacks = array('complete', 'create', 'exception', 'failure', 'interactive', 'loading', 'loaded', 'success', 'uninitialized');/** * Names of AJAX options. * * @var array */	var $ajaxOptions = array('after', 'asynchronous', 'before', 'confirm', 'condition', 'contentType', 'encoding', 'evalScripts', 'failure', 'fallback', 'form', 'indicator', 'insertion', 'interactive', 'loaded', 'loading', 'method', 'onCreate', 'onComplete', 'onException', 'onFailure', 'onInteractive', 'onLoaded', 'onLoading', 'onSuccess', 'onUninitialized', 'parameters', 'position', 'postBody', 'requestHeaders', 'success', 'type', 'update', 'with');/** * Options for draggable. * * @var array */	var $dragOptions = array('handle', 'revert', 'snap', 'zindex', 'constraint', 'change', 'ghosting', 'starteffect', 'reverteffect', 'endeffect');/** * Options for droppable. * * @var array */	var $dropOptions = array('accept', 'containment', 'greedy', 'hoverclass', 'onHover', 'onDrop', 'overlap');/** * Options for sortable. * * @var array */	var $sortOptions = array('constraint', 'containment', 'dropOnEmpty', 'ghosting', 'handle', 'hoverclass', 'onUpdate', 'onChange', 'only', 'overlap', 'scroll', 'scrollSensitivity', 'scrollSpeed', 'tag', 'tree', 'treeTag', 'update');/** * Options for slider. * * @var array */	var $sliderOptions = array('alignX', 'alignY', 'axis', 'disabled', 'handleDisabled', 'handleImage', 'increment', 'maximum', 'minimum', 'onChange', 'onSlide', 'range', 'sliderValue', 'values');/** * Options for in-place editor. * * @var array */	var $editorOptions = array('okText', 'cancelText', 'savingText', 'formId', 'externalControl', 'rows', 'cols', 'size', 'highlightcolor', 'highlightendcolor', 'savingClassName', 'formClassName', 'loadTextURL', 'loadingText', 'callback', 'ajaxOptions', 'clickToEditText', 'collection', 'okButton', 'cancelLink');/** * Options for auto-complete editor. * * @var array */	var $autoCompleteOptions = array('afterUpdateElement', 'callback', 'frequency', 'indicator', 'minChars', 'onShow', 'onHide', 'parameters', 'paramName', 'tokens', 'updateElement');/** * Output buffer for Ajax update content * * @var array */	var $__ajaxBuffer = array();/** * Returns link to remote action * * Returns a link to a remote action defined by <i>options[url]</i> * (using the url() format) that's called in the background using * XMLHttpRequest. The result of that request can then be inserted into a * DOM object whose id can be specified with <i>options[update]</i>. * * Examples: * <code> *  link("Delete this post", * array("update" => "posts", "url" => "delete/{$postid->id}")); *  link(imageTag("refresh"), *		array("update" => "emails", "url" => "list_emails" )); * </code> * * By default, these remote requests are processed asynchronous during * which various callbacks can be triggered (for progress indicators and * the likes). * * Example: * <code> *	link (word, *		array("url" => "undo", "n" => word_counter), *		array("complete" => "undoRequestCompleted(request)")); * </code> * * The callbacks that may be specified are: * * - <i>loading</i>::		Called when the remote document is being *							loaded with data by the browser. * - <i>loaded</i>::		Called when the browser has finished loading *							the remote document. * - <i>interactive</i>::	Called when the user can interact with the *							remote document, even though it has not *							finished loading. * - <i>complete</i>:: Called when the XMLHttpRequest is complete. * * If you for some reason or another need synchronous processing (that'll * block the browser while the request is happening), you can specify * <i>options[type] = synchronous</i>. * * You can customize further browser side call logic by passing * in Javascript code snippets via some optional parameters. In * their order of use these are: * * - <i>confirm</i>:: Adds confirmation dialog. * -<i>condition</i>::	Perform remote request conditionally *                      by this expression. Use this to *                      describe browser-side conditions when *                      request should not be initiated. * - <i>before</i>::		Called before request is initiated. * - <i>after</i>::		Called immediately after request was *						initiated and before <i>loading</i>. * * @param string $title Title of link * @param string $href Href string "/products/view/12" * @param array $options		Options for JavaScript function * @param string $confirm		Confirmation message. Calls up a JavaScript confirm() message. * @param boolean $escapeTitle  Escaping the title string to HTML entities * * @return string				HTML code for link to remote action */	function link($title, $href = null, $options = array(), $confirm = null, $escapeTitle = true) {		if (!isset($href)) {			$href = $title;		}		if (!isset($options['url'])) {			$options['url'] = $href;		}		if (isset($confirm)) {			$options['confirm'] = $confirm;			unset($confirm);		}		$htmlOptions = $this->__getHtmlOptions($options, array('url'));		if (empty($options['fallback']) || !isset($options['fallback'])) {			$options['fallback'] = $href;		}		$htmlOptions = array_merge(array('id' => 'link' . intval(rand()), 'onclick' => ''), $htmlOptions);		$htmlOptions['onclick'] .= ' event.returnValue = false; return false;';		$return = $this->Html->link($title, $href, $htmlOptions, null, $escapeTitle);		$script = $this->Javascript->event("'{$htmlOptions['id']}'", "click", $this->remoteFunction($options));		if (is_string($script)) {			$return .= $script;		}		return $return;	}/** * Creates JavaScript function for remote AJAX call * * This function creates the javascript needed to make a remote call * it is primarily used as a helper for AjaxHelper::link. * * @param array $options options for javascript * @return string html code for link to remote action * @see AjaxHelper::link() for docs on options parameter. */	function remoteFunction($options) {		if (isset($options['update'])) {			if (!is_array($options['update'])) {				$func = "new Ajax.Updater('{$options['update']}',";			} else {				$func = "new Ajax.Updater(document.createElement('div'),";			}			if (!isset($options['requestHeaders'])) {				$options['requestHeaders'] = array();			}			if (is_array($options['update'])) {				$options['update'] = join(' ', $options['update']);			}			$options['requestHeaders']['X-Update'] = $options['update'];		} else {			$func = "new Ajax.Request(";		}		$func .= "'" . $this->url(isset($options['url']) ? $options['url'] : "") . "'";		$func .= ", " . $this->__optionsForAjax($options) . ")";		if (isset($options['before'])) {			$func = "{$options['before']}; $func";		}		if (isset($options['after'])) {			$func = "$func; {$options['after']};";		}		if (isset($options['condition'])) {			$func = "if ({$options['condition']}) { $func; }";		}		if (isset($options['confirm'])) {			$func = "if (confirm('" . $this->Javascript->escapeString($options['confirm'])				. "')) { $func; } else { event.returnValue = false; return false; }";		}		return $func;	}/** * Periodically call remote url via AJAX. * * Periodically calls the specified url (<i>options[url]</i>) every <i>options[frequency]</i> seconds (default is 10). * Usually used to update a specified div (<i>options[update]</i>) with the results of the remote call. * The options for specifying the target with url and defining callbacks is the same as linkToRemote. * * @param array $options Callback options * @return string Javascript code */	function remoteTimer($options = null) {		$frequency = (isset($options['frequency'])) ? $options['frequency'] : 10;		$code = "new PeriodicalExecuter(function() {" . $this->remoteFunction($options) . "}, $frequency)";		return $this->Javascript->codeBlock($code);	}/** * Returns form tag that will submit using Ajax. * * Returns a form tag that will submit using XMLHttpRequest in the background instead of the regular * reloading POST arrangement. Even though it's using Javascript to serialize the form elements, the form submission * will work just like a regular submission as viewed by the receiving side (all elements available in params). * The options for defining callbacks is the same as link(). * * @param array $params Form target * @param array $type How form data is posted: 'get' or 'post' * @param array $options Callback/HTML options * @return string JavaScript/HTML code */	function form($params = null, $type = 'post', $options = array()) {		$model = false;		if (is_array($params)) {			extract($params, EXTR_OVERWRITE);		}		if (empty($options['url'])) {			$options['url'] = array('action' => $params);		}		$htmlOptions = array_merge(array(			'id' => 'form' . intval(rand()), 'onsubmit'	=> "event.returnValue = false; return false;",			'type' => $type),			$this->__getHtmlOptions($options, array('model', 'with'))		);		$options = array_merge(array('model' => $model,'with' => "Form.serialize('{$htmlOptions['id']}')"), $options);		return $this->Form->create($options['model'], $htmlOptions)			. $this->Javascript->event("'" . $htmlOptions['id']. "'", 'submit', $this->remoteFunction($options));	}/** * Returns a button input tag that will submit using Ajax * * Returns a button input tag that will submit form using XMLHttpRequest in the background instead of regular * reloading POST arrangement. <i>options</i> argument is the same as in <i>form_remote_tag</i> * * @param string $title Input button title * @param array $options Callback options * @return string Ajaxed input button */	function submit($title = 'Submit', $options = array()) {		$htmlOptions = $this->__getHtmlOptions($options);		$htmlOptions['value'] = $title;		if (!isset($options['with'])) {			$options['with'] = 'Form.serialize(Event.element(event).form)';		}		if (!isset($htmlOptions['id'])) {			$htmlOptions['id'] = 'submit' . intval(rand());		}		$htmlOptions['onclick'] = "event.returnValue = false; return false;";		return $this->Form->submit($title, $htmlOptions)			. $this->Javascript->event('"' . $htmlOptions['id'] . '"', 'click', $this->remoteFunction($options));	}/** * Observe field and call ajax on change. * * Observes the field with the DOM ID specified by <i>field</i> and makes * an Ajax when its contents have changed. * * Required +options+ are: * - <i>frequency</i>:: The frequency (in seconds) at which changes to *						this field will be detected. * - <i>url</i>::		@see url() -style options for the action to call *						when the field has changed. * * Additional options are: * - <i>update</i>::	Specifies the DOM ID of the element whose *						innerHTML should be updated with the *						XMLHttpRequest response text. * - <i>with</i>:: A Javascript expression specifying the *						parameters for the XMLHttpRequest. This defaults *						to Form.Element.serialize('$field'), which can be *						accessed from params['form']['field_id']. * * Additionally, you may specify any of the options documented in * @see linkToRemote(). * * @param string $field DOM ID of field to observe * @param array $options ajax options * @return string ajax script */	function observeField($field, $options = array()) {		if (!isset($options['with'])) {			$options['with'] = 'Form.Element.serialize(\'' . $field . '\')';		}		$observer = 'Observer';		if (!isset($options['frequency']) || intval($options['frequency']) == 0) {			$observer = 'EventObserver';		}		return $this->Javascript->codeBlock($this->_buildObserver('Form.Element.' . $observer, $field, $options));	}/** * Observe entire form and call ajax on change. * * Like @see observeField(), but operates on an entire form identified by the * DOM ID <b>form</b>. <b>options</b> are the same as <b>observeField</b>, except * the default value of the <i>with</i> option evaluates to the * serialized (request string) value of the form. * * @param string $form DOM ID of form to observe * @param array $options ajax options * @return string ajax script */	function observeForm($form, $options = array()) {		if (!isset($options['with'])) {			$options['with'] = 'Form.serialize(\'' . $form . '\')';		}		$observer = 'Observer';		if (!isset($options['frequency']) || intval($options['frequency']) == 0) {			$observer = 'EventObserver';		}		return $this->Javascript->codeBlock($this->_buildObserver('Form.' . $observer, $form, $options));	}/** * Create a text field with Autocomplete. * * Creates an autocomplete field with the given ID and options. * * options['with'] defaults to "Form.Element.serialize('$field')", * but can be any valid javascript expression defining the * * @param string $field DOM ID of field to observe * @param string $url URL for the autocomplete action * @param array $options Ajax options * @return string Ajax script */	function autoComplete($field, $url = "", $options = array()) {		$var = '';		if (isset($options['var'])) {			$var = 'var ' . $options['var'] . ' = ';			unset($options['var']);		}		if (!isset($options['id'])) {			$options['id'] = Inflector::camelize(str_replace(".", "_", $field));		}		$divOptions = array('id' => $options['id'] . "_autoComplete", 'class' => isset($options['class']) ? $options['class'] : 'auto_complete');		if (isset($options['div_id'])) {			$divOptions['id'] = $options['div_id'];			unset($options['div_id']);		}		$htmlOptions = $this->__getHtmlOptions($options);		$htmlOptions['autocomplete'] = "off";		foreach ($this->autoCompleteOptions as $opt) {			unset($htmlOptions[$opt]);		}		if (isset($options['tokens'])) {			if (is_array($options['tokens'])) {				$options['tokens'] = $this->Javascript->object($options['tokens']);			} else {				$options['tokens'] = '"' . $options['tokens'] . '"';			}		}		$options = $this->_optionsToString($options, array('paramName', 'indicator'));		$options = $this->_buildOptions($options, $this->autoCompleteOptions);		return $this->Form->text($field, $htmlOptions) . "\n" .				$this->Html->div(null, '', $divOptions) . "\n" .				$this->Javascript->codeBlock("{$var}new Ajax.Autocompleter('" . $htmlOptions['id']					. "', '" . $divOptions['id'] . "', '" . $this->Html->url($url) . "', " .

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩激情一区二区| 91丝袜美女网| 91精品国产综合久久小美女| 亚洲最新在线观看| 欧美日韩精品免费观看视频| 亚洲电影视频在线| 欧美片网站yy| 麻豆专区一区二区三区四区五区| 欧美精品自拍偷拍| 久久超碰97中文字幕| 久久综合色鬼综合色| 大桥未久av一区二区三区中文| 中文字幕一区在线观看| 色狠狠av一区二区三区| 天天亚洲美女在线视频| 久久影院午夜片一区| av亚洲精华国产精华精华 | 99久久夜色精品国产网站| 1区2区3区欧美| 欧美日韩一区久久| 韩国v欧美v日本v亚洲v| 一区在线观看免费| 欧美理论在线播放| 国产成人一区在线| 亚洲图片有声小说| 国产亚洲精品中文字幕| 在线一区二区观看| 国产一区二区中文字幕| 亚洲综合自拍偷拍| xnxx国产精品| 欧美无砖专区一中文字| 国产盗摄女厕一区二区三区 | 欧美国产一区在线| 欧美三级在线视频| 国产一区二区三区在线观看免费视频| 中文字幕亚洲欧美在线不卡| 欧美一区二区视频在线观看2022 | 国产成人精品影视| 午夜精品在线视频一区| 欧美激情一区在线观看| 欧美一区二区三区在线| 97精品久久久久中文字幕| 美女mm1313爽爽久久久蜜臀| 亚洲欧美国产三级| 久久久久久99久久久精品网站| 欧美色精品在线视频| 国产精品18久久久久久久久久久久| 亚洲一区二区精品视频| 国产精品拍天天在线| 日韩美女视频一区二区在线观看| 色噜噜狠狠色综合欧洲selulu| 国产一区 二区 三区一级| 亚洲国产精品久久人人爱| 国产精品乱码妇女bbbb| 日韩精品在线一区| 欧美偷拍一区二区| 99在线精品一区二区三区| 国产精品综合二区| 免费在线观看精品| 亚洲gay无套男同| 一区二区三区在线看| 中文字幕第一页久久| xnxx国产精品| 久久亚洲精华国产精华液| 欧美一区二区免费视频| 欧美精品v日韩精品v韩国精品v| 一本大道久久a久久精二百| 成人一区二区三区| 成人免费的视频| 国产黄色精品网站| 国产精品99久久久久久久vr| 久久国产日韩欧美精品| 免费久久精品视频| 久久国产精品99久久久久久老狼| 日韩精品亚洲专区| 天天操天天色综合| 天天综合网天天综合色| 日本中文字幕一区二区有限公司| 婷婷久久综合九色综合伊人色| 污片在线观看一区二区| 日本不卡一区二区三区高清视频| 日韩成人免费看| 日韩电影在线免费看| 免费亚洲电影在线| 麻豆成人91精品二区三区| 捆绑调教一区二区三区| 国产一区欧美二区| 成人免费视频一区| 色综合久久久久久久| 91福利国产精品| 欧美日韩一区二区三区四区| 欧美男女性生活在线直播观看| 在线不卡一区二区| 欧美电视剧在线观看完整版| 久久婷婷久久一区二区三区| 国产欧美日韩视频在线观看| 国产精品国产精品国产专区不蜜| 亚洲天堂2014| 亚洲18色成人| 国产在线不卡一区| 99精品在线观看视频| 在线视频国内一区二区| 日韩一区二区三区视频| 久久亚洲一区二区三区四区| 国产精品久久久一本精品| 亚洲福利一二三区| 精品一区中文字幕| 成年人国产精品| 欧美日韩www| 久久久精品国产免费观看同学| 最新国产精品久久精品| 日韩国产精品91| 粉嫩aⅴ一区二区三区四区五区 | 国产福利视频一区二区三区| 一本色道久久综合狠狠躁的推荐 | 亚洲精品在线观| 国产精品久久福利| 婷婷成人激情在线网| 丁香五精品蜜臀久久久久99网站| 色婷婷综合久久| www欧美成人18+| 亚洲一区二区三区中文字幕| 老司机一区二区| 色嗨嗨av一区二区三区| 久久久亚洲精品石原莉奈| 一区二区在线观看免费视频播放| 美女性感视频久久| 日本韩国一区二区三区视频| 欧美精品一区男女天堂| 亚洲主播在线观看| 成人激情开心网| 欧美成人性福生活免费看| 亚洲色图都市小说| 国产一区视频在线看| 欧美久久久久中文字幕| 一区二区中文视频| 国产一区二区三区观看| 欧美日韩免费不卡视频一区二区三区| 久久久久9999亚洲精品| 日韩av一级电影| 欧美专区在线观看一区| 欧美激情一区二区三区四区| 免费看日韩精品| 欧美日韩一区二区三区高清 | 国产精品综合一区二区| 91.xcao| 亚洲女子a中天字幕| 高清在线观看日韩| 久久综合久久99| 麻豆精品一区二区av白丝在线| 日本乱码高清不卡字幕| 国产精品国产三级国产aⅴ原创| 激情偷乱视频一区二区三区| 制服丝袜日韩国产| 亚洲午夜电影在线| 色综合久久综合| 一区二区三区日韩欧美精品| 99精品黄色片免费大全| 中文字幕av一区二区三区高| 国产一区二区精品久久99| 欧美一区二区三区喷汁尤物| 亚洲一卡二卡三卡四卡无卡久久 | 大桥未久av一区二区三区中文| 精品国产乱码久久久久久久| 免费观看一级欧美片| 91精品国产一区二区三区香蕉| 午夜视频一区在线观看| 欧美美女视频在线观看| 午夜精品久久久久久久久久| 欧美午夜精品久久久久久超碰| 一区二区三区国产豹纹内裤在线| 一本色道久久加勒比精品| 一区二区欧美国产| 欧美日韩一级片在线观看| 亚洲国产欧美在线| 在线电影一区二区三区| 日韩电影免费在线看| 精品99久久久久久| 国产馆精品极品| 国产精品久久久久一区二区三区| 成人动漫在线一区| 亚洲精选免费视频| 欧美日韩一区三区四区| 免费亚洲电影在线| 久久久久久黄色| 91丨九色丨尤物| 亚洲一区二区三区四区中文字幕| 欧美视频日韩视频| 久久精品国产999大香线蕉| 国产亚洲欧美中文| 91影院在线免费观看| 亚洲午夜久久久| 精品国产青草久久久久福利| 国产91精品一区二区| 亚洲欧美偷拍另类a∨色屁股| 欧美视频第二页| 国产在线视视频有精品| 自拍偷拍欧美激情| 日韩一区二区三区在线观看| 成人自拍视频在线|