source: WAeUP_SRP/branches/uli/skins/waeup_student/search_students_form.pt @ 1580

Last change on this file since 1580 was 1570, checked in by uli, 18 years ago

Added log file viewer.

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