17 require_once SQ_CORE_PACKAGE_PATH.
'/system/conditions/condition/condition_edit_fns.inc';
18 require_once SQ_LIB_PATH.
'/html_form/html_form.inc';
43 parent::__construct();
62 foreach (get_constant_values(
'SQ_STATUS_') as $status_value) {
63 $statii[$status_value] = get_status_description($status_value);
66 if (!isset($condition_data[
'status'])) {
67 $selected_statii = Array();
70 if (!is_array($condition_data[
'status'])) {
71 $selected_statii = explode(
',', $condition_data[
'status']);
73 foreach ($selected_statii as $key => $status) {
74 if (!is_numeric($status)) {
75 $selected_statii[$key] = get_status_value(trim($status));
81 $selected_statii = $condition_data[
'status'];
89 <table style=
"width: auto" class=
"no-borders">
94 combo_box($prefix.
'[status]', $statii, TRUE, $selected_statii);
96 foreach ($selected_statii as $status) {
97 echo get_status_description($status).
'<br />';
121 if (!isset($_POST[$prefix]))
return Array();
124 'status' => implode(
',', $_POST[$prefix][
'status']),