source: WAeUP_SRP/trunk/skins/waeup_student/session_results_anon_view.pt @ 1173

Last change on this file since 1173 was 1169, checked in by joachim, 18 years ago

display_session_results now asks for jamb_reg_no
set_access_data uses this information
permission mappings for new states in waeup_student_wf added
set_access_data is now called from a form

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