@@ 6475-6492 (lines=18) @@ | ||
6472 | ||
6473 | $result = Database::query($sql); |
|
6474 | $arrLP = array (); |
|
6475 | while ($row = Database :: fetch_array($result)) { |
|
6476 | $arrLP[] = array ( |
|
6477 | 'id' => $row['id'], |
|
6478 | 'item_type' => $row['item_type'], |
|
6479 | 'title' => $row['title'], |
|
6480 | 'path' => $row['path'], |
|
6481 | 'description' => $row['description'], |
|
6482 | 'parent_item_id' => $row['parent_item_id'], |
|
6483 | 'previous_item_id' => $row['previous_item_id'], |
|
6484 | 'next_item_id' => $row['next_item_id'], |
|
6485 | 'display_order' => $row['display_order'], |
|
6486 | 'max_score' => $row['max_score'], |
|
6487 | 'min_score' => $row['min_score'], |
|
6488 | 'mastery_score' => $row['mastery_score'], |
|
6489 | 'prerequisite' => $row['prerequisite'], |
|
6490 | 'max_time_allowed' => $row['max_time_allowed'] |
|
6491 | ); |
|
6492 | } |
|
6493 | ||
6494 | $this->tree_array($arrLP); |
|
6495 | $arrLP = isset($this->arrMenu) ? $this->arrMenu : null; |
|
@@ 6716-6733 (lines=18) @@ | ||
6713 | WHERE c_id = ".$course_id." AND lp_id = " . $this->lp_id; |
|
6714 | $result = Database::query($sql); |
|
6715 | $arrLP = array (); |
|
6716 | while ($row = Database :: fetch_array($result)) { |
|
6717 | $arrLP[] = array ( |
|
6718 | 'id' => $row['id'], |
|
6719 | 'item_type' => $row['item_type'], |
|
6720 | 'title' => $row['title'], |
|
6721 | 'path' => $row['path'], |
|
6722 | 'description' => $row['description'], |
|
6723 | 'parent_item_id' => $row['parent_item_id'], |
|
6724 | 'previous_item_id' => $row['previous_item_id'], |
|
6725 | 'next_item_id' => $row['next_item_id'], |
|
6726 | 'display_order' => $row['display_order'], |
|
6727 | 'max_score' => $row['max_score'], |
|
6728 | 'min_score' => $row['min_score'], |
|
6729 | 'mastery_score' => $row['mastery_score'], |
|
6730 | 'prerequisite' => $row['prerequisite'], |
|
6731 | 'max_time_allowed' => $row['max_time_allowed'] |
|
6732 | ); |
|
6733 | } |
|
6734 | ||
6735 | $legend = '<legend>'; |
|
6736 | if ($action == 'add') |
|
@@ 6894-6910 (lines=17) @@ | ||
6891 | $result = Database::query($sql); |
|
6892 | $arrLP = array(); |
|
6893 | ||
6894 | while ($row = Database :: fetch_array($result)) { |
|
6895 | $arrLP[] = array ( |
|
6896 | 'id' => $row['id'], |
|
6897 | 'item_type' => $row['item_type'], |
|
6898 | 'title' => $row['title'], |
|
6899 | 'path' => $row['path'], |
|
6900 | 'description' => $row['description'], |
|
6901 | 'parent_item_id' => $row['parent_item_id'], |
|
6902 | 'previous_item_id' => $row['previous_item_id'], |
|
6903 | 'next_item_id' => $row['next_item_id'], |
|
6904 | 'display_order' => $row['display_order'], |
|
6905 | 'max_score' => $row['max_score'], |
|
6906 | 'min_score' => $row['min_score'], |
|
6907 | 'mastery_score' => $row['mastery_score'], |
|
6908 | 'prerequisite' => $row['prerequisite'] |
|
6909 | ); |
|
6910 | } |
|
6911 | ||
6912 | $this->tree_array($arrLP); |
|
6913 | $arrLP = isset($this->arrMenu) ? $this->arrMenu : null; |
|
@@ 7085-7101 (lines=17) @@ | ||
7082 | ||
7083 | $arrLP = array (); |
|
7084 | ||
7085 | while ($row = Database :: fetch_array($result)) { |
|
7086 | $arrLP[] = array ( |
|
7087 | 'id' => $row['id'], |
|
7088 | 'item_type' => $row['item_type'], |
|
7089 | 'title' => $row['title'], |
|
7090 | 'path' => $row['path'], |
|
7091 | 'description' => $row['description'], |
|
7092 | 'parent_item_id' => $row['parent_item_id'], |
|
7093 | 'previous_item_id' => $row['previous_item_id'], |
|
7094 | 'next_item_id' => $row['next_item_id'], |
|
7095 | 'display_order' => $row['display_order'], |
|
7096 | 'max_score' => $row['max_score'], |
|
7097 | 'min_score' => $row['min_score'], |
|
7098 | 'mastery_score' => $row['mastery_score'], |
|
7099 | 'prerequisite' => $row['prerequisite'] |
|
7100 | ); |
|
7101 | } |
|
7102 | ||
7103 | $this->tree_array($arrLP); |
|
7104 | $arrLP = isset($this->arrMenu) ? $this->arrMenu : null; |
|
@@ 7284-7300 (lines=17) @@ | ||
7281 | $result = Database::query($sql); |
|
7282 | $arrLP = array (); |
|
7283 | ||
7284 | while ($row = Database :: fetch_array($result)) { |
|
7285 | $arrLP[] = array( |
|
7286 | 'id' => $row['id'], |
|
7287 | 'item_type' => $row['item_type'], |
|
7288 | 'title' => $row['title'], |
|
7289 | 'path' => $row['path'], |
|
7290 | 'description' => $row['description'], |
|
7291 | 'parent_item_id' => $row['parent_item_id'], |
|
7292 | 'previous_item_id' => $row['previous_item_id'], |
|
7293 | 'next_item_id' => $row['next_item_id'], |
|
7294 | 'max_score' => $row['max_score'], |
|
7295 | 'min_score' => $row['min_score'], |
|
7296 | 'mastery_score' => $row['mastery_score'], |
|
7297 | 'prerequisite' => $row['prerequisite'], |
|
7298 | 'display_order' => $row['display_order'] |
|
7299 | ); |
|
7300 | } |
|
7301 | ||
7302 | $this->tree_array($arrLP); |
|
7303 | ||
@@ 7528-7544 (lines=17) @@ | ||
7525 | ||
7526 | $result = Database::query($sql); |
|
7527 | $arrLP = array (); |
|
7528 | while ($row = Database :: fetch_array($result)) { |
|
7529 | $arrLP[] = array( |
|
7530 | 'id' => $row['id'], |
|
7531 | 'item_type' => $row['item_type'], |
|
7532 | 'title' => $row['title'], |
|
7533 | 'path' => $row['path'], |
|
7534 | 'description' => $row['description'], |
|
7535 | 'parent_item_id' => $row['parent_item_id'], |
|
7536 | 'previous_item_id' => $row['previous_item_id'], |
|
7537 | 'next_item_id' => $row['next_item_id'], |
|
7538 | 'display_order' => $row['display_order'], |
|
7539 | 'max_score' => $row['max_score'], |
|
7540 | 'min_score' => $row['min_score'], |
|
7541 | 'mastery_score' => $row['mastery_score'], |
|
7542 | 'prerequisite' => $row['prerequisite'] |
|
7543 | ); |
|
7544 | } |
|
7545 | ||
7546 | $this->tree_array($arrLP); |
|
7547 | $arrLP = isset($this->arrMenu) ? $this->arrMenu : null; |
|
@@ 7819-7835 (lines=17) @@ | ||
7816 | $result = Database::query($sql); |
|
7817 | $arrLP = array(); |
|
7818 | ||
7819 | while ($row = Database :: fetch_array($result)) { |
|
7820 | $arrLP[] = array( |
|
7821 | 'id' => $row['id'], |
|
7822 | 'item_type' => $row['item_type'], |
|
7823 | 'title' => $row['title'], |
|
7824 | 'path' => $row['path'], |
|
7825 | 'description' => $row['description'], |
|
7826 | 'parent_item_id' => $row['parent_item_id'], |
|
7827 | 'previous_item_id' => $row['previous_item_id'], |
|
7828 | 'next_item_id' => $row['next_item_id'], |
|
7829 | 'display_order' => $row['display_order'], |
|
7830 | 'max_score' => $row['max_score'], |
|
7831 | 'min_score' => $row['min_score'], |
|
7832 | 'mastery_score' => $row['mastery_score'], |
|
7833 | 'prerequisite' => $row['prerequisite'] |
|
7834 | ); |
|
7835 | } |
|
7836 | ||
7837 | $this->tree_array($arrLP); |
|
7838 | $arrLP = isset($this->arrMenu) ? $this->arrMenu : null; |
|
@@ 8010-8026 (lines=17) @@ | ||
8007 | ||
8008 | $result = Database::query($sql); |
|
8009 | $arrLP = array(); |
|
8010 | while ($row = Database :: fetch_array($result)) { |
|
8011 | $arrLP[] = array ( |
|
8012 | 'id' => $row['id'], |
|
8013 | 'item_type' => $row['item_type'], |
|
8014 | 'title' => $row['title'], |
|
8015 | 'path' => $row['path'], |
|
8016 | 'description' => $row['description'], |
|
8017 | 'parent_item_id' => $row['parent_item_id'], |
|
8018 | 'previous_item_id' => $row['previous_item_id'], |
|
8019 | 'next_item_id' => $row['next_item_id'], |
|
8020 | 'display_order' => $row['display_order'], |
|
8021 | 'max_score' => $row['max_score'], |
|
8022 | 'min_score' => $row['min_score'], |
|
8023 | 'mastery_score' => $row['mastery_score'], |
|
8024 | 'prerequisite' => $row['prerequisite'] |
|
8025 | ); |
|
8026 | } |
|
8027 | ||
8028 | $this->tree_array($arrLP); |
|
8029 | $arrLP = isset($this->arrMenu) ? $this->arrMenu : null; |