Mercurial > hg > Members > anatofuz > lectable
changeset 25:8a32fdfaf131
add template html
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 03 Apr 2020 07:56:04 +0900 |
parents | 841aedb7bbfd |
children | 5abe36dc0697 |
files | template/base.html.tmpl |
diffstat | 1 files changed, 337 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/template/base.html.tmpl Fri Apr 03 07:56:04 2020 +0900 @@ -0,0 +1,337 @@ +以下の時間割は一例であり、この通り講義を受講すれば卒業できるというわけではないので注意してください。共通科目など、各自入学年度の終了要件を確認するようお願いします。 <br> + +<b>GE登録学生は大学院(情報工学専攻)の授業を履修することができますが、対象科目や登録方法については学部もしくは担当教員からの連絡事項に従ってください。</b> <br> + + +<!--1年次--> +<h2>1年次</h2> +<b>指導教員の承認がある場合に限り、微分積分学STⅠの代わりに、微分積分学入門Ⅰを履修しても良い</b> <br> +<b>指導教員の承認がある場合に限り、物理Ⅰの代わりに、物理学入門を履修しても良い</b> + + +<div class="outer"> +<table class="time-schedule" style="height: 783px;"> +<tbody> +<tr style="height: 24px;"> +<td style="width: 23px; height: 24px;"></td> +<td style="width: 90px; height: 24px;" align="center">月</td> +<td style="width: 95px; height: 24px;" align="center">火</td> +<td style="width: 88px; height: 24px;" align="center">水</td> +<td style="width: 92px; height: 24px;" align="center">木</td> +<td style="width: 91px; height: 24px;" align="center">金</td> +</tr> + + +{{ range $dayOfWeekIndex, $dayList := .B1}} + {{ if eq $dayOfWeekIndex 0 }} + <tr style="height: 24px;"> + {{else}} + <tr> + {{end}} + <td style="width: 23px; height: 24px;" align="center">{{inc $dayOfWeekIndex}}</td> + {{range $i, $lecTure := $dayList}} + + + + {{if $lecTure}} + {{if $lecTure.IsSelect}} + <td class="select"> + {{else}} + <td class="required"> + {{end}} + + <a href="http://ie.u-ryukyu.ac.jp/syllabus/2020/previous/{{ $lecTure.ID }}.html">{{ $lecTure.Name}} </a> + {{ if ne $lecTure.Teacher.Url "" }} + <a href="{{$lecTure.Teacher.Url}}" target="_blank" rel="noopener noreferrer">{{$lecTure.Teacher.Name}}</a> + {{else}} + <a>{{$lecTure.Teacher.Name}} </a> + {{end}} + <span style="font-size: 8pt;">{{$lecTure.Place}}</span> + {{ if $lecTure.NextTerm }} + <hr> + <a href="http://ie.u-ryukyu.ac.jp/syllabus/2020/previous/{{ $lecTure.NextTerm.ID }}.html">{{ $lecTure.NextTerm.Name}} </a> + {{ if ne $lecTure.NextTerm.Teacher.Url "" }} + <a href="{{$lecTure.NextTerm.Teacher.Url}}" target="_blank" rel="noopener noreferrer">{{$lecTure.NextTerm.Teacher.Name}}</a> + {{else}} + <a>{{$lecTure.NextTerm.Teacher.Name}} </a> + {{end}} + <span style="font-size: 8pt;">{{$lecTure.NextTerm.Place}}</span> + + {{end}} + </td> + {{else}} + <td></td> + {{end}} + {{ end }} + </tr> +{{ end }} +</tbody> +</table> +</div> + +<table border="0" width="100%"> +<tbody> +<tr> +<td align="center" width="20%"><span style="font-size: 18pt;"><span style="color: #4b75b9;">■</span> </span><a>必修</a></td> +<td align="center" width="20%"><span style="color: #D5E0F1; font-size: 18pt;">■</span><a>選択</a></td> +</tr> +</tbody> +</table> + + +<h2>2年次</h2> +<b>実験1 学籍番号下一桁 奇数:火曜日、偶数:金曜日</b> + +<div class="outer"> +<table class="time-schedule" border="1" width="97%" align="top"> +<tbody> +<tr> +<td></td> +<td align="center" width="19%">月</td> +<td align="center" width="19%">火</td> +<td align="center" width="19%">水</td> +<td align="center" width="19%">木</td> +<td align="center" width="19%">金</td> +</tr> + + +{{ range $dayOfWeekIndex, $dayList := .B2}} + {{ if eq $dayOfWeekIndex 0 }} + <tr style="height: 24px;"> + {{else}} + <tr> + {{end}} + <td style="width: 23px; height: 24px;" align="center">{{inc $dayOfWeekIndex}}</td> + {{range $i, $lecTure := $dayList}} + {{if $lecTure}} + {{if $lecTure.IsSelect}} + <td class="select"> + {{else}} + <td class="required"> + {{end}} + + <a href="http://ie.u-ryukyu.ac.jp/syllabus/2020/previous/{{ $lecTure.ID }}.html">{{ $lecTure.Name}} </a> + {{ if ne $lecTure.Teacher.Url "" }} + <a href="{{$lecTure.Teacher.Url}}" target="_blank" rel="noopener noreferrer">{{$lecTure.Teacher.Name}}</a> + {{else}} + <a>{{$lecTure.Teacher.Name}} </a> + {{end}} + <span style="font-size: 8pt;">{{$lecTure.Place}}</span> + {{ if $lecTure.NextTerm }} + <hr> + <a href="http://ie.u-ryukyu.ac.jp/syllabus/2020/previous/{{ $lecTure.NextTerm.ID }}.html">{{ $lecTure.NextTerm.Name}} </a> + {{ if ne $lecTure.NextTerm.Teacher.Url "" }} + <a href="{{$lecTure.NextTerm.Teacher.Url}}" target="_blank" rel="noopener noreferrer">{{$lecTure.NextTerm.Teacher.Name}}</a> + {{else}} + <a>{{$lecTure.NextTerm.Teacher.Name}} </a> + {{end}} + <span style="font-size: 8pt;">{{$lecTure.NextTerm.Place}}</span> + </td> + {{end}} + {{else}} + <td></td> + {{end}} + {{ end }} + </tr> +{{ end }} +</tbody> +</table> + +</div> +<table border="0" width="100%"> +<tbody> +<tr> +<td align="center" width="20%"><span style="color: #4b75b9; font-size: 18pt;">■</span> <a>必修</a></td> +<td align="center" width="20%"><span style="color: #D5E0F1; font-size: 18pt;">■ </span><a>選択</a></td> +</tr> +</tbody> +</table> + +<h2>3年次</h2> +<div class="outer"> +<table class="time-schedule" border="1" width="97%" align="center"> +<tbody> +<tr> +<td></td> +<td align="center" width="19%">月</td> +<td align="center" width="19%">火</td> +<td align="center" width="19%">水</td> +<td align="center" width="19%">木</td> +<td align="center" width="19%">金</td> +</tr> + +{{ range $dayOfWeekIndex, $dayList := .B3}} + {{ if eq $dayOfWeekIndex 0 }} + <tr style="height: 24px;"> + {{else}} + <tr> + {{end}} + <td style="width: 23px; height: 24px;" align="center">{{inc $dayOfWeekIndex}}</td> + {{range $i, $lecTure := $dayList}} + {{if $lecTure}} + {{if $lecTure.IsSelect}} + <td class="select"> + {{else}} + <td class="required"> + {{end}} + + <a href="http://ie.u-ryukyu.ac.jp/syllabus/2020/previous/{{ $lecTure.ID }}.html">{{ $lecTure.Name}} </a> + {{ if ne $lecTure.Teacher.Url "" }} + <a href="{{$lecTure.Teacher.Url}}" target="_blank" rel="noopener noreferrer">{{$lecTure.Teacher.Name}}</a> + {{else}} + <a>{{$lecTure.Teacher.Name}} </a> + {{end}} + <span style="font-size: 8pt;">{{$lecTure.Place}}</span> + {{ if $lecTure.NextTerm }} + <hr> + <a href="http://ie.u-ryukyu.ac.jp/syllabus/2020/previous/{{ $lecTure.NextTerm.ID }}.html">{{ $lecTure.NextTerm.Name}} </a> + {{ if ne $lecTure.NextTerm.Teacher.Url "" }} + <a href="{{$lecTure.NextTerm.Teacher.Url}}" target="_blank" rel="noopener noreferrer">{{$lecTure.NextTerm.Teacher.Name}}</a> + {{else}} + <a>{{$lecTure.NextTerm.Teacher.Name}} </a> + {{end}} + <span style="font-size: 8pt;">{{$lecTure.NextTerm.Place}}</span> + </td> + + {{end}} + {{else}} + <td></td> + {{end}} + {{ end }} + </tr> +{{ end }} + + +</tbody> +</table> + +</div> +<table border="0" width="100%"> +<tbody> +<tr> +<td align="center" width="20%"><span style="color: #4b75b9; font-size: 18pt;">■</span> <a>必修</a></td> +<td align="center" width="20%"><span style="color: #D5E0F1; font-size: 18pt;">■ </span><a>選択</a></td> +</tr> +</tbody> +</table> + +<!--4年次--> +<h2>4年次</h2> +<!-- 時間割の表示 --> +<div class="outer"> +<table border="1" width="97%" align="center"> +<tbody> +<tr> +<td></td> +<td align="center" width="19%">月</td> +<td align="center" width="19%">火</td> +<td align="center" width="19%">水</td> +<td align="center" width="19%">木</td> +<td align="center" width="19%">金</td> +</tr> + +{{ range $dayOfWeekIndex, $dayList := .B4}} + {{ if eq $dayOfWeekIndex 0 }} + <tr style="height: 24px;"> + {{else}} + <tr> + {{end}} + <td style="width: 23px; height: 24px;" align="center">{{inc $dayOfWeekIndex}}</td> + {{range $i, $lecTure := $dayList}} + {{if $lecTure}} + {{if $lecTure.IsSelect}} + <td class="select"> + {{else}} + <td class="required"> + {{end}} + + <a href="http://ie.u-ryukyu.ac.jp/syllabus/2020/previous/{{ $lecTure.ID }}.html">{{ $lecTure.Name}} </a> + {{ if ne $lecTure.Teacher.Url "" }} + <a href="{{$lecTure.Teacher.Url}}" target="_blank" rel="noopener noreferrer">{{$lecTure.Teacher.Name}}</a> + {{else}} + <a>{{$lecTure.Teacher.Name}} </a> + {{end}} + <span style="font-size: 8pt;">{{$lecTure.Place}}</span> + {{ if $lecTure.NextTerm }} + <hr> + <a href="http://ie.u-ryukyu.ac.jp/syllabus/2020/previous/{{ $lecTure.NextTerm.ID }}.html">{{ $lecTure.NextTerm.Name}} </a> + {{ if ne $lecTure.NextTerm.Teacher.Url "" }} + <a href="{{$lecTure.NextTerm.Teacher.Url}}" target="_blank" rel="noopener noreferrer">{{$lecTure.NextTerm.Teacher.Name}}</a> + {{else}} + <a>{{$lecTure.NextTerm.Teacher.Name}} </a> + {{end}} + <span style="font-size: 8pt;">{{$lecTure.NextTerm.Place}}</span> + {{end}} + </td> + {{else}} + <td></td> + {{end}} + {{ end }} + </tr> +{{ end }} + + +</tbody> +</table> +</div> +<table border="0" width="100%"> +<tbody> +<tr> +<td align="center" width="20%"><span style="color: #4b75b9; font-size: 18pt;">■ </span><a>必修</a></td> +<td align="center" width="20%"><span style="color: #D5E0F1; font-size: 18pt;">■</span> <a>選択</a></td> +</tr> +</tbody> +</table> + + +<h2>大学院</h2> +<div class="outer"> +<table class="time-schedule" border="1" width="97%" align="center"> +<tbody> +<tr> +<td></td> +<td align="center" width="19%">月</td> +<td align="center" width="19%">火</td> +<td align="center" width="19%">水</td> +<td align="center" width="19%">木</td> +<td align="center" width="19%">金</td> +</tr> + +{{ range $dayOfWeekIndex, $dayList := .M}} + {{ if eq $dayOfWeekIndex 0 }} + <tr style="height: 24px;"> + {{else}} + <tr> + {{end}} + <td style="width: 23px; height: 24px;" align="center">{{inc $dayOfWeekIndex}}</td> + {{range $i, $lecTure := $dayList}} + {{if $lecTure}} + <td> + <a href="http://ie.u-ryukyu.ac.jp/syllabus/2020/previous/{{ $lecTure.ID }}.html">{{ $lecTure.Name}} </a> + {{ if ne $lecTure.Teacher.Url "" }} + <a href="{{$lecTure.Teacher.Url}}" target="_blank" rel="noopener noreferrer">{{$lecTure.Teacher.Name}}</a> + {{else}} + <a>{{$lecTure.Teacher.Name}} </a> + {{end}} + <span style="font-size: 8pt;">{{$lecTure.Place}}</span> + {{ if $lecTure.NextTerm }} + <hr> + <a href="http://ie.u-ryukyu.ac.jp/syllabus/2020/previous/{{ $lecTure.NextTerm.ID }}.html">{{ $lecTure.NextTerm.Name}} </a> + {{ if ne $lecTure.NextTerm.Teacher.Url "" }} + <a href="{{$lecTure.NextTerm.Teacher.Url}}" target="_blank" rel="noopener noreferrer">{{$lecTure.NextTerm.Teacher.Name}}</a> + {{else}} + <a>{{$lecTure.NextTerm.Teacher.Name}} </a> + {{end}} + <span style="font-size: 8pt;">{{$lecTure.NextTerm.Place}}</span> + {{end}} + </td> + {{else}} + <td></td> + {{end}} + {{ end }} + </tr> +{{ end }} + +</tbody> +</table> +</div>