@@ 474-483 (lines=10) @@ | ||
471 | $tab = ''; |
|
472 | while (list($cid, $title, $pid, $allowlist, $active) = $xoopsDB->fetchRow($mainresult)) { |
|
473 | //For each cid, get all 'first children' using getFirstChildId() function |
|
474 | if ($allowlist != '0') { |
|
475 | if ($active == '1') { |
|
476 | $checked = ' checked'; |
|
477 | } else { |
|
478 | $checked = ''; |
|
479 | } |
|
480 | $checkbox = '<input type="checkbox" name="selected' . $cid . "\"$checked"; |
|
481 | } else { |
|
482 | $checkbox = ' '; |
|
483 | } |
|
484 | $output .= '<tr><td><strong>' . $tab . '' . $title . "</strong></td><td> </td><td>$checkbox</td></tr>\n"; |
|
485 | $output .= getCatSelectAreaChildren($cid, 0, $dirid); |
|
486 | } |
|
@@ 525-534 (lines=10) @@ | ||
522 | $numrows = $xoopsDB->getRowsNum($childresult); |
|
523 | if ($numrows > 0) { |
|
524 | while (list($cid, $title, $pid, $allowlist, $active) = $xoopsDB->fetchRow($childresult)) { |
|
525 | if ($allowlist != '0') { |
|
526 | if ($active == '1') { |
|
527 | $checked = ' checked'; |
|
528 | } else { |
|
529 | $checked = ''; |
|
530 | } |
|
531 | $checkbox = '<input type="checkbox" name="selected' . $cid . "\"$checked"; |
|
532 | } else { |
|
533 | $checkbox = ' '; |
|
534 | } |
|
535 | $output .= '<tr><td><strong>' . $tab . '' . $plus . ' ' . $title . "</td><td> </strong></td><td align=\"center\">$checkbox</td></tr>\n"; |
|
536 | $newlevel = $level + 1; |
|
537 | $output .= getCatSelectAreaChildren($cid, $newlevel); |