summaryrefslogtreecommitdiff
path: root/edit_xref_type.php
blob: 38da5f5035d5af0ea2277c3ade67706a20741a5a (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
 */
require_once( '../kernel/setup_inc.php' );

$gBitSystem->verifyPackage( 'contact' );
$gBitSystem->verifyPermission( 'p_contact_update' );

include_once( CONTACT_PKG_PATH.'Contact.php' );
$gContent = new Contact();

$gBitSmarty->assign_by_ref( '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, array( 'display_mode' => 'edit' ));
?>