source: WAeUP_SRP/trunk/skins/waeup_student/session_results_slip.pt @ 1174

Last change on this file since 1174 was 1174, checked in by Henrik Bettermann, 18 years ago

sessional result view and slip added
names imported into application object

File size: 2.5 KB
Line 
1<metal:html tal:define="info context/getSessionResults">
2  <metal:body use-macro="here/main_template/macros/master">
3    <metal:main fill-slot="main">
4      <div tal:condition="nothing" style="text-align: right">
5        <a href="" target="slip" tal:attributes="href string:session_results_slip?nr=${info/student/matric_no}"
6           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')">
7          <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
8          Session Result Slip
9        </a>
10      </div>
11      <h3>Session Results of <span tal:content="info/student/Firstname" />
12        <span tal:content="info/student/Middlename" />
13        <span tal:content="info/student/Lastname" />
14      </h3>
15      <br />
16      <table>
17        <tr>
18          <th width="180px">Student ID:</th>
19          <td>
20            <span tal:replace="info/s_id" />
21          </td>     
22        </tr>     
23     
24        <tr>
25          <th width="150px">Matriculation Number:</th><td tal:content="info/student/matric_no" />                     
26        </tr>
27        <tr>
28          <th>Sex:</th><td tal:content="info/student/Sex" />                     
29        </tr>
30        <tr>
31          <th>Course of Study:</th><td tal:content="info/student/Coursemajor" />                     
32        </tr>
33        <tr>
34          <th>Level:</th><td tal:content="info/student/Level" />                     
35        </tr>
36      </table>
37       
38       <table>
39          <tr>
40            <th width="180px">Verdict:</th><td tal:content="python:info['results'][0][0]['Verdict']" />
41          </tr>
42          <tr> 
43            <th>Session:</th><td tal:content="python:info['results'][0][0]['Session']" />
44          </tr>       
45       </table>
46
47       <br />
48                     
49       <table>
50         <span tal:repeat="semester info/results">
51            <span tal:repeat="result semester">
52             <tr tal:condition="repeat/result/start">
53              <th colspan="5">
54                <span tal:replace="python: test(repeat['semester'].index,'Second','First')" /> Semester
55              </th>
56             </tr>
57            <tr>     
58            <td width="80px" tal:content="result/CosCode" />
59            <td tal:content="result/title" />
60            <td width="50px" align="center" tal:content="result/GRADE" />
61          </tr>
62        </span>
63        </span>
64      </table>
65
66    </metal:main>
67  </metal:body>
68</metal:html>
Note: See TracBrowser for help on using the repository browser.