Gabriel Santiago Plaza пре 2 година
родитељ
комит
a44a3e8e67
33 измењених фајлова са 254 додато и 254 уклоњено
  1. 14
    14
      app/controllers/ActivitiesController.php
  2. 25
    25
      app/controllers/AnnualPlansController.php
  3. 1
    1
      app/controllers/CoursesController.php
  4. 11
    11
      app/controllers/CriteriaController.php
  5. 9
    9
      app/controllers/Objective2Controller.php
  6. 4
    4
      app/controllers/OutcomesController.php
  7. 4
    4
      app/controllers/ProfessorsController.php
  8. 30
    30
      app/controllers/ProgramCoordinatorsController.php
  9. 4
    4
      app/controllers/ProgramsController.php
  10. 13
    13
      app/controllers/RubricsController.php
  11. 2
    2
      app/controllers/SchoolCoordinatorsController.php
  12. 3
    3
      app/controllers/SchoolsController.php
  13. 3
    3
      app/controllers/StudentsController.php
  14. 3
    3
      app/controllers/TemplatesController.php
  15. 10
    10
      app/controllers/ThreeYearPlanController.php
  16. 15
    15
      app/controllers/TransformativeActionsController.php
  17. 31
    31
      app/controllers/UsersController.php
  18. 4
    4
      app/models/Activity.php
  19. 27
    27
      app/models/Course.php
  20. 2
    2
      app/models/Objective.php
  21. 2
    2
      app/models/Outcome.php
  22. 2
    2
      app/models/Program.php
  23. 3
    3
      app/views/global/view-learning-outcomes-criteria.blade.php
  24. 5
    5
      app/views/local/managers/admins/assessment_report.blade.php
  25. 1
    1
      app/views/local/managers/admins/new_assessment_report.blade.php
  26. 1
    1
      app/views/local/managers/pCoords/new_assessment_report.blade.php
  27. 2
    2
      app/views/local/managers/pCoords/overview.blade.php
  28. 1
    1
      app/views/local/managers/sCoords/new_assessment_report.blade.php
  29. 3
    3
      app/views/local/managers/shared/limited-course.blade.php
  30. 8
    8
      app/views/local/professors/assessment_report.blade.php
  31. 2
    2
      app/views/local/professors/compare_activities.blade.php
  32. 2
    2
      app/views/local/professors/new_assessment_report.blade.php
  33. 7
    7
      app/views/local/professors/overview.blade.php

+ 14
- 14
app/controllers/ActivitiesController.php Прегледај датотеку

@@ -137,7 +137,7 @@ class ActivitiesController extends \BaseController
137 137
             $active_semesters[] = $active_semester->id;
138 138
         }
139 139
 
140
-        //Log::info($active_semesters);
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 143
 
@@ -170,8 +170,8 @@ class ActivitiesController extends \BaseController
170 170
             $outcomes_attempted = [];
171 171
         }
172 172
 
173
-        //Log::info($outcomes_achieved);
174
-        //Log::info($outcomes_achieved);
173
+        Log::info($outcomes_achieved);
174
+        Log::info($outcomes_achieved);
175 175
 
176 176
 
177 177
 
@@ -273,8 +273,8 @@ class ActivitiesController extends \BaseController
273 273
                     $activity_id = Input::get('activity_id');
274 274
                     $student_data = json_decode(Input::get('student_info'));
275 275
                     $weights = json_decode(Input::get('weights'));
276
-                    //Log::info(json_encode($weights));
277
-                    //Log::info(json_encode($student_data));
276
+                    Log::info(json_encode($weights));
277
+                    Log::info(json_encode($student_data));
278 278
 
279 279
                     foreach ($student_data as $index => $student_dict) {
280 280
                         $student_id = $student_dict->studentId;
@@ -303,7 +303,7 @@ class ActivitiesController extends \BaseController
303 303
                     }
304 304
                     $activity_draft = Input::get('draft');
305 305
                     $activity_diagnostic = Input::get('diagnostic');
306
-                    //Log::info(json_encode($weights));
306
+                    Log::info(json_encode($weights));
307 307
                     foreach ($weights as $act_crit => $weigh) {
308 308
                         DB::update("update activity_criterion set weight = {$weigh} where id = {$act_crit}");
309 309
                     }
@@ -505,7 +505,7 @@ class ActivitiesController extends \BaseController
505 505
                 return action('ActivitiesController@show', array(Input::get('activity_id')));
506 506
             }
507 507
         } catch (Exception $e) {
508
-            //Log::info('e:' . $e);
508
+            Log::info('e:' . $e);
509 509
             echo $e->getMessage();
510 510
             Session::flash('status', 'danger');
511 511
             Session::flash('message', 'Error saving assessment. Try again later.');
@@ -815,8 +815,8 @@ class ActivitiesController extends \BaseController
815 815
             ->addSelect('activity_criterion.activity_id', 'activity_criterion.weight', 'activity_criterion.id as activity_criterion_id')
816 816
             ->addSelect('rubric_criterion.rubric_id', 'rubric_criterion.id as rubric_criterion_id')
817 817
             ->get();
818
-        //Log::info("EN mi cuarto o o o");
819
-        //Log::info($rubric_criterion);
818
+        Log::info("EN mi cuarto o o o");
819
+        Log::info($rubric_criterion);
820 820
 
821 821
         foreach ($rubric_criterion as $index => $crit) {
822 822
             $crit->scales = DB::table('scales')
@@ -830,12 +830,12 @@ class ActivitiesController extends \BaseController
830 830
 
831 831
         // Get results
832 832
         $activity_criterion_ids = DB::table('activity_criterion')->where("activity_id", '=', $activity->id)->lists('id');
833
-        //Log::info($activity_criterion_ids);
833
+        Log::info($activity_criterion_ids);
834 834
         $assessments = DB::table('assessments')
835 835
             ->join('students', 'assessments.student_id', '=', 'students.id')
836 836
             ->whereIn('activity_criterion_id', $activity_criterion_ids)
837 837
             ->orderBy('assessments.id', 'asc')->get();
838
-        //Log::info($assessments);
838
+        Log::info($assessments);
839 839
         // Decode the scores (blade workaround)
840 840
         $scores_array = array();
841 841
 
@@ -905,12 +905,12 @@ class ActivitiesController extends \BaseController
905 905
         }*/
906 906
         // Get results
907 907
         $activity_criterion_ids = DB::table('activity_criterion')->where("activity_id", '=', $activity->id)->lists('id');
908
-        //Log::info($activity_criterion_ids);
908
+        Log::info($activity_criterion_ids);
909 909
         $assessments = DB::table('assessments')
910 910
             ->join('students', 'assessments.student_id', '=', 'students.id')
911 911
             ->whereIn('activity_criterion_id', $activity_criterion_ids)
912 912
             ->orderBy('assessments.id', 'asc')->get();
913
-        //Log::info($assessments);
913
+        Log::info($assessments);
914 914
         // Decode the scores (blade workaround)
915 915
         $scores_array = array();
916 916
 
@@ -952,7 +952,7 @@ class ActivitiesController extends \BaseController
952 952
 
953 953
         $semesters = DB::table('semesters')->where('id', $course->semester_id)->orderBy('start', 'ASC')->first();
954 954
 
955
-        //Log::info($active_semesters);
955
+        Log::info($active_semesters);
956 956
         // 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
957 957
         $title = $course->code . $course->number . '-' . $course->section . ': ' . htmlspecialchars($activity_1->name, ENT_QUOTES) . ' <span class="small attention">(' . $course->semester->code . ')</span>';
958 958
         $outcomes = Outcome::select(array('id', 'name', 'expected_outcome'))

+ 25
- 25
app/controllers/AnnualPlansController.php Прегледај датотеку

@@ -180,12 +180,12 @@ class AnnualPlansController extends \BaseController
180 180
       )
181 181
       order by semester_start desc");*/
182 182
     // $annual_plans = DB::select("select academic_year, semester_start, semester_end, program_id, annual_plans.id as id from annual_plans, annual_cycle where program_id = {$program_id} and annual_cycle.id = annual_plans.annual_cycle_id order by annual_plans.id desc ");
183
-    // //Log::info($annual_plans);
183
+    // Log::info($annual_plans);
184 184
     $outcomes = array();
185 185
     $allSemesterOrder = array();
