smc
This commit is contained in:
13
smc/panel/plugins/tablednd/server/ajaxJSONTest.php
Normal file
13
smc/panel/plugins/tablednd/server/ajaxJSONTest.php
Normal file
@@ -0,0 +1,13 @@
|
||||
The server says: your row order was<br/>
|
||||
<?php
|
||||
$result = json_decode(file_get_contents('php://input'), true);
|
||||
show_results($result, "table-7");
|
||||
function show_results($result, $id, $indent = null) {
|
||||
foreach($result[$id] as $value) {
|
||||
echo "$indent$value<br/>";
|
||||
if (isset($result["$value"]))
|
||||
show_results($result, $value, $indent.implode(' ', array_fill(0, 12, '')));
|
||||
}
|
||||
}
|
||||
?>
|
||||
See the <a href="server/ajaxJSONTest_php.html" target="_BLANK">PHP Source</a><br/>
|
||||
Reference in New Issue
Block a user