>¾È³çÇϼ¼¿ä.. ¼ö°í ¸¹À¸½Ê´Ï´Ù.. Àú´Â cgi ¿ÕÃʺ¸°É¶û¿ä.
>
>¾îÂî¾îÂîÇÏ¿© ÆÄÀÏÀÇ ³»¿ëÀ» Ãâ·ÂÇϴ´ë±îÁö´Â ¼º°øÀ» ÇÏ¿´½À´Ï´Ù. ±×·±µ¥
>ÀÚ·á°¡ ³Ê¹«¸¹¾Æ¼¸®...
>Ãâ·ÂµÇ´Â ÆäÀÌÁö¸¦ ÀÏÁ¤°¹¼ö·Î ¹¾î¼ ÆäÀÌÁö¸¦ Ç¥½ÃÇÏ°í ½ÍÀºµ¥¿ä..
>
>°Ô½ÃÆÇÀÇ ´ÙÀ½ÆäÀÌÁöº¸±â ±â´Éó·³.....
>¼Ó½Ã¿øÇÑ ¹æ¹ýÁ» ¾Ë·ÁÁÖ¼¼¿ä..
>±×·³ °è¼Ó ¼ö°íÇϽñ¸¿ä... ²ÀÁ» ºÎŹµå¸³´Ï´Ù......
HappyCGI ÆÀÀÇ °íÀç¿õ ÀÔ´Ï´Ù.
ÆäÀÌÁö ³ª´©´Â ¹æ¹ýÀº ÇÁ·Î±×·¡¸Ó¿¡ µû¶ó Á¶±ÝÁ¶±Ý¾¿ ´Ù¸£´õ±º¿ä. Àúµµ ´Ù¸¥ ºÐÀÌ ÇسõÀº°É °¡Á®¿Ã¶ó°í ±×·¯´Ù°¡ Á¦°¡ ¸¸µé¾îºÃ´Âµ¥ ÁÁÀº ¹æ¹ýÀÎÁö´Â ¸ð¸£°Ú½À´Ï´Ù.
/=================================================================
$numdata = 5; # ÇÑÆäÀÌÁö¿¡ Ãâ·ÂµÇ´Â ¸®½ºÆ®ÀÇ ¼ö
# $page´Â ¸î¹ø° ÆäÀÌÁöÀΰ¡¸¦ °áÁ¤ÇÕ´Ï´Ù. $page = 0À̸é ù ÆäÀÌÁö.
open (DATA, "$data_path/$data_file");
@data =
;
close DATA;
# If no $page exists assign it to zero
if ( !$page ) {
$page = 0;
}
# define the first and the last array number for each page
$numstart = $page * $numdata;
$numlast = $numstart $numdata - 1;
if ( $numlast >= @data ) {
$numlast = @data - 1;
}
# decide howmany pages are needed
$numpage = int(@data / $numdata) 1;
for ( $i = $numstart; $i <= $numlast; $i ) {
ÀÌÁ¦ ¿©±â¿¡ ¿øÇÏ½Ã´Â°É ÇÁ¸°Æ®Çϼ¼¿ä.
}
# jump links by page number
for ( $i = 1; $i <= $numpage; $i ) {
$j = $i - 1;
if ( $page != $j ) {
print "$i
";
}
else {
print "$i
";
}
}
======================================================================/
ÀÌÇØÇϽñ⿡ Á¶±Ý Èûµå½Ç°Ì´Ï´Ù. ¿Ö³Ä¸é ÀÌ°Ç ¼øÀüÈ÷ Á¦»ý°¢À¸·Î §°Å´Ï±î¿ä.
¾Æ¸¶µµ ÈùÆ®´Â ¾òÀ¸½Ç¼ö ÀÖÀ¸¸®¶ó »ý°¢ÇÕ´Ï´Ù. Áñ°Å¿î ½Ã°£ µÇ¼¼¿ä.