get_opaque_data($job); $path = $info->path; page_head("Find the Ellipse"); echo "
"; page_tail(); } function job_issued($job, $inst, $user) { $job->set_priority(0); } function job_finished($job, $inst) { $response = null; if (get_str('submit', true)) { $response->have_ellipse = 0; } else { $response->have_ellipse = 1; $response->cx = get_int('pic_x'); $response->cy = get_int('pic_y'); } $inst->set_opaque_data($response); } function job_timed_out($job, $inst, $user) { $job->set_priority(1); } function job_summary($job) { $info = $job->get_opaque_data(); return "path>View image"; } function instance_summary($inst) { $info = $inst->get_opaque_data(); if ($info->have_ellipse) { return "($info->cx, $info->cy)"; } else { return "no ellipse"; } } function show_user_summary($user) { } ?>