} if ($_REQUEST['action'] == 'move_down') { move_field_down(1, $_REQUEST['field_id']); } if ($NEW_FIELD == 'NO') { display_ad_form(1, $_REQUEST['mode'], ''); } ?> </td> <td valign="top"> <?php if ($_REQUEST['mode'] == 'EDIT' && $_REQUEST['field_id'] != '' || $NEW_FIELD == 'YES') { field_form($NEW_FIELD, $prams, 1); } ?> </td> </tr> </table> <?php if ($_REQUEST['mode'] == 'EDIT') { ?> <IMG SRC="reserved.gif" WIDTH="13" HEIGHT="13" BORDER="0" ALT=""> - This field is reserved by the system, and cannot be deleted. You can however, change the field type / field name, and most other parameters. <?php
$fid = intval($_POST['fid']); redirect_result(fields_delete($fid)); exit; } xoops_cp_header(); include "mymenu.php"; switch ($op) { case 'fields': default: $fid = isset($_GET['fid']) ? $_GET['fid'] : 0; $mediaschema = new MediaSchema(); if (!$fid) { fields_list(); echo "<hr/>"; } field_form($fid); break; case 'delfield': delfield_form($_GET['fid']); break; } xoops_cp_footer(); function redirect_result($ret, $dest = 'fields.php') { if ($ret) { redirect_header($dest, 1, _AM_DBUPDATED); } else { redirect_header($dest, 3, _AM_DBUPDATE_FAIL); } exit; }