. require_once("../inc/bossa.inc"); function job_show($job, $inst, $user) { $output = $inst->get_opaque_data(); $features = $output->features; $input = $job->get_opaque_data(); $path = $input->path; show_style(); echo "
id\"> "; $size = 100; $size2 = 50; $i = 0; foreach ($features as $f) { $cx = $f->x - $size2; $cy = $f->y - $size2; echo " "; $c = $f->comment?"($f->comment)":""; echo " $f->type $c "; echo " id&action=delete&index=$i> "; $i++; } echo "
"; control_bar($features, $inst); echo "
"; } function job_issued($job, $inst, $user) { $job->set_priority(0); } function job_finished($job, $inst) { } 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($opaque_data) { $features = $opaque_data->features; $x = ""; foreach ($features as $f) { $c = $f->comment?"($f->comment)":""; $x .= "$f->type $c
"; } return $x; } function user_summary($user) { return ""; } function show_style() { echo " "; } function select_type() { echo " "; } function control_bar($features, $inst) { if (count($features)) { $str1 = "any more"; $str2 = "another"; } else { $str1 = "any"; $str2 = "a"; } echo "
id\"> If you see $str2 feature: "; select_type(); echo " and click on its center.
If you don't see $str1 features, click id>DONE
"; } ?>