Changeset 2087 for WAeUP_SRP


Ignore:
Timestamp:
5 Aug 2007, 20:41:13 (17 years ago)
Author:
Henrik Bettermann
Message:

see ticket #315 (not yet tested)

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getSimpleStudentStatistics.py

    r2070 r2087  
    5454dict['title'] = 'All Faculties'
    5555
     56
     57res_ft = context.students_catalog(mode = full_time)
     58dict['total_ft'] = len(res_ft)
     59
     60res_pt = context.students_catalog(mode = part_time)
     61dict['total_pt'] = len(res_pt)
     62
     63res_dp = context.students_catalog(mode = diploma)
     64dict['total_dp'] = len(res_dp)
     65
    5666res_Aft = context.students_catalog(review_state = catA, mode = full_time)
    5767dict['total_Aft'] = len(res_Aft)
     
    93103    dict['id'] = f.getId
    94104    dict['title'] = f.Title
     105   
     106    res_ft = context.students_catalog(faculty = f.getId, mode = full_time)
     107    dict['total_ft'] = len(res_ft)
     108
     109    res_pt = context.students_catalog(faculty = f.getId, mode = part_time)
     110    dict['total_pt'] = len(res_pt)
     111
     112    res_dp = context.students_catalog(faculty = f.getId, mode = diploma)
     113    dict['total_dp'] = len(res_dp)   
     114   
    95115    res_Aft = context.students_catalog(faculty = f.getId, review_state = catA, mode = full_time)
    96116    dict['total_Aft'] = len(res_Aft)
  • WAeUP_SRP/trunk/skins/waeup_student/statistics_simple_view.pt

    r2070 r2087  
    2828          <tr>
    2929            <th>&nbsp;</th>
     30           
     31            <th style="border-style:solid; border-width:1px; border-color:black" align="center" colspan="3">Total</th>
     32           
    3033            <th style="border-style:solid; border-width:1px; border-color:black" align="center" colspan="3">Category A</th>
    3134
     
    4851            <th align="right">PT</th>
    4952            <th align="right">DP</th>
     53            <th align="right">FT</th>
     54            <th align="right">PT</th>
     55            <th align="right">DP</th>
    5056
    5157          </tr>
     
    5460              <td width="80px"> <span tal:content="d/id" /> </td>
    5561
     62              <td width="60px" align="right">
     63                <span tal:content="d/total_ft" />
     64              </td>             
     65
     66              <td width="60px" align="right">
     67                <span tal:content="d/total_pt" />
     68              </td>             
     69
     70              <td width="60px" align="right">
     71                <span tal:content="d/total_dp" />
     72              </td>                 
     73             
    5674              <td width="60px" align="right">
    5775                <span tal:content="d/total_Aft" />
     
    100118        <tr><td>Category A: </td> <td>students who paid their school fee</td></tr>
    101119        <tr><td>Category B: </td> <td>students who registered their courses online (A contains B)</td></tr>
    102         <tr><td>Category C: </td> <td>students who who have not yet paid their school fee</td></tr>
     120        <tr><td>Category C: </td> <td>students who have not yet paid their school fee</td></tr>
    103121        <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
    104122        <tr><td colspan="2"><strong>Notice:</strong> Category C is not complete.
Note: See TracChangeset for help on using the changeset viewer.