@@ 6556-6569 (lines=14) @@ | ||
6553 | ||
6554 | $return .= '<select class="learnpath_item_form" style="width:100%;" id="previous" name="previous" size="1">'; |
|
6555 | $return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>'; |
|
6556 | for ($i = 0; $i < count($arrLP); $i++) { |
|
6557 | if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) { |
|
6558 | if (is_array($extra_info)) { |
|
6559 | if ($extra_info['previous_item_id'] == $arrLP[$i]['id']) { |
|
6560 | $selected = 'selected="selected" '; |
|
6561 | } |
|
6562 | } elseif ($action == 'add') { |
|
6563 | $selected = 'selected="selected" '; |
|
6564 | } else { |
|
6565 | $selected = ''; |
|
6566 | } |
|
6567 | $return .= '<option ' . $selected . 'value="' . $arrLP[$i]['id'] . '">' . get_lang('After') . ' "' . $arrLP[$i]['title'] . '"</option>'; |
|
6568 | } |
|
6569 | } |
|
6570 | $return .= '</select>'; |
|
6571 | ||
6572 | $return .= '</td>'; |
|
@@ 6776-6786 (lines=11) @@ | ||
6773 | $return .= '<select id="previous" name="previous" size="1">'; |
|
6774 | $return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>'; |
|
6775 | ||
6776 | for ($i = 0; $i < count($arrLP); $i++) { |
|
6777 | if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) { |
|
6778 | if ($extra_info['previous_item_id'] == $arrLP[$i]['id']) |
|
6779 | $selected = 'selected="selected" '; |
|
6780 | elseif ($action == 'add') $selected = 'selected="selected" '; |
|
6781 | else |
|
6782 | $selected = ''; |
|
6783 | ||
6784 | $return .= '<option ' . $selected . 'value="' . $arrLP[$i]['id'] . '">' . get_lang('After') . ' "' . $arrLP[$i]['title'] . '"</option>'; |
|
6785 | } |
|
6786 | } |
|
6787 | ||
6788 | $return .= '</select>'; |
|
6789 | $return .= '</td>'; |
|
@@ 6962-6973 (lines=12) @@ | ||
6959 | $return .= '<select id="previous" name="previous" style="width:100%;" size="1" class="learnpath_item_form">'; |
|
6960 | $return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>'; |
|
6961 | ||
6962 | for ($i = 0; $i < count($arrLP); $i++) { |
|
6963 | if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) { |
|
6964 | if ($extra_info['previous_item_id'] == $arrLP[$i]['id']) |
|
6965 | $selected = 'selected="selected" '; |
|
6966 | elseif ($action == 'add') $selected = 'selected="selected" '; |
|
6967 | else |
|
6968 | $selected = ''; |
|
6969 | ||
6970 | $return .= '<option ' . $selected . 'value="' . $arrLP[$i]['id'] . '">' . |
|
6971 | get_lang('After') . ' "' . $arrLP[$i]['title'] . '"</option>'; |
|
6972 | } |
|
6973 | } |
|
6974 | ||
6975 | $return .= '</select>'; |
|
6976 | $return .= '</td>'; |
|
@@ 7141-7151 (lines=11) @@ | ||
7138 | $return .= '<td class="input">'; |
|
7139 | $return .= '<select id="previous" name="previous" size="1">'; |
|
7140 | $return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>'; |
|
7141 | for ($i = 0; $i < count($arrLP); $i++) { |
|
7142 | if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) { |
|
7143 | if ($extra_info['previous_item_id'] == $arrLP[$i]['id']) |
|
7144 | $selected = 'selected="selected" '; |
|
7145 | elseif ($action == 'add') $selected = 'selected="selected" '; |
|
7146 | else |
|
7147 | $selected = ''; |
|
7148 | ||
7149 | $return .= '<option ' . $selected . 'value="' . $arrLP[$i]['id'] . '">' . get_lang('After') . ' "' . $arrLP[$i]['title'] . '"</option>'; |
|
7150 | } |
|
7151 | } |
|
7152 | $return .= '</select>'; |
|
7153 | $return .= '</td>'; |
|
7154 | $return .= '</tr>'; |
|
@@ 7890-7901 (lines=12) @@ | ||
7887 | ||
7888 | $return .= '<select id="previous" name="previous" style="width:100%;" size="1" class="learnpath_item_form">'; |
|
7889 | $return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>'; |
|
7890 | for ($i = 0; $i < count($arrLP); $i++) { |
|
7891 | if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) { |
|
7892 | if ($extra_info['previous_item_id'] == $arrLP[$i]['id']) |
|
7893 | $selected = 'selected="selected" '; |
|
7894 | elseif ($action == 'add') |
|
7895 | $selected = 'selected="selected" '; |
|
7896 | else |
|
7897 | $selected = ''; |
|
7898 | ||
7899 | $return .= '<option ' . $selected . 'value="' . $arrLP[$i]['id'] . '">' . get_lang('After') . ' "' . $arrLP[$i]['title'] . '"</option>'; |
|
7900 | } |
|
7901 | } |
|
7902 | $return .= '</select>'; |
|
7903 | $return .= '</td>'; |
|
7904 | $return .= '</tr>'; |