upgraded yui to 2.2.2 and yui-ext to 1.0.1a
This commit is contained in:
parent
4d9af2c691
commit
547ced6500
1992 changed files with 645731 additions and 0 deletions
32
www/extras/yui/examples/container/assets/post.php
Normal file
32
www/extras/yui/examples/container/assets/post.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
print "data = { ";
|
||||
|
||||
$index = 0;
|
||||
|
||||
foreach($_POST as $key => $value) {
|
||||
|
||||
print "$key:";
|
||||
|
||||
if (gettype($value) == "array") {
|
||||
print "[";
|
||||
for ($i = 0;$i < count($_POST["$key"]);$i++) {
|
||||
$v = $_POST["$key"][$i];
|
||||
print "\"$v\"";
|
||||
if ($i < count($_POST["$key"])-1) {
|
||||
print ",";
|
||||
}
|
||||
}
|
||||
print "]";
|
||||
} else {
|
||||
print "\"$value\"";
|
||||
}
|
||||
|
||||
$index++;
|
||||
|
||||
if ( ($index) < count($_POST) ) {
|
||||
print ", ";
|
||||
}
|
||||
}
|
||||
|
||||
print " };";
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue