⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editable_xml.php

📁 zapatec suite 最新版 20070204,非常棒的ajax widgets 工具包
💻 PHP
字号:
<?php/** * Part of Zapatec Grid communications with server example. * * Copyright (c) 2004-2006 by Zapatec, Inc. * http://www.zapatec.com * 1700 MLK Way, Berkeley, California, * 94709, U.S.A. * All rights reserved. *//* $Id: editable_xml.php 7323 2007-06-01 21:05:51Z alex $ */// Get arguments in XML formatif (empty($_POST['changes'])) {	echo "Changes were not found.";	exit;}// Parse XMLpreg_match_all( '/<item>([^<]+)<\/item><column>([^<]+)<\/column><value>([^<]+)<\/value>/', $_POST['changes'], $out, PREG_PATTERN_ORDER);if (!count($out[0])) {	echo "Changes were not found.";	exit;}$arrColumns = array(	'Item',	'Date',	'Time',	'Rate Period',	'Phone Number',	'Minutes',	'Total Charges',	'Local');echo "Following changes were done:\n";for ($iChange = 0; $iChange < count($out[0]); $iChange++) {	echo 'Item #' . $out[1][$iChange] . ': new value of "' .	 $arrColumns[$out[2][$iChange]] . '" is "' . $out[3][$iChange] . "\"\n";}?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -