瀏覽代碼

Push al git con pal de bugs hechos

父節點
當前提交
87f58b27be

二進制
app/config.zip 查看文件


+ 13
- 2
app/controllers/ActivitiesController.php 查看文件

@@ -140,7 +140,11 @@ class ActivitiesController extends \BaseController
140 140
         Log::info($active_semesters);
141 141
         // Added the function htmlspecialchars to activity name string because it was corrupting Jquery code while using quotes on page rendering. - Carlos R Caraballo 1/18/2019
142 142
         $title = $course->code . $course->number . '-' . $course->section . ': ' . htmlspecialchars($activity->name, ENT_QUOTES) . ' <span class="small attention">(' . $course->semester->code . ')</span>';
143
-        $outcomes = Outcome::orderBy('name', 'asc')->get();
143
+        $semesters = DB::table('semesters')->where('id', $course->semester_id)->orderBy('start', 'ASC')->first();
144
+        $outcomes = Outcome::select(array('id', 'name', 'expected_outcome'))
145
+            ->whereNull('deleted_at')
146
+            ->whereRaw("(deactivation_date IS NULL or deactivation_date >= '{$semesters->start}')")
147
+            ->orderBy('name', 'ASC')->get();
144 148
         $assessment = DB::table('assessments')
145 149
             ->join('activity_criterion', 'assessments.activity_criterion_id', '=', 'activity_criterion.id')
146 150
             ->join('activities', 'activities.id', '=', 'activity_criterion.activity_id')
@@ -157,6 +161,8 @@ class ActivitiesController extends \BaseController
157 161
         Log::info($outcomes_achieved);
158 162
         Log::info($outcomes_achieved);
159 163
 
164
+
165
+
160 166
         $activity_criterion = DB::table('criteria')
161 167
             ->join('activity_criterion', 'criteria.id', '=', 'activity_criterion.criterion_id')
162 168
             ->where('activity_id', $activity->id)
@@ -932,10 +938,15 @@ class ActivitiesController extends \BaseController
932 938
             $active_semesters[] = $active_semester->id;
933 939
         }
934 940
 
941
+        $semesters = DB::table('semesters')->where('id', $course->semester_id)->orderBy('start', 'ASC')->first();
942
+
935 943
         Log::info($active_semesters);
936 944
         // Added the function htmlspecialchars to activity name string because it was corrupting Jquery code while using quotes on page rendering. - Carlos R Caraballo 1/18/2019
937 945
         $title = $course->code . $course->number . '-' . $course->section . ': ' . htmlspecialchars($activity_1->name, ENT_QUOTES) . ' <span class="small attention">(' . $course->semester->code . ')</span>';
938
-        $outcomes = Outcome::orderBy('name', 'asc')->get();
946
+        $outcomes = Outcome::select(array('id', 'name', 'expected_outcome'))
947
+            ->whereNull('deleted_at')
948
+            ->whereRaw("(deactivation_date IS NULL or deactivation_date >= '{$semesters->start}')")
949
+            ->orderBy('name', 'ASC')->get();
939 950
         $assessment_1 = DB::table('assessments')
940 951
             ->join('activity_criterion', 'assessments.activity_criterion_id', '=', 'activity_criterion.id')
941 952
             ->join('activities', 'activities.id', '=', 'activity_criterion.activity_id')

+ 23
- 2
app/controllers/CriteriaController.php 查看文件

@@ -213,11 +213,31 @@ class CriteriaController extends \BaseController
213 213
             ->select('outcomes.*')
214 214
             ->distinct()
215 215
             ->get();
216
+        $userRole = Auth::user()['role'];
216 217
 
217 218
         foreach ($criterion->outcomes as $outcome) {
219
+            switch ($userRole) {
220
+                case 1:
221
+                    $program_ids = DB::table('programs')->lists('id');
222
+                    break;
223
+                case 2:
224
+                    $program_ids = DB::table('programs')
225
+                        ->where('school_id', Auth::user()->school_id)
226
+                        ->lists('id');
227
+                    break;
228
+                case 3:
229
+                    $program_ids = DB::table('program_user')
230
+                        ->where('user_id', Auth::user()->id)
231
+                        ->lists('program_id');
232
+                    break;
233
+            }
218 234
             $outcome->assoc_objectives = DB::table('objective_outcome')
219 235
                 ->join('objectives', 'objectives.id', '=', 'objective_outcome.objective_id')
236
+                ->join('objective_program', 'objective_program.objective_id', '=', 'objectives.id')
237
+                ->whereIn('program_id', $program_ids)
220 238
                 ->where('outcome_id', $outcome->id)
239
+                ->select('objectives.*', 'objectives.id as objective_id')
240
+                ->distinct()
221 241
                 ->get();
222 242
             $outcome->objectives_criteria = DB::table('criterion_objective_outcome')
223 243
                 ->join('objectives', 'objectives.id', '=', 'criterion_objective_outcome.objective_id')
@@ -226,7 +246,7 @@ class CriteriaController extends \BaseController
226 246
                 ->get();
227 247
             foreach ($outcome->assoc_objectives as $objective) {
228 248
                 $objective->program_ids = json_encode(DB::table('objective_program')
229
-                    ->where('objective_id', $objective->objective_id)
249
+                    ->where('objective_id', $objective->id)
230 250
                     ->lists('program_id'));
231 251
             }
232 252
         }
@@ -437,6 +457,7 @@ class CriteriaController extends \BaseController
437 457
                     return Redirect::to('criteria')->withInput();
438 458
 
439 459
                 case 2:
460
+                    Log::info(Input::all());
440 461
                     return Redirect::to('school-criteria')->withInput();
441 462
 
442 463
                 case 3:
@@ -1058,4 +1079,4 @@ class CriteriaController extends \BaseController
1058 1079
                 break;
1059 1080
         }
1060 1081
     }
1061
-}
1082
+}

+ 10
- 4
app/controllers/Objective2Controller.php 查看文件

@@ -312,8 +312,10 @@ class Objective2Controller extends \BaseController
312 312
 
313 313
 		$title = "Objective";
314 314
 		$outcomes = Outcome::whereNull("deactivation_date")->orderBy('name', 'ASC')->get();
315
-
316
-		$objectives = Objective::withTrashed()->orderBy('text', 'ASC')->get();
315
+		$objectives_from_program = DB::table('objective_program')
316
+			->where('program_id', $userProgram[0]->program_id)
317
+			->lists('objective_id');
318
+		$objectives = Objective::withTrashed()->orderBy('text', 'ASC')->whereIn('id', $objectives_from_program)->get();
317 319
 
318 320
 		$programs = Program::where("id", '=', $userProgram[0]->program_id)->get();
319 321
 
@@ -330,7 +332,11 @@ class Objective2Controller extends \BaseController
330 332
 		$title = "Objective";
331 333
 		$outcomes = Outcome::whereNull("deactivation_date")->orderBy('name', 'ASC')->get();
332 334
 
333
-		$objectives = Objective::withTrashed()->orderBy('text', 'ASC')->get();
335
+		$objectives_from_school = DB::table('programs')
336
+			->join('objective_program', 'objective_program.program_id', '=', 'programs.id')
337
+			->where('programs.school_id', $userSchool)
338
+			->lists('objective_id');
339
+		$objectives = Objective::withTrashed()->orderBy('text', 'ASC')->whereIn('id', $objectives_from_school)->get();
334 340
 		$programs = Program::where("school_id", "=", $userSchool)->orderBy('name', 'ASC')->get();
335 341
 
336 342
 
@@ -471,4 +477,4 @@ class Objective2Controller extends \BaseController
471 477
 	{
472 478
 		//
473 479
 	}
474
-}
480
+}

+ 24
- 6
app/controllers/TransformativeActionsController.php 查看文件

@@ -1317,6 +1317,7 @@ class TransformativeActionsController extends \BaseController
1317 1317
       ->where('semester_id', $semesters)
1318 1318
       ->join('activities', 'activities.course_id', '=', 'courses.id')
1319 1319
       ->join('activity_criterion', 'activities.id', '=', 'activity_criterion.activity_id')
1320
+
1320 1321
       ->join('transformative_activity_criterion as tac', 'tac.activity_criterion_id', '=', 'activity_criterion.id')
1321 1322
       ->select('courses.*')
1322 1323
       ->groupBy(array('courses.code', 'courses.name', 'courses.semester_id'))
@@ -1327,6 +1328,7 @@ class TransformativeActionsController extends \BaseController
1327 1328
 
1328 1329
 
1329 1330
 
1331
+
1330 1332
     foreach ($grouped_courses as $course_name) {
1331 1333
       $course_name->sections = DB::table('courses')
1332 1334
         ->where('code', $course_name->code)
@@ -1338,6 +1340,7 @@ class TransformativeActionsController extends \BaseController
1338 1340
 
1339 1341
         $section->activities = DB::table('activities')
1340 1342
           ->join('activity_criterion', 'activities.id', '=', 'activity_criterion.activity_id')
1343
+
1341 1344
           ->join('transformative_activity_criterion', 'transformative_activity_criterion.activity_criterion_id', '=', 'activity_criterion.id')
1342 1345
           ->join('criterion_objective_outcome', 'criterion_objective_outcome.criterion_id', '=', 'activity_criterion.criterion_id')
1343 1346
           ->join('transformative_actions', 'transformative_activity_criterion.trans_action_id', '=', 'transformative_actions.id')
@@ -1349,6 +1352,12 @@ class TransformativeActionsController extends \BaseController
1349 1352
           ->addSelect('transformative_actions.*', 'transformative_activity_criterion.trans_action_id as trans_action_id')
1350 1353
           ->groupBy('transformative_actions.id')
1351 1354
           ->get();
1355
+
1356
+        //If section has activity that assessess outcome
1357
+        if (count($section->activities)) {
1358
+          $course_name->outcome_assessed = true;
1359
+        }
1360
+
1352 1361
         foreach ($section->activities as $activity) {
1353 1362
           /*$activity->criterion = DB::table('transformative_activity_criterion')
1354 1363
           ->join('activity_criterion','activity_criterion.id','=','transformative_activity_criterion.activity_criterion_id')
@@ -1357,11 +1366,20 @@ class TransformativeActionsController extends \BaseController
1357 1366
           ->where('activity_id', $activity->id)
1358 1367
           ->select('criteria')*/
1359 1368
           //Log::info($activity->trans_action_id);
1360
-          $activity->objectives = DB::table('transformative_objective')
1369
+          $activity->criterion_with_objective = DB::table('transformative_activity_criterion')
1370
+            ->join('activity_criterion', 'activity_criterion.id', '=', 'transformative_activity_criterion.activity_criterion_id')
1371
+            ->join('criteria', 'activity_criterion.criterion_id', '=', 'criteria.id')
1372
+            ->join('criterion_objective_outcome', 'criterion_objective_outcome.criterion_id', '=', 'criteria.id')
1373
+            ->join('objectives', 'objectives.id', '=', 'criterion_objective_outcome.objective_id')
1374
+            ->where('activity_id', $activity->activity_id)
1375
+            ->where('trans_action_id', $activity->trans_action_id)
1376
+            ->get();
1377
+          /*$activity->objectives = DB::table('transformative_objective')
1361 1378
             ->join('objectives', 'transformative_objective.objective_id', '=', 'objectives.id')
1362 1379
             ->where('ta_id', $activity->trans_action_id)
1363
-            ->get();
1364
-          foreach ($activity->objectives as $objective) {
1380
+            ->get();*/
1381
+
1382
+          /*foreach ($activity->objectives as $objective) {
1365 1383
             // Log::info($activity->activity_id);
1366 1384
             // Log::info($objective->objective_id);
1367 1385
             /* Log::info(DB::table('criterion_objective_outcome')
@@ -1371,7 +1389,7 @@ class TransformativeActionsController extends \BaseController
1371 1389
               ->where('objective_id', $objective->objective_id)
1372 1390
               ->select('criteria.*')
1373 1391
               ->distinct()
1374
-              ->toSql());*/
1392
+              ->toSql());
1375 1393
             $objective->criterion = DB::table('criterion_objective_outcome')
1376 1394
               ->join('activity_criterion', 'activity_criterion.criterion_id', '=', 'criterion_objective_outcome.criterion_id')
1377 1395
               ->join('criteria', 'criteria.id', '=', 'activity_criterion.criterion_id')
@@ -1380,10 +1398,10 @@ class TransformativeActionsController extends \BaseController
1380 1398
               ->select('criteria.*')
1381 1399
               ->distinct()
1382 1400
               ->get();
1383
-          }
1401
+          }*/
1384 1402
         }
1385 1403
       }
1386 1404
     }
1387 1405
     return $grouped_courses;
1388 1406
   }
1389
-}
1407
+}

+ 517
- 494
app/views/local/managers/admins/objectives.blade.php
文件差異過大導致無法顯示
查看文件


+ 93
- 75
app/views/local/managers/pCoords/_navigation.blade.php 查看文件

@@ -1,85 +1,103 @@
1 1
 <div class="navbar navbar-inverse navbar-static-top">
2
-  <div class="container-fluid">
3
-    <!--<div class="navbar-header">
4
-      {{ HTML::linkAction('ProgramCoordinatorsController@overview', 'Online Learning Assessment System · Program Coordinator', array(), array('class'=>'navbar-brand')) }}
2
+    <div class="container-fluid">
3
+        <!--<div class="navbar-header">
4
+      {{ HTML::linkAction('ProgramCoordinatorsController@overview', 'Online Learning Assessment System · Program Coordinator', [], ['class' => 'navbar-brand']) }}
5 5
     </div>-->
6
-    <ul class="nav navbar-nav navbar-right">
7
-      <li>{{ HTML::linkAction('ProgramCoordinatorsController@overview', 'Overview') }}</li>
8
-      <li class="dropdown">
9
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Management<span class="caret"></span></a>
10
-        <ul class="dropdown-menu" role="menu">
11
-          <li>{{ HTML::linkAction('TemplatesController@newTemplate', 'Rubrics') }}</li>
12
-          <li>{{ HTML::linkAction('TemplatesController@index', 'Rubric List') }}</li>
13
-      
14
-          <li>{{ HTML::linkAction('Objective2Controller@editProgram', 'Objectives')}}</li>
15
-      
16
-        <li>{{ HTML::linkAction('CriteriaController@editProgram', 'Criteria') }}</li>
17
-      <li>{{ HTML::linkAction('TransformativeActionsController@editTA', 'Transformative Actions') }}</li>
6
+        <ul class="nav navbar-nav navbar-right">
7
+            <li>{{ HTML::linkAction('ProgramCoordinatorsController@overview', 'Overview') }}</li>
8
+            <li class="dropdown">
9
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
10
+                    aria-expanded="false">Management<span class="caret"></span></a>
11
+                <ul class="dropdown-menu" role="menu">
12
+                    <li>{{ HTML::linkAction('TemplatesController@newTemplate', 'Rubrics') }}</li>
13
+                    <li>{{ HTML::linkAction('TemplatesController@index', 'Rubric List') }}</li>
18 14
 
19
-    
20
-          <li><a href="{{ URL::action('AnnualPlansController@showPlan', Auth::user()->programs[0]->id)}}">Annual Plan</a><li>
21
-        <li><a href="{{ URL::action('ThreeYearPlanController@threeYearsReport', Auth::user()->programs[0]->id) }}">Three Years Plan</a></li>
22
-      </ul>
23
-      </li>
24
-     
25
-      
26
-      <li class="dropdown">
27
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Learning and Criterias<span class="caret"></span></a>
28
-        <ul class="dropdown-menu" role="menu">
29
-          <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
30
-          <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'Objectives and Criteria') }}</li>
31
-                 </ul>
32
-      </li>
33
-      @if(count(Auth::user()->courses))
34
-      <li> {{ HTML::linkAction('ProfessorsController@overview', 'My Courses', NULL) }}</li>
35
-      <li class="dropdown">
36
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Sections<span class="caret"></span></a>
37
-        <ul class="dropdown-menu" role="menu">
38
-          @foreach ($courses as $course)
39
-          <li> {{ HTML::linkAction('CoursesController@show', $course->code.$course->number.'-'.$course->section.' ('.$course->semester->code.')', array('id'=>$course->id)) }}</li>
40
-          @endforeach
41
-        </ul>
42
-      </li>
43
-      @endif
15
+                    <li>{{ HTML::linkAction('Objective2Controller@editProgram', 'Objectives') }}</li>
16
+
17
+                    <li>{{ HTML::linkAction('CriteriaController@editProgram', 'Criteria') }}</li>
18
+                    <li>{{ HTML::linkAction('TransformativeActionsController@editTA', 'Transformative Actions') }}
19
+                    </li>
44 20
 
45
-      <li class="dropdown">
46
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Reports<span class="caret"></span></a>
47
-        <ul class="dropdown-menu" role="menu">
48
-          <li><a href="{{ URL::action('OutcomesController@programAssessmentReport', Auth::user()->programs[0]->id) }}">Program Reports</a></li>
49
-   
21
+
22
+                    <li><a href="{{ URL::action('AnnualPlansController@showPlan', Auth::user()->programs[0]->id) }}">Annual
23
+                            Plan</a>
24
+                    <li>
25
+                    <li><a
26
+                            href="{{ URL::action('ThreeYearPlanController@threeYearsReport', Auth::user()->programs[0]->id) }}">Three
27
+                            Years Plan</a></li>
28
+                </ul>
50 29
             </li>
51
-          
52
-          @if(count(Auth::user()->courses))
53
-          <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'My Courses\' Reports') }}</li>
54
-          @endif
55 30
 
56
-   
31
+
32
+            <li class="dropdown">
33
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Learning
34
+                    and Criterias<span class="caret"></span></a>
35
+                <ul class="dropdown-menu" role="menu">
36
+                    <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
37
+                    <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'Objectives and Criteria') }}</li>
38
+                </ul>
57 39
             </li>
58
-            <li><a href="{{ URL::action('OutcomesController@annualReport', Auth::user()->programs[0]->id) }}">Annual Reports</a></li>
59
-  
60
-          <li>{{ HTML::linkAction('TransformativeActionsController@viewFormativeActions', 'Tranformative and Formative Actions')}}
61
-    
62
-        </ul>
63
-      </li>
40
+            @if (count(Auth::user()->courses))
41
+                <li> {{ HTML::linkAction('ProfessorsController@overview', 'My Courses', null) }}</li>
42
+                <li class="dropdown">
43
+                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
44
+                        aria-expanded="false">Sections<span class="caret"></span></a>
45
+                    <ul class="dropdown-menu" role="menu">
46
+                        @foreach ($courses as $course)
47
+                            <li> {{ HTML::linkAction('CoursesController@show', $course->code . $course->number . '-' . $course->section . ' (' . $course->semester->code . ')', ['id' => $course->id]) }}
48
+                            </li>
49
+                        @endforeach
50
+                    </ul>
51
+                </li>
52
+            @endif
53
+
54
+            <li class="dropdown">
55
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
56
+                    aria-expanded="false">Reports<span class="caret"></span></a>
57
+                <ul class="dropdown-menu" role="menu">
58
+                    <li><a
59
+                            href="{{ URL::action('OutcomesController@programAssessmentReport', Auth::user()->programs[0]->id) }}">Program
60
+                            Reports</a></li>
61
+
62
+            </li>
63
+
64
+            @if (count(Auth::user()->courses))
65
+                <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'My Courses\' Reports') }}
66
+                </li>
67
+            @endif
68
+
69
+
70
+            </li>
71
+            <li><a href="{{ URL::action('OutcomesController@annualReport', Auth::user()->programs[0]->id) }}">Annual
72
+                    Reports</a></li>
73
+
74
+            <li>{{ HTML::linkAction('TransformativeActionsController@viewFormativeActions', 'Formative Actions') }}
64 75
 
65
-      <li class="dropdown">
66
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span class="caret"></span></a>
67
-        <ul class="dropdown-menu" role="menu">
68
-          <li>{{ HTML::linkAction('FeedbackController@create', 'Feedback') }}</li>
69
-          <!-- <li><a href="{{ asset('files/OLAS-intro.pdf') }}">Introduction to OLAS</a></li> -->
70
-          <li><a href="{{ asset('files/intro-avaluo.pdf') }}">Introduction to Assessment</a></li>
71
-          <!-- <li><a href="{{ asset('files/OLAS-coords.pdf') }}">OLAS for Coordinators</a></li> -->
72
-          <li><a href="http://oeae.uprrp.edu/wp-content/uploads/2019/01/Brochure-de-OLAS-rev.-agosto-2018.pdf">Brochure</a></li>
73
-        </ul>
74
-      </li>
75
-      <li class="dropdown">
76
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Account<span class="caret"></span></a>
77
-        <ul class="dropdown-menu" role="menu">
78
-          <li>{{ HTML::linkAction('UsersController@edit', 'Profile') }}</li>
79
-          <li>{{ HTML::linkAction('AuthController@logout', 'Log out ('.Auth::user()->email.')') }}</li>
80 76
         </ul>
81
-      </li>
82
-      <li>
83
-    </ul>
84
-  </div>
77
+        </li>
78
+
79
+        <li class="dropdown">
80
+            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span
81
+                    class="caret"></span></a>
82
+            <ul class="dropdown-menu" role="menu">
83
+                <li>{{ HTML::linkAction('FeedbackController@create', 'Feedback') }}</li>
84
+                <!-- <li><a href="{{ asset('files/OLAS-intro.pdf') }}">Introduction to OLAS</a></li> -->
85
+                <li><a href="{{ asset('files/intro-avaluo.pdf') }}">Introduction to Assessment</a></li>
86
+                <!-- <li><a href="{{ asset('files/OLAS-coords.pdf') }}">OLAS for Coordinators</a></li> -->
87
+                <li><a
88
+                        href="http://oeae.uprrp.edu/wp-content/uploads/2019/01/Brochure-de-OLAS-rev.-agosto-2018.pdf">Brochure</a>
89
+                </li>
90
+            </ul>
91
+        </li>
92
+        <li class="dropdown">
93
+            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Account<span
94
+                    class="caret"></span></a>
95
+            <ul class="dropdown-menu" role="menu">
96
+                <li>{{ HTML::linkAction('UsersController@edit', 'Profile') }}</li>
97
+                <li>{{ HTML::linkAction('AuthController@logout', 'Log out (' . Auth::user()->email . ')') }}</li>
98
+            </ul>
99
+        </li>
100
+        <li>
101
+            </ul>
102
+    </div>
85 103
 </div>

+ 542
- 516
app/views/local/managers/pCoords/objectives.blade.php
文件差異過大導致無法顯示
查看文件


+ 98
- 79
app/views/local/managers/sCoords/_navigation.blade.php 查看文件

@@ -1,86 +1,105 @@
1 1
 <div class="navbar navbar-inverse navbar-static-top">
2
-  <div class="container-fluid">
3
-    <!--<div class="navbar-header">
4
-      {{ HTML::linkAction('SchoolCoordinatorsController@overview', 'Online Learning Assessment System · Administrator', array(), array('class'=>'navbar-brand')) }}
2
+    <div class="container-fluid">
3
+        <!--<div class="navbar-header">
4
+      {{ HTML::linkAction('SchoolCoordinatorsController@overview', 'Online Learning Assessment System · Administrator', [], ['class' => 'navbar-brand']) }}
5 5
     </div>-->
6
-    <ul class="nav navbar-nav navbar-right">
7
-      <li>{{ HTML::linkAction('SchoolCoordinatorsController@overview', 'Overview') }}</li>
8
-           <li class="dropdown">
9
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Learning and Criterias<span class="caret"></span></a>
10
-        <ul class="dropdown-menu" role="menu">
11
-          <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
12
-          <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'Objectives and Criteria') }}</li>
13
-          </ul>
14
-      </li>
15
-      <li class="dropdown">
16
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Management<span class="caret"></span></a>
17
-        <ul class="dropdown-menu" role="menu">
18
-<li>{{ HTML::linkAction('Objective2Controller@editSchool', 'Objectives')}}</li>
19
-      <li>{{ HTML::linkAction('CriteriaController@editSchool', 'Criteria') }}</li>
20
- <li>{{ HTML::linkAction('TemplatesController@newTemplate', 'Rubrics') }}</li>
21
- <li>{{ HTML::linkAction('TemplatesController@index', 'Rubric List') }}</li>
22
-         
23
- <li>{{ HTML::linkAction('TransformativeActionsController@editTA', 'Transformative Actions') }}</li>
6
+        <ul class="nav navbar-nav navbar-right">
7
+            <li>{{ HTML::linkAction('SchoolCoordinatorsController@overview', 'Overview') }}</li>
8
+            <li class="dropdown">
9
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Learning
10
+                    and Criterias<span class="caret"></span></a>
11
+                <ul class="dropdown-menu" role="menu">
12
+                    <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
13
+                    <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'Objectives and Criteria') }}</li>
14
+                </ul>
15
+            </li>
16
+            <li class="dropdown">
17
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
18
+                    aria-expanded="false">Management<span class="caret"></span></a>
19
+                <ul class="dropdown-menu" role="menu">
20
+                    <li>{{ HTML::linkAction('Objective2Controller@editSchool', 'Objectives') }}</li>
21
+                    <li>{{ HTML::linkAction('CriteriaController@editSchool', 'Criteria') }}</li>
22
+                    <li>{{ HTML::linkAction('TemplatesController@newTemplate', 'Rubrics') }}</li>
23
+                    <li>{{ HTML::linkAction('TemplatesController@index', 'Rubric List') }}</li>
24 24
 
25
+                    <li>{{ HTML::linkAction('TransformativeActionsController@editTA', 'Transformative Actions') }}
26
+                    </li>
25 27
 
26
-      </ul>
27
-      </li>
28
-            @if(count(Auth::user()->courses))
29
-      <li> {{ HTML::linkAction('ProfessorsController@overview', 'My Courses', NULL) }}</li>
30
-      <li class="dropdown">
31
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Sections<span class="caret"></span></a>
32
-        <ul class="dropdown-menu" role="menu">
33
-          @foreach ($courses as $course)
34
-          <li> {{ HTML::linkAction('CoursesController@show', $course->code.$course->number.'-'.$course->section.' ('.$course->semester->code.')', array('id'=>$course->id)) }}</li>
35
-          @endforeach
36
-        </ul>
37
-      </li>
38
-      @endif
39 28
 
40
-      <li class="dropdown">
41
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Reports<span class="caret"></span></a>
42
-        <ul class="dropdown-menu" role="menu">
43
-          <li>{{ HTML::linkAction('OutcomesController@schoolAssessmentReport', 'School Reports') }}</li>
44
-          @if(count(Auth::user()->courses))
45
-          <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'My Courses\' Reports') }}</li>
46
-          
47
-          @endif
48
-          <li>{{HTML::linkAction('AnnualPlansController@selectProgramPlan','Annual Reports')}}</li>
49
-          <li>{{ HTML::linkAction('TransformativeActionsController@viewFormativeActions', 'Tranformative and Formative Actions')}}
50
-    
51
-        </ul>
52
-      </li>
53
-      <li class='dropdown'>
54
-        <a href ='#' class ='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Annual Plans<span class="caret"></span></a>
55
-        <ul class ='dropdown-menu' role='menu'>
56
-          @foreach (Auth::user()->school->programs as $program)
57
-          <li><a href ="{{ URL::action('AnnualPlansController@showPlan', array($program->id))}}" >{{$program->name}}</a></li>
58
-          @endforeach
59
-        </ul></li>
60
-        <li class='dropdown'>
61
-          <a href ='#' class ='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Three year Plans<span class="caret"></span></a>
62
-          <ul class ='dropdown-menu' role='menu'>
63
-            @foreach (Auth::user()->school->programs as $program)
64
-            <li><a href ="{{ URL::action('ThreeYearPlanController@threeYearsReport', array($program->id))}}" >{{$program->name}}</a></li>
65
-            @endforeach
66
-          </ul></li>
67
-      <li class="dropdown">
68
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span class="caret"></span></a>
69
-        <ul class="dropdown-menu" role="menu">
70
-          <li>{{ HTML::linkAction('FeedbackController@create', 'Feedback') }}</li>
71
-          <!-- <li><a href="{{ asset('files/OLAS-intro.pdf') }}">Introduction to OLAS</a></li> -->
72
-          <li><a href="{{ asset('files/intro-avaluo.pdf') }}">Introduction to Assessment</a></li>
73
-          <!-- <li><a href="{{ asset('files/OLAS-coords.pdf') }}">OLAS for Coordinators</a></li> -->
74
-          <li><a href="http://oeae.uprrp.edu/wp-content/uploads/2019/01/Brochure-de-OLAS-rev.-agosto-2018.pdf">Brochure</a></li>
75
-        </ul>
76
-      </li>
77
-      <li class="dropdown">
78
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Account<span class="caret"></span></a>
79
-        <ul class="dropdown-menu" role="menu">
80
-          <li>{{ HTML::linkAction('UsersController@edit', 'Profile') }}</li>
81
-          <li>{{ HTML::linkAction('AuthController@logout', 'Log out ('.Auth::user()->email.')') }}</li>
29
+                </ul>
30
+            </li>
31
+            @if (count(Auth::user()->courses))
32
+                <li> {{ HTML::linkAction('ProfessorsController@overview', 'My Courses', null) }}</li>
33
+                <li class="dropdown">
34
+                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
35
+                        aria-expanded="false">Sections<span class="caret"></span></a>
36
+                    <ul class="dropdown-menu" role="menu">
37
+                        @foreach ($courses as $course)
38
+                            <li> {{ HTML::linkAction('CoursesController@show', $course->code . $course->number . '-' . $course->section . ' (' . $course->semester->code . ')', ['id' => $course->id]) }}
39
+                            </li>
40
+                        @endforeach
41
+                    </ul>
42
+                </li>
43
+            @endif
44
+
45
+            <li class="dropdown">
46
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
47
+                    aria-expanded="false">Reports<span class="caret"></span></a>
48
+                <ul class="dropdown-menu" role="menu">
49
+                    <li>{{ HTML::linkAction('OutcomesController@schoolAssessmentReport', 'School Reports') }}</li>
50
+                    @if (count(Auth::user()->courses))
51
+                        <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'My Courses\' Reports') }}
52
+                        </li>
53
+
54
+                    @endif
55
+                    <li>{{ HTML::linkAction('AnnualPlansController@selectProgramPlan', 'Annual Reports') }}</li>
56
+                    <li>{{ HTML::linkAction('TransformativeActionsController@viewFormativeActions', 'Formative Actions') }}
57
+
58
+                </ul>
59
+            </li>
60
+            <li class='dropdown'>
61
+                <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Annual
62
+                    Plans<span class="caret"></span></a>
63
+                <ul class='dropdown-menu' role='menu'>
64
+                    @foreach (Auth::user()->school->programs as $program)
65
+                        <li><a
66
+                                href="{{ URL::action('AnnualPlansController@showPlan', [$program->id]) }}">{{ $program->name }}</a>
67
+                        </li>
68
+                    @endforeach
69
+                </ul>
70
+            </li>
71
+            <li class='dropdown'>
72
+                <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Three
73
+                    year Plans<span class="caret"></span></a>
74
+                <ul class='dropdown-menu' role='menu'>
75
+                    @foreach (Auth::user()->school->programs as $program)
76
+                        <li><a
77
+                                href="{{ URL::action('ThreeYearPlanController@threeYearsReport', [$program->id]) }}">{{ $program->name }}</a>
78
+                        </li>
79
+                    @endforeach
80
+                </ul>
81
+            </li>
82
+            <li class="dropdown">
83
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span
84
+                        class="caret"></span></a>
85
+                <ul class="dropdown-menu" role="menu">
86
+                    <li>{{ HTML::linkAction('FeedbackController@create', 'Feedback') }}</li>
87
+                    <!-- <li><a href="{{ asset('files/OLAS-intro.pdf') }}">Introduction to OLAS</a></li> -->
88
+                    <li><a href="{{ asset('files/intro-avaluo.pdf') }}">Introduction to Assessment</a></li>
89
+                    <!-- <li><a href="{{ asset('files/OLAS-coords.pdf') }}">OLAS for Coordinators</a></li> -->
90
+                    <li><a
91
+                            href="http://oeae.uprrp.edu/wp-content/uploads/2019/01/Brochure-de-OLAS-rev.-agosto-2018.pdf">Brochure</a>
92
+                    </li>
93
+                </ul>
94
+            </li>
95
+            <li class="dropdown">
96
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
97
+                    aria-expanded="false">Account<span class="caret"></span></a>
98
+                <ul class="dropdown-menu" role="menu">
99
+                    <li>{{ HTML::linkAction('UsersController@edit', 'Profile') }}</li>
100
+                    <li>{{ HTML::linkAction('AuthController@logout', 'Log out (' . Auth::user()->email . ')') }}</li>
101
+                </ul>
102
+            </li>
82 103
         </ul>
83
-      </li>
84
-    </ul>
85
-  </div>
104
+    </div>
86 105
 </div>

+ 1246
- 1020
app/views/local/managers/sCoords/criteria.blade.php
文件差異過大導致無法顯示
查看文件


+ 537
- 514
app/views/local/managers/sCoords/objectives.blade.php
文件差異過大導致無法顯示
查看文件


+ 325
- 544
app/views/local/managers/shared/view_formative.blade.php
文件差異過大導致無法顯示
查看文件


+ 18
- 12
app/views/local/professors/compare_activities.blade.php 查看文件

@@ -47,13 +47,13 @@
47 47
         </ul>
48 48
         <div id="allLists" class="tab-content">
49 49
             <div role="tabpanel" class='tab-pane first' id="activity_1">
50
-
50
+<h3 style="text-align: center">Performance by Learning Outcome Criteria in {{ $activity_1->name }}</h3><hr>
51 51
                 <div class="col-md-9" id="graph_1"></div>
52 52
                 
53 53
             </div>
54 54
 
55 55
             <div role="tabpanel" class='tab-pane' id="activity_2">
56
-
56
+                <h3 style="text-align: center">Performance by Learning Outcome Criteria in {{ $activity_2->name }}</h3><hr>
57 57
                 <div class="col-md-9" id="graph_2"></div>
58 58
                
59 59
             </div>
@@ -79,10 +79,16 @@
79 79
         </ul>
80 80
         <div id="allLists" class="tab-content">
81 81
             <div role="tabpanel" class='tab-pane first' id="activity_criteriaGraph_1">
82
-                <div class="col-md-9" id="criteriaGraph_1"></div>
82
+                <h3 style="text-align: center">Criteria Achievement {{ $activity_1->name }}</h3><hr>
83
+                <div class="col-md-9" id="criteriaGraph_1">
84
+                    
85
+                </div>
83 86
             </div>
84 87
             <div role="tabpanel" class='tab-pane' id="activity_criteriaGraph_2">
85
-                <div class="col-md-9" id="criteriaGraph_2"></div>
88
+                <h3 style="text-align: center">Criteria Achievement {{ $activity_2->name }}</h3><hr>
89
+                <div class="col-md-9" id="criteriaGraph_2">
90
+                    
91
+                </div>
86 92
             </div>
87 93
         </div>
88 94
     </div>
@@ -549,7 +555,7 @@ $('#criteriaGraph_1').highcharts({
549 555
         @endif,
550 556
     },
551 557
     title: {
552
-        text: 'Criteria Achievement',
558
+        text: ' ',
553 559
     },
554 560
     xAxis: {
555 561
         categories: [
@@ -597,7 +603,7 @@ $('#criteriaGraph_1').highcharts({
597 603
 
598 604
     tooltip: {
599 605
         headerFormat: '<span style="font-size:10px">{point.key}</span> <table > ',
600
-        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: < /td>' +
606
+        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: </td>' +
601 607
             '<td style="padding:0"><b>{point.y:.2f}%</b></td> </tr>',
602 608
         footerFormat: '</table>',
603 609
         shared: true,
@@ -658,7 +664,7 @@ $('#criteriaGraph_2').highcharts({
658 664
         @endif,
659 665
     },
660 666
     title: {
661
-        text: 'Criteria Achievement',
667
+        text: ' ',
662 668
     },
663 669
     xAxis: {
664 670
         categories: [
@@ -706,7 +712,7 @@ $('#criteriaGraph_2').highcharts({
706 712
 
707 713
     tooltip: {
708 714
         headerFormat: '<span style="font-size:10px">{point.key}</span> <table > ',
709
-        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: < /td>' +
715
+        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: </td>' +
710 716
             '<td style="padding:0"><b>{point.y:.2f}%</b></td> </tr>',
711 717
         footerFormat: '</table>',
712 718
         shared: true,
@@ -761,7 +767,7 @@ $('#graph_1').highcharts({
761 767
         type: 'bar',
762 768
     },
763 769
     title: {
764
-        text: 'Performance by Learning Outcome Criteria in {{ $activity_1->name }}<br><br>'
770
+        text: ' '
765 771
     },
766 772
     xAxis: {
767 773
         categories: [
@@ -790,7 +796,7 @@ $('#graph_1').highcharts({
790 796
     },
791 797
     tooltip: {
792 798
         headerFormat: '<span style="font-size:10px">{point.key}</span> <table > ',
793
-        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: < /td>' +
799
+        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: </td>' +
794 800
             '<td style="padding:0"><b>{point.y:.2f}</b></td> </tr>',
795 801
         footerFormat: '</table>',
796 802
         shared: true,
@@ -863,7 +869,7 @@ $('#graph_2').highcharts({
863 869
         type: 'bar',
864 870
     },
865 871
     title: {
866
-        text:'Performance by Learning Outcome Criteria in {{ $activity_2->name }}<br><br>'
872
+        text:' '
867 873
         },
868 874
     xAxis: {
869 875
         categories: [
@@ -892,7 +898,7 @@ $('#graph_2').highcharts({
892 898
     },
893 899
     tooltip: {
894 900
         headerFormat: '<span style="font-size:10px">{point.key}</span> <table > ',
895
-        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: < /td>' +
901
+        pointFormat: '<tr> <td style = "color:{series.color};padding:0" > {series.name}: </td>' +
896 902
             '<td style="padding:0"><b>{point.y:.2f}</b></td> </tr>',
897 903
         footerFormat: '</table>',
898 904
         shared: true,

+ 7
- 2
app/views/local/professors/course.blade.php 查看文件

@@ -178,7 +178,11 @@
178 178
                   </div>
179 179
                 <div class="modal-footer">
180 180
                       <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
181
-                     <button type ="button" class= 'btn btn-primary' onclick ="goToURL()">Compare</button>
181
+                     <button type ="button" class= 'btn btn-primary' onclick ="goToURL()" 
182
+                     @if(!count($activities))
183
+                     disabled
184
+                     @endif
185
+                     >Compare</button>
182 186
                   {{ Form::close() }}
183 187
                 </div>
184 188
               </div><!-- /.modal-content -->
@@ -226,8 +230,9 @@
226 230
     function goToURL(){
227 231
         activity1 = $('#select-activity-1').val();
228 232
         activity2 = $('#select-activity-2').val();
229
-
233
+        if(activity1 && activity2)
230 234
         window.open('../compare_activities/'+activity1+'/'+activity2,'_self');
235
+
231 236
     }
232 237
 </script>
233 238
 @stop