public static function render_page_process($PATH)
 {
     $test_profile = new pts_test_profile($_GET['tp']);
     $name = $test_profile->get_title();
     $description = $test_profile->get_description();
     echo '<h2>' . $name . ' [' . $test_profile->get_identifier() . '] </h2>';
     echo '<p><em>' . $description . '</em></p>';
     echo '<p>More information on this test can be found via <a target="_blank" href="http://openbenchmarking.org/test/' . $test_profile->get_identifier() . '">OpenBenchmarking.org</a>.</p>';
     $test_options = $test_profile->get_test_option_objects();
     echo '<input type="hidden" name="test_add[]" value="' . $test_profile->get_identifier() . '" />';
     $test_prefix = "test_option_" . str_replace('.', '-', microtime(true)) . "_";
     echo '<input type="hidden" name="test_prefix[]" value="' . $test_prefix . '" />';
     if (count($test_options) == 0) {
         echo '<p><strong>No configurable user options for this test.</strong></p>';
     } else {
         for ($i = 0; $i < count($test_options); $i++) {
             $o = $test_options[$i];
             $option_count = $o->option_count();
             echo '<p id="' . $test_prefix . $o->get_identifier() . '_name">' . $o->get_name() . '</p>';
             if ($option_count == 0) {
                 echo '<p><input type="text" name="' . $test_prefix . $o->get_identifier() . '" id="' . $test_prefix . $o->get_identifier() . '" /></p>';
             } else {
                 echo '<input name="' . $test_prefix . $o->get_identifier() . '_selected" id="' . $test_prefix . $o->get_identifier() . '_selected" type="hidden" value="' . $o->get_name() . ': ' . $o->get_option_name(0) . '" />';
                 echo '<p><select name="' . $test_prefix . $o->get_identifier() . '" id="' . $test_prefix . $o->get_identifier() . '" onChange="phoromatic_test_select_update_selected_name(this);">';
                 $opts = array();
                 for ($j = 0; $j < $option_count; $j++) {
                     $v = $o->format_option_value_from_input($o->get_option_value($j));
                     echo '<option value="' . $v . '">' . $o->get_option_name($j) . '</option>';
                     array_push($opts, $o->get_name() . ': ' . $o->get_option_name($j) . '::' . $v);
                 }
                 if ($j > 1) {
                     echo '<option value="' . implode('||', $opts) . '">Test All Options</option>';
                 }
                 echo '</select></p>';
             }
         }
     }
     echo '<hr />';
 }
 public static function render_page_process($PATH)
 {
     $test_profile = new pts_test_profile($_GET['tp']);
     $name = $test_profile->get_title();
     $description = $test_profile->get_description();
     echo '<h2>' . $name . ' [' . $test_profile->get_identifier() . '] </h2>';
     echo '<p><em>' . $description . '</em></p>';
     echo '<p>More information on this test can be found via <a target="_blank" href="http://openbenchmarking.org/test/' . $test_profile->get_identifier() . '">OpenBenchmarking.org</a>.</p>';
     $test_options = $test_profile->get_test_option_objects();
     if (count($test_options) == 0) {
         echo '<p><strong>No configurable user options for this test.</strong></p>';
     } else {
         for ($i = 0; $i < count($test_options); $i++) {
             $o = $test_options[$i];
             $option_count = $o->option_count();
             echo '<input type="hidden" name="test_add[]" value="' . $test_profile->get_identifier() . '" />';
             if (isset($_GET['build_suite'])) {
                 $test_prefix = "test_option_" . microtime() . "_";
                 echo '<input type="hidden" name="test_prefix[]" value="' . $test_prefix . '" />';
             } else {
                 $test_prefix = "test_option_" . $_GET['tp'] . "_";
             }
             echo '<p id="' . $test_prefix . $o->get_identifier() . '_name">' . $o->get_name() . '</p>';
             if ($option_count == 0) {
                 echo '<p><input type="text" name="' . $test_prefix . $o->get_identifier() . '" id="' . $test_prefix . $o->get_identifier() . '" /></p>';
             } else {
                 echo '<input name="' . $test_prefix . $o->get_identifier() . '_selected" id="' . $test_prefix . $o->get_identifier() . '_selected" type="hidden" value="' . $o->get_name() . ': ' . $o->get_option_name(0) . '" />';
                 echo '<p><select name="' . $test_prefix . $o->get_identifier() . '" id="' . $test_prefix . $o->get_identifier() . '" onChange="phoromatic_test_select_update_selected_name(this);">';
                 for ($j = 0; $j < $option_count; $j++) {
                     echo '<option value="' . $o->format_option_value_from_input($o->get_option_value($j)) . '">' . $o->get_option_name($j) . '</option>';
                 }
                 echo '</select></p>';
             }
         }
     }
     echo '<br /><br /><p><input name="submit" value="Add" type="submit" onclick="" /></p>';
 }