23 header(
'Content-type: text/xml; charset=utf-8');
25 $action->lay->setEncoding(
"utf-8");
27 $action->lay->set(
"count", count($tree));
28 $action->lay->set(
"code",
"OK");
29 $action->lay->set(
"warning",
"");
30 $pulid = uniqid(
"ul");
31 foreach ($tree as $k => $v) {
32 $tree[$k][
"ulid"] = $pulid . $k;
33 if (!isset($v[
"selecturl"])) $tree[$k][
"selecturl"] =
false;
34 if (!isset($v[
"selectjs"])) $tree[$k][
"selectjs"] =
false;
35 $tree[$k][
"selectnone"] = !($tree[$k][
"selectjs"] || $tree[$k][
"selecturl"]);
37 $action->lay->setBlockData(
"TREE", $tree);
38 $action->lay->setBlockData(
"ACTIONS", $postact);
Layout is a template generator.
prototree(&$action, $tree, $postact=array())
getLayoutFile($app, $layfile)