Database error: ' . $e->getMessage() . '
';
+ }
+ }
+
+ if ($candidate):
+ ?>
+
+
+
+ Candidate:
+
+
+
+
+
+ Candidate Details
+Candidate ID:
+Run ID:
+Project ID:
+SMILES ID:
+Estimated Cost:
+Generated Time:
+Synthesis Approved:
+Status:
+
+
+
+
+
+ 0): ?> +
+
+
+ Candidate Assessments
+ Create Assessment ++ 0): ?> +
+
+
+
+
+
+ | Assessment ID | +Comments | +Assessor Name | +Date | +Status | +Actions | +
|---|---|---|---|---|---|
| + | + | + | + | + | + Edit + | +
No assessments found for this candidate.
+ +
+
+
+
+
+ 0): ?> +
+ Candidate Synthesis Plans
++ 0): ?> +
+
+
+
+
+
+ | Plan ID | +Actions | +
|---|---|
| + | + View + | +
No synthesis plans found for this candidate.
+ +
+
+
+
+
+
+ prepare(" + SELECT + sw.sample_id, + wp.Temperature, + wp.incubation_start, + wp.incubation_end, + sol.name as solution_name, + wsn.amount as solution_amount, + wsn.units as solution_units, + sv.name as solvent_name, + wsv.amount as solvent_amount, + wsv.units as solvent_units, + cat.name as catalyst_name, + wcat.amount as catalyst_amount, + wcat.units as catalyst_units, + sld.name as solid_name, + wsd.amount as solid_amount, + wsd.units as solid_units, + pxrd.character_id as pxrd_characterization_id + FROM + Candidate c + JOIN + Candidate_Synthesis_Plan csp ON c.candidate_id = csp.candidate_id + JOIN + Well_Plate wp ON csp.plan_id = wp.plan_id + JOIN + Sample_Well sw ON wp.well_plate_id = sw.well_plate_id + LEFT JOIN + Well_Solution wsn ON sw.sample_id = wsn.sample_id + LEFT JOIN + Preprep_vial sol ON wsn.vial_id = sol.vial_id + LEFT JOIN + Well_Solvents wsv ON sw.sample_id = wsv.sample_id + LEFT JOIN + Solvent sv ON wsv.solvent_id = sv.solvent_id + LEFT JOIN + Well_Catalysts wcat ON sw.sample_id = wcat.sample_id + LEFT JOIN + Catalyst cat ON wcat.catalyst_id = cat.catalyst_id + LEFT JOIN + Well_Solids wsd ON sw.sample_id = wsd.sample_id + LEFT JOIN + Solid sld ON wsd.solid_id = sld.solid_id + LEFT JOIN + PXRD_Characterization pxrd ON sw.sample_id = pxrd.sample_id + WHERE + c.candidate_id = ? + "); + $stmt_sample_wells->execute([$_GET['id']]); + $sample_wells = $stmt_sample_wells->fetchAll(PDO::FETCH_GROUP | PDO::FETCH_ASSOC); + + if ($sample_wells && count($sample_wells) > 0): + ?> +
+ Sample Wells
++ prepare(" + SELECT + sw.sample_id, + wp.Temperature, + wp.incubation_start, + wp.incubation_end, + sol.name as solution_name, + wsn.amount as solution_amount, + wsn.units as solution_units, + sv.name as solvent_name, + wsv.amount as solvent_amount, + wsv.units as solvent_units, + cat.name as catalyst_name, + wcat.amount as catalyst_amount, + wcat.units as catalyst_units, + sld.name as solid_name, + wsd.amount as solid_amount, + wsd.units as solid_units, + pxrd.character_id as pxrd_characterization_id + FROM + Candidate c + JOIN + Candidate_Synthesis_Plan csp ON c.candidate_id = csp.candidate_id + JOIN + Well_Plate wp ON csp.plan_id = wp.plan_id + JOIN + Sample_Well sw ON wp.well_plate_id = sw.well_plate_id + LEFT JOIN + Well_Solution wsn ON sw.sample_id = wsn.sample_id + LEFT JOIN + Preprep_vial sol ON wsn.vial_id = sol.vial_id + LEFT JOIN + Well_Solvents wsv ON sw.sample_id = wsv.sample_id + LEFT JOIN + Solvent sv ON wsv.solvent_id = sv.solvent_id + LEFT JOIN + Well_Catalysts wcat ON sw.sample_id = wcat.sample_id + LEFT JOIN + Catalyst cat ON wcat.catalyst_id = cat.catalyst_id + LEFT JOIN + Well_Solids wsd ON sw.sample_id = wsd.sample_id + LEFT JOIN + Solid sld ON wsd.solid_id = sld.solid_id + LEFT JOIN + PXRD_Characterization pxrd ON sw.sample_id = pxrd.sample_id + WHERE + c.candidate_id = ? + "); + $stmt_sample_wells->execute([$_GET['id']]); + $sample_wells = $stmt_sample_wells->fetchAll(PDO::FETCH_GROUP | PDO::FETCH_ASSOC); + + if ($sample_wells && count($sample_wells) > 0): + ?> +
+
+
+
+
+
+ | Sample ID | +Composition | +Incubation | +PXRD Characterization | +
|---|---|---|---|
| + |
+
|
+ + °C for + format('%h hours, %i minutes'); ?> + | ++ + View + + N/A + + | +
No sample wells found for this candidate.
+ +Candidate not found or ID not provided.
+
+