17 require_once SQ_CORE_PACKAGE_PATH.
'/system/conditions/condition/condition_edit_fns.inc';
42 parent::__construct();
60 $asset_types = array_get_index($condition_data,
'types',
'');
63 if (!empty($asset_types)) {
64 $type_list = explode(
',', $asset_types);
68 ?><table style=
"width: auto" border=
"0" class=
"no-borders">
71 asset_type_chooser($prefix.
'[type_list]', TRUE, $type_list, NULL, FALSE, FALSE, Array(
'asset'));
75 } elseif (!empty($type_list)) {
76 $type_names = $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($type_list,
'name');
77 ?><table
class=
"sq-backend-table">
79 <th><?php echo translate(
'type') ?></th>
81 foreach ($type_list as $type) {
84 echo get_asset_type_icon($type);
85 echo $type_names[$type];
106 if (!isset($_POST[$prefix][
'type_list']) || empty($_POST[$prefix][
'type_list'])) {
114 'types' => trim(implode(
',', $_POST[$prefix][
'type_list']),
','),