grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026 */ function display_action_lines(SugarBean $focus, $field, $value, $view) { global $locale, $app_list_strings, $mod_strings; $html = ''; if (!is_file('cache/jsLanguage/AOW_Actions/' . $GLOBALS['current_language'] . '.js')) { require_once('include/language/jsLanguage.php'); jsLanguage::createModuleStringsCache('AOW_Actions', $GLOBALS['current_language']); } $html .= ''; if ($view == 'EditView') { $html .= ''; $aow_actions_list = array(); include_once('modules/AOW_Actions/actions.php'); $app_list_actions[''] = ''; foreach ($aow_actions_list as $action_value) { $action_name = 'action'.$action_value; if (file_exists('custom/modules/AOW_Actions/actions/'.$action_name.'.php')) { require_once('custom/modules/AOW_Actions/actions/'.$action_name.'.php'); } else { if (file_exists('modules/AOW_Actions/actions/'.$action_name.'.php')) { require_once('modules/AOW_Actions/actions/'.$action_name.'.php'); } else { continue; } } $action = new $action_name(); foreach ($action->loadJS() as $js_file) { $html .= ''; } $app_list_actions[$action_value] = translate('LBL_'.strtoupper($action_value), 'AOW_Actions'); } $html .= ''; $html .= "
"; $html .= "
"; $html .= ""; $html .= "
"; if (isset($focus->flow_module) && $focus->flow_module != '') { $html .= ""; if ($focus->id != '') { $sql = "SELECT id FROM aow_actions WHERE aow_workflow_id = '".$focus->id."' AND deleted = 0 ORDER BY action_order ASC"; $result = $focus->db->query($sql); while ($row = $focus->db->fetchByAssoc($result)) { $action_name = new AOW_Action(); $action_name->retrieve($row['id']); $action_item = json_encode($action_name->toArray()); $html .= ""; } } } } else { if ($view == 'DetailView') { $html .= ""; $sql = "SELECT id FROM aow_actions WHERE aow_workflow_id = '".$focus->id."' AND deleted = 0 ORDER BY action_order ASC"; $result = $focus->db->query($sql); while ($row = $focus->db->fetchByAssoc($result)) { $action_name = new AOW_Action(); $action_name->retrieve($row['id']); $html .= ""; } $html .= "
". $action_name->action_order ."".$action_name->name."". translate('LBL_'.strtoupper($action_name->action), 'AOW_Actions')."
"; } } return $html; }