Ejemplo n.º 1
0
<?php

require_once "../framework.php";
if (isset($_POST["type"])) {
    $type = $_POST["type"];
    if ($type == "order") {
        getLastNum();
    } else {
        if ($type == "getpin") {
            getPin();
        } else {
            if ($type == "load") {
                loadNote();
            } else {
                if ($type != "lecturecourse") {
                    header("HTTP/1.1 400 Invalid Request");
                    die("HTTP/1.1 400 Invalid Request - you passed in a wrong type parameter.");
                }
            }
        }
    }
} else {
    if (isset($_POST["lecturecourse"])) {
        if (isset($_POST["lecturenumber"])) {
            if (isset($_POST["page"])) {
                loadimage();
            } else {
                pageList();
            }
        } else {
            lectureList();
Ejemplo n.º 2
0
function drawBoard()
{
    print "<table class='tablero'><tr>";
    for ($i = 1; $i < 91; $i++) {
        if (getLastNum() == $i) {
            echo "<td class='last'>{$i}</td>";
        } elseif (issetNumBoard($i)) {
            echo "<td class='existe'>{$i}</td>";
        } else {
            echo "<td>{$i}</td>";
        }
        if ($i % 10 == 0) {
            echo "</tr><tr>";
        }
    }
    print "</tr></table>";
}