No Description

print_three_year_plan.blade.php 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <?php
  2. echo '<html>';
  3. echo '<body>';
  4. //Inline styles (only for printing)
  5. echo
  6. '<style type="text/css">
  7. body
  8. {
  9. font-family: "Arial", sans-serif;
  10. width:90%;
  11. margin: 0 auto;
  12. }
  13. .header-text
  14. {
  15. text-align:center;
  16. font-weight: bold;
  17. margin:0;
  18. }
  19. h1.header-text
  20. {
  21. margin: 15px auto;
  22. width:75%;
  23. font-size: 25px;
  24. }
  25. table
  26. {
  27. border-collapse: collapse;
  28. border: 1px solid black;
  29. width: 100%;
  30. margin: 30px auto;
  31. font-size:1.5vw;
  32. }
  33. td, th
  34. {
  35. border: 1px solid black;
  36. padding: 5px;
  37. }
  38. .activity-name-row
  39. {
  40. background:black;
  41. color:white;
  42. }
  43. .activity-headers-row
  44. {
  45. background:lightgrey;
  46. font-weight:bold;
  47. }
  48. .report-info
  49. {
  50. margin:5px 0;
  51. font-size: 16px;
  52. }
  53. .criterion-field
  54. {
  55. text-align:left;
  56. }
  57. .score-field, .total, .percentage
  58. {
  59. text-align:center;
  60. }
  61. .header
  62. {
  63. margin: 30px 0;
  64. }
  65. .content
  66. {
  67. font-size: 12px;
  68. }
  69. .logo
  70. {
  71. position:absolute;
  72. right:0;
  73. top: 30px;
  74. width: 100px;
  75. }
  76. ul{
  77. list-style-type:none;
  78. }
  79. @media print{@page {size: landscape}}
  80. </style>';
  81. echo '<style type="text/css" media="print">
  82. @page { size: landscape; }
  83. </style>';
  84. ?>
  85. <img class="logo" src="{{ asset('images/logo_uprrp_bw.png') }}" alt="UPRRP Logo">
  86. <div class="header"><p class="header-text">University of Puerto Rico, Río Piedras Campus</p>
  87. <p class="header-text">Online Learning Assessment System</p>
  88. <h1 class="header-text">Three Year Plan for {{$program->name}} from {{$three_year_plan->year_start}} to {{$three_year_plan->year_end}}</h1></div>
  89. @foreach($typ_semesters as $semester)
  90. <br>
  91. <br>
  92. <h2 class ='header-text'>{{$semester->name}}</h2>
  93. <br>
  94. @foreach($typ_semester_outcome[$semester->semester_id] as $outcome)
  95. <span><h3>{{$outcome->name}}</h3></span>
  96. <table class="table table-striped table-condensed" style = "table-layout: fixed">
  97. <thead>
  98. <tr>
  99. <th>Objectives</th>
  100. <th>Courses</th>
  101. </tr>
  102. </thead>
  103. <tbody>
  104. @foreach($outcome->objectives as $index=> $objective)
  105. <tr>
  106. <td>
  107. {{ $index + 1 }}. {{$objective->text}}
  108. </td>
  109. <td>
  110. <ol>
  111. @foreach($objective->courses as $course)
  112. <li>[{{$course->code}}] {{$course->name}}</li>
  113. @endforeach
  114. </ol>
  115. </tr>
  116. @endforeach
  117. </tbody>
  118. </table>
  119. <br>
  120. <br>
  121. @endforeach
  122. @endforeach
  123. <?php
  124. echo '</body>';
  125. echo '</html>';
  126. ?>
  127. <script type="text/javascript">
  128. window.print();
  129. </script>