} switch ($action_type) { case "filter": apply_filter($_POST['enable_filter']); case "list": show_available_money($config); ?> <table border="0" cellpadding="10"> <tr> <td width="400"><?php show_add_detail_form($config); ?> </td> <td><?php show_filter_form($config); ?> </td> </tr> </table> <?php list_detail($config); break; case "submit_add": $isSuccess = submit_add_detail($config); if ($isSuccess) { echo "<p>1 detail is added</p>"; } else { echo "<p>CAN NOT add detail</p>"; } show_available_money($config);
break; case "submit_delete": $isSuccess = submit_delete_detail(); if ($isSuccess) { echo "<p>1 detail is deleted</p>"; } else { echo "<p>CAN NOT delete detail</p>"; } show_available_money(); ?> <table border="0" cellpadding="10"> <tr> <td width="400"><?php show_add_detail_form(); ?> </td> <td><?php show_filter_form(); ?> </td> </tr> </table> <?php list_detail(); break; } ?> </body> </html>