Beispiel #1
0
function reportsCal($config)
{
    if (isset($_POST['prevMonth'])) {
        $month = isset($_POST['prevMon']) ? $_POST['prevMon'] : date('n');
    } elseif (isset($_POST['nextMonth'])) {
        $month = isset($_POST['nextMon']) ? $_POST['nextMon'] : date('n');
    } else {
        $month = isset($_POST['curMon']) ? $_POST['curMon'] : date('n');
    }
    $year = isset($_POST['year']) ? $_POST['year'] : date('Y');
    $passedDates = "";
    viewClandar($config, $month, $year);
}
            $day_num = "03";
        }
        if ($day_num == 4) {
            $day_num = "04";
        }
        if ($day_num == 5) {
            $day_num = "05";
        }
        if ($day_num == 6) {
            $day_num = "06";
        }
        if ($day_num == 7) {
            $day_num = "07";
        }
        if ($day_num == 8) {
            $day_num = "08";
        }
        if ($day_num == 9) {
            $day_num = "09";
        }
    }
    //Finaly we finish out the table with some blank details if needed
    while ($day_count > 2 && $day_count <= 7) {
        echo "<td> </td>";
        $day_count++;
    }
    echo "</tr></table>";
    return 0;
}
viewClandar();