J
|
Jane 8/15/2008 |
Johan, {if $allowedit} <a href="TableName_edit.php?{$row.1editlink}">Edit</a> {/if}
if (strtotime("now")>strtotime("2009-01-20") && strtotime("now")<strtotime("2009-02-20")) $smarty->assign("allowedit",true); else $smarty->assign("allowedit",false); |
J
|
johan-v author 8/15/2008 |
Johan, you can change edit links for all tables in the following way: Then check date in the List page: Before display event and assign correct value to the $allowedit variable:
<!-- table data --><!--{foreach from=$rowinfo item=row}--> |
J
|
Jane 8/18/2008 |
Hi, |
J
|
johan-v author 8/18/2008 |
Hi, $allow_edit and $allowedit are different variables. $allow_edit is used to restrict used access based on the security settings on the Security tab. $allowedit is used to restrict used access based on the current date.
|