# include "../includes/db_lib.php"; include "../includes/page_elems.php"; $page_elems = new PageElems(); $lab_config_id = $_REQUEST['lid']; $test_type_id = $_REQUEST['ttype']; include $LOCAL_PATH . "langdata_" . $lab_config_id . "/remarks.php"; $saved_id = $_SESSION['lab_config_id']; $lab_config = LabConfig::getById($lab_config_id); $test_type = TestType::getById($test_type_id); # Fetch all measures for this test $measure_list = $test_type->getMeasures(); # For each measure, fetch existing remarks data from remarks.XML $measure_remarks = array(); foreach ($measure_list as $measure) { $measure_remarks[$measure->measureId] = LangUtil::getMeasureRemarks($lab_config->id, $measure->measureId); } # Generate form ?> <div class='pretty_box' style='width:auto;'> <form name='remarks_form' id='remarks_form' action='remarks_update.php' method='post'> <input type='hidden' name='lid' value='<?php echo $lab_config_id; ?> '></input> <input type='hidden' name='ttype' value='<?php echo $test_type_id; ?> '></input> <?php foreach ($measure_list as $measure) {