@@ 747-755 (lines=9) @@ | ||
744 | //Get dynamic column names |
|
745 | foreach (range(1, $cntExer) as $cnt) { |
|
746 | switch ($cnt) { |
|
747 | case 1: |
|
748 | $column[] = get_lang('Section'); |
|
749 | $column_model[] = array( |
|
750 | 'name' => 'session', |
|
751 | 'index' => 'session', |
|
752 | 'align' => 'center', |
|
753 | 'search' => 'true', |
|
754 | ); |
|
755 | break; |
|
756 | case 2: |
|
757 | $column[] = get_lang('Username'); |
|
758 | $column_model[] = array( |
|
@@ 756-764 (lines=9) @@ | ||
753 | 'search' => 'true', |
|
754 | ); |
|
755 | break; |
|
756 | case 2: |
|
757 | $column[] = get_lang('Username'); |
|
758 | $column_model[] = array( |
|
759 | 'name' => 'username', |
|
760 | 'index' => 'username', |
|
761 | 'align' => 'center', |
|
762 | 'search' => 'true', |
|
763 | ); |
|
764 | break; |
|
765 | case 3: |
|
766 | $column[] = get_lang('FirstName'); |
|
767 | $column_model[] = array( |
|
@@ 765-773 (lines=9) @@ | ||
762 | 'search' => 'true', |
|
763 | ); |
|
764 | break; |
|
765 | case 3: |
|
766 | $column[] = get_lang('FirstName'); |
|
767 | $column_model[] = array( |
|
768 | 'name' => 'name', |
|
769 | 'index' => 'name', |
|
770 | 'align' => 'left', |
|
771 | 'search' => 'true', |
|
772 | ); |
|
773 | break; |
|
774 | case $cntExer: |
|
775 | $column[] = get_lang('FinalScore'); |
|
776 | $column_model[] = array( |
|
@@ 774-783 (lines=10) @@ | ||
771 | 'search' => 'true', |
|
772 | ); |
|
773 | break; |
|
774 | case $cntExer: |
|
775 | $column[] = get_lang('FinalScore'); |
|
776 | $column_model[] = array( |
|
777 | 'name' => 'finalscore', |
|
778 | 'index' => 'finalscore', |
|
779 | 'align' => 'center', |
|
780 | 'search' => 'true', |
|
781 | 'wrap_cell' => "true" |
|
782 | ); |
|
783 | break; |
|
784 | default: |
|
785 | $title = ""; |
|
786 | if (!empty($exercises[$cnt - 4]['title'])) { |