|
@@ -39,12 +39,18 @@ SQL;
|
|
|
$outLines[] = '<span title="'.$outTitle.'">'.$outLabel.'</span>';
|
|
$outLines[] = '<span title="'.$outTitle.'">'.$outLabel.'</span>';
|
|
|
}
|
|
}
|
|
|
if (!empty($info->PATH)) {
|
|
if (!empty($info->PATH)) {
|
|
|
- $outLines[] = 'Ścieżka: ' . $info->PATH;
|
|
|
|
|
|
|
+ $outPaths = array();
|
|
|
|
|
+ $paths = explode(',', $info->PATH);
|
|
|
|
|
+ foreach ($paths as $path) {
|
|
|
|
|
+ $js = "return treeAddToFiltr(this, {$path});";
|
|
|
|
|
+ $outPaths[] = '<a href="#" onclick="' . $js . '">' . $path . '</a>';
|
|
|
|
|
+ }
|
|
|
|
|
+ $outLines[] = 'Ścieżka: ' . implode(', ', $outPaths);
|
|
|
}
|
|
}
|
|
|
if (!empty($info->CHILDS)) {
|
|
if (!empty($info->CHILDS)) {
|
|
|
$outChilds = array();
|
|
$outChilds = array();
|
|
|
$childs = explode(',', $info->CHILDS);
|
|
$childs = explode(',', $info->CHILDS);
|
|
|
- foreach($childs as $child) {
|
|
|
|
|
|
|
+ foreach ($childs as $child) {
|
|
|
$js = "return treeAddToFiltr(this, {$child});";
|
|
$js = "return treeAddToFiltr(this, {$child});";
|
|
|
$outChilds[] = '<a href="#" onclick="' . $js . '">' . $child . '</a>';
|
|
$outChilds[] = '<a href="#" onclick="' . $js . '">' . $child . '</a>';
|
|
|
}
|
|
}
|