|
|
|
|
Á¤¼ö / 2000-08-30 / ¿ÀÈÄ 10:21:11 / 203.230.248.195
Á¶È¸¼ö : 112
|
[Áú¹®] Á¤¼ö´Ô º¸¼¼¿ä....
|
> <%
> kname=request("kname")
> ename=request("ename")
> phone=request("phone")
> hand=request("hand")
> email=request("email")
> checkin=request("checkin1")&request("checkin2")&request("checkin3")
> response.write checkin
> checkout=request("checkout1")&request("checkout2")&request("checkout3")
> roomtype=request("roomtype")
> smoke=request("smoke")
> roomnum=request("roomnum")
> people=request("people")
> bednum=request("bednum")
> etc=request("etc")
> hotelname = request.querystring("hotelname")
>
> checkin1=Year(now)&Month(now)&Day(now)
> response.write checkin1
> checkout1=Year(now)&Month(now)&Day(now)
>
> if checkin < checkin1 and checkout < checkout1 then
>
> %>
>
> {script language="javascript"}
> alert ("À߸øµÈ ³¯Â¥ ÀÔ·Â ÀÔ´Ï´Ù.. ´Ù½Ã ÀÔ·ÂÇÏ¿© Áֽʽÿä..!");
> history.back();
> {/script}
> {/head}
>
> <% else %>
> <% insert.......... Áß°£»ý°¢%>
> <% end if %>
>
> À§¿Í °°ÀÌ Çߴµ¥..... checkinÀÌ Å©³ª ÀÛÀ¸³ª °è¼Ó À߸øµÈ ³¯Â¥ ÀÔ·ÂÀ̶ó°í °è¼Ó ³ª¿Í¿ä.... ¹¹°¡ ¹®Á¦ÀÎÁö Çѹø¸¸ ´õ....
-----------------------------------------------------------
¾Æ¸¶ Æû¿¡¼ ³Ñ¾î¿Â °ª°ú ³¯Â¥ÇÔ¼ö¸¦ ÀÌ¿ëÇؼ ÇÒ´çÇÑ °ª°úÀÇ Â÷À̶§¹®¿¡ ±×·± ¸Þ½ÃÁö ¶ß´Â°Í °°±º¿ä..
Æû¿¡¼ SelectÀÇ Value¸¦ È®ÀÎÇÏ¿© º¸½Ã´Â°Ô ÁÁ°Ú½À´Ï´Ù..
¾Æ¸¶ Á¦°¡ ¾Æ±î ¿Ã·È´ø ¼Ò½ºÃ³·³ ÇÏ¼Ì´Ù¸é ³Ñ¾î¿Â Value°ªÀÌ 01,02 ½ÄÀ¸·Î µÉ°Ì´Ï´Ù...
Ȥ ±×·¸°Ô µÇ¾ú´Ù¸é ¹®Á¦°¡ »ý±æ¼öµµ ÀÖ°Ú½À´Ï´Ù...
Á¦°¡ ¿Ã·È´ø ¼Ò½ºÃ³·³ ³Ñ¾î¿Â °ªÀ» Á¤¼öÈ ½ÃŲ´ÙÀ½ ±× °ªµéÀº ÇÕÃļ dateÇü½ÄÀ¸·Î ¹Ù²Û´ÙÀ½ ºñ±³ÇÏ¿© º¸½ÃÁÒ..
Ȥ ´ÔÀÇ ÄÄÀÌ À¥»óÀ¸·Î Á¢±Ù°¡´ÉÇÏ´Ù¸é ÁÖ¼Ò¸¦ ¿Ã·ÁÁֽô°͵µ º¸´Ù ºü¸¥ ÇØ°á ¹æ¹ýÀÏ ¼öµµ Àְڳ׿ä...
±×¸®±¸ À§ Äڵ忡¼´Â
checkout1°ú checkin1ÀÇ °ªÀÌ °°À¸¹Ç·Î º¯¼ö¸¦ Çϳª¸¸ ¾²´Â°Ô È¿À²ÀûÀÎ ÄÚµù¹æ¹ý ÀÏ °Í °°³×¿ä..
±×¸®±¸
if checkin < checkin1 and checkout < checkout1
¿¡¼ and ¿¬»êº¸´Ù´Â or ¿¬»êÀÌ ¸ÂÀ» µí ½ÍÀºµ¥¿ä...^^
Ȥ ICQ ¾²½Ã°í °è½Ã¸é ¿¬¶ôÁÖ¼¼¿ä...
#70545814
|
|
|
|