@@ 6538-6549 (lines=12) @@ | ||
6535 | $arrHide = array ( |
|
6536 | $id |
|
6537 | ); |
|
6538 | for ($i = 0; $i < count($arrLP); $i++) { |
|
6539 | if ($action != 'add') { |
|
6540 | if (($arrLP[$i]['item_type'] == 'dokeos_module' || $arrLP[$i]['item_type'] == 'dokeos_chapter' || $arrLP[$i]['item_type'] == 'dir') && !in_array($arrLP[$i]['id'], $arrHide) && !in_array($arrLP[$i]['parent_item_id'], $arrHide)) { |
|
6541 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
6542 | } else { |
|
6543 | $arrHide[] = $arrLP[$i]['id']; |
|
6544 | } |
|
6545 | } else { |
|
6546 | if ($arrLP[$i]['item_type'] == 'dokeos_module' || $arrLP[$i]['item_type'] == 'dokeos_chapter' || $arrLP[$i]['item_type'] == 'dir') |
|
6547 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
6548 | } |
|
6549 | } |
|
6550 | if (is_array($arrLP)) { |
|
6551 | reset($arrLP); |
|
6552 | } |
|
@@ 6759-6770 (lines=12) @@ | ||
6756 | ); |
|
6757 | ||
6758 | if (count($arrLP) > 0) { |
|
6759 | for ($i = 0; $i < count($arrLP); $i++) { |
|
6760 | if ($action != 'add') { |
|
6761 | if (($arrLP[$i]['item_type'] == 'dokeos_module' || $arrLP[$i]['item_type'] == 'dokeos_chapter' || $arrLP[$i]['item_type'] == 'dir') && !in_array($arrLP[$i]['id'], $arrHide) && !in_array($arrLP[$i]['parent_item_id'], $arrHide)) { |
|
6762 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
6763 | } else { |
|
6764 | $arrHide[] = $arrLP[$i]['id']; |
|
6765 | } |
|
6766 | } else { |
|
6767 | if ($arrLP[$i]['item_type'] == 'dokeos_module' || $arrLP[$i]['item_type'] == 'dokeos_chapter' || $arrLP[$i]['item_type'] == 'dir') |
|
6768 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
6769 | } |
|
6770 | } |
|
6771 | ||
6772 | reset($arrLP); |
|
6773 | } |
|
@@ 6945-6956 (lines=12) @@ | ||
6942 | ); |
|
6943 | ||
6944 | //$parent_item_id = $_SESSION['parent_item_id']; |
|
6945 | for ($i = 0; $i < count($arrLP); $i++) { |
|
6946 | if ($action != 'add') { |
|
6947 | if (($arrLP[$i]['item_type'] == 'dokeos_module' || $arrLP[$i]['item_type'] == 'dokeos_chapter' || $arrLP[$i]['item_type'] == 'dir') && !in_array($arrLP[$i]['id'], $arrHide) && !in_array($arrLP[$i]['parent_item_id'], $arrHide)) { |
|
6948 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
6949 | } else { |
|
6950 | $arrHide[] = $arrLP[$i]['id']; |
|
6951 | } |
|
6952 | } else { |
|
6953 | if ($arrLP[$i]['item_type'] == 'dokeos_module' || $arrLP[$i]['item_type'] == 'dokeos_chapter' || $arrLP[$i]['item_type'] == 'dir') |
|
6954 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
6955 | } |
|
6956 | } |
|
6957 | if (is_array($arrLP)) { |
|
6958 | reset($arrLP); |
|
6959 | } |
|
@@ 7124-7135 (lines=12) @@ | ||
7121 | $id |
|
7122 | ); |
|
7123 | ||
7124 | for ($i = 0; $i < count($arrLP); $i++) { |
|
7125 | if ($action != 'add') { |
|
7126 | if (($arrLP[$i]['item_type'] == 'dokeos_module' || $arrLP[$i]['item_type'] == 'dokeos_chapter' || $arrLP[$i]['item_type'] == 'dir') && !in_array($arrLP[$i]['id'], $arrHide) && !in_array($arrLP[$i]['parent_item_id'], $arrHide)) { |
|
7127 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
7128 | } else { |
|
7129 | $arrHide[] = $arrLP[$i]['id']; |
|
7130 | } |
|
7131 | } else { |
|
7132 | if ($arrLP[$i]['item_type'] == 'dokeos_module' || $arrLP[$i]['item_type'] == 'dokeos_chapter' || $arrLP[$i]['item_type'] == 'dir') |
|
7133 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
7134 | } |
|
7135 | } |
|
7136 | ||
7137 | if ($arrLP != null) { |
|
7138 | reset($arrLP); |
|
@@ 7872-7883 (lines=12) @@ | ||
7869 | ||
7870 | $parent_item_id = $_SESSION['parent_item_id']; |
|
7871 | ||
7872 | for ($i = 0; $i < count($arrLP); $i++) { |
|
7873 | if ($action != 'add') { |
|
7874 | if (($arrLP[$i]['item_type'] == 'dokeos_module' || $arrLP[$i]['item_type'] == 'dokeos_chapter' || $arrLP[$i]['item_type'] == 'dir') && !in_array($arrLP[$i]['id'], $arrHide) && !in_array($arrLP[$i]['parent_item_id'], $arrHide)) { |
|
7875 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
7876 | } else { |
|
7877 | $arrHide[] = $arrLP[$i]['id']; |
|
7878 | } |
|
7879 | } else { |
|
7880 | if ($arrLP[$i]['item_type'] == 'dokeos_module' || $arrLP[$i]['item_type'] == 'dokeos_chapter' || $arrLP[$i]['item_type'] == 'dir') |
|
7881 | $return .= '<option ' . (($parent_item_id == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
7882 | } |
|
7883 | } |
|
7884 | ||
7885 | if (is_array($arrLP)) { |
|
7886 | reset($arrLP); |