1 | <metal:body use-macro="here/main_template/macros/master"> |
---|
2 | <metal:main fill-slot="main" |
---|
3 | tal:define="rendered options/rendered; |
---|
4 | portal_status_message options/psm; |
---|
5 | students options/students; |
---|
6 | info options/info|nothing; |
---|
7 | is_so context/isSectionOfficer; |
---|
8 | allowed options/allowed|nothing;" |
---|
9 | > |
---|
10 | <span tal:condition="not: allowed"> |
---|
11 | <span tal:content="here/illegal_view" /> |
---|
12 | </span> |
---|
13 | <span tal:condition="allowed" tal:omit-tag=""> |
---|
14 | <strong> |
---|
15 | <nobr><a href="statistics_new_view">New Student Statistics</a> |
---|
16 | </nobr> |
---|
17 | <nobr><a href="statistics_ret_view">Returning Student Statistics</a> |
---|
18 | </nobr> |
---|
19 | <nobr><a href="statistics_simple_view">Basic Student Statistics</a> |
---|
20 | </nobr> |
---|
21 | <span tal:condition="is_so"> |
---|
22 | <nobr><a href="apply_admission_manage">Application Process</a> |
---|
23 | </nobr> |
---|
24 | <nobr><a href="view_logs">View Log Files</a> |
---|
25 | </nobr> |
---|
26 | <nobr><a href="add_student">Add Student Record</a> |
---|
27 | </nobr> |
---|
28 | <nobr><a href="deactivate_students">Deactivate Student Record(s)</a></nobr> |
---|
29 | </span> |
---|
30 | </strong> |
---|
31 | <h3> Search Student Section</h3><br /> |
---|
32 | You are logged in as member <span tal:replace="info/member|nothing" /> |
---|
33 | <span tal:condition="info/faculties|nothing" tal:omit-tag=""> |
---|
34 | who is ClearanceOfficer for Faculty |
---|
35 | <span tal:repeat="faculty info/faculties" tal:content="faculty" /> |
---|
36 | </span> |
---|
37 | <span tal:condition="info/departments|nothing" tal:omit-tag=""> |
---|
38 | and <span tal:repeat="department info/departments|nothing" tal:content="department"/></span>. |
---|
39 | <br /><br /> |
---|
40 | <span tal:replace="structure rendered" /> |
---|
41 | <metal:block use-macro="here/generic_lib_portal_message/macros/portal_message" /> |
---|
42 | <span tal:condition="students"> |
---|
43 | <span tal:define="items students; |
---|
44 | columns python:3; |
---|
45 | items_per_page python:40; |
---|
46 | max_items python:300; |
---|
47 | zoom python:0; |
---|
48 | batches_all python:here.getBatchList(items,columns, items_per_page,zoom,max_items=5000); |
---|
49 | batches python:batches_all[0]; |
---|
50 | batch_info python:batches_all[1]; |
---|
51 | zoomed python:batches_all[2]; |
---|
52 | mq nocall:modules/ZTUtils/make_query;" |
---|
53 | tal:omit-tag=""> |
---|
54 | <tal:block tal:condition="python: items and batch_info and batch_info['nb_pages'] > 1"> |
---|
55 | <div class="batchLayout" i18n:translate=""> |
---|
56 | Objects:<strong><tal:block replace="batch_info/start" |
---|
57 | i18n:name="batch_start" /> - <tal:block replace="batch_info/limit" |
---|
58 | i18n:name="batch_limit" /> |
---|
59 | </strong> of <tal:block replace="batch_info/length" i18n:name="batch_length" /> |
---|
60 | </div> |
---|
61 | <br /> |
---|
62 | </tal:block> |
---|
63 | <table class="contentListing" width="100%"> |
---|
64 | <span tal:repeat="rows batches" tal:omit-tag=""> |
---|
65 | <span tal:repeat="student rows"> |
---|
66 | <tr tal:condition="student" |
---|
67 | tal:attributes="class python:test(repeat['student'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
68 | <td><a href="id" tal:attributes="href string:${context/portal_url}/campus/students/${student/id}" |
---|
69 | tal:content="student/id"></a></td> |
---|
70 | <td> |
---|
71 | <span tal:replace="student/name" /> |
---|
72 | </td> |
---|
73 | <td><span tal:replace="student/matric_no" /></td> |
---|
74 | <td><span tal:replace="student/jamb_reg_no" /></td> |
---|
75 | <td tal:condition="options/co_view|nothing"> |
---|
76 | <a href="id" |
---|
77 | tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/clearance/external_clearance_edit_form" |
---|
78 | target="edit" |
---|
79 | onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')" |
---|
80 | >[view and change state]</a></td> |
---|
81 | <td tal:condition="options/ca_view|nothing"> |
---|
82 | <a href="id" |
---|
83 | tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/study_course/${student/level}/external_study_level_view" |
---|
84 | target="edit" |
---|
85 | onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')" |
---|
86 | >[view and validate course list]</a></td> |
---|
87 | </tr> |
---|
88 | </span> |
---|
89 | </span> |
---|
90 | </table> |
---|
91 | <tal:block condition="python:batch_info and batch_info['nb_pages'] > 1"> |
---|
92 | <div class="pageNavigationLayout"> |
---|
93 | <a tal:define="previous batch_info/previous" |
---|
94 | tal:condition="python:previous is not None" |
---|
95 | tal:attributes="href python:'%s?%s'%(request['URL'], |
---|
96 | mq(request.form, b_start=0))" |
---|
97 | > |
---|
98 | (<<)</a> |
---|
99 | <a tal:define="previous batch_info/previous" |
---|
100 | tal:condition="python:previous is not None" |
---|
101 | tal:attributes="href python:'%s?%s'%(request['URL'], |
---|
102 | mq(request.form, b_start=previous))" |
---|
103 | i18n:translate="batch_previous">Previous</a> |
---|
104 | <tal:block repeat="page batch_info/pages"> |
---|
105 | <tal:block condition="python:page != batch_info['start'] - 1"> |
---|
106 | <a tal:attributes="href python:'%s?%s'%(request['URL'], |
---|
107 | mq(request.form, b_start=page))" |
---|
108 | tal:content="repeat/page/number">1</a> |
---|
109 | </tal:block> |
---|
110 | <tal:block condition="python:page == batch_info['start'] - 1"> |
---|
111 | <span tal:content="string:${repeat/page/number}" /> |
---|
112 | </tal:block> |
---|
113 | </tal:block> |
---|
114 | <a tal:define="next batch_info/next" |
---|
115 | tal:condition="python:next is not None" |
---|
116 | tal:attributes="href python:'%s?%s'%(request['URL'], |
---|
117 | mq(request.form, b_start=next))" |
---|
118 | i18n:translate="batch_next">Next</a> |
---|
119 | <a tal:define="next batch_info/next; |
---|
120 | last_page python:batch_info['pages'][-1]" |
---|
121 | tal:condition="python:next is not None" |
---|
122 | tal:attributes="href python:'%s?%s'%(request['URL'], |
---|
123 | mq(request.form, b_start=last_page))" |
---|
124 | > |
---|
125 | (>>)</a> |
---|
126 | </div> |
---|
127 | </tal:block> |
---|
128 | </span> |
---|
129 | </span> |
---|
130 | </span> |
---|
131 | </metal:main> |
---|
132 | </metal:body> |
---|