芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/clients/canaldegap.fr/modules/FormBuilder/action.admin_add_edit_field.php
More info at http://dev.cmsmadesimple.org/projects/formbuilder A Module for CMS Made Simple, Copyright (c) 2006 by Ted Kulp (wishy@cmsmadesimple.org) This project's homepage is: http://www.cmsmadesimple.org */ if (!isset($gCms)) exit; if (! $this->CheckAccess()) exit; $this->initialize(); $aeform = new fbForm($this, $params,true); $aefield = $aeform->NewField($params); if (isset($params['fbrp_aef_upd']) || (isset($params['fbrp_aef_add']) && $aefield->GetFieldType() != '')) { // save the field. $this->DoAction('admin_store_field', $id, $params); return; } elseif (isset($params['fbrp_aef_add'])) { // should have got a field type definition, so give rest of the field options // reserve this space for special ops :) } elseif (isset($params['fbrp_aef_optadd'])) { // call the field's option add method, with all available parameters $aefield->DoOptionAdd($params); } elseif (isset($params['fbrp_aef_optdel'])) { // call the field's option delete method, with all available parameters $aefield->DoOptionDelete($params); } else { // new field, or implicit aef_add. // again, reserving the space for future endeavors } echo $aeform->AddEditField($id, $aefield, (isset($params['fbrp_dispose_only'])?$params['fbrp_dispose_only']:0), $returnid, isset($params['fbrp_message'])?$params['fbrp_message']:''); ?>