// ÀÛ¼ºÀÚ : ÃÖ»ó¹Î // ¼öÁ¤ÀÏ : 2002³â 3¿ù 11ÀÏ // ÆÄÀϸí : scheduleInput.html // ÀÏÁ¤ ÀÎDz include ("../inc/header.html"); include ("../common/common.php"); include ("../common/dbConnect.php"); memberCheck1(); function insertData() { global $conn, $startYear, $startMonth, $startDay, $endYear, $endMonth, $endDay, $subject, $content, $memberID, $memberName, $mode; if($mode != "insert") return; if($startYear == "" || $startMonth == "" || $startDay == "" || $endYear == "" || $endMonth == "" || $endDay == "" || $subject == "" || $content == "") { alert("ºüÁø Ç׸ñÀÌ ÀÖ½À´Ï´Ù.", 1); return; } $startDate = "$startYear-$startMonth-$startDay"; $endDate = "$endYear-$endMonth-$endDay"; $query = "insert into schedule values ('', '$memberName', '$memberID', '$startDate', '$endDate', '$subject', '$content', now())"; if($conn->runQuery($query)) { alert("ÀÔ·ÂÇß½À´Ï´Ù", 1); $startMonth = (strlen($startMonth) == 1)?"0$startMonth":$startMonth; echo ""; exit(); } } function printTable() { global $conn, $year, $month, $day, $memberID, $memberName, $subject, $content; echo "