verifyPackage( 'contact' ); $gBitSystem->verifyPermission( 'p_contact_update' ); $gContent = new ContactPerson(); if( !empty( $_REQUEST['fCancel'] ) ) { KernelTools::bit_redirect( CONTACT_PKG_URL ); die; } if( !empty( $_REQUEST['fSaveContact'] ) ) { $_REQUEST['contact_types'] = [ 'P01' ]; if( $gContent->store( $_REQUEST ) ) { KernelTools::bit_redirect( CONTACT_PKG_URL.'edit.php?content_id='.$gContent->mContentId ); die; } } $gBitSmarty->assign( 'gContent', $gContent ); $gBitSmarty->assign( 'errors', $gContent->mErrors ); $gBitSystem->display( 'bitpackage:contact/add_person.tpl', KernelTools::tra( 'Add Person' ), [ 'display_mode' => 'edit' ] );