|
|
|
|
±èÁ¾ÇÏ / 2002-05-22 / ¿ÀÈÄ 5:09:53 / 210.111.101.81
Á¶È¸¼ö : 153
|
[Áú¹®] ÆäÀÌÁö³ª´©±â¿¡ ´ëÇØ |
¿À·ù Çü½Ä:
Microsoft VBScript ·±Å¸ÀÓ ¿À·ù (0x800A000D)
Çü½ÄÀÌ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù: ''cint''
ÀÇ ¿À·ù°¡ ³ª°í ÀÖ½À´Ï´Ù.
db¿¡ ·¹ÄÚµå¼ö°¡ 10 ÀÌ»óÀÌ µÇ¸é ±×·¯´Ï±î ¹Ù·Î¹Ø
mychoice = 10 À¸·Î Çؼ 10ÀÌ»ó¿¡ ÃæÁ·ÇÏ´Â ·¹ÄÚµå ¼ýÀÚ°¡ µÇ¸é ¿À·ù°¡ ³ªÁö ¾Ê½À´Ï´Ù.
±×·¯³ª db¿¡ ·¹ÄÚµå¼ö¸¦ ÁÙ¿©¼ 10ÀÌÇÏ·Î ÁÙÀÌ¸é ¿À·ù°¡ ³³´Ï´Ù.
±×·¯´Ï±î mychoice = 1 ·Î ÇÏ°í ·¹ÄÚµå¼ö¸¦ ÁÙÀÌ¸é ´ç¿¬ ¿À·ù°¡ ¾È³´Ù´Â ¸»¾¸ÀÌÁÒ
óÀ½ ±ÛÀ» ¿Ã¸±°æ¿ì¿£ ´ç¿¬È÷ ÆäÀÌÁö ´ÙÀ½ 10°³°¡ ¾ÈµÉÅÙµ¥ ±×·¸´Ù°í ÀÌ°É ´Ã¾î³¯¶§¸¶
´Ù ´Ã·Á ÁÙ¼öµµ ¾ø±¸¿ä....²À ºÎŹ µå¸³´Ï´Ù.
<%
mychoice = 10
total_block = int(session("pagecount") / mychoice)
if total_block = (session("pagecount") / mychoice) then
total_block = total_block - 1
end if
if request("block") <> "" then
nowblock = request("block")
else
nowblock = 0
end if
%>
<B><%=nowblock%></b>
</font>
</table></div></td>
</tr>
<tr>
<td width="600" height="7" bgcolor="#EEEEEE"><p><img
src="images/blank.gif" width="1" height="1" border="0"></td>
</tr>
<tr>
<td width="600" bgcolor="#EEEEEE"><p><img
src="images/blank.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td width="600" bgcolor="#EEEEEE"><div align="center">
<table border="0" cellpadding="6" cellspacing="0"
width="596">
<tr>
<td width="200" height="10" align="left"
bgcolor="white"><p align="center"><a href="order/trip_write.asp?
contact=tctg"><img src="images/or_pack_write.gif" width="114" height="22"
border="0"></td>
<td width="396" height="10" align="left"
bgcolor="white"><p align="center">
<% if session("pagecount") > 0 then %>
<% if cint(nowblock) >0 then %> <==== ÀÌ°÷ÀÔ´Ï´Ù "cint" ¿À·ù³ª´Â°÷....
<a href="body_order.asp?GoTopage=<%=(int(nowblock*mychoice) - 9)%>&block=<%=
(nowblock-1)%>&gubun=<%=session("gubun")%>&contact=tctg"><% end if%><img
src="images/b_num.gif" align="middle" width="25" height="22" border="0">
<% if Cint(nowblock) >0 then %></a>
<%end if%>
<% '' ÀÌ À§¿¡´Â ÀÌÀü 10°³ÀÇ Ã³¸®ÀÌ´Ù... %>
<% if Cint(total_block) <> Cint(nowblock) then %>
<% '' ÀϹÝÀûÀ϶§ÀÇ ÆäÀÌÁö·Î Á¢±ÙÀÌ´Ù... ³»°¡ ¼±ÅÃ
ÇÑ ´ÜÀ§·Î...%>
<font STYLE="line-height: 12pt ; color:#6699cc">
[</font><% for Gopage = 1 to mychoice %><font STYLE="line-height: 12pt ;
color:#6699cc"><a href="body_order.asp?block=<%=nowblock%>&GoTopage=<%=(int
(nowblock*mychoice) + Gopage)%>&gubun=<%=session("gubun")%>&contact=tctg">
<font STYLE="line-height: 12pt ; color:#6699cc"><%
=(int(nowblock*mychoice) + Gopage)%></font></a></font>
<% next %> <font STYLE="line-height: 12pt ;
color:#6699cc">]</font>
<% else %>
<% ''¹ö±× ¼öÁ¤ ¼Ò½º...³Ñ ¹«½ÄÇÏ´Ù...
if (session("pagecount") mod mychoice) = 0
then
pager= mychoice
else
pager = session("pagecount") mod mychoice
end if
%>
<% ''¸¶Áö¸· 20°³ ºí·°À϶§´Â ÆäÀÌÁöÁ¢±Ù ¼ö°¡ °íÁ¤Àû
ÀÌÁö ¾ÊÀ¸´Ï±î... ¸¶Áö¸· ºí·°ÀÇ Ã³¸®°¡ ÇÊ¿äÇÏ´Ù.%>
<font STYLE="line-height: 12pt ;
color:#6699cc"></font><% for Gopage = 1 to pager %>
<a href="body_order.asp?block=<%=nowblock%
>GoTopage=<%=(int(nowblock*mychoice) + Gopage)%>&gubun=<%=session("gubun")%
>&contact=tctg">
<font STYLE="line-height: 12pt ; color:#6699cc"><%
=(int(nowblock*mychoice) + Gopage)%> </font></a>
<% next %><img src="images/n_num.gif"
align="middle" width="25" height="22" border="0">
<font STYLE="line-height: 12pt ; color:#6699cc">
</font>
<% end if %>
<% '' ÀÌ ¾Æ·¡´Â ÀÌÈÄ 20°³ ó¸®ÀÌ´Ù..%>
<% if (Cint(total_block) > 0) and (Cint(nowblock)
< Cint(total_block)) then %><font STYLE="line-height: 12pt ; color:#6699cc">
<a href="body_order.asp?GoTopage=<%=(int
(nowblock*mychoice) + Gopage)%>&block=<%=(nowblock+1)%>&gubun=<%=session("gubun")%
>&contact=tctg"><img src="images/n_num.gif" align="middle" width="25" height="22"
border="0">
</a></font>
<%end if%>
<% end if %>
|
|
|
|