@@ 6530-6541 (lines=12) @@ | ||
6527 | $arrHide = array ( |
|
6528 | $id |
|
6529 | ); |
|
6530 | for ($i = 0; $i < count($arrLP); $i++) { |
|
6531 | if ($action != 'add') { |
|
6532 | 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)) { |
|
6533 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
6534 | } else { |
|
6535 | $arrHide[] = $arrLP[$i]['id']; |
|
6536 | } |
|
6537 | } else { |
|
6538 | if ($arrLP[$i]['item_type'] == 'dokeos_module' || $arrLP[$i]['item_type'] == 'dokeos_chapter' || $arrLP[$i]['item_type'] == 'dir') |
|
6539 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
6540 | } |
|
6541 | } |
|
6542 | if (is_array($arrLP)) { |
|
6543 | reset($arrLP); |
|
6544 | } |
|
@@ 6751-6762 (lines=12) @@ | ||
6748 | ); |
|
6749 | ||
6750 | if (count($arrLP) > 0) { |
|
6751 | for ($i = 0; $i < count($arrLP); $i++) { |
|
6752 | if ($action != 'add') { |
|
6753 | 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)) { |
|
6754 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
6755 | } else { |
|
6756 | $arrHide[] = $arrLP[$i]['id']; |
|
6757 | } |
|
6758 | } else { |
|
6759 | if ($arrLP[$i]['item_type'] == 'dokeos_module' || $arrLP[$i]['item_type'] == 'dokeos_chapter' || $arrLP[$i]['item_type'] == 'dir') |
|
6760 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
6761 | } |
|
6762 | } |
|
6763 | ||
6764 | reset($arrLP); |
|
6765 | } |
|
@@ 6937-6948 (lines=12) @@ | ||
6934 | ); |
|
6935 | ||
6936 | //$parent_item_id = $_SESSION['parent_item_id']; |
|
6937 | for ($i = 0; $i < count($arrLP); $i++) { |
|
6938 | if ($action != 'add') { |
|
6939 | 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)) { |
|
6940 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
6941 | } else { |
|
6942 | $arrHide[] = $arrLP[$i]['id']; |
|
6943 | } |
|
6944 | } else { |
|
6945 | if ($arrLP[$i]['item_type'] == 'dokeos_module' || $arrLP[$i]['item_type'] == 'dokeos_chapter' || $arrLP[$i]['item_type'] == 'dir') |
|
6946 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
6947 | } |
|
6948 | } |
|
6949 | if (is_array($arrLP)) { |
|
6950 | reset($arrLP); |
|
6951 | } |
|
@@ 7116-7127 (lines=12) @@ | ||
7113 | $id |
|
7114 | ); |
|
7115 | ||
7116 | for ($i = 0; $i < count($arrLP); $i++) { |
|
7117 | if ($action != 'add') { |
|
7118 | 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)) { |
|
7119 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
7120 | } else { |
|
7121 | $arrHide[] = $arrLP[$i]['id']; |
|
7122 | } |
|
7123 | } else { |
|
7124 | if ($arrLP[$i]['item_type'] == 'dokeos_module' || $arrLP[$i]['item_type'] == 'dokeos_chapter' || $arrLP[$i]['item_type'] == 'dir') |
|
7125 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
7126 | } |
|
7127 | } |
|
7128 | ||
7129 | if ($arrLP != null) { |
|
7130 | reset($arrLP); |
|
@@ 7864-7875 (lines=12) @@ | ||
7861 | ||
7862 | $parent_item_id = $_SESSION['parent_item_id']; |
|
7863 | ||
7864 | for ($i = 0; $i < count($arrLP); $i++) { |
|
7865 | if ($action != 'add') { |
|
7866 | 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)) { |
|
7867 | $return .= '<option ' . (($parent == $arrLP[$i]['id']) ? 'selected="selected" ' : '') . 'style="padding-left:' . ($arrLP[$i]['depth'] * 10) . 'px;" value="' . $arrLP[$i]['id'] . '">' . $arrLP[$i]['title'] . '</option>'; |
|
7868 | } else { |
|
7869 | $arrHide[] = $arrLP[$i]['id']; |
|
7870 | } |
|
7871 | } else { |
|
7872 | if ($arrLP[$i]['item_type'] == 'dokeos_module' || $arrLP[$i]['item_type'] == 'dokeos_chapter' || $arrLP[$i]['item_type'] == 'dir') |
|
7873 | $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>'; |
|
7874 | } |
|
7875 | } |
|
7876 | ||
7877 | if (is_array($arrLP)) { |
|
7878 | reset($arrLP); |