createNewBlock(); header('Content-Type:text/javascript'); echo '{id:' . $iNewID . '}'; } function createNewItem() { $oFields = new BxDolPFM( 1 ); $iNewID = $oFields -> createNewField(); bx_import('BxDolInstallerUtils'); $oInstallerUtils = new BxDolInstallerUtils(); $oInstallerUtils->updateProfileFieldsHtml(); header('Content-Type:text/javascript'); echo '{id:' . $iNewID . '}'; } function genAreaJSON( $iAreaID ) { $oFields = new BxDolPFM( $iAreaID ); header( 'Content-Type:text/javascript' ); echo $oFields -> genJSON(); } function savePositions( $iAreaID ) { $oFields = new BxDolPFM( $iAreaID ); header( 'Content-Type:text/javascript' ); $oFields -> savePositions( $_POST ); $oCacher = new BxDolPFMCacher(); $oCacher -> createCache(); } function saveItem( $iAreaID, $aData ) { $oFields = new BxDolPFM( $iAreaID ); $oFields -> saveItem( $_POST ); bx_import('BxDolInstallerUtils'); $oInstallerUtils = new BxDolInstallerUtils(); $oInstallerUtils->updateProfileFieldsHtml(); $oCacher = new BxDolPFMCacher(); $oCacher -> createCache(); } function deleteItem( $iItemID, $iAreaID ) { $oFields = new BxDolPFM( $iAreaID ); $oFields -> deleteItem( $iItemID ); bx_import('BxDolInstallerUtils'); $oInstallerUtils = new BxDolInstallerUtils(); $oInstallerUtils->updateProfileFieldsHtml(); $oCacher = new BxDolPFMCacher(); $oCacher -> createCache(); } function showEditForm( $iItemID, $iAreaID ) { $oFields = new BxDolPFM( $iAreaID ); ob_start(); ?>
genFieldEditForm( $iItemID ); ?>
parseHtmlByName('design_box_content.html', array('content' => ob_get_clean())); echo PopupBox('pf_edit_popup', _t('_adm_fields_box_cpt_field'), $sResult); } ?>