isPackageActive('contact', TRUE); // Now check permissions to access this page $gBitSystem->verifyPermission('p_read_contact'); $contacts = new Contact(); if ( empty( $_REQUEST["sort_mode"] ) ) { $sort_mode = 'organisation_asc'; } // Get a list of Contacts $contacts->getList( $_REQUEST ); $smarty->assign('listInfo', $_REQUEST['listInfo']); $smarty->assign('list', $contacts); // Display the template $gBitSystem->display( 'bitpackage:contact/list_contacts.tpl', NULL, [ 'display_mode' => 'list' ]);