gschool.tw 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. :: gschool
  2. <<set $here = 'gschool'>>
  3. <<set $ARGS = $location_var[$here]>>
  4. <<if $location_var[$here][0] == 'schedule'>>
  5. <<if $q.school.period == 0>>
  6. <<if $time.weekday == 1>>
  7. <b>Next period</b>: Math
  8. <</if>>
  9. <<if $time.weekday == 2>>
  10. <b>Next period</b>: English
  11. <</if>>
  12. <<if $time.weekday == 3>>
  13. <b>Next period</b>: Math
  14. <</if>>
  15. <<if $time.weekday == 4>>
  16. <b>Next period</b>: English
  17. <</if>>
  18. <<if $time.weekday == 5>>
  19. <b>Next period</b>: Math
  20. <</if>>
  21. <!-- !'8.00 - 8.45'-->
  22. <<elseif $q.school.period == 1>>
  23. <<if $time.weekday == 1>>
  24. <b>Next period</b>: Russian
  25. <</if>>
  26. <<if $time.weekday == 2>>
  27. <b>Next period</b>: Geography
  28. <</if>>
  29. <<if $time.weekday == 3>>
  30. <b>Next period</b>: Russian
  31. <</if>>
  32. <<if $time.weekday == 4>>
  33. <b>Next period</b>: Geography
  34. <</if>>
  35. <<if $time.weekday == 5>>
  36. <b>Next period</b>: Russian
  37. <</if>>
  38. <!-- !'8.50 - 9.35'-->
  39. <<elseif $q.school.period == 2>>
  40. <b>Next</b>: Morning break
  41. <!-- !'9.35 - 9.55'-->
  42. <<elseif $q.school.period == 3>>
  43. <<if $time.weekday == 1>>
  44. <b>Next period</b>: Literature
  45. <</if>>
  46. <<if $time.weekday == 2>>
  47. <b>Next period</b>: Science
  48. <</if>>
  49. <<if $time.weekday == 3>>
  50. <b>Next period</b>: Biology
  51. <</if>>
  52. <<if $time.weekday == 4>>
  53. <b>Next period</b>: Science
  54. <</if>>
  55. <<if $time.weekday == 5>>
  56. <b>Next period</b>: Literature
  57. <</if>>
  58. <!-- !'9.55 - 10.40'-->
  59. <<elseif $q.school.period == 4>>
  60. <<if $time.weekday == 1>>
  61. <b>Next period</b>: Art
  62. <</if>>
  63. <<if $time.weekday == 2>>
  64. <b>Next period</b>: Shop
  65. <</if>>
  66. <<if $time.weekday == 3>>
  67. <b>Next period</b>: History
  68. <</if>>
  69. <<if $time.weekday == 4>>
  70. <b>Next period</b>: Shop
  71. <</if>>
  72. <<if $time.weekday == 5>>
  73. <b>Next period</b>: Art
  74. <</if>>
  75. <!-- !'10.45 - 11.30'-->
  76. <<elseif $q.school.period == 5>>
  77. <b>Next</b>: Lunch break
  78. <!-- !'11.30 - 12.25'-->
  79. <<elseif $q.school.period == 6>>
  80. <<if $time.weekday == 1>>
  81. <b>Next period</b>: Biology
  82. <</if>>
  83. <<if $time.weekday == 2>>
  84. <b>Next period</b>: Computer
  85. <</if>>
  86. <<if $time.weekday == 3>>
  87. <b>Next period</b>: Computer
  88. <</if>>
  89. <<if $time.weekday == 4>>
  90. <b>Next period</b>: Computer
  91. <</if>>
  92. <<if $time.weekday == 5>>
  93. <b>Next period</b>: History
  94. <</if>>
  95. <!-- !'12.25 - 13.10'-->
  96. <<elseif $q.school.period == 7>>
  97. <<if $time.weekday == 1>>
  98. <b>Next period</b>: P.E.
  99. <</if>>
  100. <<if $time.weekday == 2>>
  101. <b>Next period</b>: Music
  102. <</if>>
  103. <<if $time.weekday == 3>>
  104. <b>Next period</b>: P.E.
  105. <</if>>
  106. <<if $time.weekday == 4>>
  107. <b>Next period</b>: Music
  108. <</if>>
  109. <<if $time.weekday == 5>>
  110. <b>Next period</b>: P.E.
  111. <</if>>
  112. <!-- !'13.15 - 15.00'-->
  113. <</if>>
  114. <</if>>
  115. <<if $location_var[$here][0] == 'weekly grade update'>>
  116. <<if $time.isSchoolHoliday == 0 and $time.weekday == 1 and getvar("$SchoolAtestat") == 0>>
  117. <<if getvar("$q.school.homeworkLeft") > 0 and getvar("$petka['homework']") == 1>>
  118. <<run $q.school.func('homework','yes' $q.school.homeworkLeft 2 'A6')>>
  119. <</if>>
  120. <<run $pc.traitSet('nerd_lernHome',0)>>
  121. <<run $pc.traitDec('nerd_points',$q.school.homeworkLeft)>>
  122. <<if getvar("$q.school.homeworkLeft") == 0>>
  123. <<run $pc.traitInc('nerd_points',$pc.trait('nerd_lernHome'))>>
  124. <<if $pc.trait('nerd_lernHome') < 5>>
  125. <<run $pc.traitInc('nerd_lernHome',1)>>
  126. <</if>>
  127. <</if>>
  128. <<set $q.school.homeworkLeft = 0>>
  129. <<if getvar("$class['first_grade_check']") > 0>>
  130. <<gs 'grades' 'calculate_grade' 'school'>>
  131. <<gs 'grades' 'assing_grade_description' 'school'>>
  132. <<else>>
  133. <<set $i = 0>>
  134. <<warn 'JUMP MARKER ENCOUNTERED: :grade_loop'>>
  135. <<setinit $class['school_'+$class_list_name[$i]+'_weekly_grade_gain'] = 0>>
  136. <<set $i += 1>>
  137. <<if ARRSIZE('class_list_institution') > $i>>
  138. <<warn 'JUMP COMMAND ENCOUNTERED: jump grade_loop'>>
  139. <</if>>
  140. <</if>>
  141. <</if>>
  142. <</if>>