if ($with_bento) { ?> <tr> <td> </td> <td> <?php # 回程葷便當 echo SanitizHTML(sprintf($language['_payING_134'], nbok($bento_info[2]['num']))); ?> </td> <td> <?php # 回程素便當 echo SanitizHTML(sprintf($language['_payING_135'], nbok($bento_info[3]['num']))); ?> </td> </tr> <?php } } ?> <tr> <td colspan=3> <hr size=1> </td> </tr> <tr> <td valign=top> <?php
function disp_table($title, $col_name, $data) { dispHtml('<table style="border-collapse: collapse;">', 2); dispHtml('<tr>', 4); dispHtml('<td colspan="' . count($col_name) . '" style="border: 1px solid #000;text-align: center;">' . SanitizHTML($title) . '</td>', 6); dispHtml('</tr>', 4); dispHtml('<tr>', 4); foreach ($col_name as $t_info) { dispHtml('<td style="width: ' . SanitizHTML($t_info['width']) . 'px;border: 1px solid #000;text-align: center;">' . SanitizHTML($t_info['desc']) . '</td>', 6); } dispHtml('</tr>', 4); foreach ($data as $t_row) { dispHtml('<tr>', 4); foreach ($t_row as $t_val) { dispHtml('<td style="border: 1px solid #000;text-align: center;">' . SanitizHTML($t_val) . '</td>', 6); } dispHtml('</tr>', 4); } dispHtml('</table>', 2); dispHtml('<br />', 2); }