| Posted: 11/20/2007, 11:32 AM |
|
Assuming you are displaying images in a row of a standard grid.
In the BeforeShowRow you can have calculate the number of rows displayed
(sofar) like this:
function employees_BeforeShowRow()
{
$employees_BeforeShowRow = true;
//End employees_BeforeShowRow
//Custom Code @90-C6E784A0
// -------------------------
global $employees;
global $RowCount; <-- added
$RowCount+=1; <-added
// Write your own code here.
$pageLink=$employees->email->GetLink();
echo "********************************<br>";
echo "* $RowCount <br>"; <-added
echo "* $pageLink <br>";
echo "********************************<br>";
// -------------------------
//End Custom Code
//Close employees_BeforeShowRow @17-C5EDDDE1
return $employees_BeforeShowRow;
}
//End Close employees_BeforeShowRow
This piece of code will execute every third row from the previous example.
Now you just have to figure out what you want done BeforeShowRow of the
third row.
global $RowCount;
$RowCount +=1;
if($RowCount%3==0 ) {
$pageLink=$employees->email->GetLink();
echo "********************************<br>";
echo "* $RowCount <br>";
echo "* $pageLink <br>";
echo "********************************<br>";
}
Walter
|