$trim_len ){ for( $jj = 0; $jj < $trim_len; $jj++ ){ $uu = ord( substr( $text, $jj, 1) ); if( $uu > 127 ){ $jj++; } } $text2=substr($text,0,$jj).".."; }else{ $jj=100; $text2=substr($text,0,$jj); } return $text2; } ########### Խù $num_per_page ="20"; ########### Խù ¸ ϴܿ ũ $page_per_block = 10; ########## ͺ̽ Ѵ. ########### if(!$page) { $page = 1; } ########## üԽù Ѵ. ########## if (!eregi("[^[:space:]]+",$key)) { $query = "SELECT count(Tot_No) FROM $table"; } else { $encoded_key = urlencode($key); $query = "SELECT count(Tot_No) FROM $table WHERE $keyfield LIKE '%$key%'"; } $result = mysql_query($query,$conn); if (!$result) { echo ("QUERY_ERROR $query "); exit; } $total_record = mysql_result($result,0,0); ########## Խù Ѵ. ########## if(!$total_record) { $first = 1; $last = 0; } else { $first = $num_per_page*($page-1); $last = $num_per_page*$page; $IsNext = $total_record - $last; if($IsNext > 0) { $last -= 1; } else { $last = $total_record - 1; } } ########## ü Ѵ. ########## $total_page = ceil($total_record/$num_per_page); ?>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"; } if($ext == "xls") { $file_img=""; } if($ext == "wav") { $file_img=""; } if($ext == "ra") { $file_img=""; } if($ext == "psd") { $file_img=""; } if($ext == "ppt") { $file_img=""; } if($ext == "pdf") { $file_img=""; } if($ext == "png") { $file_img=""; } if($ext == "mp3") { $file_img=""; } if($ext == "jpg") { $file_img=""; } if($ext == "gif") { $file_img=""; } if($ext == "hwp") { $file_img=""; } if($ext == "exe") { $file_img=""; } if($ext == "doc") { $file_img=""; } if($ext == "mid") { $file_img=""; } if($ext == "bmp") { $file_img=""; } if($ext == "st3") { $file_img=""; } if($ext == "swf") { $file_img=""; } } else { $file_img =""; } $no = $total_record - $i; ?>

 

 

 

 

 

Ÿ ϴ.

 

1) { $my_page = $first_page; echo("[ ${page_per_block}] "); } ########## ? ٷ ̵ ִ ۸ũ Ѵ. ########## for($direct_page = $first_page+1; $direct_page <= $last_page; $direct_page++) { if($page == $direct_page) { echo("$direct_page"); } else { echo("$direct_page "); } echo (" | "); } ########## Ͽ ũ ########## if($block < $total_block) { $my_page = $last_page+1; echo("[ ${page_per_block}]"); } ?>

 

 

 

 

 

 

 

 

 

 

 

Avocent Home Avocent Ұ ڷ