示例#1
0
function deleteStatus()
{
    global $config;
    $statusId = intval($_GET['id']);
    // Move cards under this status to default status
    Db::execute("UPDATE cards SET status_id = {$config['defaultStatus']}\n                 WHERE status_id = {$statusId}");
    deleteRowById($statusId, 'status_names');
}
示例#2
0
function deleteCard()
{
    $cardId = intval($_GET['id']);
    deleteRowById($cardId, 'cards');
}