* * @copyright Copyright (C) 2006 - 2014 Critter BVBA All rights reserved. * @license GNU General Public License version 3 or later; see license.txt * * showitem.entity.php * * showitem.entity dialog * */ // enable or disable logging error_reporting(E_ALL); ini_set('display_errors', '1'); // 0 - disabled; 1 - enabled // $o = new role($data->data->id); $o->details(); $sql = "SELECT `id`,CONCAT(`name`,' (',`login`,')') `name` FROM `##_auth_user` WHERE `deleted`='0' ORDER BY `name`;"; $DBO->query($sql); $users = $DBO->result("objectlist"); $sql = "SELECT `a`.*, IF(IFNULL(`b`.`auth_role_id`,-1)>0,1,0) `applied`\n FROM `##_auth_ace` `a`\n LEFT JOIN `##_auth_acl` `b` ON (`b`.`auth_ace_id`=`a`.`id` AND `b`.`deleted`=0 AND `b`.`auth_role_id`=" . $o->get("id") . ")\n WHERE `a`.`deleted`=0\n ORDER BY `applied` desc, `a`.`name`;"; $DBO->query($sql); $acl = $DBO->result("objectlist"); ?> <div class="title"><?php echo ucwords(ROLE_EDIT_ROLE); ?> </div> <div class="form"> <div class="column"> <div class="row name"> <div class="caption"><?php