<participant version="5.0">
  <insertText location="afterSelection">
<![CDATA[
@@beforeFirst@@ <?php echo ($startRow_@@RecordsetName@@ + 1) ?> 
@@beforeLast@@ <?php echo min($startRow_@@RecordsetName@@ + $maxRows_@@RecordsetName@@, $totalRows_@@RecordsetName@@) ?> 
@@beforeTotal@@ <?php echo $totalRows_@@RecordsetName@@ ?> @@afterTotal@@
]]>
</insertText>
</participant>