Index: /WAeUP_SRP/trunk/CHANGES.txt
===================================================================
--- /WAeUP_SRP/trunk/CHANGES.txt	(revision 4005)
+++ /WAeUP_SRP/trunk/CHANGES.txt	(revision 4006)
@@ -138,2 +138,7 @@
 -----------------
 - implement password notification module
+
+1.28 (2009-03-08)
+-----------------
+
+- Enable assigment of  clearance officer role on certificate level. Do not show local roles on search student page.
Index: /WAeUP_SRP/trunk/patches/PatchCPSUserFolderUserFolder.py
===================================================================
--- /WAeUP_SRP/trunk/patches/PatchCPSUserFolderUserFolder.py	(revision 4005)
+++ /WAeUP_SRP/trunk/patches/PatchCPSUserFolderUserFolder.py	(revision 4006)
@@ -126,9 +126,12 @@
             allowed = set(('CourseAdviser', 'SectionManager'))
         else:
-            res = self.portal_catalog(portal_type="Department",id=st_entry.department)
             allowed = set(('ClearanceOfficer', 'SectionManager'))
-            if len(res) != 1:
-                break
-            context_obj = res[0].getObject()
+            context_obj = getCertificateObject(self,st_entry)
+            if context_obj is None:
+                break   
+            #res = self.portal_catalog(portal_type="Department",id=st_entry.department)
+            #if len(res) != 1:
+            #    break
+            #context_obj = res[0].getObject()
         dynamic_roles = set(self.getRolesInContext(context_obj))
         intersect = dynamic_roles & allowed
Index: /WAeUP_SRP/trunk/profiles/default/types/Certificate.xml
===================================================================
--- /WAeUP_SRP/trunk/profiles/default/types/Certificate.xml	(revision 4005)
+++ /WAeUP_SRP/trunk/profiles/default/types/Certificate.xml	(revision 4006)
@@ -52,5 +52,5 @@
  <action title="Delegate" action_id="localroles" category="object"
     condition_expr="" url_expr="string:${object_url}/folder_localrole_form"
-    visible="False">
+    visible="True">
   <permission value="Modify portal content"/>
  </action>
@@ -60,4 +60,4 @@
     visible="True">
   <permission value="Modify portal content"/>
- </action>
+ </action> 
 </object>