186
-    //Log::info($annual_plans);
186
+    Log::info($annual_plans);
187 187
     /*foreach ($annual_plans as $an_plan) {
188
-      //Log::info($an_plan->id);
188
+      Log::info($an_plan->id);
189 189
       $outcomes[$an_plan->id]["first"] = DB::select("select * from outcomes where id in (select outcome_id from typ_semester_outcome where semester_id = {$an_plan->semester_start} and typ_program_id in (select id from typ_program where program_id ={$an_plan->program_id} and three_year_plan_id ={$current_typ->id} ))");
190 190
       $allSemesterOrder[$an_plan->id]["first"] = DB::select("select * from semesters where id = {$an_plan->semester_start}")[0];
191 191
       $outcomes[$an_plan->id]["second"] = DB::select("select * from outcomes where id in (select outcome_id from typ_semester_outcome where semester_id ={$an_plan->semester_end} and typ_program_id in (select id from typ_program where program_id ={$an_plan->program_id} and three_year_plan_id = {$current_typ->id} ))");
@@ -198,7 +198,7 @@ class AnnualPlansController extends \BaseController
198 198
 
199 199
   public function fetchInfo()
200 200
   {
201
-    //Log::info(Input::get('id'));
201
+    Log::info(Input::get('id'));
202 202
     $an_plan = DB::table("annual_plans")
203 203
       ->join('annual_cycle', 'annual_cycle.id', '=', 'annual_plans.annual_cycle_id')
204 204
       ->where('annual_plans.id', '=', Input::get('id'))
@@ -214,8 +214,8 @@ class AnnualPlansController extends \BaseController
214 214
       ->where('semester_id', $an_plan->semester_start)
215 215
       ->select('typ_program.*')
216 216
       ->first();
217
-    //Log::info(array($an_plan));
218
-    //Log::info(array($current_typ_program));
217
+    Log::info(array($an_plan));
218
+    Log::info(array($current_typ_program));
219 219
 
220 220
     //DB::select("select * from typ_program where program_id = {$an_plan->program_id} and three_year_plan_id in (select id from three_year_plan where year_start <= {$years[0]} and year_end>= {$years[1]})")[0];
221 221
 
@@ -285,13 +285,13 @@ class AnnualPlansController extends \BaseController
285 285
       $typ_info['courses'][$objective->id] = DB::select("select c.id, c.number, c.name, c.code, typ.id typ_course_id from courses c, typ_semester_courses typ, (select course_id, id  from typ_semester_courses where typ_semester_objective_id in (select id from typ_semester_objectives where objective_id ={$objective->id} and typ_semester_outcome_id in (select id from typ_semester_outcome where outcome_id =? and semester_id ={$semester->id} and typ_program_id in(select id from typ_program where program_id ={$program_id})))) rel where typ.course_id =c.id and rel.course_id = c.id and typ.id = rel.id ", array(Input::get('id')));
286 286
 
287 287
       $typ_info['criteria'][$objective->id] = DB::select("select * from criteria where deleted_at IS NULL and id in (select criterion_id from criterion_objective_outcome where outcome_id = ? and objective_id = {$objective->id})", array(Input::get('id')));
288
-      //Log::info($typ_info['criteria'][$objective->id]);
288
+      Log::info($typ_info['criteria'][$objective->id]);
289 289
       $typ_info['typ_objective_id'][$objective->id] = DB::select("select id from typ_semester_objectives where objective_id = {$objective->id} and typ_semester_outcome_id in (select id from typ_semester_outcome where outcome_id =? and semester_id ={$semester->id} and typ_program_id in (select id from typ_program where program_id ={$program_id}))", array(Input::get('id')));
290
-      //Log::info($typ_info['typ_objective_id'][$objective->id]);
290
+      Log::info($typ_info['typ_objective_id'][$objective->id]);
291 291
       $typ_info['typ_objective_id'][$objective->id] = $typ_info['typ_objective_id'][$objective->id][0];
292 292
 
293
-      //Log::info($typ_info['typ_objective_id'][$objective->id]->id);
294
-      //Log::info($annual_plan->id);
293
+      Log::info($typ_info['typ_objective_id'][$objective->id]->id);
294
+      Log::info($annual_plan->id);
295 295
       //  $typ_info['annual_plans_transformative'][$objective->id] = DB::select(
296 296
       //    "select trans_id from annual_plan_transformative
297 297
       //     where annual_plan_id={$annual_plan->id} 
@@ -316,7 +316,7 @@ class AnnualPlansController extends \BaseController
316 316
       }
317 317
     }
318 318
     $typ_info['annual_plan'] = $annual_plan;
319
-    //Log::info($typ_info);
319
+    Log::info($typ_info);
320 320
 
321 321
     return json_encode($typ_info);
322 322
   }
@@ -431,8 +431,8 @@ class AnnualPlansController extends \BaseController
431 431
     foreach ($annual_plan['first']['outcomes'] as $outcomes) {
432 432
 
433 433
       $annual_plan['first']['objectives'][$outcomes->id] = DB::select("select * from objectives where id in (select objective_id from typ_semester_objectives where typ_semester_outcome_id in(select id from typ_semester_outcome where outcome_id = {$outcomes->id} and semester_id = {$an_semesters->semester_start} and typ_program_id in (select id from typ_program where program_id ={$an_semesters->program_id})))");
434
-      //Log::info($outcomes->id);
435
-      //Log::info($annual_plan['first']['objectives'][$outcomes->id]);
434
+      Log::info($outcomes->id);
435
+      Log::info($annual_plan['first']['objectives'][$outcomes->id]);
436 436
       foreach ($annual_plan['first']['objectives'][$outcomes->id] as $objective) {
437 437
         $annual_plan['first']['typ_objective_id'][$objective->id] = DB::select("select id from typ_semester_objectives where objective_id = {$objective->id} and  typ_semester_outcome_id in (select id from typ_semester_outcome where outcome_id ={$outcomes->id} and semester_id ={$an_semesters->semester_start} and typ_program_id in(select id from typ_program where program_id ={$an_semesters->program_id})) ")[0];
438 438
         $annual_plan['first']['courses'][$objective->id] = DB::select("select typ.id typ_course_id, typ.course_id, c.code, c.number, c.name from (select course_id, id from typ_semester_courses where typ_semester_objective_id = {$annual_plan['first']['typ_objective_id'][$objective->id]->id}) typ, courses c where c.id = typ.course_id");
@@ -441,15 +441,15 @@ class AnnualPlansController extends \BaseController
441 441
           $annual_plan['first']['trans_actions'][$objective->id][$course->typ_course_id] = DB::select("select * from transformative_actions where id in (select trans_id from annual_plan_transformative where typ_semester_course_id = {$course->typ_course_id})");
442 442
         }
443 443
 
444
-        //Log::info($objective->id);
444
+        Log::info($objective->id);
445 445
         /*$annual_plan['first']['trans_actions'][$objective->id] = DB::select("select * from transformative_actions where id in (select trans_id from annual_plan_transformative where typ_semester_objective_id ={$annual_plan['first']['typ_objective_id'][$objective->id]->id})");
446 446
         foreach ($annual_plan['first']['trans_actions'][$objective->id] as $trans) {
447
-          //Log::info($annual_plan['first']['typ_objective_id'][$objective->id]->id);
448
-          //Log::info($trans->id);
449
-          //Log::info($an_id);
447
+          Log::info($annual_plan['first']['typ_objective_id'][$objective->id]->id);
448
+          Log::info($trans->id);
449
+          Log::info($an_id);
450 450
           $annual_plan['fill_info'][$annual_plan['first']['typ_objective_id'][$objective->id]->id][$trans->id] = DB::select("select * from annual_report_transformative where annual_trans_id in (select id from annual_plan_transformative where trans_id = {$trans->id} and typ_semester_objective_id ={$annual_plan['first']['typ_objective_id'][$objective->id]->id} and annual_plan_id = {$an_id} )");
451 451
           if (count($annual_plan['fill_info'][$annual_plan['first']['typ_objective_id'][$objective->id]->id][$trans->id])) {
452
-            //Log::info("entró");
452
+            Log::info("entró");
453 453
             $annual_plan['fill_info'][$annual_plan['first']['typ_objective_id'][$objective->id]->id][$trans->id] =  $annual_plan['fill_info'][$annual_plan['first']['typ_objective_id'][$objective->id]->id][$trans->id][0];
454 454
           }
455 455
         }*/
@@ -467,13 +467,13 @@ class AnnualPlansController extends \BaseController
467 467
         }
468 468
         /*
469 469
         $annual_plan['second']['trans_actions'][$objective->id] = DB::select("select * from transformative_actions where id in (select trans_id from annual_plan_transformative where typ_semester_objective_id ={$annual_plan['second']['typ_objective_id'][$objective->id]->id})");
470
-        //Log::info($annual_plan['second']['typ_objective_id'][$objective->id]->id);
470
+        Log::info($annual_plan['second']['typ_objective_id'][$objective->id]->id);
471 471
         foreach ($annual_plan['second']['trans_actions'][$objective->id] as $trans) {
472 472
 
473 473
           $annual_plan['fill_info'][$annual_plan['second']['typ_objective_id'][$objective->id]->id][$trans->id] = DB::select("select * from annual_report_transformative where annual_trans_id in (select id from annual_plan_transformative where trans_id = {$trans->id} and typ_semester_objective_id ={$annual_plan['second']['typ_objective_id'][$objective->id]->id} and annual_plan_id = {$an_id} )");
474
-          //Log::info("lol");
474
+          Log::info("lol");
475 475
           if (count($annual_plan['fill_info'][$annual_plan['second']['typ_objective_id'][$objective->id]->id][$trans->id])) {
476
-            //Log::info("entró");
476
+            Log::info("entró");
477 477
             $annual_plan['fill_info'][$annual_plan['second']['typ_objective_id'][$objective->id]->id][$trans->id] =  $annual_plan['fill_info'][$annual_plan['second']['typ_objective_id'][$objective->id]->id][$trans->id][0];
478 478
           }
479 479
         }*/
@@ -556,7 +556,7 @@ class AnnualPlansController extends \BaseController
556 556
       ->select('courses.code', 'courses.number')
557 557
       ->distinct()
558 558
       ->get();
559
-    //Log::info($course_codes);
559
+    Log::info($course_codes);
560 560
     $all_courses_info = [];
561 561
 
562 562
     foreach ($course_codes as $index => $course_code) {
@@ -569,8 +569,8 @@ class AnnualPlansController extends \BaseController
569 569
         ->where('number', $course_code->number)
570 570
         ->where('program_id', $program_id)
571 571
         ->get();
572
-      //Log::info("run number " . $index);
573
-      //Log::info($courses);
572
+      Log::info("run number " . $index);
573
+      Log::info($courses);
574 574
       foreach ($courses as $course) {
575 575
         $all_courses_info[$course_code->code . '_' . $course_code->number][] = $course->getReportObject();
576 576
       }
@@ -606,7 +606,7 @@ class AnnualPlansController extends \BaseController
606 606
         ->where('annual_plan_objective.typ_semester_course_id', $course_code->typ_sem_cou_id)
607 607
         ->toSql();
608 608
 
609
-      //Log::info($course_code->sections);
609
+      Log::info($course_code->sections);
610 610
     }*/
611 611
 
612 612
     return $all_courses_info;

+ 1
- 1
app/controllers/CoursesController.php Прегледај датотеку

@@ -108,7 +108,7 @@ CoursesController extends \BaseController
108 108
         $schools = School::all();
109 109
 
110 110
         $rubrics = array();
