<?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); show_add_detail_form($config); list_detail($config); break; case "edit": show_edit_detail_form($config, $_GET['id']); break; case "submit_edit": $isSuccess = submit_edit_detail($config); if ($isSuccess) { echo "<p>1 detail is updated</p>"; } else { echo "<p>CAN NOT update detail</p>"; } show_available_money($config); show_add_detail_form($config); list_detail($config); break; case "delete": confirmDeleteDetail($config); break;
<tr> <td width="400"><?php show_add_detail_form(); ?> </td> <td><?php show_filter_form(); ?> </td> </tr> </table> <?php list_detail(); break; case "edit": show_edit_detail_form($_GET['id']); break; case "submit_edit": $isSuccess = submit_edit_detail(); if ($isSuccess) { echo "<p>1 detail is updated</p>"; } else { echo "<p>CAN NOT update detail</p>"; } show_available_money(); ?> <table border="0" cellpadding="10"> <tr> <td width="400"><?php show_add_detail_form();