17 require_once SQ_CORE_PACKAGE_PATH.
'/system/conditions/condition/condition_edit_fns.inc';
42 parent::__construct();
60 $user_types = array_get_index($condition_data,
'user_types',
'');
63 if (!empty($user_types)) {
64 $user_types = str_replace(
' ',
'', $user_types);
65 $type_list = explode(
',', $user_types);
69 ?><table style=
"width: auto" border=
"0" class=
"no-borders">
72 asset_type_chooser($prefix.
'[type_list]', TRUE, $type_list, NULL, FALSE, FALSE, Array(
'user'));
76 } elseif (!empty($type_list)) {
77 $type_names = $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($type_list,
'name');
78 ?><table
class=
"sq-backend-table">
80 <th><?php echo translate(
'type') ?></th>
82 $inherit_image_path = sq_web_path(
'lib').
'/web/images/';
83 foreach ($type_list as $type) {
86 echo get_asset_type_icon($type);
87 echo $type_names[$type];
108 if (!isset($_POST[$prefix][
'type_list']) || empty($_POST[$prefix][
'type_list'])) {
116 'user_types' => trim(implode(
', ', $_POST[$prefix][
'type_list']),
', '),