Add untracked files.
[order_line_extra.git] / TableDnD / server / ajaxJSONTest.php
1 The server says: your row order was<br/>
2 <?php
3 $result = json_decode(file_get_contents('php://input'), true);
4 show_results($result, "table-7");
5 function show_results($result, $id, $indent = null) {
6     foreach($result[$id] as $value) {
7         echo "$indent$value<br/>";
8         if (isset($result["$value"]))
9             show_results($result, $value, $indent.implode('&nbsp;', array_fill(0, 12, '')));
10     }
11 }
12 ?>
13 See the <a href="server/ajaxJSONTest_php.html" target="_BLANK">PHP Source</a><br/>