Пример #1
0
     MarkAnalysis($id, $analysisids, 'bad');
     DisplayAnalysisList($id, $numperpage, $pagenum);
     break;
 case 'markgood':
     MarkAnalysis($id, $analysisids, 'good');
     DisplayAnalysisList($id, $numperpage, $pagenum);
     break;
 case 'rechecksuccess':
     RecheckSuccess($id, $analysisids);
     DisplayAnalysisList($id, $numperpage, $pagenum);
     break;
 case 'viewlogs':
     DisplayLogs($id, $analysisid);
     break;
 case 'viewfiles':
     DisplayFiles($id, $analysisid, $fileviewtype);
     break;
 case 'changeowner':
     ChangeOwner($id, $newuserid);
     DisplayPipelineTree($viewname, $viewlevel, $viewowner, $viewstatus, $viewenabled, $viewall);
     break;
 case 'delete':
     DeletePipeline($id);
     DisplayPipelineTree($viewname, $viewlevel, $viewowner, $viewstatus, $viewenabled, $viewall);
     break;
 case 'copy':
     CopyPipeline($id, $newname);
     DisplayPipelineTree($viewname, $viewlevel, $viewowner, $viewstatus, $viewenabled, $viewall);
     break;
 case 'reset':
     ResetPipeline($id);
Пример #2
0
	/* ----- setup variables ----- */
	$action = GetVariable("action");
	$id = GetVariable("id");
	$analysisid = GetVariable("analysisid");
	$studyid = GetVariable("studyid");
	$fileviewtype = GetVariable("fileviewtype");

?>
<body>
<div style="font-size:10pt">
<?	
	/* determine action */
	switch ($action) {
		case 'viewlogs': DisplayLogs($id, $analysisid); break;
		case 'viewfiles': DisplayFiles($id, $analysisid, $fileviewtype); break;
		case 'viewresults': DisplayResults($analysisid, $studyid); break;
		default:
	}
?></div><?
	/* ------------------------------------ functions ------------------------------------ */

	
	/* -------------------------------------------- */
	/* ------- DisplayLogs ------------------------ */
	/* -------------------------------------------- */
	function DisplayLogs($id, $analysisid) {

		$sqlstring = "select * from analysis a left join studies b on a.study_id = b.study_id left join enrollment c on b.enrollment_id = c.enrollment_id left join subjects d on c.subject_id = d.subject_id left join pipelines e on e.pipeline_id = a.pipeline_id where a.analysis_id = $analysisid";
		//echo $sqlstring;
		$result = MySQLiQuery($sqlstring,__FILE__,__LINE__);