function getCtrlSearchTypeOptions($fName, $selOpt, $not) { $options = parent::getCtrlSearchTypeOptions($fName, $selOpt, $not); if (strlen($fName)) { $fType = GetEditFormat($fName, $this->tName); } else { $fType = EDIT_FORMAT_TEXT_FIELD; } if ($fType == EDIT_FORMAT_DATE || $fType == EDIT_FORMAT_TIME) { $options .= "<option value=\"NOT Equals\" " . ($selOpt == "Equals" && $not ? "selected" : "") . ">" . mlang_message("SEARCH_NOT_EQUALS") . "</option>"; $options .= "<option value=\"NOT More than\" " . ($selOpt == "More than" && $not ? "selected" : "") . ">" . mlang_message("SEARCH_NOT_MORE_THAN") . "</option>"; $options .= "<option value=\"NOT Less than\" " . ($selOpt == "Less than" && $not ? "selected" : "") . ">" . mlang_message("SEARCH_NOT_LESS_THAN") . "</option>"; $options .= "<option value=\"NOT Between\" " . ($selOpt == "Between" && $not ? "selected" : "") . ">" . mlang_message("SEARCH_NOT_BETWEEN") . "</option>"; $options .= "<option value=\"NOT Empty\" " . ($selOpt == "Empty" && $not ? "selected" : "") . ">" . mlang_message("SEARCH_NOT_EMPTY") . "</option>"; } elseif ($fType == EDIT_FORMAT_LOOKUP_WIZARD) { if (Multiselect($fName, $this->tName)) { $options .= "<OPTION value=\"NOT Contains\" " . ($selOpt == "Contains" && $not ? "selected" : "") . ">" . mlang_message("SEARCH_NOT_CONTAINS") . "</option>"; } else { $options .= "<OPTION value=\"NOT Equals\" " . ($selOpt == "Equals" && $not ? "selected" : "") . ">" . mlang_message("SEARCH_NOT_EQUALS") . "</option>"; } } elseif ($fType == EDIT_FORMAT_TEXT_FIELD || $fType == EDIT_FORMAT_TEXT_AREA || $fType == EDIT_FORMAT_PASSWORD || $fType == EDIT_FORMAT_HIDDEN || $fType == EDIT_FORMAT_READONLY) { $options .= "<option value=\"NOT Contains\" " . ($selOpt == "Contains" && $not ? "selected" : "") . ">" . mlang_message("SEARCH_NOT_CONTAINS") . "</option>"; $options .= "<option value=\"NOT Equals\" " . ($selOpt == "Equals" && $not ? "selected" : "") . ">" . mlang_message("SEARCH_NOT_EQUALS") . "</option>"; $options .= "<option value=\"NOT Starts with\" " . ($selOpt == "Starts with" && $not ? "selected" : "") . ">" . mlang_message("SEARCH_NOT_STARTS_WITH") . "</option>"; $options .= "<option value=\"NOT More than\" " . ($selOpt == "More than" && $not ? "selected" : "") . ">" . mlang_message("SEARCH_NOT_MORE_THAN") . "</option>"; $options .= "<option value=\"NOT Less than\" " . ($selOpt == "Less than" && $not ? "selected" : "") . ">" . mlang_message("SEARCH_NOT_LESS_THAN") . "</option>"; $options .= "<option value=\"NOT Between\" " . ($selOpt == "Between" && $not ? "selected" : "") . ">" . mlang_message("SEARCH_NOT_BETWEEN") . "</option>"; $options .= "<option value=\"NOT Empty\" " . ($selOpt == "Empty" && $not ? "selected" : "") . ">" . mlang_message("SEARCH_NOT_EMPTY") . "</option>"; } else { $options .= "<option value=\"NOT Equals\" " . ($selOpt == "Equals" && $not ? "selected" : "") . ">" . mlang_message("SEARCH_NOT_EQUALS") . "</option>"; } return $options; }
function getCtrlParamsArr($fName, $recId, $fieldNum = 0, $value, $renderHidden = false, $isCached = true) { $control = parent::getCtrlParamsArr($fName, $recId, $fieldNum, $value, $renderHidden, $isCached); $control["params"]["additionalCtrlParams"]['skipDependencies'] = true; $control["params"]["additionalCtrlParams"]["style"] = isMobile() ? 'width: 35%;' : 'width: 115px;'; $ctrlsMap = array('controls' => array()); $ctrlsMap['controls']["skipDependencies"] = true; $ctrlsMap['controls']["style"] = isMobile() ? 'width: 35%;' : 'width: 115px;'; $this->pageObj->fillControlsMap($ctrlsMap, true); return $control; }
/** * Get controls attrs only for the Search panel * @param String fName The search field's name * @param Number recId The search field row's Id * @param Number fieldNum The search field control's index (0 for the first, 1 for the second) * @param String value The search control's value * @param String opt The search control's search option * @param Boolean renderHidden Indicator showing if the search control is visible * @param Boolean isCached Indicator showing if the search control is cached * @return Array */ function getCtrlParamsArr($fName, $recId, $fieldNum, $value, $opt, $renderHidden = false, $isCached = true) { $parameters = parent::buildCtrlParamsArr($fName, $recId, $fieldNum, $value, $opt, $renderHidden, $isCached); $control = array(); $parameters["additionalCtrlParams"]['skipDependencies'] = true; $parameters["additionalCtrlParams"]["searchPanelControl"] = true; $parameters["additionalCtrlParams"]["style"] = isMobile() ? 'width: 35%;' : 'width: 115px;'; $ctrlsMap = $this->getExtraControlMap(); $this->pageObj->fillControlsMap($ctrlsMap, true); AssignFunction($control, "xt_buildeditcontrol", $parameters); return $control; }
function getCtrlSearchTypeOptions($fName, $selOpt, $not, $flexible = false) { return parent::getCtrlSearchTypeOptions($fName, $selOpt, false, false); }
function getCtrlSearchTypeOptions($fName, $selOpt, $not, $flexible = false, $both = false) { $withNot = $both ? $not : false; return parent::getCtrlSearchTypeOptions($fName, $selOpt, $withNot, false, $both); }