|
@@ 6587-6600 (lines=14) @@
|
| 6584 |
|
|
| 6585 |
|
$return .= '<select class="learnpath_item_form" style="width:100%;" id="previous" name="previous" size="1">'; |
| 6586 |
|
$return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>'; |
| 6587 |
|
for ($i = 0; $i < count($arrLP); $i++) { |
| 6588 |
|
if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) { |
| 6589 |
|
if (is_array($extra_info)) { |
| 6590 |
|
if ($extra_info['previous_item_id'] == $arrLP[$i]['id']) { |
| 6591 |
|
$selected = 'selected="selected" '; |
| 6592 |
|
} |
| 6593 |
|
} elseif ($action == 'add') { |
| 6594 |
|
$selected = 'selected="selected" '; |
| 6595 |
|
} else { |
| 6596 |
|
$selected = ''; |
| 6597 |
|
} |
| 6598 |
|
$return .= '<option ' . $selected . 'value="' . $arrLP[$i]['id'] . '">' . get_lang('After') . ' "' . $arrLP[$i]['title'] . '"</option>'; |
| 6599 |
|
} |
| 6600 |
|
} |
| 6601 |
|
$return .= '</select>'; |
| 6602 |
|
|
| 6603 |
|
$return .= '</td>'; |
|
@@ 6807-6817 (lines=11) @@
|
| 6804 |
|
$return .= '<select id="previous" name="previous" size="1">'; |
| 6805 |
|
$return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>'; |
| 6806 |
|
|
| 6807 |
|
for ($i = 0; $i < count($arrLP); $i++) { |
| 6808 |
|
if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) { |
| 6809 |
|
if ($extra_info['previous_item_id'] == $arrLP[$i]['id']) |
| 6810 |
|
$selected = 'selected="selected" '; |
| 6811 |
|
elseif ($action == 'add') $selected = 'selected="selected" '; |
| 6812 |
|
else |
| 6813 |
|
$selected = ''; |
| 6814 |
|
|
| 6815 |
|
$return .= '<option ' . $selected . 'value="' . $arrLP[$i]['id'] . '">' . get_lang('After') . ' "' . $arrLP[$i]['title'] . '"</option>'; |
| 6816 |
|
} |
| 6817 |
|
} |
| 6818 |
|
|
| 6819 |
|
$return .= '</select>'; |
| 6820 |
|
$return .= '</td>'; |
|
@@ 6993-7004 (lines=12) @@
|
| 6990 |
|
$return .= '<select id="previous" name="previous" style="width:100%;" size="1" class="learnpath_item_form">'; |
| 6991 |
|
$return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>'; |
| 6992 |
|
|
| 6993 |
|
for ($i = 0; $i < count($arrLP); $i++) { |
| 6994 |
|
if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) { |
| 6995 |
|
if ($extra_info['previous_item_id'] == $arrLP[$i]['id']) |
| 6996 |
|
$selected = 'selected="selected" '; |
| 6997 |
|
elseif ($action == 'add') $selected = 'selected="selected" '; |
| 6998 |
|
else |
| 6999 |
|
$selected = ''; |
| 7000 |
|
|
| 7001 |
|
$return .= '<option ' . $selected . 'value="' . $arrLP[$i]['id'] . '">' . |
| 7002 |
|
get_lang('After') . ' "' . $arrLP[$i]['title'] . '"</option>'; |
| 7003 |
|
} |
| 7004 |
|
} |
| 7005 |
|
|
| 7006 |
|
$return .= '</select>'; |
| 7007 |
|
$return .= '</td>'; |
|
@@ 7172-7182 (lines=11) @@
|
| 7169 |
|
$return .= '<td class="input">'; |
| 7170 |
|
$return .= '<select id="previous" name="previous" size="1">'; |
| 7171 |
|
$return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>'; |
| 7172 |
|
for ($i = 0; $i < count($arrLP); $i++) { |
| 7173 |
|
if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) { |
| 7174 |
|
if ($extra_info['previous_item_id'] == $arrLP[$i]['id']) |
| 7175 |
|
$selected = 'selected="selected" '; |
| 7176 |
|
elseif ($action == 'add') $selected = 'selected="selected" '; |
| 7177 |
|
else |
| 7178 |
|
$selected = ''; |
| 7179 |
|
|
| 7180 |
|
$return .= '<option ' . $selected . 'value="' . $arrLP[$i]['id'] . '">' . get_lang('After') . ' "' . $arrLP[$i]['title'] . '"</option>'; |
| 7181 |
|
} |
| 7182 |
|
} |
| 7183 |
|
$return .= '</select>'; |
| 7184 |
|
$return .= '</td>'; |
| 7185 |
|
$return .= '</tr>'; |
|
@@ 7922-7933 (lines=12) @@
|
| 7919 |
|
|
| 7920 |
|
$return .= '<select id="previous" name="previous" style="width:100%;" size="1" class="learnpath_item_form">'; |
| 7921 |
|
$return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>'; |
| 7922 |
|
for ($i = 0; $i < count($arrLP); $i++) { |
| 7923 |
|
if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) { |
| 7924 |
|
if ($extra_info['previous_item_id'] == $arrLP[$i]['id']) |
| 7925 |
|
$selected = 'selected="selected" '; |
| 7926 |
|
elseif ($action == 'add') |
| 7927 |
|
$selected = 'selected="selected" '; |
| 7928 |
|
else |
| 7929 |
|
$selected = ''; |
| 7930 |
|
|
| 7931 |
|
$return .= '<option ' . $selected . 'value="' . $arrLP[$i]['id'] . '">' . get_lang('After') . ' "' . $arrLP[$i]['title'] . '"</option>'; |
| 7932 |
|
} |
| 7933 |
|
} |
| 7934 |
|
$return .= '</select>'; |
| 7935 |
|
$return .= '</td>'; |
| 7936 |
|
$return .= '</tr>'; |