|
To hide Horsepower field
use the following code in Add
Page: BeforeDisplay and/or Edit
Page: BeforeDisplay event.
Note: Change
the values listed in red to
match your specific needs.
1. Horsepower edit control will be shown
only if username equals "admin".
|
$xt->assign("Horsepower_fieldblock",$_SESSION["UserID"]=="admin");
|
2. Horsepower edit control will be shown
only if current user belongs to the admin group.
|
$xt->assign("Horsepower_fieldblock",$_SESSION["AccessLevel"]==
ACCESS_LEVEL_ADMINGROUP);
|
More info about
PHPRunner Session variables.
|