本文整理汇总了PHP中Accounts::getSortView方法的典型用法代码示例。如果您正苦于以下问题:PHP Accounts::getSortView方法的具体用法?PHP Accounts::getSortView怎么用?PHP Accounts::getSortView使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Accounts
的用法示例。
在下文中一共展示了Accounts::getSortView方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getListQuery
$smarty->assign("APP", $app_strings);
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("CUSTOMVIEW_OPTION", $customviewcombo_html);
$smarty->assign("VIEWID", $viewid);
$smarty->assign("BUTTONS", $other_text);
$smarty->assign("MODULE", $currentModule);
$smarty->assign("SINGLE_MOD", 'Account');
//Retreive the list from Database
//<<<<<<<<<customview>>>>>>>>>
if ($viewid != "0") {
$listquery = getListQuery("Accounts");
$query = $oCustomView->getModifiedCvListQuery($viewid, $listquery, "Accounts");
} else {
$query = getListQuery("Accounts");
}
$sortview = $focus->getSortView('Accounts');
$smarty->assign("sortview", $sortview);
//<<<<<<<<customview>>>>>>>>>
if (isset($where) && $where != '') {
$query .= ' and ' . $where;
$_SESSION['export_where'] = $where;
} else {
unset($_SESSION['export_where']);
}
$view_script = "<script language='javascript'>\n\tfunction set_selected()\n\t{\n\t\tlen=document.massdelete.viewname.length;\n\t\tfor(i=0;i<len;i++)\n\t\t{\n\t\t\tif(document.massdelete.viewname[i].value == '{$viewid}')\n\t\t\t\tdocument.massdelete.viewname[i].selected = true;\n\t\t}\n\t}\n\tset_selected();\n\t</script>";
//echo $query;
//Retreiving the no of rows
$count_result = $adb->query(mkCountQuery($query));
$noofrows = $adb->query_result($count_result, 0, "count");
//Storing Listview session object
if ($_SESSION['lvs'][$currentModule]) {