echo get_select_options_with_id($all_users, isset($_SESSION['reassignRecords']['touser']) ? $_SESSION['reassignRecords']['touser'] : ''); ?> </select> <?php ?> <BR> <BR> <?php echo $mod_strings_users['LBL_REASS_TEAM_TO']; ?> <BR> <?php $teamSetField = new SugarFieldTeamset('Teamset'); $lead = BeanFactory::getBean('Leads'); $teamSetField->initClassicView($lead->field_defs, 'EditView'); $sqs_objects = $teamSetField->getClassicViewQS(); $json = getJSONobj(); $quicksearch_js = '<script type="text/javascript" language="javascript">sqs_objects = ' . $json->encode($sqs_objects) . '</script>'; echo $teamSetField->getClassicView(); ?> <?php ?> <BR> <?php echo $mod_strings_users['LBL_REASS_MOD_REASSIGN']; ?> <BR> <select size="6" name='modules[]' multiple="true" id='modulemultiselect' onchange="updateDivDisplay(this);"> <?php
} $xtpl->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']); $xtpl->assign("JAVASCRIPT", get_set_focus_js()); $xtpl->assign("ID", $focus->id); $xtpl->assign('NAME', $focus->name); $xtpl->assign('DESCRIPTION', $focus->description); $xtpl->assign('CUSTOM_QUERY', $focus->custom_query); if ($focus->query_locked == 'on' or $focus->query_locked == '1') { $xtpl->assign("QUERY_LOCKED", "checked"); $xtpl->assign("QUERY_DISABLED", "disabled"); } if (empty($focus->id) && !isset($_REQUEST['isDuplicate'])) { $xtpl->assign("TEAM_OPTIONS", get_select_options_with_id(get_team_array(), $current_user->default_team)); } else { $xtpl->assign("TEAM_OPTIONS", get_select_options_with_id(get_team_array(), $focus->team_id)); } // adding custom fields: require_once 'modules/DynamicFields/templates/Files/EditView.php'; require_once 'include/SugarFields/Fields/Teamset/SugarFieldTeamset.php'; $teamSetField = new SugarFieldTeamset('Teamset'); $teamSetField->initClassicView($focus->field_defs); $code = $teamSetField->getClassicView($focus->field_defs, 'EditView'); $xtpl->assign("TEAM_SET_FIELD", $code); $xtpl->parse("main"); $xtpl->out("main"); $javascript = new javascript(); $javascript->setFormName('EditView'); $javascript->setSugarBean($focus); $javascript->addAllFields(''); echo $javascript->getScript(); }
} if (isset($_REQUEST['return_id'])) { $ss->assign("RETURN_ID", $_REQUEST['return_id']); } // handle Create $module then Cancel if (empty($_REQUEST['return_id'])) { $ss->assign("RETURN_ACTION", 'index'); } $ss->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']); require_once 'include/QuickSearchDefaults.php'; $qsd = QuickSearchDefaults::getQuickSearchDefaults(); $qsd->setFormName('wizform'); $sqs_objects = array('parent_name' => $qsd->getQSParent(), 'assigned_user_name' => $qsd->getQSUser(), 'test_name' => getProspectListQSObjects('prospect_list_type_test', 'test_name', 'wiz_step3_test_name_id'), 'unsubscription_name' => getProspectListQSObjects('prospect_list_type_exempt', 'unsubscription_name', 'wiz_step3_unsubscription_name_id'), 'subscription_name' => getProspectListQSObjects('prospect_list_type_default', 'subscription_name', 'wiz_step3_subscription_name_id')); require_once 'include/SugarFields/Fields/Teamset/SugarFieldTeamset.php'; $teamSetField = new SugarFieldTeamset('Teamset'); $teamSetField->initClassicView($focus->field_defs, 'wizform'); $sqs_objects = array_merge($sqs_objects, $teamSetField->getClassicViewQS()); $quicksearch_js = '<script type="text/javascript" language="javascript">sqs_objects = ' . $json->encode($sqs_objects) . '</script>'; $ss->assign("JAVASCRIPT", $quicksearch_js); //set the campaign type based on wizardtype value from request object $campaign_type = 'newsletter'; if (isset($_REQUEST['wizardtype']) && $_REQUEST['wizardtype'] == 1 || $focus->campaign_type == 'NewsLetter') { $campaign_type = 'newsletter'; $ss->assign("CAMPAIGN_DIAGNOSTIC_LINK", diagnose()); } elseif (isset($_REQUEST['wizardtype']) && $_REQUEST['wizardtype'] == 2 || $focus->campaign_type == 'Email') { $campaign_type = 'email'; $ss->assign("CAMPAIGN_DIAGNOSTIC_LINK", diagnose()); } else { $campaign_type = 'general'; } //******** CAMPAIGN HEADER AND BUDGET UI DIV Stuff (both divs) **********/
$col_arr[0] = $cols_name; $col_arr[1] = $field_def['name']; } if (!in_array($cols_name, $fields)) { array_push($fields, $col_arr); } $count++; } $xtpl->assign("WEB_POST_URL", $web_post_url); //$xtpl->assign("LEAD_SELECT_FIELDS",'MOD.LBL_SELECT_LEAD_FIELDS'); require_once 'include/QuickSearchDefaults.php'; $qsd = QuickSearchDefaults::getQuickSearchDefaults(); $sqs_objects = array('account_name' => $qsd->getQSParent(), 'assigned_user_name' => $qsd->getQSUser(), 'campaign_name' => $qsd->getQSCampaigns(), 'team_name' => $qsd->getQSTeam()); require_once 'include/SugarFields/Fields/Teamset/SugarFieldTeamset.php'; $teamSetField = new SugarFieldTeamset('Teamset'); $teamSetField->initClassicView($lead->field_defs, 'WebToLeadCreation'); $sqs_objects = array_merge($sqs_objects, $teamSetField->getClassicViewQS()); $quicksearch_js = '<script type="text/javascript" language="javascript">sqs_objects = ' . $json->encode($sqs_objects) . '</script>'; $xtpl->assign("JAVASCRIPT", $quicksearch_js); if (empty($lead->id) && !isset($_REQUEST['isDuplicate'])) { $xtpl->assign("TEAM_OPTIONS", get_select_options_with_id(get_team_array(), $current_user->default_team)); $xtpl->assign("TEAM_NAME", $current_user->default_team_name); $xtpl->assign("TEAM_ID", $current_user->default_team); } else { $xtpl->assign("TEAM_OPTIONS", get_select_options_with_id(get_team_array(), $lead->team_id)); $xtpl->assign("TEAM_NAME", $lead->assigned_name); $xtpl->assign("TEAM_ID", $lead->team_id); } $code = $teamSetField->getClassicView(); $xtpl->assign("TEAM_SET_FIELD", $code); $xtpl->parse("main.pro");
$teamSetField->initClassicView($GLOBALS['dictionary']['SavedReport']['fields'], 'ReportsWizardForm'); $team_html = $teamSetField->getClassicView(); $sugar_smarty->assign("TEAM_HTML", $team_html); $sugar_smarty->assign("USER_HTML", $assigned_user_html); $sugar_smarty->assign("report_offset", $args['reporter']->report_offset); $sugar_smarty->assign("chart_description", htmlentities($args['reporter']->chart_description, ENT_QUOTES, 'UTF-8')); setSortByInfo($args['reporter'], $sugar_smarty); echo $sugar_smarty->fetch('modules/Reports/ReportsWizard.tpl'); } else { $assigned_user_html_def = array('parent_id' => 'assigned_user_id', 'parent_id_value' => $current_user->id, 'parent_name' => 'assigned_user_name', 'parent_name_value' => $current_user->user_name, 'real_parent_name' => 'user_name', 'module' => 'Users'); $assigned_user_html = get_select_related_html($assigned_user_html_def); $sugar_smarty->assign("do_round", 1); require_once 'include/SugarFields/Fields/Teamset/SugarFieldTeamset.php'; $teamSetField = new SugarFieldTeamset('Teamset'); $field_defs = VardefManager::loadVardef('Reports', 'SavedReport'); $teamSetField->initClassicView($GLOBALS['dictionary']['SavedReport']['fields'], 'ReportsWizardForm'); $team_html = $teamSetField->getClassicView(); $sugar_smarty->assign("TEAM_HTML", $team_html); $sugar_smarty->assign("USER_HTML", $assigned_user_html); $sugar_smarty->assign("report_offset", $args['reporter']->report_offset); $sugar_smarty->assign("chart_description", htmlentities($args['reporter']->chart_description, ENT_QUOTES, 'UTF-8')); setSortByInfo($args['reporter'], $sugar_smarty); echo $sugar_smarty->fetch('modules/Reports/ReportsWizard.tpl'); } } } } function setSortByInfo(&$reporter, &$smarty) { $sort_by = ''; $sort_dir = '';