EduploneTest/skins/EduploneTest eduplone_testingResults_global.pt,NONE,1.1
Claudia Disque <[email protected]>
| Newsgroups | gmane.comp.web.zope.eduplone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/eduplone/EduploneTest/skins/EduploneTest
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7413/skins/EduploneTest
Added Files:
eduplone_testingResults_global.pt
Log Message:
new table for global results
--- NEW FILE: eduplone_testingResults_global.pt ---
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
lang="en-US"
metal:use-macro="here/main_template/macros/master"
i18n:domain="eduplone"
>
<body>
<div metal:fill-slot="main">
<tal tal:define="env python:here">
<tal metal:define-macro="main">
<div class="contentHeader">
<h1 tal:content="structure python:here.aq_parent.title_or_id()">Title or id</h1>
</div>
<br>
<div id="bodyContent"
tal:define="allusers python:here.users.objectValues()">
<!--================================================-->
<table border="1">
<tr><td i18n:translate="label_user"><b>User</b></td>
<td i18n:translate="label_totalScore"><b>Score (total)</b></td>
<td i18n:translate="label_score_percent"><b>Percent</b></td>
</tr>
<div tal:repeat="user allusers">
<tr tal:define="answers python:user.getAnswers();
userId python: user.getId()">
<td valign="top">
<a tal:content="python: user.getId()"
tal:attributes="href python:here.users.absolute_url() + '/' + user.id + '/eduplone_userResults2'" /> :
</td>
<td align="right"> <b tal:content="python: round(here.score_CalculateTotal(userId), 2)" /> /
<i tal:replace="python: here.getTotalAvailableScore()" /></td>
<td align="right"><b tal:content="python: round(here.getUserScoreInPercent(userId), 1)"/><b>%</b></td>
</tr>
</div>
</table>
<!--=======================================================-->
</div>
</tal>
</tal>
</div>
</body>
</html>
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click