//Retreive the List View Table Header if ($viewid != '') { $url_string .= "&viewname=" . $viewid; } $listview_header = getListViewHeader($focus, "Memdays", $url_string, $sorder, $order_by, "", $oCustomView); $smarty->assign("LISTHEADER", $listview_header); $listview_header_search = getSearchListHeaderValues($focus, "Memdays", $url_string, $sorder, $order_by, "", $oCustomView); $smarty->assign("SEARCHLISTHEADER", $listview_header_search); $listview_entries = getListViewEntries($focus, "Memdays", $list_result, $navigation_array, "", "", "EditView", "Delete", $oCustomView); $smarty->assign("LISTENTITY", $listview_entries); $navigationOutput = getTableHeaderNavigation($navigation_array, $url_string, "Memdays", "index", $viewid); //setup alphabetical search field $alphabetical = AlphabeticalSearch($currentModule, 'index', 'memdayname', 'true', 'basic', "", "", "", "", $viewid, "", $alpbtselectedvalue); $fieldnames = getAdvSearchfields($module); $criteria = getcriteria_options(); $smarty->assign("CRITERIA", $criteria); $smarty->assign("FIELDNAMES", $fieldnames); $smarty->assign("ALPHABETICAL", $alphabetical); $smarty->assign("NAVIGATION", $navigationOutput); $smarty->assign("RECORD_COUNTS", $record_string); //changed by dingjianting on 2007-3-1 for security view scope $viewscope = get_viewscope($module); $smarty->assign("VIEWSCOPE_OPTION", getViewScopeFilterHTML($module, $viewscope)); $check_button = Button_Check($module); $smarty->assign("CHECK", $check_button); $smarty->assign("ISADMIN", $current_user->is_admin); if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] != '') { $smarty->display("ListViewEntries.tpl"); } else { $smarty->display("Memdays/ListView.tpl"); }
function getListViewSecurityParameter($module, $isSearchAll = false) { global $log; $log->debug("Entering getListViewSecurityParameter() method ..."); global $adb; global $current_user; if ($isSearchAll) { $viewscope = "all_to_me"; } else { $viewscope = get_viewscope($module); } $tabid = getTabid($module); $sec_query = ""; global $current_user; //changed by dingjiant on 2007-8-17 for global share problem poted by hangtang's xiaogao $condition = getReportSecurityParameter($module, $viewscope, false); if (!empty($condition)) { $sec_query = " and " . $condition; } $log->debug("Exiting getListViewSecurityParameter method ..."); return $sec_query; }