Nenhuma descrição

print_three_year_plan.blade.php 3.1KB

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