function SetupPopup() { global $conn, $ReportLanguage; if ($this->DrillDown) { return; } // Process post back form if (ewr_IsHttpPost()) { $sName = @$_POST["popup"]; // Get popup form name if ($sName != "") { $cntValues = is_array(@$_POST["sel_{$sName}"]) ? count($_POST["sel_{$sName}"]) : 0; if ($cntValues > 0) { $arValues = ewr_StripSlashes($_POST["sel_{$sName}"]); if (trim($arValues[0]) == "") { // Select all $arValues = EWR_INIT_VALUE; } $this->PopupName = $sName; if (ewr_IsAdvancedFilterValue($arValues) || $arValues == EWR_INIT_VALUE) { $this->PopupValue = $arValues; } if (!ewr_MatchedArray($arValues, $_SESSION["sel_{$sName}"])) { if ($this->HasSessionFilterValues($sName)) { $this->ClearExtFilter = $sName; } // Clear extended filter for this field } $_SESSION["sel_{$sName}"] = $arValues; $_SESSION["rf_{$sName}"] = ewr_StripSlashes(@$_POST["rf_{$sName}"]); $_SESSION["rt_{$sName}"] = ewr_StripSlashes(@$_POST["rt_{$sName}"]); $this->ResetPager(); } } // Get 'reset' command } elseif (@$_GET["cmd"] != "") { $sCmd = $_GET["cmd"]; if (strtolower($sCmd) == "reset") { $this->ResetPager(); } } // Load selection criteria to array }
function CheckFilter() { // Check invid popup filter if (!ewr_MatchedArray($this->invid->DefaultSelectionList, $this->invid->SelectionList)) { return TRUE; } return FALSE; }
function CheckFilter() { // Check timeta text filter if ($this->TextFilterApplied($this->timeta)) { return TRUE; } // Check timeta popup filter if (!ewr_MatchedArray($this->timeta->DefaultSelectionList, $this->timeta->SelectionList)) { return TRUE; } return FALSE; }