Edit OS'; $posts = Mirror::get_one_os($_POST['os_id']); form_start(); include_once(INC.'/forms/os.php'); form_hidden('doit','1'); form_hidden('action','edit'); form_hidden('os_id',$_POST['os_id']); form_submit('submit','','button1','Update'); form_end(); require_once(FOOTER); exit; } break; case 'delete': if (!record_exists('mirror_locations','os_id',$_POST['os_id'])&&Mirror::delete_os($_POST['os_id'])) { set_msg('OS deleted successfully.'); } else { set_error('OS cannot be deleted because it is being used by a file location.'); } break; } } else { set_error('You must select a os to continue.'); } } $title = 'Operating Systems'; $nav = INC.'/admin_nav.php'; require_once(HEADER); echo '

Operating Systems

'; show_error(); show_msg(); $oss = Mirror::get_oss(); $_GET['sort']=(!empty($_GET['sort']))?$_GET['sort']:'os_name'; $_GET['order']=(!empty($_GET['order']))?$_GET['order']:'ASC'; $oss=array_order_by($oss,$_GET['sort'],$_GET['order']); $headers = array( 'os_id'=>'', 'os_name'=>'OS Name', 'os_priority'=>'Priority' ); $actions = array( 'edit'=>'Edit', 'delete'=>'Delete' ); form_start(); show_list($oss,$headers,'radio',$actions); form_end(); echo '

Add a OS

'; form_start(); include_once(INC.'/forms/os.php'); form_submit('add-submit','','button1','Add OS'); form_end(); require_once(FOOTER); ?>