function claim(id) { $.post("/claimtask.php", { id: id }); } $(document).ready(function(){ $('.qt').qtip(); }); EOM; include "head.inc.php"; $t = new Task(); $c = $t->GetAdnlFields(); $cols = count($c) + 2; $page .= <<Tasklist
EOM; foreach($t->GetAdnlFields() as $field) { $page .= ""; } $page .= "\n"; $t->GetFirst(); $j = 1; while ($t->GetNext()) { $class = ($j&1)?"listodd":"listeven"; $title = strip_tags($t->GetAttr("info")); $page .= "\n"; $page .= "\t\n"; foreach ($t->GetAdnlFields() as $field) { $page .= "\t\n"; } $page .= "\t\n"; $page .= "\n"; $j++; } $page .= <<
PolitiCap Tasks
Name" . $field . "
$j. {$t->GetName()}" . $t->FieldValue($field) . "