[phpwebapp-commits] CVS: web_app/parser class.Render.php,1.14,1.15
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2004-07-23 09:40:25
|
Update of /cvsroot/phpwebapp/web_app/parser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7295/parser Modified Files: class.Render.php Log Message: Index: class.Render.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.Render.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** class.Render.php 22 Jul 2004 16:25:37 -0000 1.14 --- class.Render.php 23 Jul 2004 09:40:17 -0000 1.15 *************** *** 405,408 **** --- 405,416 ---- } + //find the first record nr, if the recordset is a PagedRS + $firstRecNr = 1; + if ($rs->type=='PagedRS') + { + $page_vars = $rs->getPageVars(); + $firstRecNr = $page_vars['FirstRec']; + } + //render the body of repeat for each record $row_nr = 1; *************** *** 412,416 **** //add variables {{CurrentRecNr}} and {{CurrentRowNr}} - $firstRecNr = ($rs->type=="PagedRS") ? WebApp::getVar("FirstRec") : 1; WebApp::addVar("CurrentRecNr", $firstRecNr + $row_nr - 1); WebApp::addVar("CurrentRowNr", $row_nr); --- 420,423 ---- |