17 require_once SQ_CORE_PACKAGE_PATH.
'/system/conditions/condition/condition_edit_fns.inc';
42 parent::__construct();
61 <table
class=
"no-borders">
63 <td valign=
"top"><strong><?php echo translate(
'user_groups'); ?></strong> </td>
67 multiple_asset_finder($prefix.
'[groupids]', array_get_index($condition_data,
'groupids', Array()), Array(
'user_group' =>
'D'));
69 if (empty($condition_data[
'groupids'])) {
70 echo translate(
'no_user_groups_selected');
72 $names = $GLOBALS[
'SQ_SYSTEM']->am->getAssetInfo($condition_data[
'groupids'],
'user_group', FALSE,
'name');
76 foreach ($condition_data[
'groupids'] as $id) {
78 <li><?php echo get_asset_tag_line($id); ?></li>
106 if (empty($_POST[$prefix]))
return Array();
109 foreach ($_POST[$prefix][
'groupids'] as $data) {
110 if (empty($data[
'assetid']))
continue;
111 $groupids[] = $data[
'assetid'];
114 return Array(
'groupids' => $groupids);