source: WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_student/search_students_form.pt @ 17950

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

new statistics ready

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