$unit = $filedOptionOne[0]->getRangeUnit(); $prompt = generatorFieldEdintFOrm($name, $tips, $type, $count, $from, $to, $unit, $foid); break; case 'delete_field_confirm': $filedOption->delete($foid); $prompt = success('删除成功'); break; case 'edit_field_option': $name = $_POST['field_name_edit']; $type = $_POST['filed_type_edit']; $tips = $_POST['filed_tips_edit']; $selectorCount = $_POST['filed_count_edit']; $rangeFrom = $_POST['filed_from_edit']; $rangeTo = $_POST['filed_to_edit']; $rangeUnit = $_POST['filed_unit_edit']; $filedOption->modify($foid, $name, $type, $tips, $selectorCount, $rangeFrom, $rangeTo, $rangeUnit); $prompt = success('修改成功,请点击左侧菜单栏重新载入(勿按F5刷新)'); default: break; } } if (!empty($_GET['action'])) { switch ($_GET['action']) { case 'add_field_option': $name = $_POST['field_name_add']; $tips = $_POST['filed_tips_add']; $type = $_POST['filed_type_add']; $selectorCount = $_POST['filed_count_add']; $rangeFrom = $_POST['filed_from_add']; $rangeTo = $_POST['filed_to_add']; $rangeUnit = $_POST['filed_unit_add'];