本文整理匯總了PHP中CustomView::getStdFilterCriteria方法的典型用法代碼示例。如果您正苦於以下問題:PHP CustomView::getStdFilterCriteria方法的具體用法?PHP CustomView::getStdFilterCriteria怎麽用?PHP CustomView::getStdFilterCriteria使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CustomView
的用法示例。
在下文中一共展示了CustomView::getStdFilterCriteria方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getStdFilterHTML
if ($customviewdtls["setdefault"] == 1) {
$smarty->assign("CHECKED", "checked");
}
if ($customviewdtls["setmetrics"] == 1) {
$smarty->assign("MCHECKED", "checked");
}
$status = $customviewdtls["status"];
$smarty->assign("STATUS", $status);
for ($i = 1; $i < 10; $i++) {
$choosecolslist = getByModule_ColumnsList($cv_module, $modulecollist, $selectedcolumnslist[$i - 1]);
$smarty->assign("CHOOSECOLUMN" . $i, $choosecolslist);
}
$stdfilterlist = $oCustomView->getStdFilterByCvid($recordid);
$log->info('CustomView :: Successfully got Standard Filter for the Viewid' . $recordid);
$stdfilterlist["stdfilter"] = $stdfilterlist["stdfilter"] != "" ? $stdfilterlist["stdfilter"] : "custom";
$stdfilterhtml = $oCustomView->getStdFilterCriteria($stdfilterlist["stdfilter"]);
$stdfiltercolhtml = getStdFilterHTML($cv_module, $stdfilterlist["columnname"]);
$stdfilterjs = $oCustomView->getCriteriaJS();
if (isset($stdfilterlist["startdate"]) && isset($stdfilterlist["enddate"])) {
$smarty->assign("STARTDATE", DateTimeField::convertToUserFormat($stdfilterlist["startdate"]));
$smarty->assign("ENDDATE", DateTimeField::convertToUserFormat($stdfilterlist["enddate"]));
} else {
$smarty->assign("STARTDATE", $stdfilterlist["startdate"]);
$smarty->assign("ENDDATE", $stdfilterlist["enddate"]);
}
$smarty->assign("STDFILTERCOLUMNS", $stdfiltercolhtml);
$smarty->assign("STDCOLUMNSCOUNT", count($stdfiltercolhtml));
$smarty->assign("STDFILTERCRITERIA", $stdfilterhtml);
$smarty->assign("STDFILTER_JAVASCRIPT", $stdfilterjs);
$advfilterlist = $oCustomView->getAdvFilterByCvid($recordid);
$advfilterhtml = getAdvCriteriaHTML();