source: WAeUP_SRP/base/skins/waeup_student/search_students_form.pt @ 2392

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

new payment data export

File size: 7.1 KB
Line 
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     
15      <strong>
16      <nobr><a href="statistics_new_view">New Student Statistics</a>
17      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
18      <nobr><a href="statistics_ret_view">Returning Student Statistics</a>
19      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
20      <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
21      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>     
22      <nobr><a href="apply_admission_manage">Application Process</a>
23      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>         
24      <span tal:condition="is_so">
25         <nobr><a href="view_logs">View Log Files</a>
26         &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
27         <nobr><a href="add_student">Add Student Record</a>       
28       
29      </span>
30      </strong>
31   
32             
33        <h3> Search Student Section</h3><br />
34          You are logged in as member <span tal:replace="info/member|nothing" />
35          <span tal:condition="info/faculties|nothing" tal:omit-tag="">
36            who is ClearanceOfficer for Faculty
37            <span tal:repeat="faculty info/faculties" tal:content="faculty" />
38          </span>
39          <span tal:condition="info/departments|nothing" tal:omit-tag="">
40            and <span tal:repeat="department info/departments|nothing" tal:content="department"/></span>.
41          <br /><br />
42        <span tal:replace="structure rendered" />
43        <span tal:condition="students">
44          <span
45              tal:define="items students;
46              columns python:3;
47              items_per_page python:40;
48              max_items python:300;
49              zoom python:0;
50              batches_all python:here.getBatchList(items,columns, items_per_page,zoom,max_items=400);
51              batches python:batches_all[0];
52              batch_info python:batches_all[1];
53              zoomed python:batches_all[2];
54              mq nocall:modules/ZTUtils/make_query;"
55              tal:omit-tag=""
56              >
57            <tal:block tal:condition="python: items and batch_info and batch_info['nb_pages'] > 1">
58              <div class="batchLayout">
59                <span i18n:translate="">
60                  Objects:
61                  <strong>
62                    <tal:block replace="batch_info/start"
63                               i18n:name="batch_start" /> - <tal:block replace="batch_info/limit"
64                                                                       i18n:name="batch_limit" />
65                  </strong>
66                  of <tal:block replace="batch_info/length"
67                                i18n:name="batch_length" />
68                </span>
69              </div>
70              <br />
71            </tal:block>
72            <table class="contentListing" width="100%">
73              <span tal:repeat="rows batches" tal:omit-tag="">
74                <span tal:repeat="student rows">
75                  <tr tal:condition="student"
76                      tal:attributes="class python:test(repeat['student'].even(), 'even ajaxtd', 'odd ajaxtd')">
77                    <td><a href="id" tal:attributes="href string:${context/portal_url}/campus/students/${student/id}"
78                           tal:content="student/id"></a></td>   
79                    <td>
80                      <span tal:replace="student/name" />
81                    </td>   
82                    <td><span tal:replace="student/matric_no" /></td>   
83                    <td><span tal:replace="student/jamb_reg_no" /></td>
84                    <td tal:condition="options/co_view|nothing">
85                      <a href="id"
86                         tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/clearance/external_clearance_edit_form"
87                         target="edit"
88                         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')"
89                         >[view and change state]</a></td>
90                    <td tal:condition="options/ca_view|nothing">
91                      <a href="id"
92                         tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/study_course/study_course/${student/level}/external_study_level_view"
93                         target="edit"
94                         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')"
95                         >[view and validate course list]</a></td>
96                  </tr>
97                </span>
98              </span>
99            </table>
100            <tal:block condition="python:batch_info and batch_info['nb_pages'] > 1">
101              <div class="pageNavigationLayout">
102                <a tal:define="previous batch_info/previous"
103                   tal:condition="python:previous is not None"
104                   tal:attributes="href python:'%s?%s'%(request['URL'],
105                   mq(request.form, b_start=0))"
106                   >
107                (&lt;&lt;)</a>
108                <a tal:define="previous batch_info/previous"
109                   tal:condition="python:previous is not None"
110                   tal:attributes="href python:'%s?%s'%(request['URL'],
111                   mq(request.form, b_start=previous))"
112                   i18n:translate="batch_previous">Previous</a>
113                <tal:block repeat="page batch_info/pages">
114                  <tal:block condition="python:page != batch_info['start'] - 1">
115                    <a tal:attributes="href python:'%s?%s'%(request['URL'],
116                    mq(request.form, b_start=page))"
117                    tal:content="repeat/page/number">1</a>&nbsp;
118                  </tal:block>
119                  <tal:block condition="python:page == batch_info['start'] - 1">
120                    <span tal:content="string:${repeat/page/number}" />&nbsp;
121                  </tal:block>
122                </tal:block>
123                <a tal:define="next batch_info/next"
124                   tal:condition="python:next is not None"
125                   tal:attributes="href python:'%s?%s'%(request['URL'],
126                   mq(request.form, b_start=next))"
127                   i18n:translate="batch_next">Next</a>
128                <a tal:define="next batch_info/next;
129                last_page python:batch_info['pages'][-1]"
130                tal:condition="python:next is not None"
131                tal:attributes="href python:'%s?%s'%(request['URL'],
132                mq(request.form, b_start=last_page))"
133                >
134                (&gt;&gt;)</a>
135              </div>
136            </tal:block>
137          </span>
138        </span>
139      </span>
140    </metal:main>
141</metal:body>
142 
Note: See TracBrowser for help on using the repository browser.