コード例 #1
0
ファイル: utils.php プロジェクト: paultag/puzzle-editing
function isPuzzleDead($pid)
{
    return getStatusForPuzzle($pid) == getDeadStatusId();
}
コード例 #2
0
ファイル: puzzle.php プロジェクト: paultag/puzzle-editing
function displayChangePuzzleStatus($pid)
{
    $statuses = getPuzzleStatuses();
    $current = getStatusForPuzzle($pid);
    foreach ($statuses as $sid => $name) {
        echo "<input type ='radio' name='status' value='{$sid}'";
        if ($sid == $current) {
            echo ' checked';
        }
        echo " />&nbsp;&nbsp;{$name}<br />";
    }
}