@@ 6564-6577 (lines=14) @@ | ||
6561 | ||
6562 | $return .= '<select class="learnpath_item_form" style="width:100%;" id="previous" name="previous" size="1">'; |
|
6563 | $return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>'; |
|
6564 | for ($i = 0; $i < count($arrLP); $i++) { |
|
6565 | if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) { |
|
6566 | if (is_array($extra_info)) { |
|
6567 | if ($extra_info['previous_item_id'] == $arrLP[$i]['id']) { |
|
6568 | $selected = 'selected="selected" '; |
|
6569 | } |
|
6570 | } elseif ($action == 'add') { |
|
6571 | $selected = 'selected="selected" '; |
|
6572 | } else { |
|
6573 | $selected = ''; |
|
6574 | } |
|
6575 | $return .= '<option ' . $selected . 'value="' . $arrLP[$i]['id'] . '">' . get_lang('After') . ' "' . $arrLP[$i]['title'] . '"</option>'; |
|
6576 | } |
|
6577 | } |
|
6578 | $return .= '</select>'; |
|
6579 | ||
6580 | $return .= '</td>'; |
|
@@ 6784-6794 (lines=11) @@ | ||
6781 | $return .= '<select id="previous" name="previous" size="1">'; |
|
6782 | $return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>'; |
|
6783 | ||
6784 | for ($i = 0; $i < count($arrLP); $i++) { |
|
6785 | if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) { |
|
6786 | if ($extra_info['previous_item_id'] == $arrLP[$i]['id']) |
|
6787 | $selected = 'selected="selected" '; |
|
6788 | elseif ($action == 'add') $selected = 'selected="selected" '; |
|
6789 | else |
|
6790 | $selected = ''; |
|
6791 | ||
6792 | $return .= '<option ' . $selected . 'value="' . $arrLP[$i]['id'] . '">' . get_lang('After') . ' "' . $arrLP[$i]['title'] . '"</option>'; |
|
6793 | } |
|
6794 | } |
|
6795 | ||
6796 | $return .= '</select>'; |
|
6797 | $return .= '</td>'; |
|
@@ 6970-6981 (lines=12) @@ | ||
6967 | $return .= '<select id="previous" name="previous" style="width:100%;" size="1" class="learnpath_item_form">'; |
|
6968 | $return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>'; |
|
6969 | ||
6970 | for ($i = 0; $i < count($arrLP); $i++) { |
|
6971 | if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) { |
|
6972 | if ($extra_info['previous_item_id'] == $arrLP[$i]['id']) |
|
6973 | $selected = 'selected="selected" '; |
|
6974 | elseif ($action == 'add') $selected = 'selected="selected" '; |
|
6975 | else |
|
6976 | $selected = ''; |
|
6977 | ||
6978 | $return .= '<option ' . $selected . 'value="' . $arrLP[$i]['id'] . '">' . |
|
6979 | get_lang('After') . ' "' . $arrLP[$i]['title'] . '"</option>'; |
|
6980 | } |
|
6981 | } |
|
6982 | ||
6983 | $return .= '</select>'; |
|
6984 | $return .= '</td>'; |
|
@@ 7149-7159 (lines=11) @@ | ||
7146 | $return .= '<td class="input">'; |
|
7147 | $return .= '<select id="previous" name="previous" size="1">'; |
|
7148 | $return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>'; |
|
7149 | for ($i = 0; $i < count($arrLP); $i++) { |
|
7150 | if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) { |
|
7151 | if ($extra_info['previous_item_id'] == $arrLP[$i]['id']) |
|
7152 | $selected = 'selected="selected" '; |
|
7153 | elseif ($action == 'add') $selected = 'selected="selected" '; |
|
7154 | else |
|
7155 | $selected = ''; |
|
7156 | ||
7157 | $return .= '<option ' . $selected . 'value="' . $arrLP[$i]['id'] . '">' . get_lang('After') . ' "' . $arrLP[$i]['title'] . '"</option>'; |
|
7158 | } |
|
7159 | } |
|
7160 | $return .= '</select>'; |
|
7161 | $return .= '</td>'; |
|
7162 | $return .= '</tr>'; |
|
@@ 7898-7909 (lines=12) @@ | ||
7895 | ||
7896 | $return .= '<select id="previous" name="previous" style="width:100%;" size="1" class="learnpath_item_form">'; |
|
7897 | $return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>'; |
|
7898 | for ($i = 0; $i < count($arrLP); $i++) { |
|
7899 | if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) { |
|
7900 | if ($extra_info['previous_item_id'] == $arrLP[$i]['id']) |
|
7901 | $selected = 'selected="selected" '; |
|
7902 | elseif ($action == 'add') |
|
7903 | $selected = 'selected="selected" '; |
|
7904 | else |
|
7905 | $selected = ''; |
|
7906 | ||
7907 | $return .= '<option ' . $selected . 'value="' . $arrLP[$i]['id'] . '">' . get_lang('After') . ' "' . $arrLP[$i]['title'] . '"</option>'; |
|
7908 | } |
|
7909 | } |
|
7910 | $return .= '</select>'; |
|
7911 | $return .= '</td>'; |
|
7912 | $return .= '</tr>'; |