${table_title}

EOT; } function print_table_foot() { echo << EOT; } function create_generic_table($table_title, $table_head, $iterable) { // Print the email form... print_table_head($table_title); echo "\n\n"; echo "\n"; echo "\n"; foreach ($table_head as $head) { echo "\n"; } echo "\n"; foreach ($iterable as $item) { echo "\n"; foreach ($item as $subitem) { echo "\n"; } echo "\n"; } echo "

{$head["title"]}

$subitem
\n"; echo "\n\n"; print_table_foot(); } function create_mgmt_table($table_title, $table_head, $iterable, $mgmt_index = 0, $mgmt_target = '') { // Print the email form... print_table_head($table_title); echo "\n\n"; echo "\n"; echo "\n"; foreach ($table_head as $head) { echo "\n"; } echo "\n"; foreach ($iterable as $item) { echo "\n"; foreach ($item as $subitem) { if ($item[$mgmt_index] == $subitem) { echo "\n"; } else { echo "\n"; } } echo "\n"; } echo "

{$head["title"]}

$subitem$subitem
\n"; echo "\n\n"; print_table_foot(); } function create_iter_table($table_title, $table_head, $iterable) { // Print the email form... echo <<

${table_title}

EOT; echo "\n\n"; echo "\n"; echo "\n"; foreach ($table_head as $head) { echo "\n"; } echo "\n"; foreach ($iterable as $item) { echo "\n"; foreach ($item as $subitem) { echo "\n"; } echo "\n"; } echo "

{$head["title"]}

$subitem
\n"; echo "\n\n"; echo << EOT; } ?>