Home > Company > 서비스안내 > 3D그래픽 서비스
3D그래픽 서비스
$sql = " from service_request ";
$whereq .= " where gubun = 'D' ";
$scale = 10; // 1페이지당 자료수
$page_list_scale = 10; // 페이지 리스트 수
$list_total = mysql_one_data($DB_name,"Select count(*) $sql $whereq ");
If (!$c_page) $c_page = 1;
If (!$no) $no = 0;
$last_page = floor($list_total/$scale);
If ($last_page != $list_total/$scale) $last_page++;
$start_article = ($c_page-1)*$scale;
$query = "Select * $sql $whereq order by no desc Limit $start_article, $scale";
$result = mysql_query($query,$con) or die("DB Error : $query");
$i = $list_total - ($c_page - 1) * $scale;
$no = ($c_page - 1) * $scale;
?>
번호 |
제목 |
작성일 |
작성자 |
$pre = date("Ymd", mktime(0, 0, 0, date("m") , date("d") - 2 , date("Y") ));
While ($temp = mysql_fetch_array($result))
{
$id = $temp["id"];
$no = $temp["no"];
$title = $temp["title"];
if($title == "")
$title = " ... ";
$disp_i = $no;
?>
=$disp_i?> |
=text_cut($title,100)?> |
=$temp["wdate"]?> |
=$temp["name"]?> |
$no++;
$i--;
}
?>
if($list_total == 0): ?>
등록된 글이 없습니다 |
endif; ?>
pagelist ($PHP_SELF,$last_page,$c_page,$page_list_scale,$page_para);
?>
include($_SERVER['DOCUMENT_ROOT']."/html/include/sub_quick.html"); ?>