Index: eUP_SRP/trunk/skins/waeup_aaua/search_students_form.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_aaua/search_students_form.pt	(revision 4005)
+++ 	(revision )
@@ -1,128 +1,0 @@
-<metal:body use-macro="here/main_template/macros/master">
-  <metal:main fill-slot="main"
-              tal:define="rendered options/rendered;
-              portal_status_message options/psm;
-              students options/students;
-              info options/info|nothing;
-              is_so context/isSectionOfficer;
-              allowed options/allowed|nothing;"
-              >
-    <span tal:condition="not: allowed">
-      <span tal:content="here/illegal_view" />
-    </span>
-    <span tal:condition="allowed" tal:omit-tag="">
-      <strong>
-        <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
-        &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
-        <span tal:condition="is_so">
-          <nobr><a href="apply_admission_manage">Application Process</a>
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
-          <nobr><a href="view_logs">View Log Files</a>
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-          <nobr><a href="add_student">Add Student Record</a>        
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-          <nobr><a href="deactivate_students">Deactivate Student Record(s)</a></nobr>
-        </span>
-      </strong>
-      <h3> Search Student Section</h3><br />
-      You are logged in as member <span tal:replace="info/member|nothing" /> 
-      <span tal:condition="info/faculties|nothing" tal:omit-tag="">
-        who is ClearanceOfficer for Faculty 
-        <span tal:repeat="faculty info/faculties" tal:content="faculty" />
-      </span>
-      <span tal:condition="info/departments|nothing" tal:omit-tag="">
-        and <span tal:repeat="department info/departments|nothing" tal:content="department"/></span>.
-      <br /><br />
-      <span tal:replace="structure rendered" />
-      <metal:block use-macro="here/generic_lib_portal_message/macros/portal_message" />
-      <span tal:condition="students">
-        <span tal:define="items students;
-        columns python:3;
-        items_per_page python:40;
-        max_items python:300;
-        zoom python:0;
-        batches_all python:here.getBatchList(items,columns, items_per_page,zoom,max_items=400);
-        batches python:batches_all[0];
-        batch_info python:batches_all[1];
-        zoomed python:batches_all[2];
-        mq nocall:modules/ZTUtils/make_query;"
-        tal:omit-tag="">
-          <tal:block tal:condition="python: items and batch_info and batch_info['nb_pages'] > 1">
-            <div class="batchLayout" i18n:translate="">
-              Objects:<strong><tal:block replace="batch_info/start"
-                                         i18n:name="batch_start" /> - <tal:block replace="batch_info/limit"
-                                                                                 i18n:name="batch_limit" />
-              </strong> of <tal:block replace="batch_info/length" i18n:name="batch_length" />
-            </div>
-            <br />
-          </tal:block>
-          <table class="contentListing" width="100%">
-            <span tal:repeat="rows batches" tal:omit-tag="">
-              <span tal:repeat="student rows">
-                <tr tal:condition="student" 
-                    tal:attributes="class python:test(repeat['student'].even(), 'even ajaxtd', 'odd ajaxtd')">
-                  <td><a href="id" tal:attributes="href string:${context/portal_url}/campus/students/${student/id}"
-                         tal:content="student/id"></a></td>    
-                  <td>
-                    <span tal:replace="student/name" />
-                  </td>    
-                  <td><span tal:replace="student/matric_no" /></td>   
-                  <td><span tal:replace="student/jamb_reg_no" /></td>
-                  <td tal:condition="options/co_view|nothing">
-                    <a href="id" 
-                       tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/clearance/external_clearance_edit_form"
-                       target="edit"
-                       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')"
-                       >[view and change state]</a></td>
-                  <td tal:condition="options/ca_view|nothing">
-                    <a href="id" 
-                       tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/study_course/${student/level}/external_study_level_view"
-                       target="edit"
-                       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')"
-                       >[view and validate course list]</a></td>
-                </tr>
-              </span>
-            </span>
-          </table>
-          <tal:block condition="python:batch_info and batch_info['nb_pages'] > 1">
-            <div class="pageNavigationLayout">
-              <a tal:define="previous batch_info/previous"
-                 tal:condition="python:previous is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=0))"
-                 >
-              (&lt;&lt;)</a>
-              <a tal:define="previous batch_info/previous"
-                 tal:condition="python:previous is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=previous))"
-                 i18n:translate="batch_previous">Previous</a>
-              <tal:block repeat="page batch_info/pages">
-                <tal:block condition="python:page != batch_info['start'] - 1">
-                  <a tal:attributes="href python:'%s?%s'%(request['URL'],
-                  mq(request.form, b_start=page))"
-                  tal:content="repeat/page/number">1</a>&nbsp;
-                </tal:block>
-                <tal:block condition="python:page == batch_info['start'] - 1">
-                  <span tal:content="string:${repeat/page/number}" />&nbsp;
-                </tal:block>
-              </tal:block>
-              <a tal:define="next batch_info/next"
-                 tal:condition="python:next is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=next))"
-                 i18n:translate="batch_next">Next</a>
-              <a tal:define="next batch_info/next;
-              last_page python:batch_info['pages'][-1]"
-              tal:condition="python:next is not None"
-              tal:attributes="href python:'%s?%s'%(request['URL'],
-              mq(request.form, b_start=last_page))"
-              >
-              (&gt;&gt;)</a>
-            </div>
-          </tal:block>
-        </span>
-      </span>
-    </span>
-  </metal:main>
-</metal:body>
Index: /WAeUP_SRP/trunk/skins/waeup_aaua/students_actions.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_aaua/students_actions.pt	(revision 4006)
+++ /WAeUP_SRP/trunk/skins/waeup_aaua/students_actions.pt	(revision 4006)
@@ -0,0 +1,22 @@
+<metal:block define-macro="students_actions">
+
+  <strong>
+    <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
+    &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
+    <span tal:condition="context/isSectionOfficer">
+      <nobr><a href="apply_admission_manage">Application Process</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
+      <nobr><a href="view_logs">View Log Files</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+      <nobr><a href="add_student">Add Student Record</a>        
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+      <nobr><a href="deactivate_students">Deactivate Student Record(s)</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+    </span>
+    <span tal:condition="context/isSectionManager">
+      <nobr><a href="remove_students">Remove Student Record(s)</a></nobr>
+    </span>
+  </strong>
+
+</metal:block>
+
Index: eUP_SRP/trunk/skins/waeup_aaue/search_students_form.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_aaue/search_students_form.pt	(revision 4005)
+++ 	(revision )
@@ -1,132 +1,0 @@
-<metal:body use-macro="here/main_template/macros/master">
-  <metal:main fill-slot="main"
-              tal:define="rendered options/rendered;
-              portal_status_message options/psm;
-              students options/students;
-              info options/info|nothing;
-              is_so context/isSectionOfficer;
-              allowed options/allowed|nothing;"
-              >
-    <span tal:condition="not: allowed">
-      <span tal:content="here/illegal_view" />
-    </span>
-    <span tal:condition="allowed" tal:omit-tag="">
-      <strong>
-        <nobr><a href="statistics_new_view">New Student Statistics</a>
-        &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-        <nobr><a href="statistics_ret_view">Returning Student Statistics</a>
-        &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-        <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
-        &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
-        <span tal:condition="is_so">
-          <nobr><a href="apply_admission_manage">Application Process</a>
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
-          <nobr><a href="view_logs">View Log Files</a>
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-          <nobr><a href="add_student">Add Student Record</a>        
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-          <nobr><a href="deactivate_students">Deactivate Student Record(s)</a></nobr>
-        </span>
-      </strong>
-      <h3> Search Student Section</h3><br />
-      You are logged in as member <span tal:replace="info/member|nothing" /> 
-      <span tal:condition="info/faculties|nothing" tal:omit-tag="">
-        who is ClearanceOfficer for Faculty 
-        <span tal:repeat="faculty info/faculties" tal:content="faculty" />
-      </span>
-      <span tal:condition="info/departments|nothing" tal:omit-tag="">
-        and <span tal:repeat="department info/departments|nothing" tal:content="department"/></span>.
-      <br /><br />
-      <span tal:replace="structure rendered" />
-      <metal:block use-macro="here/generic_lib_portal_message/macros/portal_message" />
-      <span tal:condition="students">
-        <span tal:define="items students;
-        columns python:3;
-        items_per_page python:40;
-        max_items python:300;
-        zoom python:0;
-        batches_all python:here.getBatchList(items,columns, items_per_page,zoom,max_items=5000);
-        batches python:batches_all[0];
-        batch_info python:batches_all[1];
-        zoomed python:batches_all[2];
-        mq nocall:modules/ZTUtils/make_query;"
-        tal:omit-tag="">
-          <tal:block tal:condition="python: items and batch_info and batch_info['nb_pages'] > 1">
-            <div class="batchLayout" i18n:translate="">
-              Objects:<strong><tal:block replace="batch_info/start"
-                                         i18n:name="batch_start" /> - <tal:block replace="batch_info/limit"
-                                                                                 i18n:name="batch_limit" />
-              </strong> of <tal:block replace="batch_info/length" i18n:name="batch_length" />
-            </div>
-            <br />
-          </tal:block>
-          <table class="contentListing" width="100%">
-            <span tal:repeat="rows batches" tal:omit-tag="">
-              <span tal:repeat="student rows">
-                <tr tal:condition="student" 
-                    tal:attributes="class python:test(repeat['student'].even(), 'even ajaxtd', 'odd ajaxtd')">
-                  <td><a href="id" tal:attributes="href string:${context/portal_url}/campus/students/${student/id}"
-                         tal:content="student/id"></a></td>    
-                  <td>
-                    <span tal:replace="student/name" />
-                  </td>    
-                  <td><span tal:replace="student/matric_no" /></td>   
-                  <td><span tal:replace="student/jamb_reg_no" /></td>
-                  <td tal:condition="options/co_view|nothing">
-                    <a href="id" 
-                       tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/clearance/external_clearance_edit_form"
-                       target="edit"
-                       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')"
-                       >[view and change state]</a></td>
-                  <td tal:condition="options/ca_view|nothing">
-                    <a href="id" 
-                       tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/study_course/${student/level}/external_study_level_view"
-                       target="edit"
-                       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')"
-                       >[view and validate course list]</a></td>
-                </tr>
-              </span>
-            </span>
-          </table>
-          <tal:block condition="python:batch_info and batch_info['nb_pages'] > 1">
-            <div class="pageNavigationLayout">
-              <a tal:define="previous batch_info/previous"
-                 tal:condition="python:previous is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=0))"
-                 >
-              (&lt;&lt;)</a>
-              <a tal:define="previous batch_info/previous"
-                 tal:condition="python:previous is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=previous))"
-                 i18n:translate="batch_previous">Previous</a>
-              <tal:block repeat="page batch_info/pages">
-                <tal:block condition="python:page != batch_info['start'] - 1">
-                  <a tal:attributes="href python:'%s?%s'%(request['URL'],
-                  mq(request.form, b_start=page))"
-                  tal:content="repeat/page/number">1</a>&nbsp;
-                </tal:block>
-                <tal:block condition="python:page == batch_info['start'] - 1">
-                  <span tal:content="string:${repeat/page/number}" />&nbsp;
-                </tal:block>
-              </tal:block>
-              <a tal:define="next batch_info/next"
-                 tal:condition="python:next is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=next))"
-                 i18n:translate="batch_next">Next</a>
-              <a tal:define="next batch_info/next;
-              last_page python:batch_info['pages'][-1]"
-              tal:condition="python:next is not None"
-              tal:attributes="href python:'%s?%s'%(request['URL'],
-              mq(request.form, b_start=last_page))"
-              >
-              (&gt;&gt;)</a>
-            </div>
-          </tal:block>
-        </span>
-      </span>
-    </span>
-  </metal:main>
-</metal:body>
Index: /WAeUP_SRP/trunk/skins/waeup_directory/search_members.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_directory/search_members.py	(revision 4005)
+++ /WAeUP_SRP/trunk/skins/waeup_directory/search_members.py	(revision 4006)
@@ -85,5 +85,5 @@
     user_id = item[0]
     data = item[1]