111
-        //Log::info($activities);
111
+        Log::info($activities);
112 112
         foreach ($activities as $activity) {
113 113
 
114 114
             if (!empty($activity->rubric)) {

+ 11
- 11
app/controllers/CriteriaController.php Прегледај датотеку

@@ -16,7 +16,7 @@ class CriteriaController extends \BaseController
16 16
         $userProgram = Auth::user()['id'];
17 17
 
18 18
         $userProgram = DB::select("select program_user.program_id from program_user where user_id = {$userProgram}");
19
-        //Log::info($userProgram);
19
+        Log::info($userProgram);
20 20
         $title = "Criteria";
21 21
         $outcomes = Outcome::whereNull("deactivation_date")->orderBy('name', 'ASC')->lists('name', 'id');
22 22
 
@@ -28,7 +28,7 @@ class CriteriaController extends \BaseController
28 28
     public function editSchool()
29 29
     {
30 30
         $userSchool = Auth::user()['school_id'];
31
-        //Log::info($userSchool);
31
+        Log::info($userSchool);
32 32
         $title = "Criteria";
33 33
         $outcomes = Outcome::whereNull("deactivation_date")->orderBy('name', 'ASC')->lists('name', 'id');
34 34
 
@@ -55,7 +55,7 @@ class CriteriaController extends \BaseController
55 55
         $json_to_send = array();
56 56
         $json_to_send['criterion'] = DB::table('criteria')->where('id', '=', Input::get('id'))->first();
57 57
         $outcomeIDS = DB::table('criterion_objective_outcome')->where('criterion_id', '=', $json_to_send['criterion']->id)->lists('outcome_id');
58
-        //Log::info($outcomeIDS);
58
+        Log::info($outcomeIDS);
59 59
 
60 60
         $json_to_send['scales'] = DB::table('criterion_scale')
61 61
             ->join('scales', 'scales.id', '=', 'criterion_scale.scale_id')
@@ -126,7 +126,7 @@ class CriteriaController extends \BaseController
126 126
                 break;
127 127
         }
128 128
         $outcome_id = Input::get('outcomeID');
129
-        //Log::info($outcome_id);
129
+        Log::info($outcome_id);
130 130
 
131 131
         $json = DB::table('objectives')
132 132
             ->join('objective_outcome', 'objective_outcome.objective_id', '=', 'objectives.id')
@@ -275,7 +275,7 @@ class CriteriaController extends \BaseController
275 275
     public function isCriterionUnique($input, $existing_criterion = NULL)
276 276
     {
277 277
         // dd($input);
278
-        //Log::info('isCriterionUnique');
278
+        Log::info('isCriterionUnique');
279 279
 
280 280
         if (Input::get('program_id') != 0)
281 281
             $program_id = $input['program_id'];
@@ -334,7 +334,7 @@ class CriteriaController extends \BaseController
334 334
 
335 335
         $trimmed = trim(preg_replace('/\t+/', '', Input::get('subcriteria')));
336 336
 
337
-        //Log::info('trimmed 1 -->' . $trimmed . '<--');
337
+        Log::info('trimmed 1 -->' . $trimmed . '<--');
338 338
 
339 339
 
340 340
         if ($trimmed == '') {
@@ -343,7 +343,7 @@ class CriteriaController extends \BaseController
343 343
             $trimmed = json_encode(preg_split('/\r\n/', $trimmed));
344 344
         }
345 345
 
346
-        //Log::info('trimmed 2 -->' . $trimmed . '<--');
346
+        Log::info('trimmed 2 -->' . $trimmed . '<--');
347 347
 
348 348
 
349 349
         $clean_input['subcriteria'] = $trimmed;
@@ -387,7 +387,7 @@ class CriteriaController extends \BaseController
387 387
 
388 388
         if (isset($clean_input['objective_id'][0]) && $clean_input['objective_id'][0] != '0') {
389 389
             $objective_id = $clean_input['objective_id'][0];
390
-            //Log::info('Estamos');
390
+            Log::info('Estamos');
391 391
         } else {
392 392
             $objective_id = NULL;
393 393
         }
@@ -451,7 +451,7 @@ class CriteriaController extends \BaseController
451 451
                     return Redirect::to('criteria')->withInput();
452 452
 
453 453
                 case 2:
454
-                    //Log::info(Input::all());
454
+                    Log::info(Input::all());
455 455
                     return Redirect::to('school-criteria')->withInput();
456 456
 
457 457
                 case 3:
@@ -642,7 +642,7 @@ class CriteriaController extends \BaseController
642 642
 
643 643
         $trimmed = trim(preg_replace('/\t+/', '', Input::get('subcriteria')));
644 644
 
645
-        //Log::info('trimmed 1 -->' . $trimmed . '<--');
645
+        Log::info('trimmed 1 -->' . $trimmed . '<--');
646 646
 
647 647
 
648 648
         if ($trimmed == '') {
@@ -651,7 +651,7 @@ class CriteriaController extends \BaseController
651 651
             $trimmed = json_encode(preg_split('/\r\n/', $trimmed));
652 652
         }
653 653
 
654
-        //Log::info('trimmed 2 -->' . $trimmed . '<--');
654
+        Log::info('trimmed 2 -->' . $trimmed . '<--');
655 655
 
656 656
 
657 657
         $clean_input['subcriteria'] = $trimmed;

+ 9
- 9
app/controllers/Objective2Controller.php Прегледај датотеку

@@ -22,7 +22,7 @@ class Objective2Controller extends \BaseController
22 22
 	public function isObjectiveUnique($input, $existing_Objective = NULL)
23 23
 	{
24 24
 
25
-		//Log::info('isObjectiveUnique');
25
+		Log::info('isObjectiveUnique');
26 26
 
27 27
 		if (Input::get('program_id') != 0)
28 28
 			$program_id = $input['program_id'];
@@ -78,14 +78,14 @@ class Objective2Controller extends \BaseController
78 78
 
79 79
 		$clean_input['outcome_id'] = Input::get('outcome');
80 80
 		$counter = Input::get('counter') + 0;
81
-		//Log::info($clean_input);
81
+		Log::info($clean_input);
82 82
 
83 83
 		foreach ($clean_input['outcome_id'] as $index => $outcome_id) {
84 84
 			$clean_input['outcome_id'][$index] = trim(preg_replace('/\t+/', '', $clean_input['outcome_id'][$index]));
85 85
 		}
86 86
 
87 87
 		$clean_input['program_id'] = Input::get('program_id');
88
-		//Log::info(Input::get('program_id'));
88
+		Log::info(Input::get('program_id'));
89 89
 
90 90
 		return $clean_input;
91 91
 	}
@@ -98,7 +98,7 @@ class Objective2Controller extends \BaseController
98 98
 
99 99
 
100 100
 		$clean_input['outcome_id'] = Input::get('assoc_outcome');
101
-		//Log::info(Input::all());
101
+		Log::info(Input::all());
102 102
 
103 103
 
104 104
 		$clean_input['program_id'] = Input::get('program_id');
@@ -121,7 +121,7 @@ class Objective2Controller extends \BaseController
121 121
 		$json['assessment'] = DB::select("select * from assessments where activity_criterion_id  in (select id from activity_criterion where criterion_id in (select criterion_id from criterion_objective_outcome where objective_id = ?))", array(Input::get('id')));
122 122
 
123 123
 		$json['assoc_criteria'] = DB::select("select name from criteria where id in(select criterion_id from criterion_objective_outcome where objective_id =?)", array(Input::get('id')));
124
-		//Log::info('is here');
124
+		Log::info('is here');
125 125
 		return json_encode($json);
126 126
 	}
127 127
 	public function fetchAllobjectives()
@@ -306,7 +306,7 @@ class Objective2Controller extends \BaseController
306 306
 	public function editProgram()
307 307
 	{
308 308
 		$userProgram = Auth::user()['id'];
309
-		//Log::info(Auth::user());
309
+		Log::info(Auth::user());
310 310
 
311 311
 		$userProgram = DB::select("select program_user.program_id from program_user where user_id = {$userProgram}");
312 312
 
@@ -328,7 +328,7 @@ class Objective2Controller extends \BaseController
328 328
 	public function editSchool()
329 329
 	{
330 330
 		$userSchool = Auth::user()['school_id'];
331
-		//Log::info($userSchool);
331
+		Log::info($userSchool);
332 332
 		$title = "Objective";
333 333
 		$outcomes = Outcome::whereNull("deactivation_date")->orderBy('name', 'ASC')->get();
334 334
 
@@ -360,7 +360,7 @@ class Objective2Controller extends \BaseController
360 360
 		$clean_input = $this->cleanAssocInput();
361 361
 
362 362
 
363
-		//Log::info(print_r($clean_input, true));
363
+		Log::info(print_r($clean_input, true));
364 364
 
365 365
 		/** Validation rules */
366 366
 		$validator = $this->makeValidator($clean_input);
@@ -399,7 +399,7 @@ class Objective2Controller extends \BaseController
399 399
 
400 400
 
401 401
 			/** Set info */
402
-			//Log::info($clean_input);
402
+			Log::info($clean_input);
403 403
 			$Objective->text = $clean_input['text'];
404 404
 
405 405
 

+ 4
- 4
app/controllers/OutcomesController.php Прегледај датотеку

@@ -708,7 +708,7 @@ class OutcomesController extends \BaseController
708 708
                     ->join('program_criterion', 'program_criterion.program_id', '=', 'programs.id')
709 709
                     ->where('criterion_id', $criteria_id->id)
710 710
                     ->lists('programs.name');
711
-                //Log::info($scales);
711
+                Log::info($scales);
712 712
 
713 713
                 /* $scales =
714 714
                     DB::select(
@@ -985,7 +985,7 @@ class OutcomesController extends \BaseController
985 985
                     ->groupBy(array('code', 'number'));
986 986
             }))
987 987
             ->first();
988
-        //Log::info($program);
988
+        Log::info($program);
989 989
 
990 990
 
991 991
         return View::make('local.managers.pCoords.new_assessment_report', compact('title', 'program'));
@@ -996,13 +996,13 @@ class OutcomesController extends \BaseController
996 996
     {
997 997
         $semesters = Session::get('semesters_ids');
998 998
         $semesters = DB::table('semesters')->whereIn('id', $semesters)->orderBy('start', 'ASC')->first();
999
-        //Log::info($semesters->start);
999
+        Log::info($semesters->start);
1000 1000
         $outcomes = Outcome::select(array('id', 'name', 'expected_outcome'))
1001 1001
             ->whereNull('deleted_at')
1002 1002
             ->whereRaw("(deactivation_date IS NULL or deactivation_date >= '{$semesters->start}')")
1003 1003
             ->orderBy('name', 'ASC')->get();
1004 1004
 
1005
-        //Log::info($outcomes);
1005
+        Log::info($outcomes);
1006 1006
         $title = "My Courses' Assessment Reports";
1007 1007
 
1008 1008
         return View::make('local.professors.assessment_reports', compact('title', 'outcomes'));

+ 4
- 4
app/controllers/ProfessorsController.php Прегледај датотеку

@@ -16,14 +16,14 @@ class ProfessorsController extends \BaseController
16 16
         $grouped_courses = Course::with('program')->where('user_id', Auth::user()->id)->whereIn('semester_id', Session::get('semesters_ids'))->groupBy(array('code', 'number', 'semester_id'))->get();
17 17
         $semesters = Session::get('semesters_ids');
18 18
         $semesters = DB::table('semesters')->whereIn('id', $semesters)->orderBy('start', 'ASC')->first();
19
-        //Log::info($semesters->start);
19
+        Log::info($semesters->start);
20 20
         $outcomes = Outcome::select(array('id', 'name', 'expected_outcome', 'level'))
21 21
             ->whereNull('deleted_at')
22 22
             ->whereRaw("(deactivation_date IS NULL or deactivation_date >= '{$semesters->start}')")
23 23
             ->orderBy('name', 'ASC')->get();
24 24
         $outcomeCount = count($outcomes);
25 25
 
26
-        //Log::info($grouped_courses);
26
+        Log::info($grouped_courses);
27 27
         $grouped_outcomes_achieved_results = array();
28 28
         $grouped_outcomes_attempted_results = array();
29 29
         $grouped_sections = array();
@@ -46,7 +46,7 @@ class ProfessorsController extends \BaseController
46 46
                 ->where('semester_id', $grouped_course->semester_id)
47 47
                 ->get();
48 48
 
49
-            // 			        //Log::info($sections);
49
+            // 			        Log::info($sections);
50 50
 
51 51
             // For each of the professor's course sections, add the attempted and achieved criteria per outcome
52 52
             foreach ($sections as $section) {
@@ -109,7 +109,7 @@ class ProfessorsController extends \BaseController
109 109
         $outcomes_achieved = [];
110 110
         $outcomes_attempted = [];
111 111
 
112
-        //Log::info($program_courses);
112
+        Log::info($program_courses);
113 113
 
114 114
 
115 115
         foreach ($program_courses as $course) {

+ 30
- 30
app/controllers/ProgramCoordinatorsController.php Прегледај датотеку

@@ -17,17 +17,17 @@ class ProgramCoordinatorsController extends \BaseController
17 17
         return Redirect::to('school-coordinator');
18 18
         break;
19 19
     }
20
-    ////Log::info(Auth::user()->programs);
20
+    //Log::info(Auth::user()->programs);
21 21
     $title = 'Program Coordinator Overview';
22 22
 
23 23
     $programs = Auth::user()->programs;
24
-    ////Log::info($programs);
24
+    //Log::info($programs);
25 25
 
26 26
     //$outcomes = Outcome::orderBy('name', 'asc')->get();
27 27
 
28 28
     $semesters = Session::get('semesters_ids');
29 29
     $semesters = DB::table('semesters')->whereIn('id', $semesters)->orderBy('start', 'ASC')->first();
30
-    ////Log::info($semesters->start);
30
+    //Log::info($semesters->start);
31 31
     $outcomes = Outcome::select(array('id', 'name', 'expected_outcome'))
32 32
       ->whereNull('deleted_at')
33 33
       ->whereRaw("(deactivation_date IS NULL or deactivation_date >= '{$semesters->start}')")
@@ -64,62 +64,62 @@ class ProgramCoordinatorsController extends \BaseController
64 64
       */
65 65
 
66 66
     foreach ($programs as $program) {
67
-      ////Log::info($program);
67
+      //Log::info($program);
68 68
       $program_array = array();
69 69
       $program_object = new \stdClass();
70 70
       $program_object->name = $program->name;
71 71
       $program_object->school = $program->school->name;
72 72
       $program_object->id = $program->id;
73 73
       $program_array['program'] = $program_object;
74
-      ////Log::info($program_array);
74
+      //Log::info($program_array);
75 75
 
76 76
       $program_array['outcomes_achieved'] = [];
77 77
       $program_array['outcomes_attempted'] = [];
78
-      ////Log::info($program_array);
78
+      //Log::info($program_array);
79 79
 
80 80
       $program_array['program_courses'] = $program->courses;
81
-      ////Log::info($program_array);
82
-      ////Log::info('grouped_objectives, 1.variable, 2.array');
81
+      //Log::info($program_array);
82
+      //Log::info('grouped_objectives, 1.variable, 2.array');
83 83
 
84
-      //////Log::info(array($program->objectives()));
84
+      ////Log::info(array($program->objectives()));
85 85
       // $program_array['grouped_objectives'] = $program->objectives();
86
-      ////Log::info($program_array);
87
-      ////Log::info("program_courses");
88
-      ////Log::info($program_array['program_courses']);
89
-      ////Log::info($program_array);
86
+      //Log::info($program_array);
87
+      //Log::info("program_courses");
88
+      //Log::info($program_array['program_courses']);
89
+      //Log::info($program_array);
90 90
 
91 91
       $program_array['assessed_courses_count'] = 0;
92 92
       foreach ($program_array['program_courses'] as $course) {
93
-        ////Log::info($program_array);
93
+        //Log::info($program_array);
94 94
 
95 95
         $program_array['course_outcomes_achieved'] = $course->outcomes_ach();
96 96
 
97
-        ////Log::info("course_outcomes_achieved");
98
-        ////Log::info($program_array['course_outcomes_achieved']);
99
-        ////Log::info($program_array);
97
+        //Log::info("course_outcomes_achieved");
98
+        //Log::info($program_array['course_outcomes_achieved']);
99
+        //Log::info($program_array);
100 100
         if (($program_array['course_outcomes_achieved'])) {
101 101
           $program_array['course_outcomes_achieved'] = $course->outcomes_ach();
102 102
           $program_array['course_outcomes_attempted'] = $course->outcomes_att();
103
-          ////Log::info('course_outcomes_achieved');
104
-          ////Log::info($program_array['course_outcomes_achieved']);
105
-          ////Log::info($program_array);
103
+          //Log::info('course_outcomes_achieved');
104
+          //Log::info($program_array['course_outcomes_achieved']);
105
+          //Log::info($program_array);
106 106
 
107 107
           foreach ($program_array['course_outcomes_achieved'] as $i => $score) {
108 108
             if (array_key_exists($i, $program_array['outcomes_achieved']))  $program_array['outcomes_achieved'][$i] += $program_array['course_outcomes_achieved'][$i];
109 109
             else $program_array['outcomes_achieved'][$i] = $program_array['course_outcomes_achieved'][$i];
110
-            ////Log::info('program["outcomes_achieved"]');
111
-            ////Log::info($program_array['outcomes_achieved'][$i]);
112
-            ////Log::info($program_array);
113
-            //Log::info("outcomes_achieved");
114
-            //Log::info($program_array['outcomes_achieved']);
110
+            //Log::info('program["outcomes_achieved"]');
111
+            //Log::info($program_array['outcomes_achieved'][$i]);
112
+            //Log::info($program_array);
113
+            Log::info("outcomes_achieved");
114
+            Log::info($program_array['outcomes_achieved']);
115 115
           }
116 116
           foreach ($program_array['course_outcomes_attempted'] as $i => $score) {
117 117
 
118 118
             if (array_key_exists($i, $program_array['outcomes_attempted']))  $program_array['outcomes_attempted'][$i] += $program_array['course_outcomes_attempted'][$i];
119 119
             else $program_array['outcomes_attempted'][$i] = $program_array['course_outcomes_attempted'][$i];
120
-            ////Log::info('program["outcomes_achieved"]');
121
-            ////Log::info($program_array['outcomes_attempted'][$i]);
122
-            ////Log::info($program_array);
120
+            //Log::info('program["outcomes_achieved"]');
121
+            //Log::info($program_array['outcomes_attempted'][$i]);
122
+            //Log::info($program_array);
123 123
           }
124 124
 
125 125
           $program_array['assessed_courses_count'] += 1;
@@ -141,7 +141,7 @@ class ProgramCoordinatorsController extends \BaseController
141 141
         ->orderBy('number')
142 142
         ->orderBy('semester_id')
143 143
         ->get(); */
144
-      ////Log::info($program_array);
144
+      //Log::info($program_array);
145 145
       $program_array['grouped_courses'] = Course::select(DB::raw('name, code, number, semester_id, program_id'))
146 146
         ->with('semester')
147 147
         ->with('program')
@@ -152,7 +152,7 @@ class ProgramCoordinatorsController extends \BaseController
152 152
         ->orderBy('number')
153 153
         ->orderBy('semester_id')
154 154
         ->get();
155
-      ////Log::info($program_array);
155
+      //Log::info($program_array);
156 156
       $programs_array[] = $program_array;
157 157
 
158 158
 

+ 4
- 4
app/controllers/ProgramsController.php Прегледај датотеку

@@ -11,7 +11,7 @@ class ProgramsController extends \BaseController
11 11
   {
12 12
 
13 13
     $program = Program::find($id);
14
-    //Log::info(debug_backtrace()[1]['function']);
14
+    Log::info(debug_backtrace()[1]['function']);
15 15
     $title = $program->school->name . ': ' . $program->name;
16 16
     $program_courses = $program->courses;
17 17
     //     $outcomes = Outcome::orderBy('name', 'asc')->get();
@@ -378,7 +378,7 @@ class ProgramsController extends \BaseController
378 378
 
379 379
     $semesters = Session::get('semesters_ids');
380 380
     $semesters = DB::table('semesters')->whereIn('id', $semesters)->orderBy('start', 'ASC')->first();
381
-    //Log::info($semesters->start);
381
+    Log::info($semesters->start);
382 382
     $outcomes = Outcome::select(array('id', 'name', 'expected_outcome'))
383 383
       ->whereNull('deleted_at')
384 384
       ->whereRaw("(deactivation_date IS NULL or deactivation_date >= '{$semesters->start}')")
@@ -406,7 +406,7 @@ class ProgramsController extends \BaseController
406 406
       if (!$program_array['course_outcomes_achieved'] = $course->outcomes_ach()) {
407 407
         //           $program_array['course_outcomes_achieved'] = $course->outcomes_ach();
408 408
         $program_array['course_outcomes_attempted'] = $course->outcomes_att();
409
-        //Log::info($program_array['course_outcomes_achieved']);
409
+        Log::info($program_array['course_outcomes_achieved']);
410 410
         foreach ($program_array['course_outcomes_achieved'] as $i => $score) {
411 411
           if (array_key_exists($i, $program_array['outcomes_achieved']))  $program_array['outcomes_achieved'][$i] += $program_array['course_outcomes_achieved'][$i];
412 412
           else $program_array['outcomes_achieved'][$i] = $program_array['course_outcomes_achieved'][$i];
@@ -496,7 +496,7 @@ class ProgramsController extends \BaseController
496 496
    */
497 497
   public function fetch()
498 498
   {
499
-    ////Log::info('id:' . Input::get('id'));
499
+    //Log::info('id:' . Input::get('id'));
500 500
     return School::find(Input::get('id'))->programs;
501 501
   }
502 502
 }

+ 13
- 13
app/controllers/RubricsController.php Прегледај датотеку

@@ -34,7 +34,7 @@ class RubricsController extends \BaseController
34 34
         $criteria = Criterion::orderBy('name', 'ASC')->get();
35 35
         $rubric = $activity->rubric;
36 36
         //         $draft=$activity->draft;
37
-        //         //Log::info("*****".$activity);
37
+        //         Log::info("*****".$activity);
38 38
 
39 39
 
40 40
 
@@ -203,7 +203,7 @@ class RubricsController extends \BaseController
203 203
         $activity->save();
204 204
 
205 205
         // Get all the course's activities
206
-        //Log::info($activity->course);
206
+        Log::info($activity->course);
207 207
         $course = Course::find($activity->course->id);
208 208
         $activities = $course->activities;
209 209
 
@@ -215,7 +215,7 @@ class RubricsController extends \BaseController
215 215
                 break;
216 216
             }
217 217
         }
218
-        //Log::info('entré4???');
218
+        Log::info('entré4???');
219 219
 
220 220
         //If there are still evaluated activities in the course, recalculate course outcomes
221 221
         /*
@@ -247,7 +247,7 @@ class RubricsController extends \BaseController
247 247
                     }
248 248
                 }
249 249
             }
250
-            //Log::info('entré5???');
250
+            Log::info('entré5???');
251 251
             // Update course
252 252
             $course->outcomes_achieved = json_encode($course_outcomes_achieved);
253 253
             $course->outcomes_attempted = json_encode($course_outcomes_attempted);
@@ -259,7 +259,7 @@ class RubricsController extends \BaseController
259 259
 
260 260
         $course->save();
261 261
         */
262
-        //Log::info('entré6???');
262
+        Log::info('entré6???');
263 263
         DB::delete("delete from rubric_criterion where rubric_id ={$rubric->id}");
264 264
         DB::delete("delete from activity_criterion where activity_id = {$activity->id}");
265 265
         DB::delete("delete from rubric_title where rubric_id = {$rubric->id}");
@@ -279,7 +279,7 @@ class RubricsController extends \BaseController
279 279
         foreach ($titles as $index => $id) {
280 280
             DB::insert("insert into rubric_title (`rubric_id`, `title_id`, `position`) values ({$rubric->id},{$id},{$index}) ");
281 281
         }
282
-        //Log::info('entré7???');
282
+        Log::info('entré7???');
283 283
 
284 284
         DB::commit();
285 285
 
@@ -319,21 +319,21 @@ class RubricsController extends \BaseController
319 319
     {
320 320
         $activity = Activity::find($activity_id);
321 321
         // Get activity's course
322
-        //         //Log::info("actv".$activity);
322
+        //         Log::info("actv".$activity);
323 323
         $course = Course::where('id', '=', $activity->course_id)->firstOrFail();
324
-        //         //Log::info("user".$course->user_id);
324
+        //         Log::info("user".$course->user_id);
325 325
 
326 326
         // If activity does not belong to the requesting user, display 403
327 327
         if ($course->user_id != Auth::id())
328 328
             App::abort('403', 'Access Forbidden');
329
-        //         //Log::info("rubric".$activity->rubric);
329
+        //         Log::info("rubric".$activity->rubric);
330 330
         // exit();
331 331
         $rubric = Rubric::where('id', '=', $activity->rubric[0]->id)->firstOrFail();
332 332
         $rubric_criterion = DB::table('criteria')
333 333
             ->join('rubric_criterion', 'rubric_criterion.criterion_id', '=', 'criteria.id')
334 334
             ->where('rubric_criterion.rubric_id', '=', $activity->rubric[0]->id)
335 335
             ->get();
336
-        //Log::info($rubric_criterion);
336
+        Log::info($rubric_criterion);
337 337
 
338 338
         $rubric->titles = DB::table('titles')
339 339
             ->join('rubric_title', 'rubric_title.title_id', '=', 'titles.id')
@@ -352,7 +352,7 @@ class RubricsController extends \BaseController
352 352
         }
353 353
 
354 354
 
355
-        //Log::info($rubric_criterion);
355
+        Log::info($rubric_criterion);
356 356
 
357 357
         $title = $activity->name . ': ' . $rubric->name;
358 358
         return View::make('local.professors.viewrubric', compact('rubric', 'activity', 'rubric_criterion', 'title', 'course'));
@@ -470,14 +470,14 @@ class RubricsController extends \BaseController
470 470
 
471 471
     public function fetchRubricCriterion()
472 472
     {
473
-        //Log::info(Input::all());
473
+        Log::info(Input::all());
474 474
         $rubric = DB::table("criterion_scale")
475 475
             ->join('scales', 'scales.id', '=', 'criterion_scale.scale_id')
476 476
             ->where("criterion_id", '=', Input::get('criterion_id'))
477 477
             ->orderBy('position')
478 478
             ->get();
479 479
 
480
-        //Log::info($rubric);
480
+        Log::info($rubric);
481 481
 
482 482
         $rubric["criteria"] = DB::table("criteria")
483 483
 

+ 2
- 2
app/controllers/SchoolCoordinatorsController.php Прегледај датотеку

@@ -365,12 +365,12 @@ class SchoolCoordinatorsController extends \BaseController
365 365
                 if (!$course->program->is_graduate) {
366 366
                     $undergrad_school_sections_count += 1;
367 367
                     if ($course->isAssessed()) $undergrad_assessed_sections_count += 1;
368
-                    //             	            //Log::info("aqui".$course);
368
+                    //             	            Log::info("aqui".$course);
369 369
 
370 370
                 } else {
371 371
                     $grad_school_sections_count += 1;
372 372
                     if ($course->isAssessed()) $grad_assessed_sections_count += 1;
373
-                    //             	            	            //Log::info("aqui".$course);
373
+                    //             	            	            Log::info("aqui".$course);
374 374
 
375 375
                 }
376 376
                 // 

+ 3
- 3
app/controllers/SchoolsController.php Прегледај датотеку

@@ -301,17 +301,17 @@ class SchoolsController extends \BaseController
301 301
 
302 302
         foreach ($school->programs as $program) {
303 303
             foreach ($program->courses as $course) {
304
-                //             	            //Log::info("aqui".$course);
304
+                //             	            Log::info("aqui".$course);
305 305
 
306 306
                 if (!$course->program->is_graduate) {
307 307
                     $undergrad_school_sections_count += 1;
308 308
                     if ($course->isAssessed()) $undergrad_assessed_sections_count += 1;
309
-                    //             	            //Log::info("aqui".$course);
309
+                    //             	            Log::info("aqui".$course);
310 310
 
311 311
                 } else {
312 312
                     $grad_school_sections_count += 1;
313 313
                     if ($course->isAssessed()) $grad_assessed_sections_count += 1;
314
-                    //             	            	            //Log::info("aqui".$course);
314
+                    //             	            	            Log::info("aqui".$course);
315 315
 
316 316
                 }
317 317
 

+ 3
- 3
app/controllers/StudentsController.php Прегледај датотеку

@@ -56,7 +56,7 @@ class StudentsController extends \BaseController
56 56
 
57 57
 
58 58
           if ($assessment_score) {
59
-            //Log::info($assessment_score->student_id);
59
+            Log::info($assessment_score->student_id);
60 60
 
61 61
             $assessments[$activity->id]["criteria"][$ac->id] = $ac;
62 62
             $sum_of_score += $ac->weight * $assessment_score->score;
@@ -130,7 +130,7 @@ class StudentsController extends \BaseController
130 130
       // }
131 131
     } else
132 132
       $assessments = NULL;
133
-    //Log::info($assessments);
133
+    Log::info($assessments);
134 134
 
135 135
     return View::make('local.professors.student', compact('student', 'course', 'title', 'assessments'));
136 136
   }
@@ -239,7 +239,7 @@ class StudentsController extends \BaseController
239 239
 
240 240
 
241 241
           if ($assessment_score) {
242
-            //Log::info($assessment_score->student_id);
242
+            Log::info($assessment_score->student_id);
243 243
 
244 244
             $assessments[$activity->id]["criteria"][$ac->id] = $ac;
245 245
             $sum_of_score += $ac->weight * $assessment_score->score;

+ 3
- 3
app/controllers/TemplatesController.php Прегледај датотеку

@@ -144,7 +144,7 @@ class TemplatesController extends \BaseController
144 144
 		$json_to_send["criteria"] = DB::table("criteria")->join('template_criterion', 'template_criterion.criterion_id', '=', 'criteria.id')
145 145
 			->where("template_criterion.template_id", '=', $template_id)
146 146
 			->get();
147
-		//Log::info($json_to_send["criteria"]);
147
+		Log::info($json_to_send["criteria"]);
148 148
 		foreach ($json_to_send['criteria'] as $criteria) {
149 149
 			$json_to_send['scales'][$criteria->criterion_id] = DB::table("scales")
150 150
 				->join('criterion_scale', 'criterion_scale.scale_id', '=', 'scales.id')
@@ -348,7 +348,7 @@ class TemplatesController extends \BaseController
348 348
 			->orderBy('position')
349 349
 			->get();
350 350
 
351
-		//Log::info($template_info);
351
+		Log::info($template_info);
352 352
 
353 353
 		return json_encode($template_info);
354 354
 	}
@@ -362,7 +362,7 @@ class TemplatesController extends \BaseController
362 362
 	{
363 363
 		DB::beginTransaction();
364 364
 		$template = Template::find(Input::get('id'));
365
-		//Log::info(Input::all());
365
+		Log::info(Input::all());
366 366
 		$template->name = Input::get('name');
367 367
 
368 368
 		$template->is_visible = Input::get('is_visible');

+ 10
- 10
app/controllers/ThreeYearPlanController.php Прегледај датотеку

@@ -23,9 +23,9 @@ class ThreeYearPlanController extends \BaseController
23 23
 
24 24
         $Firstsemester = DB::table('semesters')->where('name', '=', $string)->first();
25 25
         $secondSemester = DB::table('semesters')->where('name', '=', $string2)->first();
26
-        //Log::info($Firstsemester->id);
27
-        //Log::info($secondSemester->id);
28
-        //Log::info($typ->id);
26
+        Log::info($Firstsemester->id);
27
+        Log::info($secondSemester->id);
28
+        Log::info($typ->id);
29 29
         DB::insert("insert into typ_semesters (typ_id, semester_id) values ({$typ->id}, {$Firstsemester->id}), ({$typ->id}, {$secondSemester->id})");
30 30
       }
31 31
       DB::commit();
@@ -35,7 +35,7 @@ class ThreeYearPlanController extends \BaseController
35 35
     } catch (Exception $e) {
36 36
       Session::flash('status', 'danger');
37 37
       Session::flash('message', "<p>Could not create cycle</p>");
38
-      //Log::info($e);
38
+      Log::info($e);
39 39
       DB::rollback();
40 40
       return Redirect::to("three-years-plan/{$program_id}");
41 41
     }
@@ -554,8 +554,8 @@ class ThreeYearPlanController extends \BaseController
554 554
     $count = 0;
555 555
     $yearStartPlusOne = $current_typ->year_start + 1;
556 556
     $yearStart = $current_typ->year_start;
557
-    //Log::info($yearStart);
558
-    //Log::info($yearStartPlusOne);
557
+    Log::info($yearStart);
558
+    Log::info($yearStartPlusOne);
559 559
     while ($count < 3) {
560 560
 
561 561
 
@@ -564,8 +564,8 @@ class ThreeYearPlanController extends \BaseController
564 564
 
565 565
       $secondSemester = DB::select("select * from semesters where name like 'Second Semester {$yearStart}-{$yearStartPlusOne}'");
566 566
       if (count($firstSemester) && count($secondSemester)) {
567
-        //Log::info($firstSemester);
568
-        //Log::info($secondSemester);
567
+        Log::info($firstSemester);
568
+        Log::info($secondSemester);
569 569
         $query = DB::select("select * from annual_cycle where semester_start ={$firstSemester[0]->id} and semester_end ={$secondSemester[0]->id} ");
570 570
         if (!count($query)) {
571 571
           DB::insert("insert into annual_cycle (academic_year, semester_start, semester_end) values ('{$yearStart}-{$yearStartPlusOne}', {$firstSemester[0]->id}, {$secondSemester[0]->id})");
@@ -626,9 +626,9 @@ class ThreeYearPlanController extends \BaseController
626 626
         }
627 627
       }
628 628
     }
629
-    //Log::info($typ_semester_outcome);
629
+    Log::info($typ_semester_outcome);
630 630
 
631 631
 
632 632
     return View::make('global.print_three_year_plan', compact('typ_semesters', 'program', 'three_year_plan', 'typ_semesters', 'typ_semester_outcome'));
633 633
   }
634
-}
634
+}

+ 15
- 15
app/controllers/TransformativeActionsController.php Прегледај датотеку

@@ -239,7 +239,7 @@ class TransformativeActionsController extends \BaseController
239 239
 
240 240
     $trimmed = trim(preg_replace('/\t+/', '', Input::get('text')));
241 241
 
242
-    //Log::info('trimmed 1 -->' . $trimmed . '<--');
242
+    Log::info('trimmed 1 -->' . $trimmed . '<--');
243 243
 
244 244
     // if ($trimmed == '') {
245 245
     //     $trimmed = NULL;
@@ -247,7 +247,7 @@ class TransformativeActionsController extends \BaseController
247 247
     //     $trimmed = json_encode(preg_split('/\r\n/', $trimmed));
248 248
     // }
249 249
 
250
-    //Log::info('trimmed 2 -->' . $trimmed . '<--');
250
+    Log::info('trimmed 2 -->' . $trimmed . '<--');
251 251
 
252 252
 
253 253
     $clean_input['text'] = $trimmed;
@@ -255,7 +255,7 @@ class TransformativeActionsController extends \BaseController
255 255
     //////
256 256
     $trimmed = trim(preg_replace('/\t+/', '', Input::get('description')));
257 257
 
258
-    //Log::info('trimmed 3 -->' . $trimmed . '<--');
258
+    Log::info('trimmed 3 -->' . $trimmed . '<--');
259 259
 
260 260
     // if ($trimmed == '') {
261 261
     //     $trimmed = NULL;
@@ -263,7 +263,7 @@ class TransformativeActionsController extends \BaseController
263 263
     //     $trimmed = json_encode(preg_split('/\r\n/', $trimmed));
264 264
     // }
265 265
 
266
-    //Log::info('trimmed 4 -->' . $trimmed . '<--');
266
+    Log::info('trimmed 4 -->' . $trimmed . '<--');
267 267
 
268 268
 
269 269
     $clean_input['description'] = $trimmed;
@@ -346,7 +346,7 @@ class TransformativeActionsController extends \BaseController
346 346
       if ($role != 4) {
347 347
         $by_professor = 0;
348 348
       }
349
-      //Log::info($clean_input['courseid']);
349
+      Log::info($clean_input['courseid']);
350 350
       // $by_professor = $clean_input['approval'];
351 351
 
352 352
       $parentesis = array('(', ')');
@@ -728,7 +728,7 @@ class TransformativeActionsController extends \BaseController
728 728
       ->select('objectives.text as text', 'objectives.id as id')
729 729
       ->orderBy('objectives.text', 'ASC')
730 730
       ->lists('objectives.id');
731
-    //Log::info($ta_id);
731
+    Log::info($ta_id);
732 732
 
733 733
     //$an_objective = $objectives[0]->id;
734 734
     $outcome_ids = DB::table('objective_outcome')
@@ -736,8 +736,8 @@ class TransformativeActionsController extends \BaseController
736 736
       ->select('objective_outcome.outcome_id')
737 737
       ->lists('outcome_id');
738 738
     //$outcome_id = $outcome_id[0]->outcome_id;
739
-    //Log::info("outcomes");
740
-    //Log::info($outcome_ids);
739
+    Log::info("outcomes");
740
+    Log::info($outcome_ids);
741 741
     $objectives_from_outcome = DB::table('objectives')
742 742
       ->join('objective_program', 'objective_program.objective_id', '=', 'objectives.id')
743 743
       ->join('objective_outcome', 'objective_outcome.objective_id', '=', 'objectives.id')
@@ -1215,7 +1215,7 @@ class TransformativeActionsController extends \BaseController
1215 1215
     $title = "Formative Actions";
1216 1216
     $semesters = Session::get('semesters_ids');
1217 1217
     $semesters = DB::table('semesters')->whereIn('id', $semesters)->orderBy('start', 'ASC')->first();
1218
-    //Log::info($semesters->start);
1218
+    Log::info($semesters->start);
1219 1219
     $outcomes = Outcome::select(array('id', 'name', 'expected_outcome'))
1220 1220
       ->whereNull('deleted_at')
1221 1221
       ->whereRaw("(deactivation_date IS NULL or deactivation_date >= '{$semesters->start}')")
@@ -1254,8 +1254,8 @@ class TransformativeActionsController extends \BaseController
1254 1254
     $semesters = Input::get('semesters');
1255 1255
     $outcome_id = Input::get('id');
1256 1256
 
1257
-    //Log::info($programs);
1258
-    //Log::info($semesters);
1257
+    Log::info($programs);
1258
+    Log::info($semesters);
1259 1259
 
1260 1260
 
1261 1261
     /* if (in_array(0, $semesters)) {
@@ -1365,7 +1365,7 @@ class TransformativeActionsController extends \BaseController
1365 1365
           ->join('criteria','activity_criterion.criterion_id','=','criteria.id')
1366 1366
           ->where('activity_id', $activity->id)
1367 1367
           ->select('criteria')*/
1368
-          ////Log::info($activity->trans_action_id);
1368
+          //Log::info($activity->trans_action_id);
1369 1369
           $activity->criterion_with_objective = DB::table('transformative_activity_criterion')
1370 1370
             ->join('activity_criterion', 'activity_criterion.id', '=', 'transformative_activity_criterion.activity_criterion_id')
1371 1371
             ->join('criteria', 'activity_criterion.criterion_id', '=', 'criteria.id')
@@ -1380,9 +1380,9 @@ class TransformativeActionsController extends \BaseController
1380 1380
             ->get();*/
1381 1381
 
1382 1382
           /*foreach ($activity->objectives as $objective) {
1383
-            // //Log::info($activity->activity_id);
1384
-            // //Log::info($objective->objective_id);
1385
-            /* //Log::info(DB::table('criterion_objective_outcome')
1383
+            // Log::info($activity->activity_id);
1384
+            // Log::info($objective->objective_id);
1385
+            /* Log::info(DB::table('criterion_objective_outcome')
1386 1386
               ->join('activity_criterion', 'activity_criterion.criterion_id', '=', 'criterion_objective_outcome.criterion_id')
1387 1387
               ->join('criteria', 'criteria.id', '=', 'activity_criterion.criterion_id')
1388 1388
               ->where('activity_criterion.activity_id', $activity->activity_id)

+ 31
- 31
app/controllers/UsersController.php Прегледај датотеку

@@ -16,53 +16,53 @@ class UsersController extends \BaseController
16 16
 			->orderBy('surnames')
17 17
 			->orderBy('first_name')
18 18
 			->get();
19
-		//Log::info('LmaOOOOO get cocked');
19
+		Log::info('LmaOOOOO get cocked');
20 20
 
21 21
 
22 22
 		$schools = School::orderBy('name', 'asc')->get();
23 23
 		$access_level  = count(User::select('role')->where('has_access', 1)->groupBy('role')->get());
24 24
 		try {
25
-			//Log::info("Schools");
25
+			Log::info("Schools");
26 26
 			foreach ($schools as $school) {
27
-				//Log::info(print_r($school, true));
27
+				Log::info(print_r($school, true));
28 28
 			}
29 29
 			foreach ($users as $user) {
30
-				//Log::info("ID");
31
-				//Log::info($user->id);
32
-				//Log::info("Name");
33
-				//Log::info($user->surname . $user->first_name);
34
-				//Log::info("if funciona??");
35
-				//Log::info($user->school_id);
36
-				//Log::info("elseif??");
37
-				//Log::info(count($user->programs));
30
+				Log::info("ID");
31
+				Log::info($user->id);
32
+				Log::info("Name");
33
+				Log::info($user->surname . $user->first_name);
34
+				Log::info("if funciona??");
35
+				Log::info($user->school_id);
36
+				Log::info("elseif??");
37
+				Log::info(count($user->programs));
38 38
 				if ($user->school_id) {
39
-					//Log::info("Schoool");
40
-					//Log::info($user->school->name);
41
-					//Log::info($user->school_id);
39
+					Log::info("Schoool");
40
+					Log::info($user->school->name);
41
+					Log::info($user->school_id);
42 42
 				} elseif (count($user->programs) > 0) {
43
-					//Log::info("Entre aqui");
44
-					//Log::info($user->programs[0]->school_id);
45
-					//Log::info($user->programs[0]->school->name);
46
-				} else //Log::info("Not so cocked");
43
+					Log::info("Entre aqui");
44
+					Log::info($user->programs[0]->school_id);
45
+					Log::info($user->programs[0]->school->name);
46
+				} else Log::info("Not so cocked");
47 47
 
48
-				//Log::info("bueno vamos a ver que hay???");
49
-				//Log::info(count($user->programs));
48
+				Log::info("bueno vamos a ver que hay???");
49
+				Log::info(count($user->programs));
50 50
 				if (count($user->programs)) {
51 51
 					foreach ($user->programs as $program) {
52
-						//Log::info($program->id);
53
-						//Log::info($program->name);
52
+						Log::info($program->id);
53
+						Log::info($program->name);
54 54
 					}
55
-				} else //Log::info("Tal vez cocked");
56
-				//Log::info("email");
57
-				//Log::info($user->email);
58
-				//Log::info("Role" . $user->role);
59
-				//Log::info($user->office_phone);
60
-				//Log::info($user->cell_phone);
55
+				} else Log::info("Tal vez cocked");
56
+				Log::info("email");
57
+				Log::info($user->email);
58
+				Log::info("Role" . $user->role);
59
+				Log::info($user->office_phone);
60
+				Log::info($user->cell_phone);
61 61
 			}
62 62
 		} catch (Exception $e) {
63
-			//Log::info("get Cocked" . $e);
63
+			Log::info("get Cocked" . $e);
64 64
 		}
65
-		//Log::info("el error era en la base de datos XDDDDDDD");
65
+		Log::info("el error era en la base de datos XDDDDDDD");
66 66
 
67 67
 
68 68
 		return View::make('local.managers.admins.users', compact('title', 'users', 'schools', 'access_level'));
@@ -77,7 +77,7 @@ class UsersController extends \BaseController
77 77
 	public function edit()
78 78
 	{
79 79
 		$user = Auth::user();
80
-		//Log::info($user);
80
+		Log::info($user);
81 81
 		$title = "Profile";
82 82
 		$schools = School::orderBy('name', 'asc')->get();
83 83
 		$programs = $user->programs;

+ 4
- 4
app/models/Activity.php Прегледај датотеку

@@ -220,7 +220,7 @@ class Activity extends Eloquent
220 220
             ->where('b.score', '>=', $rubric->expected_points);
221 221
         })
222 222
         ->select('a.student_id', DB::raw('count(`a`.`activity_criterion_id`) attempted'), DB::raw('count(`b`.`activity_criterion_id`) achieved'));
223
-      //Log::info($students_attempted->get());*/
223
+      Log::info($students_attempted->get());*/
224 224
       $students_attempted = DB::table('assessments as a')
225 225
         ->whereIn('a.activity_criterion_id', $ac_criteria)
226 226
         ->groupBy('a.student_id')
@@ -235,7 +235,7 @@ class Activity extends Eloquent
235 235
       $conteo_outcome_achieved = 0;
236 236
 
237 237
       foreach ($students_attempted as $student) {
238
-        //Log::info($student->achieved / $student->attempted * 100);
238
+        Log::info($student->achieved / $student->attempted * 100);
239 239
         if ($student->achieved / $student->attempted * 100 >= $outcome->expected_outcome) {
240 240
           $conteo_outcome_achieved++;
241 241
         }
@@ -299,9 +299,9 @@ class Activity extends Eloquent
299 299
       $attempted_criteria = count(DB::table('assessments')
300 300
         ->where('activity_criterion_id', '=', $activity_crit->id)
301 301
         ->lists('student_id'));
302
-      //Log::info("For activity_crit " . ($activity_crit->id));
302
+      Log::info("For activity_crit " . ($activity_crit->id));
303 303
       $percent_for_criteria = ($passed_criteria / $attempted_criteria) * 100;
304
-      //Log::info('Percent calculated' . $percent_for_criteria);
304
+      Log::info('Percent calculated' . $percent_for_criteria);
305 305
 
306 306
 
307 307
       $percent_for_criteria = ($passed_criteria / $attempted_criteria) * 100;

+ 27
- 27
app/models/Course.php Прегледај датотеку

@@ -43,7 +43,7 @@ class Course extends Eloquent
43 43
       ->select('activities.id')
44 44
       ->distinct()
45 45
       ->lists('activities.id');
46
-    //Log::info($activitiesAssessed);
46
+    Log::info($activitiesAssessed);
47 47
 
48 48
     return $this->hasMany('Activity')->whereIn('activities.id', $activitiesAssessed)->orderBy('date', 'asc');
49 49
 
@@ -111,8 +111,8 @@ class Course extends Eloquent
111 111
         else $outcomes_attempted[$outcome_id] = 1;
112 112
       }
113 113
     }
114
-    //Log::info("outcomes_attempted");
115
-    //Log::info($outcomes_attempted);
114
+    Log::info("outcomes_attempted");
115
+    Log::info($outcomes_attempted);
116 116
 
117 117
     return $outcomes_attempted;
118 118
   }
@@ -122,15 +122,15 @@ class Course extends Eloquent
122 122
       $criteria_id = DB::table('annual_plan_objective')
123 123
         ->where('typ_semester_course_id', $course_code->typ_semester_course_id)
124 124
         ->lists('criteria_id');
125
-      //Log::info($course_code->typ_semester_course_id);
126
-      //Log::info("dame ese id");
125
+      Log::info($course_code->typ_semester_course_id);
126
+      Log::info("dame ese id");
127 127
       $program = Program::where('id', $course_code->program_id)->first();
128
-      // //Log::info($program->code);
128
+      // Log::info($program->code);
129 129
       if ($program->code == "") {
130 130
         $program_ids = DB::table('programs')
131 131
           ->where('school_id', $program->school->id)
132 132
           ->lists('programs.id');
133
-        ////Log::info("estamos");
133
+        //Log::info("estamos");
134 134
       } else $program_ids = array($program->id);
135 135
 
136 136
       /*tabla es asi por curso codigo
@@ -168,13 +168,13 @@ class Course extends Eloquent
168 168
         ->addSelect(DB::raw('count(assessments.activity_criterion_id) as criteria_attempted'))
169 169
         ->groupBy('criteria.id');
170 170
 
171
-      /* //Log::info($table_per_criterion->toSql());
172
-      //Log::info(array($course_code));
173
-      //Log::info($program_ids);
174
-      //Log::info($criteria_id);*/
175
-      //Log::info('mera 1');
176
-      //Log::info(array($course_code));
177
-      //Log::info($table_per_criterion->get());
171
+      /* Log::info($table_per_criterion->toSql());
172
+      Log::info(array($course_code));
173
+      Log::info($program_ids);
174
+      Log::info($criteria_id);*/
175
+      Log::info('mera 1');
176
+      Log::info(array($course_code));
177
+      Log::info($table_per_criterion->get());
178 178
       return $table_per_criterion->get();
179 179
     }
180 180
   }
@@ -185,15 +185,15 @@ class Course extends Eloquent
185 185
         ->where('typ_semester_course_id', $course_code->typ_semester_course_id)
186 186
         ->lists('criteria_id');
187 187
       $program = Program::where('id', $course_code->program_id)->first();
188
-      // // //Log::info($program->code);
188
+      // // Log::info($program->code);
189 189
       if ($program->code == "") {
190 190
         $program_ids = DB::table('programs')
191 191
           ->where('school_id', $program->school->id)
192 192
           ->lists('programs.id');
193
-        //    //Log::info("estamos");
193
+        //    Log::info("estamos");
194 194
       } else $program_ids = array($program->id);
195 195
 
196
-      // //Log::info(array($course_code));
196
+      // Log::info(array($course_code));
197 197
 
198 198
       //Table
199 199
       /* Student  criterion_attempted criterion passed
@@ -231,11 +231,11 @@ class Course extends Eloquent
231 231
 
232 232
 
233 233
 
234
-      ////Log::info($criteria_id);
234
+      //Log::info($criteria_id);
235 235
 
236
-      ////Log::info($program_ids);
236
+      //Log::info($program_ids);
237 237
 
238
-      ////Log::info($table_per_student->toSql());
238
+      //Log::info($table_per_student->toSql());
239 239
       $students = $table_per_student->get();
240 240
 
241 241
 
@@ -261,7 +261,7 @@ class Course extends Eloquent
261 261
       ->where('courses.id', $this->id)
262 262
       ->groupBy('criteria.id')
263 263
       ->get();
264
-    ////Log::info($this->id);
264
+    //Log::info($this->id);
265 265
     $reportObject->outcomesReport = DB::table('courses')
266 266
       ->join('activities', 'activities.course_id', '=', 'courses.id')
267 267
       ->join('rubric_activity', 'rubric_activity.activity_id', '=', 'activities.id')
@@ -311,8 +311,8 @@ class Course extends Eloquent
311 311
       $students_attempted = Criterion::students_attempted($criterion->id, $criterion->activity_id);
312 312
       $students_achieved = Criterion::students_achieved($criterion->id, $criterion->activity_id);
313 313
 
314
-      //Log::info('estamos aqui');
315
-      //Log::info($students_attempted);
314
+      Log::info('estamos aqui');
315
+      Log::info($students_attempted);
316 316
 
317 317
       if ($students_attempted) {
318 318
         $percentage_students_who_achieved = 100.0 * $students_achieved / $students_attempted;
@@ -332,10 +332,10 @@ class Course extends Eloquent
332 332
         }
333 333
       }
334 334
     }
335
-    //Log::info(
335
+    Log::info(
336 336
       "OUTCOMES_ACHIEVED: "
337 337
     );
338
-    //Log::info(
338
+    Log::info(
339 339
       $outcomes_achieved
340 340
     );
341 341
     return $outcomes_achieved;
@@ -370,7 +370,7 @@ class Course extends Eloquent
370 370
       ->join('activities', 'activity_criterion.activity_id', '=', 'activities.id')
371 371
       ->where('activities.course_id', $this->id)
372 372
       ->count();
373
-    //             //Log::info("aqui".$assessed);
373
+    //             Log::info("aqui".$assessed);
374 374
 
375 375
     if ($assessed) return true;
376 376
     else return false;
@@ -423,4 +423,4 @@ class Course extends Eloquent
423 423
       $query->where('outcomes_attempted', 'not like', '\'%"' . $outcome_id . '":0%\'');
424 424
     }))->where('code', $this->code)->where('number', $this->number)->get();
425 425
   }
426
-}
426
+}

+ 2
- 2
app/models/Objective.php Прегледај датотеку

@@ -36,7 +36,7 @@ class Objective extends Eloquent
36 36
             ->where('courses.program_id', $objective->program_id)
37 37
             ->select('courses.code', 'courses.number', 'typ_semester_courses.id as typ_semester_course_id', DB::raw("'{$objective->semester_id}' as semester_id"), "courses.program_id")
38 38
             ->get();
39
-        //Log::info($course_codes);
39
+        Log::info($course_codes);
40 40
 
41 41
         //$course_codes['studentPerOutcome'] = array();
42 42
 
@@ -47,7 +47,7 @@ class Objective extends Eloquent
47 47
                 ->select('transformative_actions.*')
48 48
                 ->get();
49 49
             $course_code->students = Course::getStudentReportForOutcome($course_code);
50
-            //Log::info(array($course_code));
50
+            Log::info(array($course_code));
51 51
             $course_code->criteria = Course::getCriteriaPlanReport($course_code);
52 52
         }
53 53
         return $course_codes;

+ 2
- 2
app/models/Outcome.php Прегледај датотеку

@@ -36,8 +36,8 @@ class Outcome extends Eloquent
36 36
 			->where('outcome_id', $this->id)
37 37
 			->select('objectives.*', 'typ_semester_objectives.id as typ_semester_objective_id', 'program_id', 'semester_id')
38 38
 			->distinct();
39
-		//Log::info($objectives->toSql());
40
-		//Log::info('semester_program_outcome' . $semester_id . ',' . $program_id . ',' . $this->id);
39
+		Log::info($objectives->toSql());
40
+		Log::info('semester_program_outcome' . $semester_id . ',' . $program_id . ',' . $this->id);
41 41
 
42 42
 
43 43
 		return $objectives->get();

+ 2
- 2
app/models/Program.php Прегледај датотеку

@@ -161,7 +161,7 @@ class Program extends Eloquent
161 161
 			->count(DB::raw('DISTINCT criterion_objective_outcome.outcome_id'));
162 162
 
163 163
 
164
-		//Log::info(DB::table('activity_criterion')
164
+		Log::info(DB::table('activity_criterion')
165 165
 			->join('activities', 'activity_criterion.activity_id', '=', 'activities.id')
166 166
 			->join('courses', 'activities.course_id', '=', 'courses.id')
167 167
 			->join('programs', 'programs.id', '=', 'courses.program_id')
@@ -385,7 +385,7 @@ class Program extends Eloquent
385 385
 			->orderBy('semester_id')
386 386
 			->get();
387 387
 
388
-		//Log::info(Course::select(DB::raw('name, code, number, max(outcomes_attempted) as outcomes_attempted, semester_id, program_id'))
388
+		Log::info(Course::select(DB::raw('name, code, number, max(outcomes_attempted) as outcomes_attempted, semester_id, program_id'))
389 389
 			->with('semester')
390 390
 			->with('program')
391 391
 			->where('program_id', $this->id)

+ 3
- 3
app/views/global/view-learning-outcomes-criteria.blade.php Прегледај датотеку

@@ -45,10 +45,10 @@
45 45
       <div class="list-group" id='list'>
46 46
         @foreach ($outcomes as $outcome)
47 47
           @foreach ($semesters as $semester)
48
-          <?php //Log::info($outcome->deactivation_date <= $semester->start)
48
+          <?php Log::info($outcome->deactivation_date <= $semester->start)
49 49
           
50
-        ; //Log::info($outcome->deactivation_date);
51
-        //Log::info($semester->start) ?>
50
+        ; Log::info($outcome->deactivation_date);
51
+        Log::info($semester->start) ?>
52 52
             @if(!$outcome->deleted_at && ( !$outcome->deactivation_date  ||$outcome->deactivation_date >= $semester->start))
53 53
             <!--if(!$outcome->deleted_at && $outcome->activation_date >= $semester->start && $outcome->activation_date <= $semester->end)-->
54 54
               <li data-outcome-id="{{ $outcome->id }}"class="list-group-item">{{ $outcome->name }} [{{$semester->code}}]</li>

+ 5
- 5
app/views/local/managers/admins/assessment_report.blade.php Прегледај датотеку

@@ -106,11 +106,11 @@
106 106
                                                 @foreach($section->activities as $activity_index => $activity)
107 107
                                                         <?php
108 108
 
109
-//Log::info($activity->o_att_array);
110
-//Log::info(array_key_exists($outcome->id, $activity->o_att_array));
111
-//Log::info($activity->o_att_array[$outcome->id] >=1);
112
-//Log::info(isset($section)); 
113
-//Log::info($activity->rubric[0]);
109
+Log::info($activity->o_att_array);
110
+Log::info(array_key_exists($outcome->id, $activity->o_att_array));
111
+Log::info($activity->o_att_array[$outcome->id] >=1);
112
+Log::info(isset($section)); 
113
+Log::info($activity->rubric[0]);
114 114
 
115 115
 ?>
116 116
                                                     <!-- If activity has a rubric and the rubric has the outcome being evaluated -->

+ 1
- 1
app/views/local/managers/admins/new_assessment_report.blade.php Прегледај датотеку

@@ -117,7 +117,7 @@
117 117
                                             <br>
118 118
                                             <h5 style="display: inline;">Performance Indicators: </h5>
119 119
                                             <?php
120
-                                            //Log::info($activity->rubric[0]);
120
+                                            Log::info($activity->rubric[0]);
121 121
                                             ?>
122 122
                                             <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
123 123
                                                     <?php

+ 1
- 1
app/views/local/managers/pCoords/new_assessment_report.blade.php Прегледај датотеку

@@ -101,7 +101,7 @@
101 101
                                     <br>
102 102
                                     <h5 style="display: inline;">Performance Indicators: </h5>
103 103
                                     <?php
104
-                                    //Log::info($activity->rubric[0]);
104
+                                    Log::info($activity->rubric[0]);
105 105
                                     ?>
106 106
                                     <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
107 107
                                             <?php

+ 2
- 2
app/views/local/managers/pCoords/overview.blade.php Прегледај датотеку

@@ -333,8 +333,8 @@
333 333
                     y:-1
334 334
                 }, 
335 335
                 <?php
336
-                //Log::info('program_item');
337
-                //Log::info($program_item);
336
+                Log::info('program_item');
337
+                Log::info($program_item);
338 338
 
339 339
                 ?>
340 340
                 data: [

+ 1
- 1
app/views/local/managers/sCoords/new_assessment_report.blade.php Прегледај датотеку

@@ -115,7 +115,7 @@
115 115
                                         <br>
116 116
                                         <h5 style="display: inline;">Performance Indicators: </h5>
117 117
                                         <?php
118
-                                        //Log::info($activity->rubric[0]);
118
+                                        Log::info($activity->rubric[0]);
119 119
                                         ?>
120 120
                                         <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
121 121
                                                 <?php

+ 3
- 3
app/views/local/managers/shared/limited-course.blade.php Прегледај датотеку

@@ -92,10 +92,10 @@
92 92
                         @foreach($course->activities as $activity)
93 93
                         <tr>
94 94
                             <?php
95
-                                //Log::info($activity);
96
-                                //Log::info($activity->rubric);
95
+                                Log::info($activity);
96
+                                Log::info($activity->rubric);
97 97
                                 $bool = empty($activity->rubric);
98
-                                //Log::info($bool);
98
+                                Log::info($bool);
99 99
                                 
100 100
                                 ?>
101 101
                             <td>{{{ $activity->name }}}</td>

+ 8
- 8
app/views/local/professors/assessment_report.blade.php Прегледај датотеку

@@ -76,11 +76,11 @@
76 76
 
77 77
                                     <!-- For each activity in the section -->
78 78
                                     @foreach($section->activities as $index4 => $activity)
79
-<?php //Log::info($section); //Log::info($section->activities) ;
80
-//Log::info($activity->o_att_array);
81
-//Log::info("this is the cap_array for ". $activity->name);
82
-//Log::info($activity->cap_array);
83
-//Log::info('aqui papi');?>
79
+<?php Log::info($section); Log::info($section->activities) ;
80
+Log::info($activity->o_att_array);
81
+Log::info("this is the cap_array for ". $activity->name);
82
+Log::info($activity->cap_array);
83
+Log::info('aqui papi');?>
84 84
 
85 85
                                         <!-- If activity is not draft, has a rubric and the rubric has the outcome being evaluated -->
86 86
                                         @if($activity->draft ==0 && $activity->diagnostic ==0&& array_key_exists($outcome->id, (array)$activity->o_att_array))
@@ -118,9 +118,9 @@
118 118
                                             <?php
119 119
                                                 $o_att_array = $activity->o_att_array;
120 120
                                                 $o_ach_array = $activity->o_ach_array;
121
-                                                //Log::info($o_att_array);
122
-                                                //Log::info($o_ach_array);
123
-                                                //Log::info('los outcomes');
121
+                                                Log::info($o_att_array);
122
+                                                Log::info($o_ach_array);
123
+                                                Log::info('los outcomes');
124 124
                                                 $percentage = ($o_ach_array[$outcome->id]/$o_att_array[$outcome->id])*100;
125 125
                                             ?>
126 126
                                             @if($percentage >= 100)

+ 2
- 2
app/views/local/professors/compare_activities.blade.php Прегледај датотеку

@@ -129,7 +129,7 @@
129 129
 
130 130
                 <h5 style="display: inline;">Performance Indicators: </h5>
131 131
                 <?php
132
-                //Log::info($activity_1->rubric[0]);
132
+                Log::info($activity_1->rubric[0]);
133 133
                 ?>
134 134
                 <p style="display: inline;"><i>{{ $activity_1->rubric[0]->num_scales }} (
135 135
                         <?php
@@ -369,7 +369,7 @@
369 369
 
370 370
                 <h5 style="display: inline;">Performance Indicators: </h5>
371 371
                 <?php
372
-                //Log::info($activity_2->rubric[0]);
372
+                Log::info($activity_2->rubric[0]);
373 373
                 ?>
374 374
                 <p style="display: inline;"><i>{{ $activity_2->rubric[0]->num_scales }} (
375 375
                         <?php

+ 2
- 2
app/views/local/professors/new_assessment_report.blade.php Прегледај датотеку

@@ -98,7 +98,7 @@
98 98
                             <h3 style="text-align: center"> Course: {{ $course->code }}
99 99
                                 {{ $course->number }}-{{ $section->section }}</h3>
100 100
                             <?php
101
-                            //Log::info($section->publishedActivities);
101
+                            Log::info($section->publishedActivities);
102 102
                             ?>
103 103
                             @foreach ($section->publishedActivities as $index4 => $activity)
104 104
 
@@ -110,7 +110,7 @@
110 110
                                 <br>
111 111
                                 <h5 style="display: inline;">Performance Indicators: </h5>
112 112
                                 <?php
113
-                                //Log::info($activity->rubric[0]);
113
+                                Log::info($activity->rubric[0]);
114 114
                                 ?>
115 115
                                 <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
116 116
                                         <?php

+ 7
- 7
app/views/local/professors/overview.blade.php Прегледај датотеку

@@ -176,15 +176,15 @@ function loadGraphs() {
176 176
                 data:[
177 177
                     @foreach($outcomes as $outcome)
178 178
                     <?php
179
-// //Log::info($grouped_outcomes_attempted_results[$index]);
180
-// //Log::info(array_key_exists($outcome->id, $grouped_outcomes_attempted_results[$index]));
179
+// Log::info($grouped_outcomes_attempted_results[$index]);
180
+// Log::info(array_key_exists($outcome->id, $grouped_outcomes_attempted_results[$index]));
181 181
 // 
182 182
 
183
-// //Log::info($grouped_course);
184
-// //Log::info($outcome->level);
185
-// //Log::info($grouped_course->is_graduate);
186
-// //Log::info($grouped_course->is_graduate==0);
187
-// //Log::info($outcome->level==3 || ($grouped_course->program->is_graduate==0 && $outcome->level==1));
183
+// Log::info($grouped_course);
184
+// Log::info($outcome->level);
185
+// Log::info($grouped_course->is_graduate);
186
+// Log::info($grouped_course->is_graduate==0);
187
+// Log::info($outcome->level==3 || ($grouped_course->program->is_graduate==0 && $outcome->level==1));
188 188
 //                          
189 189
                     ?>
190 190
 					@if($outcome->level==3 || ($grouped_course->program->is_graduate==0 && $outcome->level==1))