18 require_once SQ_CORE_PACKAGE_PATH.
'/system/cron/cron_job/cron_job_edit_fns.inc';
42 parent::__construct();
63 echo translate(
'set_status_to');
66 foreach ($exclude_status as $status) {
67 unset($descs[$status]);
71 combo_box($prefix.
'_status', $descs, FALSE, $asset->
attr(
'status'), NULL, $form_extra_elements);
73 echo $descs[$asset->
attr(
'status')];
76 echo
' '.strtolower(translate(
'at')).
' ';
77 $this->
_paintWhenBox($asset, $o, $prefix, $when, $form_extra_elements);
80 check_box($prefix.
'_change_status_all_children',
'1', $cascade);
81 echo translate(
'cascade_status_change');
100 if (!empty($_POST[$prefix.
'_status']) && $asset->
setAttrValue(
'status', $_POST[$prefix.
'_status'])) {
101 $dependants_only = (isset($_POST[$prefix.
'_change_status_all_children']) && $_POST[$prefix.
'_change_status_all_children']) ? FALSE : TRUE;
105 trigger_localised_error(
'CRON0046', E_USER_NOTICE);