-    query = In('portal_type',('Faculty','Department','StudyLevel')) &\
+    query = In('portal_type',('Faculty','Department','StudyLevel','Certificate')) &\
             In('localUsersWithRoles',('user:%s' % user_id,)) &\
             ~ Eq('Creator',user_id)
Index: eUP_SRP/trunk/skins/waeup_fceokene/search_students_form.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_fceokene/search_students_form.pt	(revision 4005)
+++ 	(revision )
@@ -1,128 +1,0 @@
-<metal:body use-macro="here/main_template/macros/master">
-  <metal:main fill-slot="main"
-              tal:define="rendered options/rendered;
-              portal_status_message options/psm;
-              students options/students;
-              info options/info|nothing;
-              is_so context/isSectionOfficer;
-              allowed options/allowed|nothing;"
-              >
-    <span tal:condition="not: allowed">
-      <span tal:content="here/illegal_view" />
-    </span>
-    <span tal:condition="allowed" tal:omit-tag="">
-      <strong>
-        <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
-        &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
-        <span tal:condition="is_so">
-          <nobr><a href="apply_admission_manage">Application Process</a>
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
-          <nobr><a href="view_logs">View Log Files</a>
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-          <nobr><a href="add_student">Add Student Record</a>        
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-          <nobr><a href="deactivate_students">Deactivate Student Record(s)</a></nobr>
-        </span>
-      </strong>
-      <h3> Search Student Section</h3><br />
-      You are logged in as member <span tal:replace="info/member|nothing" /> 
-      <span tal:condition="info/faculties|nothing" tal:omit-tag="">
-        who is ClearanceOfficer for Faculty 
-        <span tal:repeat="faculty info/faculties" tal:content="faculty" />
-      </span>
-      <span tal:condition="info/departments|nothing" tal:omit-tag="">
-        and <span tal:repeat="department info/departments|nothing" tal:content="department"/></span>.
-      <br /><br />
-      <span tal:replace="structure rendered" />
-      <metal:block use-macro="here/generic_lib_portal_message/macros/portal_message" />
-      <span tal:condition="students">
-        <span tal:define="items students;
-        columns python:3;
-        items_per_page python:40;
-        max_items python:300;
-        zoom python:0;
-        batches_all python:here.getBatchList(items,columns, items_per_page,zoom,max_items=400);
-        batches python:batches_all[0];
-        batch_info python:batches_all[1];
-        zoomed python:batches_all[2];
-        mq nocall:modules/ZTUtils/make_query;"
-        tal:omit-tag="">
-          <tal:block tal:condition="python: items and batch_info and batch_info['nb_pages'] > 1">
-            <div class="batchLayout" i18n:translate="">
-              Objects:<strong><tal:block replace="batch_info/start"
-                                         i18n:name="batch_start" /> - <tal:block replace="batch_info/limit"
-                                                                                 i18n:name="batch_limit" />
-              </strong> of <tal:block replace="batch_info/length" i18n:name="batch_length" />
-            </div>
-            <br />
-          </tal:block>
-          <table class="contentListing" width="100%">
-            <span tal:repeat="rows batches" tal:omit-tag="">
-              <span tal:repeat="student rows">
-                <tr tal:condition="student" 
-                    tal:attributes="class python:test(repeat['student'].even(), 'even ajaxtd', 'odd ajaxtd')">
-                  <td><a href="id" tal:attributes="href string:${context/portal_url}/campus/students/${student/id}"
-                         tal:content="student/id"></a></td>    
-                  <td>
-                    <span tal:replace="student/name" />
-                  </td>    
-                  <td><span tal:replace="student/matric_no" /></td>   
-                  <td><span tal:replace="student/jamb_reg_no" /></td>
-                  <td tal:condition="options/co_view|nothing">
-                    <a href="id" 
-                       tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/clearance/external_clearance_edit_form"
-                       target="edit"
-                       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')"
-                       >[view and change state]</a></td>
-                  <td tal:condition="options/ca_view|nothing">
-                    <a href="id" 
-                       tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/study_course/${student/level}/external_study_level_view"
-                       target="edit"
-                       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')"
-                       >[view and validate course list]</a></td>
-                </tr>
-              </span>
-            </span>
-          </table>
-          <tal:block condition="python:batch_info and batch_info['nb_pages'] > 1">
-            <div class="pageNavigationLayout">
-              <a tal:define="previous batch_info/previous"
-                 tal:condition="python:previous is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=0))"
-                 >
-              (&lt;&lt;)</a>
-              <a tal:define="previous batch_info/previous"
-                 tal:condition="python:previous is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=previous))"
-                 i18n:translate="batch_previous">Previous</a>
-              <tal:block repeat="page batch_info/pages">
-                <tal:block condition="python:page != batch_info['start'] - 1">
-                  <a tal:attributes="href python:'%s?%s'%(request['URL'],
-                  mq(request.form, b_start=page))"
-                  tal:content="repeat/page/number">1</a>&nbsp;
-                </tal:block>
-                <tal:block condition="python:page == batch_info['start'] - 1">
-                  <span tal:content="string:${repeat/page/number}" />&nbsp;
-                </tal:block>
-              </tal:block>
-              <a tal:define="next batch_info/next"
-                 tal:condition="python:next is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=next))"
-                 i18n:translate="batch_next">Next</a>
-              <a tal:define="next batch_info/next;
-              last_page python:batch_info['pages'][-1]"
-              tal:condition="python:next is not None"
-              tal:attributes="href python:'%s?%s'%(request['URL'],
-              mq(request.form, b_start=last_page))"
-              >
-              (&gt;&gt;)</a>
-            </div>
-          </tal:block>
-        </span>
-      </span>
-    </span>
-  </metal:main>
-</metal:body>
Index: /WAeUP_SRP/trunk/skins/waeup_fceokene/students_actions.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_fceokene/students_actions.pt	(revision 4006)
+++ /WAeUP_SRP/trunk/skins/waeup_fceokene/students_actions.pt	(revision 4006)
@@ -0,0 +1,22 @@
+<metal:block define-macro="students_actions">
+
+  <strong>
+    <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
+    &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
+    <span tal:condition="context/isSectionOfficer">
+      <nobr><a href="apply_admission_manage">Application Process</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
+      <nobr><a href="view_logs">View Log Files</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+      <nobr><a href="add_student">Add Student Record</a>        
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+      <nobr><a href="deactivate_students">Deactivate Student Record(s)</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+    </span>
+    <span tal:condition="context/isSectionManager">
+      <nobr><a href="remove_students">Remove Student Record(s)</a></nobr>
+    </span>
+  </strong>
+
+</metal:block>
+
Index: eUP_SRP/trunk/skins/waeup_fceoyo/search_students_form.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_fceoyo/search_students_form.pt	(revision 4005)
+++ 	(revision )
@@ -1,128 +1,0 @@
-<metal:body use-macro="here/main_template/macros/master">
-  <metal:main fill-slot="main"
-              tal:define="rendered options/rendered;
-              portal_status_message options/psm;
-              students options/students;
-              info options/info|nothing;
-              is_so context/isSectionOfficer;
-              allowed options/allowed|nothing;"
-              >
-    <span tal:condition="not: allowed">
-      <span tal:content="here/illegal_view" />
-    </span>
-    <span tal:condition="allowed" tal:omit-tag="">
-      <strong>
-        <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
-        &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
-        <span tal:condition="is_so">
-          <nobr><a href="apply_admission_manage">Application Process</a>
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
-          <nobr><a href="view_logs">View Log Files</a>
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-          <nobr><a href="add_student">Add Student Record</a>        
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-          <nobr><a href="deactivate_students">Deactivate Student Record(s)</a></nobr>
-        </span>
-      </strong>
-      <h3> Search Student Section</h3><br />
-      You are logged in as member <span tal:replace="info/member|nothing" /> 
-      <span tal:condition="info/faculties|nothing" tal:omit-tag="">
-        who is ClearanceOfficer for Faculty 
-        <span tal:repeat="faculty info/faculties" tal:content="faculty" />
-      </span>
-      <span tal:condition="info/departments|nothing" tal:omit-tag="">
-        and <span tal:repeat="department info/departments|nothing" tal:content="department"/></span>.
-      <br /><br />
-      <span tal:replace="structure rendered" />
-      <metal:block use-macro="here/generic_lib_portal_message/macros/portal_message" />
-      <span tal:condition="students">
-        <span tal:define="items students;
-        columns python:3;
-        items_per_page python:40;
-        max_items python:300;
-        zoom python:0;
-        batches_all python:here.getBatchList(items,columns, items_per_page,zoom,max_items=400);
-        batches python:batches_all[0];
-        batch_info python:batches_all[1];
-        zoomed python:batches_all[2];
-        mq nocall:modules/ZTUtils/make_query;"
-        tal:omit-tag="">
-          <tal:block tal:condition="python: items and batch_info and batch_info['nb_pages'] > 1">
-            <div class="batchLayout" i18n:translate="">
-              Objects:<strong><tal:block replace="batch_info/start"
-                                         i18n:name="batch_start" /> - <tal:block replace="batch_info/limit"
-                                                                                 i18n:name="batch_limit" />
-              </strong> of <tal:block replace="batch_info/length" i18n:name="batch_length" />
-            </div>
-            <br />
-          </tal:block>
-          <table class="contentListing" width="100%">
-            <span tal:repeat="rows batches" tal:omit-tag="">
-              <span tal:repeat="student rows">
-                <tr tal:condition="student" 
-                    tal:attributes="class python:test(repeat['student'].even(), 'even ajaxtd', 'odd ajaxtd')">
-                  <td><a href="id" tal:attributes="href string:${context/portal_url}/campus/students/${student/id}"
-                         tal:content="student/id"></a></td>    
-                  <td>
-                    <span tal:replace="student/name" />
-                  </td>    
-                  <td><span tal:replace="student/matric_no" /></td>   
-                  <td><span tal:replace="student/jamb_reg_no" /></td>
-                  <td tal:condition="options/co_view|nothing">
-                    <a href="id" 
-                       tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/clearance/external_clearance_edit_form"
-                       target="edit"
-                       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')"
-                       >[view and change state]</a></td>
-                  <td tal:condition="options/ca_view|nothing">
-                    <a href="id" 
-                       tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/study_course/${student/level}/external_study_level_view"
-                       target="edit"
-                       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')"
-                       >[view and validate course list]</a></td>
-                </tr>
-              </span>
-            </span>
-          </table>
-          <tal:block condition="python:batch_info and batch_info['nb_pages'] > 1">
-            <div class="pageNavigationLayout">
-              <a tal:define="previous batch_info/previous"
-                 tal:condition="python:previous is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=0))"
-                 >
-              (&lt;&lt;)</a>
-              <a tal:define="previous batch_info/previous"
-                 tal:condition="python:previous is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=previous))"
-                 i18n:translate="batch_previous">Previous</a>
-              <tal:block repeat="page batch_info/pages">
-                <tal:block condition="python:page != batch_info['start'] - 1">
-                  <a tal:attributes="href python:'%s?%s'%(request['URL'],
-                  mq(request.form, b_start=page))"
-                  tal:content="repeat/page/number">1</a>&nbsp;
-                </tal:block>
-                <tal:block condition="python:page == batch_info['start'] - 1">
-                  <span tal:content="string:${repeat/page/number}" />&nbsp;
-                </tal:block>
-              </tal:block>
-              <a tal:define="next batch_info/next"
-                 tal:condition="python:next is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=next))"
-                 i18n:translate="batch_next">Next</a>
-              <a tal:define="next batch_info/next;
-              last_page python:batch_info['pages'][-1]"
-              tal:condition="python:next is not None"
-              tal:attributes="href python:'%s?%s'%(request['URL'],
-              mq(request.form, b_start=last_page))"
-              >
-              (&gt;&gt;)</a>
-            </div>
-          </tal:block>
-        </span>
-      </span>
-    </span>
-  </metal:main>
-</metal:body>
Index: /WAeUP_SRP/trunk/skins/waeup_fceoyo/students_actions.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_fceoyo/students_actions.pt	(revision 4006)
+++ /WAeUP_SRP/trunk/skins/waeup_fceoyo/students_actions.pt	(revision 4006)
@@ -0,0 +1,22 @@
+<metal:block define-macro="students_actions">
+
+  <strong>
+    <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
+    &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
+    <span tal:condition="context/isSectionOfficer">
+      <nobr><a href="apply_admission_manage">Application Process</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
+      <nobr><a href="view_logs">View Log Files</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+      <nobr><a href="add_student">Add Student Record</a>        
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+      <nobr><a href="deactivate_students">Deactivate Student Record(s)</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+    </span>
+    <span tal:condition="context/isSectionManager">
+      <nobr><a href="remove_students">Remove Student Record(s)</a></nobr>
+    </span>
+  </strong>
+
+</metal:block>
+
Index: eUP_SRP/trunk/skins/waeup_futminna/search_students_form.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_futminna/search_students_form.pt	(revision 4005)
+++ 	(revision )
@@ -1,132 +1,0 @@
-<metal:body use-macro="here/main_template/macros/master">
-  <metal:main fill-slot="main"
-              tal:define="rendered options/rendered;
-              portal_status_message options/psm;
-              students options/students;
-              info options/info|nothing;
-              is_so context/isSectionOfficer;
-              allowed options/allowed|nothing;"
-              >
-    <span tal:condition="not: allowed">
-      <span tal:content="here/illegal_view" />
-    </span>
-    <span tal:condition="allowed" tal:omit-tag="">
-      <strong>
-        <nobr><a href="statistics_new_view">New Student Statistics</a>
-        &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-        <nobr><a href="statistics_ret_view">Returning Student Statistics</a>
-        &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-        <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
-        &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
-        <span tal:condition="is_so">
-          <nobr><a href="apply_admission_manage">Application Process</a>
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
-          <nobr><a href="view_logs">View Log Files</a>
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-          <nobr><a href="add_student">Add Student Record</a>        
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-          <nobr><a href="deactivate_students">Deactivate Student Record(s)</a></nobr>
-        </span>
-      </strong>
-      <h3> Search Student Section</h3><br />
-      You are logged in as member <span tal:replace="info/member|nothing" /> 
-      <span tal:condition="info/faculties|nothing" tal:omit-tag="">
-        who is ClearanceOfficer for Faculty 
-        <span tal:repeat="faculty info/faculties" tal:content="faculty" />
-      </span>
-      <span tal:condition="info/departments|nothing" tal:omit-tag="">
-        and <span tal:repeat="department info/departments|nothing" tal:content="department"/></span>.
-      <br /><br />
-      <span tal:replace="structure rendered" />
-      <metal:block use-macro="here/generic_lib_portal_message/macros/portal_message" />
-      <span tal:condition="students">
-        <span tal:define="items students;
-        columns python:3;
-        items_per_page python:40;
-        max_items python:300;
-        zoom python:0;
-        batches_all python:here.getBatchList(items,columns, items_per_page,zoom,max_items=5000);
-        batches python:batches_all[0];
-        batch_info python:batches_all[1];
-        zoomed python:batches_all[2];
-        mq nocall:modules/ZTUtils/make_query;"
-        tal:omit-tag="">
-          <tal:block tal:condition="python: items and batch_info and batch_info['nb_pages'] > 1">
-            <div class="batchLayout" i18n:translate="">
-              Objects:<strong><tal:block replace="batch_info/start"
-                                         i18n:name="batch_start" /> - <tal:block replace="batch_info/limit"
-                                                                                 i18n:name="batch_limit" />
-              </strong> of <tal:block replace="batch_info/length" i18n:name="batch_length" />
-            </div>
-            <br />
-          </tal:block>
-          <table class="contentListing" width="100%">
-            <span tal:repeat="rows batches" tal:omit-tag="">
-              <span tal:repeat="student rows">
-                <tr tal:condition="student" 
-                    tal:attributes="class python:test(repeat['student'].even(), 'even ajaxtd', 'odd ajaxtd')">
-                  <td><a href="id" tal:attributes="href string:${context/portal_url}/campus/students/${student/id}"
-                         tal:content="student/id"></a></td>    
-                  <td>
-                    <span tal:replace="student/name" />
-                  </td>    
-                  <td><span tal:replace="student/matric_no" /></td>   
-                  <td><span tal:replace="student/jamb_reg_no" /></td>
-                  <td tal:condition="options/co_view|nothing">
-                    <a href="id" 
-                       tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/clearance/external_clearance_edit_form"
-                       target="edit"
-                       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')"
-                       >[view and change state]</a></td>
-                  <td tal:condition="options/ca_view|nothing">
-                    <a href="id" 
-                       tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/study_course/${student/level}/external_study_level_view"
-                       target="edit"
-                       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')"
-                       >[view and validate course list]</a></td>
-                </tr>
-              </span>
-            </span>
-          </table>
-          <tal:block condition="python:batch_info and batch_info['nb_pages'] > 1">
-            <div class="pageNavigationLayout">
-              <a tal:define="previous batch_info/previous"
-                 tal:condition="python:previous is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=0))"
-                 >
-              (&lt;&lt;)</a>
-              <a tal:define="previous batch_info/previous"
-                 tal:condition="python:previous is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=previous))"
-                 i18n:translate="batch_previous">Previous</a>
-              <tal:block repeat="page batch_info/pages">
-                <tal:block condition="python:page != batch_info['start'] - 1">
-                  <a tal:attributes="href python:'%s?%s'%(request['URL'],
-                  mq(request.form, b_start=page))"
-                  tal:content="repeat/page/number">1</a>&nbsp;
-                </tal:block>
-                <tal:block condition="python:page == batch_info['start'] - 1">
-                  <span tal:content="string:${repeat/page/number}" />&nbsp;
-                </tal:block>
-              </tal:block>
-              <a tal:define="next batch_info/next"
-                 tal:condition="python:next is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=next))"
-                 i18n:translate="batch_next">Next</a>
-              <a tal:define="next batch_info/next;
-              last_page python:batch_info['pages'][-1]"
-              tal:condition="python:next is not None"
-              tal:attributes="href python:'%s?%s'%(request['URL'],
-              mq(request.form, b_start=last_page))"
-              >
-              (&gt;&gt;)</a>
-            </div>
-          </tal:block>
-        </span>
-      </span>
-    </span>
-  </metal:main>
-</metal:body>
Index: /WAeUP_SRP/trunk/skins/waeup_nau/students_actions.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_nau/students_actions.pt	(revision 4006)
+++ /WAeUP_SRP/trunk/skins/waeup_nau/students_actions.pt	(revision 4006)
@@ -0,0 +1,22 @@
+<metal:block define-macro="students_actions">
+
+  <strong>
+    <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
+    &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
+    <span tal:condition="context/isSectionOfficer">
+      <nobr><a href="apply_admission_manage">Application Process</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
+      <nobr><a href="view_logs">View Log Files</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+      <nobr><a href="add_student">Add Student Record</a>        
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+      <nobr><a href="deactivate_students">Deactivate Student Record(s)</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+    </span>
+    <span tal:condition="context/isSectionManager">
+      <nobr><a href="remove_students">Remove Student Record(s)</a></nobr>
+    </span>
+  </strong>
+
+</metal:block>
+
Index: /WAeUP_SRP/trunk/skins/waeup_ois/students_actions.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_ois/students_actions.pt	(revision 4006)
+++ /WAeUP_SRP/trunk/skins/waeup_ois/students_actions.pt	(revision 4006)
@@ -0,0 +1,22 @@
+<metal:block define-macro="students_actions">
+
+  <strong>
+    <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
+    &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
+    <span tal:condition="context/isSectionOfficer">
+      <nobr><a href="apply_admission_manage">Application Process</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
+      <nobr><a href="view_logs">View Log Files</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+      <nobr><a href="add_student">Add Student Record</a>        
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+      <nobr><a href="deactivate_students">Deactivate Student Record(s)</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+    </span>
+    <span tal:condition="context/isSectionManager">
+      <nobr><a href="remove_students">Remove Student Record(s)</a></nobr>
+    </span>
+  </strong>
+
+</metal:block>
+
Index: /WAeUP_SRP/trunk/skins/waeup_student/search_students.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_student/search_students.py	(revision 4005)
+++ /WAeUP_SRP/trunk/skins/waeup_student/search_students.py	(revision 4006)
@@ -56,4 +56,5 @@
 user_info['departments'] = []
 user_info['faculties'] = []
