18 require_once SQ_CORE_PACKAGE_PATH.
'/users/user_group/user_group_edit_fns.inc';
43 $this->static_screens = Array(
46 'force_unlock' => TRUE,
47 'lock_type' =>
'none',
49 'dependants' => Array(
50 'name' =>
'Dependants',
51 'force_unlock' => TRUE,
52 'lock_type' =>
'none',
72 if ($asset->_prefix ==
'0') {
73 $o->openField(translate(
'details'));
74 echo translate(
'list_of_ipb_user_groups');
79 if (empty($info))
return;
81 foreach ($info as $field_name => $field_data) {
82 $count = count($field_data);
83 if ($count > 1) $field_name .=
' ('.$count.
' values)';
84 $o->openField($field_name);
85 echo implode(
'<br />', $field_data);
126 $ipb_bridge =& $GLOBALS[
'SQ_SYSTEM']->am->getAsset($asset->_ipbid);
127 $ipb =& $ipb_bridge->getIpbConn();
128 $groups = $ipb->getListOfGroups();
130 if (empty($groups)) {
131 $o->openField(translate(
'list_of_ipb_user_groups'));
132 echo translate(
'no_user_groups_in_ipb');
135 $o->openField(translate(
'list_of_ipb_user_groups'));
137 <table
class=
"sq-backend-table">
139 <th style=
"width: 50%"><?php echo translate(
'name'); ?></th>
140 <th style=
"width: 50%"><?php echo translate(
'asset'); ?></th>
143 foreach ($groups as $group) {
144 $data = $ipb->getGroupInfo($ipb_bridge->id.
':'.
'g_'.$group[
'id']);
147 <td style=
"font-weight: bold;"><?php echo $data[
'g_title']; ?></td>
148 <td><?php echo get_asset_tag_line($asset->_ipbid.
':'.
'g_'.$data[
'g_id']); ?></td>
190 $id_parts = explode(
':', $asset->id);
191 if ($id_parts[1] !=
'g_0')
return TRUE;