source: WAeUP_SRP/trunk/skins/waeup_student/id_card_demo.pt @ 2044

Last change on this file since 2044 was 2044, checked in by Henrik Bettermann, 17 years ago

second draft of Ilorin id card demo

The size must be reduced for printout. The watermark logo has very poor quality. It should be replaced. I didn't find a better picture with higher resolution on the Internet. It's taken from http://www.geocities.com/uni_ilorin/

File size: 5.1 KB
Line 
1<metal:body use-macro="here/idcard_template/macros/master">
2  <metal:main fill-slot="main"
3              tal:define="global info context/getIdCardInfo;">
4
5    <span tal:condition="not: info">
6      <span tal:content="here/illegal_view" />
7    </span>
8    <span tal:condition="info"
9          tal:define="pd python: info['personal']">
10
11   
12    <table border=0 style="border-style:solid; border-width:1px; border-color:black" cellpadding="0px" cellspacing="10px" width="450px" height="300px">
13    <tr>
14      <td colspan=2>
15        <div style="background-color:red; font-weight:bold; color:white; font-family:Courier New; font-size:100%">
16        STUDENT IDENTITY CARD
17        </div>
18        <div style="background-color:white; font-weight:bold; color:black; font-family:Courier New; font-size:100%">
19        UNIVERSITY OF ILORIN, ILORIN, NIGERIA   
20        </div>
21      </td>
22
23    </tr>
24   
25    <tr>
26    <td width="70%" valign="top">
27      <table border=0 style="font-family:Courier New; font-size:100%;
28                             
29                             background-image:url(ilorin_gray_demo.gif); background-repeat:no-repeat; background-position:50px 30px;
30                             background-attachment:scroll;">
31 
32          <tr>
33            <td valign="top" width="40%">NAMES:</td>
34            <td><span tal:content="info/scatalog/name" /></td>
35          </tr>           
36               
37          <tr>
38            <td>MATRIC NO:</td>
39            <td><span tal:content="info/scatalog/matric_no" /></td>
40          </tr>     
41         
42          <tr>
43            <td>LEVEL:</td>
44            <td><span tal:content="info/scatalog/level" /></td>
45          </tr>
46                   
47
48         
49          <span tal:define="f_id info/scatalog/faculty;
50                            d_id info/scatalog/department;
51                            f_title context/academics/?f_id/Title|string:Faculty not yet in Prospectus;
52                            d_title context/academics/?f_id/?d_id/Title|string:Department not yet in Prospectus"
53                            >
54            <tr>
55              <td valign="top">FACULTY:</td>
56              <td tal:content="f_title" />
57            </tr>
58            <tr>
59              <td valign="top">DEPARTMENT:</td>
60              <td><span tal:content="d_title" /></td>
61            </tr>
62          </span>
63         
64          <tr>
65            <td>ISSUE DATE:</td>
66            <td />
67          </tr>   
68         
69          <tr>
70            <td>EXPIRY DATE:</td>
71            <td />
72          </tr>     
73               
74        </table>
75      </td>
76     
77      <td width="30%" align="center">
78        <table style="font-family:Courier New; font-size:100%">
79          <tr>
80            <td align="center" tal:condition="python: 'passport' in info['student'].application.getContent().objectIds()">
81            <img height="150px" tal:attributes="src string:${here/portal_url}/campus/students/${info/scatalog/id}/application/passport"/>
82            </td>
83          </tr>
84          <tr >
85           <td style="padding:15px">&nbsp;</td>
86          </tr>   
87          <tr>
88           <td align="center" style="border-top-style:solid; border-top-width:1px;
89                                    border-top-color:black; margin:100px; font-size:80%">
90             Student's Signature
91           </td>
92          </tr>   
93        </table>
94      </td>
95     
96      </tr>
97      </table>
98     
99      <br /><br />
100     
101    <table border=0 style="border-style:solid; border-width:1px; border-color:black; font-family:Courier New; font-size:100% "
102                  width="450px" height="300px" cellpadding="0px" cellspacing="0px" >
103       
104     
105    <tr>
106      <td>
107        <div style="background-color:black; margin:0px; padding:4px">
108        &nbsp; </div>
109
110      </td>
111    </tr>       
112    <tr height="60%" >
113      <td>
114      <div style="padding:10px">This identity card is not transferable. It must be produced anytime it's requested by any
115      officer of the University or any authorized person(s).
116      <br /><br />
117      Loss of this card must be reported immediately to the registrar, University of Ilorin, P.M.B. 1515,
118      Ilorin, Nigeria. Telephone: (031) 221554, 221557
119      </div>
120      </td>
121    </tr>
122   
123    <tr>
124    <td valign="top">
125      <table border=0  cellpadding="0px" cellspacing="0px" width="100%" style="margin-left:10px;">
126         
127      <tr>
128        <td width="50%" valign="top">Hall of Residence:</td>
129        <td width="10%"><span tal:content="pd/hall" /></td>
130        <td width="40%"></td>
131      </tr>       
132
133      <tr>
134        <td valign="top">Next of Kin:</td>
135        <td><span tal:content="pd/next_kin_lastname"/> <span tal:content="pd/next_kin_firstname"/> <span tal:content="pd/next_kin_middlename"/></td>
136        <td></td>
137      </tr>         
138
139      <tr>
140        <td valign="top">Address of Next of Kin:</td>
141        <td><span tal:content="pd/next_kin_address"/>
142        <td align="center" style="font-size:80%">
143             Registrar's Signature
144        </td>
145      </tr>       
146     
147   
148      </table>
149      </td>
150      </tr>
151      </table>     
152
153  </span>
154  </metal:main>
155</metal:body>
156
Note: See TracBrowser for help on using the repository browser.