+user_info['certificates'] = []
 co_view = False
 ca_view = False
@@ -61,4 +62,5 @@
 faculties =  session_data.get('faculties',None)
 departments = session_data.get('departments',None)
+certificates = session_data.get('certificates',None)
 certificate_levels = session_data.get('certificate_levels',None)
 # determine local roles
@@ -66,13 +68,15 @@
     default_state = "clearance_requested"
     co_view = True
-    if faculties is None or departments is None:
+    if faculties is None or departments is None or certificates is None:
         logger.info('ClearanceOfficer %s initiated student_search' % member)
-        query = In('portal_type',('Faculty','Department')) &\
+        query = In('portal_type',('Faculty','Department','Certificate')) &\
                  In('localUsersWithRoles', ("user:%s" % member,))
         res = aq_portal(query)
         faculties = [f.getId for f in res if f.portal_type == 'Faculty']
         departments = [f.getId for f in res if f.portal_type == 'Department']
+        certificates = [f.getId for f in res if f.portal_type == 'Certificate']
     user_info['faculties'] = session_data['faculties'] = faculties
     user_info['departments'] = session_data['departments'] =  departments
+    user_info['certificates'] = session_data['certificates'] =  certificates
 if "CourseAdvisers" in member.getGroups():
     default_state = "courses_registered"
