Posted by PK-OSO
2014-09-03

Hi there,
This is an excellent and very easy to use AB app. This time we need to hide/show some fields (Columns) and rename them. We have two separates GUI, one for ADMIN users (Edit access) and the other to user for read only access. Thank You...

Posted by Tom
2014-09-04

Hi,

in the templates ( any files that starts with "tpl." ), you can use IsAdmin function to hide things from non-Admin users like
<?php if ( $sys->IsAdmin() ) { ?>

...anything here will not be shown to non-admin users...

<?php } ?>

To ignore some fields, you need to edit web/admin/staff/app/cls_ps_(table-name).inc.php that determines which fields are saved. You can run different lines of codes depending on whether or not the user is an administrator. The method is very similar to the one described above but the syntax is slightly different.
<?php if ( $this->sys->IsAdmin() ) { ?>

...anything here will not be shown to non-admin users...

<?php } ?>