Parameters
- SKIP: topic offset
- LIMIT: number of hits per page
CSS
- webChangesHolder
- webChangesEven
- webChangesOdd
Implementation
%STARTINCLUDE%
*~~
%~~ DBQUERY{
~~~ order="modified"
~~~ limit="%IFDEFINED{"%LIMIT%" then="%LIMIT%" else="10"}%"
~~~ reverse="on"
~~~ skip="%SKIP%"
~~~ header="<noautolink>
~~~ $percntCALC{\"$dollarSET(incr, 0)\"}$percnt <!-- CALC incr = 0 -->
~~~ <div class=\"webChangesHolder\">
~~~ $percntDBCALL{\"RenderPageNavigation\"
~~~ SKIP=\"%SKIP%\"
~~~ MAX=\"$count\"
~~~ LIMIT=\"%IFDEFINED{"%LIMIT%" then="%LIMIT%" else="10"}%\"
~~~ }$percnt
~~~ <table class=\"twikiTable\">
~~~ <tr>
~~~ <th> </th>
~~~ <th>Topic</th>
~~~ <th>Changed</th>
~~~ <th>Author</th>
~~~ </tr>"
~~~ format="
~~~ $percntCALC{\"$dollarSETM(incr, +1)\"}$percnt <!-- CALC incr++ -->
~~~ <tr class=\"
~~~ $percntCALC{\"$dollarIF($dollarODD($dollarGET(incr)),
~~~ webChangesOdd,webChangesEven)\"
~~~ }$percnt\"
~~~ >
~~~ <td>$index</td>
~~~ <td>[[$web.$topic][$topic]]</td>
~~~ <td style=\"white-space:nowrap\">
~~~ <a href=\"%SCRIPTURL{"rdiff"}%/$web/$topic?type=last&render=sequential\">
~~~ $formatTime(info.date) -
~~~ $expand(info.version)
~~~ </a>
~~~ </td>
~~~ <td>[[%MAINWEB%.$expand(info.author)][$expand(info.author)]]</td>
~~~ </tr>
~~~ <tr class=\"
~~~ $percntCALC{\"$dollarIF($dollarODD($dollarGET(incr)),
~~~ webChangesOdd,webChangesEven)\"
~~~ }$percnt\"
~~~ >
~~~ <td> </td>
~~~ <td colspan=\"3\">
~~~ <div style=\"margin:2px 10px 5px 0px;\">
~~~ $flatten($trunc($expand(Summary or text),256))
~~~ </div>
~~~ </td>
~~~ </tr>"
~~~ footer="</table></noautolink>
~~~ $percntDBCALL{\"RenderPageNavigation\"
~~~ SKIP=\"%SKIP%\"
~~~ MAX=\"$count\"
~~~ LIMIT=\"%IFDEFINED{"%LIMIT%" then="%LIMIT%" else="10"}%\"
~~~ }$percnt
~~~ </div>"
~~~ }%
*~~
%STOPINCLUDE%
Test