예제 #1
0
        include "layouts/forms/check_list.html";
        break;
    case "changeStatus":
    case "delete":
        if ($action == "changeStatus") {
            /* Change status*/
            $sMsg1 = $objCity->changeStatus($id, $_GET["status"]);
            if ($sMsg1 == 1) {
                $sMsg = $objMessages->changestatusIndication($moduleLabel);
            } else {
                $sMsg = $objMessages->errorIndication($moduleLabel, $action);
            }
        } else {
            if ($action == "delete") {
                /* Delete record */
                $sMsg1 = $objCity->delete($id);
                if ($sMsg1 == 1) {
                    $sMsg = $objMessages->addupdatesucessIndication($moduleLabel, $action);
                } else {
                    $sMsg = $objMessages->errorIndication($moduleLabel, $action);
                }
            }
        }
    default:
        /* List the customers  */
        $count = $objCity->getCheckCount();
        if ($count > 0) {
            $cityList = $objCity->getCheckList();
        }
        include "layouts/check_list.html";
}