source: WAeUP_SRP/fceokene/waeup_custom/search_students_form.pt @ 3515

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

fix URL

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