sugarbean = $sugar; } /** * get the massupdate form * @param bool boolean need to execute the massupdate form or not * @param multi_select_popup booleanif it is a multi-select value */ function getDisplayMassUpdateForm($bool, $multi_select_popup = false) { require_once('include/formbase.php'); if(!$multi_select_popup) $form = '
\n"; return $form; } /** * returns the mass update's html form header * @param multi_select_popup boolean if it is a mult-select or not */ function getMassUpdateFormHeader($multi_select_popup = false) { global $sugar_version; global $sugar_config; global $current_user; unset($_REQUEST['current_query_by_page']); unset($_REQUEST[session_name()]); unset($_REQUEST['PHPSESSID']); $query = base64_encode(serialize($_REQUEST)); $bean = loadBean($_REQUEST['module']); $order_by_name = $bean->module_dir.'2_'.strtoupper($bean->object_name).'_ORDER_BY' ; $lvso = isset($_REQUEST['lvso'])?$_REQUEST['lvso']:""; $request_order_by_name = isset($_REQUEST[$order_by_name])?$_REQUEST[$order_by_name]:""; $action = isset($_REQUEST['action'])?$_REQUEST['action']:""; $module = isset($_REQUEST['module'])?$_REQUEST['module']:""; if($multi_select_popup) $tempString = ''; else $tempString = "