blob: 4a290d71843e0397c4756f3a847feb4160e8b978 (
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
/**
* @version $Header$
* @package contact
* @subpackage functions
*/
/**
* Initialization
*/
use Bitweaver\Contact\Contact;
require_once '../kernel/includes/setup_inc.php';
$gBitSystem->verifyPackage( 'contact' );
$gBitSystem->verifyPermission( 'p_contact_update' );
$gContent = new Contact();
$gBitSmarty->assign( 'xref_type_info', $gContent->mInfo);
if( isset( $_REQUEST["fSubmitSaveXrefType"] ) ) {
$gContent->storeXrefType( $_REQUEST );
$gContent->loadXrefType();
header( "Location: " . CONTACT_PKG_URL . "admin/admin_xref_type.php" );
} elseif( isset( $_REQUEST['fRemoveXref'] ) ) {
$gContent->expungeXrefType();
}
$gBitSystem->display( 'bitpackage:contact/edit_xref_type.tpl' , NULL, [ 'display_mode' => 'edit' ]);
|