function print_vins_au_verre($id) { global $mysql; $data = create_vins_au_verre($id); $formats = $data['formats']; $wines = $data['wines']; $html .= '<div><h2>Vins au verre</h2>'; $html .= '<table>'; $html .= ' <tbody>'; $html .= get_format_vins_au_verre($formats); $html .= get_vins_au_verre($wines, $formats); $html .= ' </tbody>'; $html .= '</table>'; $html .= '</div>'; return $html; }
function print_vins_au_verre($id) { global $mysql; $data = create_vins_au_verre($id); $formats = $data['formats']; $wines = $data['wines']; $html .= start_table(); $html .= '<tr><th class="h3" colspan="3">Vins au verre</td></tr>'; $html .= get_format_vins_au_verre($formats); $html .= get_vins_au_verre($wines, $formats); $html .= end_table(); return $html; }