@@ -196,7 +200,7 @@
 if co_view and state.startswith('clear'):
     if query is not None:
-        query = query & In('faculty',faculties) | In('department',departments)
+        query = query & (In('faculty',faculties) | In('department',departments) | In('course',certificates))
     else:
-        query = In('faculty',faculties) | In('department',departments)
+        query = In('faculty',faculties) | In('department',departments) | In('course',certificates)
 elif ca_view and state.startswith('courses'):
     courses = [cl.split('/')[0] for cl in certificate_levels]
@@ -206,4 +210,6 @@
 
 # search students_catalog
+
+#return query
 
 student_records = aq_students(query,('matric_no','jamb_reg_no'))
Index: /WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt	(revision 4005)
+++ /WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt	(revision 4006)
@@ -5,5 +5,4 @@
               students options/students;
               info options/info|nothing;
-              is_so context/isSectionOfficer;
               allowed options/allowed|nothing;"
               >
@@ -12,30 +11,6 @@
     </span>
     <span tal:condition="allowed" tal:omit-tag="">
-      <strong>
-        <nobr><a href="statistics_new_view">New Student Statistics</a>
-        &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-        <nobr><a href="statistics_ret_view">Returning Student Statistics</a>
-        &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-        <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
-        &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
-        <span tal:condition="is_so">
-          <nobr><a href="apply_admission_manage">Application Process</a>
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
-          <nobr><a href="view_logs">View Log Files</a>
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-          <nobr><a href="add_student">Add Student Record</a>        
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-          <nobr><a href="deactivate_students">Deactivate Student Record(s)</a></nobr>
-        </span>
-      </strong>
+      <metal:block use-macro="here/students_actions/macros/students_actions" />
       <h3> Search Student Section</h3><br />
