ȸ»ç¼Ò°³¡¤È«º¸
21 º´¿ø¡¤¼ºÇü¡¤ºäƼ10 ÇÁ·£Â÷ÀÌÁÀ½½ÄÁ¡13 ´ëÃ⡤º¸Ç衤»ó´ã7 ÀÚµ¿Â÷¿ëÇ°¡¤·»Å»5 ÀÎÅ׸®¾î¡¤ÀÌ»ç9 Çпø¼Ò°³¡¤°øºÎ¹æ9 Á¾±³¡¤Çùȸ7 ÇÇƼ¡¤Çà»ç¡¤¹Ú¶÷ȸ10 ¼îÇθô21 ¿©Çà»ç¡¤Ææ¼Ç5 |
$tmp = $roomData['reservation_time_end'] - $roomData['reservation_time_start']; $tmp = floor($tmp / $roomData['reservation_time']); $CheckCount = $CheckCount * $tmp;
$tmp = $roomData['reservation_time_end'] - $roomData['reservation_time_start']; $tmp = floor($tmp / $roomData['reservation_time']); $CheckCount = $CheckCount * ($tmp+1);
#ÇöÀç ¿¹¾àµÈ ¹æ°¹¼ö üũ $Sql = " SELECT sum(room_count) FROM $happy_schedule_room WHERE links_number = '$happy_schedule_links_number' $AddWhere "; $Tmp = mysql_fetch_array(query($Sql)); $CheckCount = $Tmp[0]; $Sql = " SELECT * FROM $happy_schedule_room WHERE links_number = '$happy_schedule_links_number' $AddWhere ORDER BY number "; $Record = query($Sql); $roomData = mysql_fetch_array($Record); if ( $roomData['reservation_time'] < 24 ) { $tmp = $roomData['reservation_time_end'] - $roomData['reservation_time_start']; $tmp = @floor($tmp / $roomData['reservation_time']); $CheckCount = $CheckCount * ($tmp+1); }
# ÇØ´ç ÀÏÀÚ ¸¶°¨³¯Â¥ üũ ·çƾ ¼öÁ¤ # $Sql = " SELECT * FROM $happy_schedule_room WHERE links_number = '$happy_schedule_links_number' $AddWhere ORDER BY number "; $Record = query($Sql); $CheckCount = 0; while ( $roomData = mysql_fetch_array($Record) ) { if ( $roomData['reservation_time'] < 24 ) { $tmp = $roomData['reservation_time_end'] - $roomData['reservation_time_start']; $tmp = @floor($tmp / $roomData['reservation_time']); $CheckCount = $CheckCount + ( $roomData['room_count'] * ($tmp+1) ); } else { $CheckCount = $CheckCount + $roomData['room_count']; } }