This topic is locked

list page: after record processed

11/11/2008 6:11:25 AM
PHPRunner General questions
G
garethp authorDevClub member

Hi
In version 4.2 I had the list page: after record processed event with

if($_SESSION["sor_details_masterkey1"]=="")

{$row["1editdetail"] = false;

}

else

{$row["1editdetail"] = true;}


and added {if $row.1editdetail} to the html

<TD vAlign=middle align=middle>{if $row.1editdetail}<A

class=tablelinks2

href="sor_details_edit.php?{$row.1editlink}">Edit</A>{/if}&nbsp;

</TD>{/if}


However I just find where to put it in version 5 and tried everything.

##if @TABLE.bEdit##

{BEGIN edit_column}

<td align="center" valign=middle>

{BEGIN edit_link}

<a class=tablelinks {$editlink_attrs}>##message EDIT##</a>

{END edit_link}

</td>

{END edit_column}

endif


Can you help as need this to be able to upgrade my site from 4.2 to 5.0
many thanks

G
garethp authorDevClub member 11/12/2008

Can anyone help with this - I have tried looking at the phprunner documentation and am getting better but can not work this one out.
I have tried the following
if($_SESSION["sor_details_masterkey1"]=="")

{$row["edit_link"] = false;

}

else

{$row["edit_link"] = true;}
thinking this may work but with no luck.
Please can someone help as this is fundamental to my site.
Many thanks
Gareth

J
Jane 11/12/2008

Gareth,
here is a sample:

global $record;

if($_SESSION["sor_details_masterkey1"]=="")

{$record["edit_link"] = false;

}

else

{$record["edit_link"] = true;}

G
garethp authorDevClub member 11/12/2008

Thanks Jane - I am starting to see the beneifts of div now but isn't half confusing! Just as I had got to grips with one language!!
Thanks so much