source: WAeUP_SRP/trunk/skins/waeup_student/session_results_view.pt @ 17364

Last change on this file since 17364 was 4305, checked in by Henrik Bettermann, 15 years ago

replace deprecated align attribute (right and center)

File size: 2.7 KB
Line 
1<metal:body use-macro="here/main_template/macros/master">
2    <metal:main fill-slot="main"
3                tal:define="info context/getSessionResults">
4      <metal:block tal:condition="not: info">
5        <span tal:content="here/illegal_view" />
6      </metal:block>
7      <metal:block tal:condition="info">               
8      <div style="text-align: right">
9        <a href="" target="slip" tal:attributes="href string:session_results_slip?nr=${info/student/matric_no}"
10           onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')">
11          <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
12          Session Result Slip
13        </a>
14      </div>
15      <h3>Session Results of <span tal:content="info/student/name" />
16      </h3>
17      <br />
18      <table>
19        <tr>
20          <th width="180px">Student ID:</th>
21          <td>
22            <span tal:replace="info/s_id" />
23          </td>     
24        </tr>     
25        <tr>
26          <th width="150px">Matriculation Number:</th><td tal:content="info/student/matric_no" />                     
27        </tr>
28        <tr>
29          <th>Level:</th><td tal:content="info/level" />                     
30        </tr>
31        <tr>
32          <th width="180px">Verdict:</th><td tal:content="info/verdict" />
33        </tr>
34        <tr> 
35          <th>Session:</th><td tal:content="info/session" />
36        </tr>
37        <tr> 
38          <th valign="top">GPA:</th><td> <span tal:content="info/gpa" /> (on the basis of the data below)  </td>
39        </tr>                   
40       </table>
41
42       <br />
43                     
44       <table>
45         <span tal:repeat="semester info/results">
46            <span tal:repeat="result semester">
47             <tr tal:condition="repeat/result/start">
48                <th colspan="2">
49                   <span tal:replace="python: test(repeat['semester'].index,'Second','First')" /> Semester
50                </th>
51                <td>Grade</td>
52                <td>Weight</td>
53                <td>Credits</td>
54             </tr>             
55            <tr>     
56            <td valign="top" width="80px" tal:content="result/CosCode" />
57            <td valign="top" tal:content="result/title" />
58            <td valign="top" width="50px" style='text-align:center' tal:content="result/GRADE" />
59            <td valign="top" width="50px" style='text-align:center' tal:content="result/WEIGHT" />
60            <td valign="top" width="50px" style='text-align:center' tal:content="result/credits" />
61
62          </tr>
63        </span>
64        <tr><td colspan="5">&nbsp;</td></tr>
65        </span>
66      </table>
67      </metal:block>
68    </metal:main>
69</metal:body>
70
Note: See TracBrowser for help on using the repository browser.