예제 #1
0
파일: pipelines.php 프로젝트: pmolfese/nidb
     DisplayPipeline($id, $version);
     break;
 case 'addform':
     DisplayPipelineForm("add", "");
     break;
 case 'updatepipelinedef':
     UpdatePipelineDef($id, $commandlist, $supplementcommandlist, $steporder, $dd_enabled, $dd_order, $dd_protocol, $dd_modality, $dd_datalevel, $dd_studyassoc, $dd_dataformat, $dd_imagetype, $dd_gzip, $dd_location, $dd_seriescriteria, $dd_numboldreps, $dd_behformat, $dd_behdir, $dd_useseriesdirs, $dd_optional, $dd_preserveseries, $dd_usephasedir);
     DisplayPipelineForm("edit", $id);
     break;
 case 'update':
     UpdatePipeline($id, $pipelinetitle, $pipelinedesc, $pipelinegroup, $pipelinenumproc, $pipelinesubmithost, $pipelinequeue, $pipelineremovedata, $pipelineresultsscript, $pipelinedirectory, $pipelineusetmpdir, $pipelinetmpdir, $pipelinenotes, $username, $completefiles, $dependency, $deplevel, $depdir, $deplinktype, $groupid, $dynamicgroupid, $level, $ishidden);
     DisplayPipelineForm("edit", $id);
     //DisplayPipelineTree($viewname, $viewlevel, $viewowner, $viewstatus, $viewenabled, $viewall);
     break;
 case 'add':
     AddPipeline($pipelinetitle, $pipelinedesc, $pipelinegroup, $pipelinenumproc, $pipelinesubmithost, $pipelinequeue, $pipelineremovedata, $pipelinedirectory, $pipelineusetmpdir, $pipelinetmpdir, $pipelinenotes, $username, $completefiles, $dependency, $deplevel, $depdir, $deplinktype, $groupid, $dynamicgroupid, $level, $ishidden);
     DisplayPipelineForm("edit", $id);
     //DisplayPipelineTree($viewname, $viewlevel, $viewowner, $viewstatus, $viewenabled);
     break;
 case 'viewanalyses':
     DisplayAnalysisList($id, $numperpage, $pagenum);
     break;
 case 'viewfailedanalyses':
     DisplayFailedAnalysisList($id, $numperpage, $pagenum);
     break;
 case 'deleteanalyses':
     DeleteAnalyses($id, $analysisids);
     DisplayAnalysisList($id, $numperpage, $pagenum);
     break;
 case 'copyanalyses':
     CopyAnalyses($id, $analysisids, $destination);
예제 #2
0
	$admin = GetVariable("admin");
	
	
	/* determine action */
	if ($action == "editform") {
		DisplayPipelineForm("edit", $id);
	}
	elseif ($action == "addform") {
		DisplayPipelineForm("add", "");
	}
	elseif ($action == "update") {
		UpdatePipeline($id, $pipelinename, $pipelinedesc, $admin);
		DisplayPipelineList();
	}
	elseif ($action == "add") {
		AddPipeline($pipelinename, $pipelinedesc, $admin);
		DisplayPipelineList();
	}
	elseif ($action == "delete") {
		DeletePipeline($id);
	}
	else {
		DisplayPipelineList();
	}
	
	
	/* ------------------------------------ functions ------------------------------------ */


	/* -------------------------------------------- */
	/* ------- UpdatePipeline ---------------------- */