################################################ ## ¾Æ·¡ include¿¡´Â ÇÔ¼ö¿Í DBÄ¿³ØÆ® ## ºÎºÐÀÔ´Ï´Ù. À̺κÐÀº °¢ÀÚ ¾Ë¾Æ¼... ^^; ################################################ include ("Á¦°¡ ¸¸µé¾î³õÀº ÇÔ¼ö.. "); include ("Database ¿¬°á..."); ################################################# ##### ¾Æ·¡°ÍÀº À½·Âº¯È¯ ÇÔ¼öÀÔ´Ï´Ù. ######### // Á¦°¡ ¸¸µç°ÍÀº ¾Æ´Ï±¸¿ä.. ^^; include ("luncal.ini"); ################################################# $th1 = "#B3E5FF"; // ¿äÀÏ Ç¥±â(ÁÖ¸» Á¦¿Ü) $th2 = "#FF82C8"; // ÀÏ¿äÀÏ $th3 = "#74C600"; // Åä¿äÀÏ $t1 = "#FFEA00"; // ´Þ·Â ÀÏÀÚ ¿ÜºÎ Å׵θ® $t2 = "#FFEA00"; // ´Þ·Â ÀÏÀÚ ³»ºÎ Å׵θ® // ÇØ´ç¿ù¿¡¼ Àüü Àϼö ±¸ÇÏ´Â ÇÔ¼ö function get_totaldays($year,$month) { $date = 1; while(checkdate($month,$date,$year)) { $date++; } $date--; return $date; } $connect = db_connect("DB¿ÀÇÂ"); // DB ¿ÀÇ if ($mode == "del") { $reg_date_tmp = "$year-$mon-$day"; $sql = "delete from schedule where code = '$code' and regdate = '$reg_date_tmp'"; $result = mysql_query($sql,$connect); result_check($result,"»èÁ¦ ¿¡·¯ÀÔ´Ï´Ù"); echo ""; exit; } $today = date("Y.m.d"); $t_year = date("Y"); $t_mon = date("m"); $t_day = date("d"); if (!$year) { $year = strftime("%Y"); } if (!$mon) { $mon = date("m"); } // Àüü Àϼö ±¸Çϱâ $total_days = get_totaldays($year,$mon); // ¾î´À ¿äÀϺÎÅÍ ½ÃÀÛÇұ.. $first_day = date('w',mktime(0,0,0,$mon,1,$year)); ?>
ÀÏÁ¤°ü¸® Logout |
||||||||||||||||
|