$single_selector_array = "href_add_" . $type_array['user_display_type'] . ""; $form->assign("SINGLE_SELECTOR_ARRAY_ADD", $single_selector_array); $form->parse("main.bottom_frame"); ++$radio_count; //end if this is a normal or time only option } //end foreach alert_meta_array } //end if rel_user_custom or not for user_type } //SET Previous Display Text require_once 'include/ListView/ProcessView.php'; $ProcessView = new ProcessView($target_workflow_object, $focus); $prev_display_text = $ProcessView->get_prev_text("AlertsCreateStep1", $focus->user_type); $form->assign("PREV_DISPLAY_TEXT", $prev_display_text); $adv_related_array = $ProcessView->get_adv_related("AlertsCreateStep1", $focus->user_type, "alert"); $form->assign("ADVANCED_SEARCH_PNG", SugarThemeRegistry::current()->getImage('advanced_search', ' border="0"', null, null, '.gif', $app_strings['LNK_ADVANCED_SEARCH'])); $form->assign("BASIC_SEARCH_PNG", SugarThemeRegistry::current()->getImage('basic_search', ' border="0"', null, null, '.gif', $app_strings['LNK_BASIC_SEARCH'])); if ($adv_related_array != "") { $form->assign("ADV_RELATED_BLOCK", $adv_related_array['block']); if (($focus->rel_module1_type == "all" || $focus->rel_module1_type == "") && ($focus->rel_module2_type == "all" || $focus->rel_module2_type == "")) { $form->assign("REL_SET_TYPE", "Basic"); } else { $form->assign("REL_SET_TYPE", "Advanced"); } $form->assign("SET_DISABLED", "No"); } else { $form->assign("REL_SET_TYPE", "Basic"); $form->assign("SET_DISABLED", "Yes"); } /////////////////End Items //////////////////////
foreach ($result as $value) { if (isset($value['FIELD_NAME'])) { foreach ($value as $aKey => $aVal) { $form->assign($aKey, $aVal); } $form->parse("main.lang_field"); ++$field_count; } } //rsmith $form->assign("TARGET_MODULE", $results["TEMP_MODULE_DIR"]); $form->assign("TOTAL_FIELD_COUNT", $field_count); //SET Previous Display Text $prev_display_text = $ProcessView->get_prev_text("ActionsCreateStep1", $focus->action_type); $form->assign("PREV_DISPLAY_TEXT", $prev_display_text); $adv_related_array = $ProcessView->get_adv_related("ActionsCreateStep1", $focus->action_type, "action"); $form->assign("ADVANCED_SEARCH_PNG", SugarThemeRegistry::current()->getImage('advanced_search', 'border="0"', null, null, '.gif', $app_strings['LNK_ADVANCED_SEARCH'])); $form->assign("BASIC_SEARCH_PNG", SugarThemeRegistry::current()->getImage('basic_search', 'border="0"', null, null, '.gif', $app_strings['LNK_BASIC_SEARCH'])); if ($adv_related_array != "") { $form->assign("ADV_RELATED_BLOCK", $adv_related_array['block']); if ($focus->rel_module_type == "all" || $focus->rel_module_type == "") { $form->assign("REL_SET_TYPE", "Basic"); } else { $form->assign("REL_SET_TYPE", "Advanced"); } $form->assign("SET_DISABLED", "No"); } else { $form->assign("REL_SET_TYPE", "Basic"); $form->assign("SET_DISABLED", "Yes"); } $form->parse("main");