runQuery($query)) { alert($msg, 1); $startMonth = (strlen($startMonth) == 1)?"0$startMonth":$startMonth; echo ""; exit(); } } function printTable() { global $conn, $no, $memberID; $query = "select writer, id, DATE_FORMAT(startDate, '%Y') startYear, DATE_FORMAT(startDate, '%m') startMonth, DATE_FORMAT(startDate, '%d') startDay, "; $query .= "DATE_FORMAT(endDate, '%Y') endYear, DATE_FORMAT(endDate, '%m') endMonth, DATE_FORMAT(endDate, '%d') endDay, subject, content from schedule where no=$no"; $result = $conn->runQuery($query); $rows = mysql_fetch_array($result); if($rows[id] != $memberID) alert("ÀÚ½ÅÀÌ ÀÛ¼ºÇÑ ÀÏÁ¤¸¸ ¼öÁ¤/»èÁ¦ÇÒ ¼ö ÀÖ½À´Ï´Ù.", 2); echo ""; echo "
ÀÏÁ¤ ÀÔ·Â
ÀÏÁ¤ ½ÃÀÛÀÏ "; getSelect("startYear", date("Y", time()), 2010, $rows[startYear]); echo " ³â  "; getSelect("startMonth", 1, 12, $rows[startMonth]); echo " ¿ù  "; getSelect("startDay", 1, 31, $rows[startDay]); echo " ÀÏ"; echo "
ÀÏÁ¤ Á¾·áÀÏ "; getSelect("endYear", date("Y", time()), 2010, $rows[endYear]); echo " ³â  "; getSelect("endMonth", 1, 12, $rows[endMonth]); echo " ¿ù  "; getSelect("endDay", 1, 31, $rows[endDay]); echo " ÀÏ"; echo "
ÀÛ¼ºÀÚ $rows[writer] ($rows[id])
Á¦ ¸ñ
³» ¿ë
"; } function getSelect($formName, $startValue, $endValue, $checkValue) { echo ""; } insertData(); printTable(); include ("../inc/footer.html"); ?>