Hi,
I am using PHPRunner 4.0.
I am trying to modify the layout of an HTML template list from the output folder of my project to display the list differently.
I need to compare the content of a field between 2 rows.
For example, I need to compare 2 rows (current row and the next row) and if the content in the field of the 1st row is different then the content of the field in the 2nd row then add an empty row (<tr></tr>) in between.
Its basically an iterator that iterates through an array, and compares the content between the current row and the next row.
Here's a pseudo code example:
<!--{foreach from=$rowinfo item=row}-->
{if $row.1Activity_Name_value.current != $row.1Activity_Name_value.next}
<tr valign="top"><td colspan="4">EMPTY</td></tr>
{/if}
...
Activity_Name_value is the field which I want to verify its content. currentwould correspond to the current row. nextwould correspond to the next row.
The output would be something like this:
Item# Activity Name
1-------Content_01
2-------Content_01
3-------Content_01
4-------EMPTY
5-------Content_02
6-------Content_02
7-------EMPTY
8-------Content_03
Is there a developer specific forum ?
Regards,
Pat.