blob: 56ba8ad428a10f45746457ea50ebad76c9b63239 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
/**
* @package contact
*/
require_once '../kernel/includes/setup_inc.php';
use Bitweaver\Contact\ContactPerson;
use Bitweaver\KernelTools;
$gBitSystem->verifyPackage( 'contact' );
$gBitSystem->verifyPermission( 'p_contact_view' );
$gContent = new ContactPerson();
$gContent->invokeServices( 'content_list_function', $_REQUEST );
$gContent->mTypes->processRequestHash( $_REQUEST, $_SESSION['contact'] );
$listHash = $_REQUEST;
$listcontacts = $gContent->getList( $listHash );
if( $listHash['listInfo']['count'] == 1 ) {
KernelTools::bit_redirect( CONTACT_PKG_URL . "display_contact.php?content_id=" . $listcontacts[0]['content_id'] );
}
$gBitSmarty->assign( 'listcontacts', $listcontacts );
$gBitSmarty->assign( 'listInfo', $listHash['listInfo'] );
$gBitSmarty->assign( 'listTitle', KernelTools::tra( 'People' ) );
$gBitSystem->setBrowserTitle( KernelTools::tra( 'People' ) );
$gBitSystem->display( 'bitpackage:contact/list.tpl', NULL, [ 'display_mode' => 'list' ] );
|