-      You are logged in as member <span tal:replace="info/member|nothing" /> 
-      <span tal:condition="info/faculties|nothing" tal:omit-tag="">
-        who is ClearanceOfficer for Faculty 
-        <span tal:repeat="faculty info/faculties" tal:content="faculty" />
-      </span>
-      <span tal:condition="info/departments|nothing" tal:omit-tag="">
-        and <span tal:repeat="department info/departments|nothing" tal:content="department"/></span>.
-      <br /><br />
       <span tal:replace="structure rendered" />
       <metal:block use-macro="here/generic_lib_portal_message/macros/portal_message" />
Index: /WAeUP_SRP/trunk/skins/waeup_student/students_actions.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_student/students_actions.pt	(revision 4006)
+++ /WAeUP_SRP/trunk/skins/waeup_student/students_actions.pt	(revision 4006)
@@ -0,0 +1,26 @@
+<metal:block define-macro="students_actions">
+
+  <strong>
+    <nobr><a href="statistics_new_view">New Student Statistics</a>
+    &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+    <nobr><a href="statistics_ret_view">Returning Student Statistics</a>
+    &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+    <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
+    &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
+    <span tal:condition="context/isSectionOfficer">
+      <nobr><a href="apply_admission_manage">Application Process</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
+      <nobr><a href="view_logs">View Log Files</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+      <nobr><a href="add_student">Add Student Record</a>        
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+      <nobr><a href="deactivate_students">Deactivate Student Record(s)</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+    </span>
+    <span tal:condition="context/isSectionManager">
+      <nobr><a href="remove_students">Remove Student Record(s)</a></nobr>
+    </span>
+  </strong>
+
+</metal:block>
+
Index: eUP_SRP/trunk/skins/waeup_unilorin/search_students_form.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_unilorin/search_students_form.pt	(revision 4005)
+++ 	(revision )
@@ -1,128 +1,0 @@
-<metal:body use-macro="here/main_template/macros/master">
-  <metal:main fill-slot="main"
-              tal:define="rendered options/rendered;
-              portal_status_message options/psm;
-              students options/students;
-              info options/info|nothing;
-              is_so context/isSectionOfficer;
-              allowed options/allowed|nothing;"
-              >
-    <span tal:condition="not: allowed">
-      <span tal:content="here/illegal_view" />
-    </span>
-    <span tal:condition="allowed" tal:omit-tag="">
-      <strong>
-        <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
-        &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
-        <span tal:condition="is_so">
-          <nobr><a href="apply_admission_manage">Application Process</a>
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
-          <nobr><a href="view_logs">View Log Files</a>
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-          <nobr><a href="add_student">Add Student Record</a>        
-          &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
-          <nobr><a href="deactivate_students">Deactivate Student Record(s)</a></nobr>
-        </span>
-      </strong>
-      <h3> Search Student Section</h3><br />
-      You are logged in as member <span tal:replace="info/member|nothing" /> 
-      <span tal:condition="info/faculties|nothing" tal:omit-tag="">
-        who is ClearanceOfficer for Faculty 
-        <span tal:repeat="faculty info/faculties" tal:content="faculty" />
-      </span>
-      <span tal:condition="info/departments|nothing" tal:omit-tag="">
-        and <span tal:repeat="department info/departments|nothing" tal:content="department"/></span>.
-      <br /><br />
-      <span tal:replace="structure rendered" />
-      <metal:block use-macro="here/generic_lib_portal_message/macros/portal_message" />
-      <span tal:condition="students">
-        <span tal:define="items students;
-        columns python:3;
-        items_per_page python:40;
-        max_items python:300;
-        zoom python:0;
-        batches_all python:here.getBatchList(items,columns, items_per_page,zoom,max_items=400);
-        batches python:batches_all[0];
-        batch_info python:batches_all[1];
-        zoomed python:batches_all[2];
-        mq nocall:modules/ZTUtils/make_query;"
-        tal:omit-tag="">
-          <tal:block tal:condition="python: items and batch_info and batch_info['nb_pages'] > 1">
-            <div class="batchLayout" i18n:translate="">
-              Objects:<strong><tal:block replace="batch_info/start"
-                                         i18n:name="batch_start" /> - <tal:block replace="batch_info/limit"
-                                                                                 i18n:name="batch_limit" />
-              </strong> of <tal:block replace="batch_info/length" i18n:name="batch_length" />
-            </div>
-            <br />
-          </tal:block>
-          <table class="contentListing" width="100%">
-            <span tal:repeat="rows batches" tal:omit-tag="">
-              <span tal:repeat="student rows">
-                <tr tal:condition="student" 
-                    tal:attributes="class python:test(repeat['student'].even(), 'even ajaxtd', 'odd ajaxtd')">
-                  <td><a href="id" tal:attributes="href string:${context/portal_url}/campus/students/${student/id}"
-                         tal:content="student/id"></a></td>    
-                  <td>
-                    <span tal:replace="student/name" />
-                  </td>    
-                  <td><span tal:replace="student/matric_no" /></td>   
-                  <td><span tal:replace="student/jamb_reg_no" /></td>
-                  <td tal:condition="options/co_view|nothing">
-                    <a href="id" 
-                       tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/clearance/external_clearance_edit_form"
-                       target="edit"
-                       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')"
-                       >[view and change state]</a></td>
-                  <td tal:condition="options/ca_view|nothing">
-                    <a href="id" 
-                       tal:attributes="href string:${context/portal_url}/campus/students/${student/id}/study_course/${student/level}/external_study_level_view"
-                       target="edit"
-                       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')"
-                       >[view and validate course list]</a></td>
-                </tr>
-              </span>
-            </span>
-          </table>
-          <tal:block condition="python:batch_info and batch_info['nb_pages'] > 1">
-            <div class="pageNavigationLayout">
-              <a tal:define="previous batch_info/previous"
-                 tal:condition="python:previous is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=0))"
-                 >
-              (&lt;&lt;)</a>
-              <a tal:define="previous batch_info/previous"
-                 tal:condition="python:previous is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=previous))"
-                 i18n:translate="batch_previous">Previous</a>
-              <tal:block repeat="page batch_info/pages">
-                <tal:block condition="python:page != batch_info['start'] - 1">
-                  <a tal:attributes="href python:'%s?%s'%(request['URL'],
-                  mq(request.form, b_start=page))"
-                  tal:content="repeat/page/number">1</a>&nbsp;
-                </tal:block>
-                <tal:block condition="python:page == batch_info['start'] - 1">
-                  <span tal:content="string:${repeat/page/number}" />&nbsp;
-                </tal:block>
-              </tal:block>
-              <a tal:define="next batch_info/next"
-                 tal:condition="python:next is not None"
-                 tal:attributes="href python:'%s?%s'%(request['URL'],
-                 mq(request.form, b_start=next))"
-                 i18n:translate="batch_next">Next</a>
-              <a tal:define="next batch_info/next;
-              last_page python:batch_info['pages'][-1]"
-              tal:condition="python:next is not None"
-              tal:attributes="href python:'%s?%s'%(request['URL'],
-              mq(request.form, b_start=last_page))"
-              >
-              (&gt;&gt;)</a>
-            </div>
-          </tal:block>
-        </span>
-      </span>
-    </span>
-  </metal:main>
-</metal:body>
Index: /WAeUP_SRP/trunk/skins/waeup_unilorin/students_actions.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_unilorin/students_actions.pt	(revision 4006)
+++ /WAeUP_SRP/trunk/skins/waeup_unilorin/students_actions.pt	(revision 4006)
@@ -0,0 +1,22 @@
+<metal:block define-macro="students_actions">
+
+  <strong>
+    <nobr><a href="statistics_simple_view">Basic Student Statistics</a>
+    &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
+    <span tal:condition="context/isSectionOfficer">
+      <nobr><a href="apply_admission_manage">Application Process</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>      
+      <nobr><a href="view_logs">View Log Files</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+      <nobr><a href="add_student">Add Student Record</a>        
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+      <nobr><a href="deactivate_students">Deactivate Student Record(s)</a>
+      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+    </span>
+    <span tal:condition="context/isSectionManager">
+      <nobr><a href="remove_students">Remove Student Record(s)</a></nobr>
+    </span>
+  </strong>
+
+</metal:block>
+
