@@ 6504-6521 (lines=18) @@ | ||
6501 | ||
6502 | $result = Database::query($sql); |
|
6503 | $arrLP = array (); |
|
6504 | while ($row = Database :: fetch_array($result)) { |
|
6505 | $arrLP[] = array ( |
|
6506 | 'id' => $row['id'], |
|
6507 | 'item_type' => $row['item_type'], |
|
6508 | 'title' => $row['title'], |
|
6509 | 'path' => $row['path'], |
|
6510 | 'description' => $row['description'], |
|
6511 | 'parent_item_id' => $row['parent_item_id'], |
|
6512 | 'previous_item_id' => $row['previous_item_id'], |
|
6513 | 'next_item_id' => $row['next_item_id'], |
|
6514 | 'display_order' => $row['display_order'], |
|
6515 | 'max_score' => $row['max_score'], |
|
6516 | 'min_score' => $row['min_score'], |
|
6517 | 'mastery_score' => $row['mastery_score'], |
|
6518 | 'prerequisite' => $row['prerequisite'], |
|
6519 | 'max_time_allowed' => $row['max_time_allowed'] |
|
6520 | ); |
|
6521 | } |
|
6522 | ||
6523 | $this->tree_array($arrLP); |
|
6524 | $arrLP = isset($this->arrMenu) ? $this->arrMenu : null; |
|
@@ 6750-6767 (lines=18) @@ | ||
6747 | WHERE c_id = ".$course_id." AND lp_id = " . $this->lp_id; |
|
6748 | $result = Database::query($sql); |
|
6749 | $arrLP = array (); |
|
6750 | while ($row = Database :: fetch_array($result)) { |
|
6751 | $arrLP[] = array ( |
|
6752 | 'id' => $row['id'], |
|
6753 | 'item_type' => $row['item_type'], |
|
6754 | 'title' => $row['title'], |
|
6755 | 'path' => $row['path'], |
|
6756 | 'description' => $row['description'], |
|
6757 | 'parent_item_id' => $row['parent_item_id'], |
|
6758 | 'previous_item_id' => $row['previous_item_id'], |
|
6759 | 'next_item_id' => $row['next_item_id'], |
|
6760 | 'display_order' => $row['display_order'], |
|
6761 | 'max_score' => $row['max_score'], |
|
6762 | 'min_score' => $row['min_score'], |
|
6763 | 'mastery_score' => $row['mastery_score'], |
|
6764 | 'prerequisite' => $row['prerequisite'], |
|
6765 | 'max_time_allowed' => $row['max_time_allowed'] |
|
6766 | ); |
|
6767 | } |
|
6768 | ||
6769 | $legend = '<legend>'; |
|
6770 | if ($action == 'add') |
|
@@ 6926-6942 (lines=17) @@ | ||
6923 | $result = Database::query($sql); |
|
6924 | $arrLP = array(); |
|
6925 | ||
6926 | while ($row = Database :: fetch_array($result)) { |
|
6927 | $arrLP[] = array ( |
|
6928 | 'id' => $row['id'], |
|
6929 | 'item_type' => $row['item_type'], |
|
6930 | 'title' => $row['title'], |
|
6931 | 'path' => $row['path'], |
|
6932 | 'description' => $row['description'], |
|
6933 | 'parent_item_id' => $row['parent_item_id'], |
|
6934 | 'previous_item_id' => $row['previous_item_id'], |
|
6935 | 'next_item_id' => $row['next_item_id'], |
|
6936 | 'display_order' => $row['display_order'], |
|
6937 | 'max_score' => $row['max_score'], |
|
6938 | 'min_score' => $row['min_score'], |
|
6939 | 'mastery_score' => $row['mastery_score'], |
|
6940 | 'prerequisite' => $row['prerequisite'] |
|
6941 | ); |
|
6942 | } |
|
6943 | ||
6944 | $this->tree_array($arrLP); |
|
6945 | $arrLP = isset($this->arrMenu) ? $this->arrMenu : null; |
|
@@ 7126-7142 (lines=17) @@ | ||
7123 | ||
7124 | $arrLP = array (); |
|
7125 | ||
7126 | while ($row = Database :: fetch_array($result)) { |
|
7127 | $arrLP[] = array ( |
|
7128 | 'id' => $row['id'], |
|
7129 | 'item_type' => $row['item_type'], |
|
7130 | 'title' => $row['title'], |
|
7131 | 'path' => $row['path'], |
|
7132 | 'description' => $row['description'], |
|
7133 | 'parent_item_id' => $row['parent_item_id'], |
|
7134 | 'previous_item_id' => $row['previous_item_id'], |
|
7135 | 'next_item_id' => $row['next_item_id'], |
|
7136 | 'display_order' => $row['display_order'], |
|
7137 | 'max_score' => $row['max_score'], |
|
7138 | 'min_score' => $row['min_score'], |
|
7139 | 'mastery_score' => $row['mastery_score'], |
|
7140 | 'prerequisite' => $row['prerequisite'] |
|
7141 | ); |
|
7142 | } |
|
7143 | ||
7144 | $this->tree_array($arrLP); |
|
7145 | $arrLP = isset($this->arrMenu) ? $this->arrMenu : null; |
|
@@ 7351-7367 (lines=17) @@ | ||
7348 | $result = Database::query($sql); |
|
7349 | $arrLP = array (); |
|
7350 | ||
7351 | while ($row = Database :: fetch_array($result)) { |
|
7352 | $arrLP[] = array( |
|
7353 | 'id' => $row['id'], |
|
7354 | 'item_type' => $row['item_type'], |
|
7355 | 'title' => $row['title'], |
|
7356 | 'path' => $row['path'], |
|
7357 | 'description' => $row['description'], |
|
7358 | 'parent_item_id' => $row['parent_item_id'], |
|
7359 | 'previous_item_id' => $row['previous_item_id'], |
|
7360 | 'next_item_id' => $row['next_item_id'], |
|
7361 | 'max_score' => $row['max_score'], |
|
7362 | 'min_score' => $row['min_score'], |
|
7363 | 'mastery_score' => $row['mastery_score'], |
|
7364 | 'prerequisite' => $row['prerequisite'], |
|
7365 | 'display_order' => $row['display_order'] |
|
7366 | ); |
|
7367 | } |
|
7368 | ||
7369 | $this->tree_array($arrLP); |
|
7370 | ||
@@ 7595-7611 (lines=17) @@ | ||
7592 | ||
7593 | $result = Database::query($sql); |
|
7594 | $arrLP = array (); |
|
7595 | while ($row = Database :: fetch_array($result)) { |
|
7596 | $arrLP[] = array( |
|
7597 | 'id' => $row['id'], |
|
7598 | 'item_type' => $row['item_type'], |
|
7599 | 'title' => $row['title'], |
|
7600 | 'path' => $row['path'], |
|
7601 | 'description' => $row['description'], |
|
7602 | 'parent_item_id' => $row['parent_item_id'], |
|
7603 | 'previous_item_id' => $row['previous_item_id'], |
|
7604 | 'next_item_id' => $row['next_item_id'], |
|
7605 | 'display_order' => $row['display_order'], |
|
7606 | 'max_score' => $row['max_score'], |
|
7607 | 'min_score' => $row['min_score'], |
|
7608 | 'mastery_score' => $row['mastery_score'], |
|
7609 | 'prerequisite' => $row['prerequisite'] |
|
7610 | ); |
|
7611 | } |
|
7612 | ||
7613 | $this->tree_array($arrLP); |
|
7614 | $arrLP = isset($this->arrMenu) ? $this->arrMenu : null; |
|
@@ 7888-7904 (lines=17) @@ | ||
7885 | $result = Database::query($sql); |
|
7886 | $arrLP = array(); |
|
7887 | ||
7888 | while ($row = Database :: fetch_array($result)) { |
|
7889 | $arrLP[] = array( |
|
7890 | 'id' => $row['id'], |
|
7891 | 'item_type' => $row['item_type'], |
|
7892 | 'title' => $row['title'], |
|
7893 | 'path' => $row['path'], |
|
7894 | 'description' => $row['description'], |
|
7895 | 'parent_item_id' => $row['parent_item_id'], |
|
7896 | 'previous_item_id' => $row['previous_item_id'], |
|
7897 | 'next_item_id' => $row['next_item_id'], |
|
7898 | 'display_order' => $row['display_order'], |
|
7899 | 'max_score' => $row['max_score'], |
|
7900 | 'min_score' => $row['min_score'], |
|
7901 | 'mastery_score' => $row['mastery_score'], |
|
7902 | 'prerequisite' => $row['prerequisite'] |
|
7903 | ); |
|
7904 | } |
|
7905 | ||
7906 | $this->tree_array($arrLP); |
|
7907 | $arrLP = isset($this->arrMenu) ? $this->arrMenu : null; |
|
@@ 8097-8113 (lines=17) @@ | ||
8094 | ||
8095 | $result = Database::query($sql); |
|
8096 | $arrLP = array(); |
|
8097 | while ($row = Database :: fetch_array($result)) { |
|
8098 | $arrLP[] = array ( |
|
8099 | 'id' => $row['id'], |
|
8100 | 'item_type' => $row['item_type'], |
|
8101 | 'title' => $row['title'], |
|
8102 | 'path' => $row['path'], |
|
8103 | 'description' => $row['description'], |
|
8104 | 'parent_item_id' => $row['parent_item_id'], |
|
8105 | 'previous_item_id' => $row['previous_item_id'], |
|
8106 | 'next_item_id' => $row['next_item_id'], |
|
8107 | 'display_order' => $row['display_order'], |
|
8108 | 'max_score' => $row['max_score'], |
|
8109 | 'min_score' => $row['min_score'], |
|
8110 | 'mastery_score' => $row['mastery_score'], |
|
8111 | 'prerequisite' => $row['prerequisite'] |
|
8112 | ); |
|
8113 | } |
|
8114 | ||
8115 | $this->tree_array($arrLP); |
|
8116 | $arrLP = isset($this->arrMenu) ? $this->arrMenu : null; |