C
|
cgphp 8/25/2011 |
Check this article: |
T
|
techster author 8/25/2011 |
Check this article: http://xlinesoft.com/phprunner/docs/hide_controls_on_add_edit_pages.htm
|
T
|
techster author 8/26/2011 |
WOW! Such simple one and I had been digging on Join. :-) Many thanks, Cristian. --Small nag-- If I want to show it to two users say admin and cust1; both of them belongs to two different groups. $xt->assign("status_fieldblock",$_SESSION["UserID"]=="admin","cust1"); But it does not work. In the case above it will only show it on admin login and not cust1; incase, of following statement: $xt->assign("status_fieldblock",$_SESSION["UserID"]=="cust1","admin"); it shows only on cust1 and not admin. So I am unable to pass two arguments to it.
if ($_SESSION(GroupID) == "userlevel") {
|
C
|
cgphp 8/26/2011 |
$xt->assign("status_fieldblock", ($_SESSION["UserID"]=="cust1" OR $_SESSION["UserID"]=="admin")); |
T
|
techster author 8/26/2011 |
$xt->assign("status_fieldblock", ($_SESSION["UserID"]=="cust1" OR $_SESSION["UserID"]=="admin"));
|
T
|
techster author 8/26/2011 |
Thanks Gile. Finally I am through with initial setup. Now doing the fine tuning, have few hiccups though as I am new to this.
|
C
|
cgphp 8/26/2011 |
Please, post your code. |