MINI MINI MANI MO
<? include "$DOCUMENT_ROOT/inc/header.php";?>
<? include "$DOCUMENT_ROOT/inc/top.php";?>
<? include "$DOCUMENT_ROOT/inc/cus_vs.php";?>
<script language="JavaScript" type="text/JavaScript">
var old_menu = '';
function menuclick( s_men) {
// if( old_menu != s_men ) {
if( old_menu !='' ) { document.getElementById(old_menu).style.display = 'none'; }
document.getElementById(s_men).style.display = 'block'; old_menu = s_men;
// }
// else { s_men.style.display = 'none'; old_menu = ''; }
}
flevInitPersistentLayer('quickMenu',0,'','','','185','','',10);
</script>
<section class="layout-contents board">
<div class="subtitle-2dpeth">폐차상담</div>
<div class="subtitle-subtext">
폐차가격 및 폐차상담시 전문상담원이 신속하게 답변을 드립니다
</div>
<section class="table-wrap">
<table class="table-board">
<colgroup>
<col style="width:5%" >
<col style="width:65px" >
<col>
</colgroup>
<!-- <tr>
<td ><strong>no</strong></td>
<td><strong>진행상태</strong></td>
<td ><strong>제목</strong></td>
</tr> -->
<?
$view_article = 10; // 한화면에 나타날 게시물의 총 개수
if (!$page) $page = 1; // 현재 페이지 지정되지 않았을 경우 1로 지정
$start = ($page-1)*$view_article;
$query = "select count(*) from counsel where gubun='1' ";
$result = mysql_query($query, $connect);
$temp = mysql_fetch_array($result);
$total_article = $temp[0]; // 현재 쿼리한 게시물의 총 개수를 구함
$i=0;
$sql="select * from counsel where gubun='1' order by idx desc LIMIT $start, $view_article ";
$result=mysql_query($sql);
while($data=mysql_fetch_array($result)){
$num=$total_article-$start-$i;
?>
<tr >
<td class="text-center" onclick="location.href='view.php';"><?=$num?></td>
<td class="text-center" onclick="location.href='view.php?idx=<?=$data[idx]?>';">
<img src="/images/qna_bt0<?=$data[step]?>.jpg" width="53" height="23" />
</td>
<td onclick="location.href='view.php?idx=<?=$data[idx]?>';" >
<?=$data[title]?><img src="/images/lock.png" />
<div class="board-info">
<span><?=cut_str($data[name],2,false)?>*</span>
<span><?=substr($data[regdate],0,10)?></span>
</div>
</td>
</tr>
<?
$i++;
}
?>
</table>
</section>
<section class="productlist-bottom-wrap">
<div></div>
<div>
<? include "../inc/page.php";?>
</div>
<div>
<button type="button" class="btn btn-red-outline btn-sm" onclick="location.href='write.php'">등록하기</button>
</div>
</section>
</section>
<script>
menuclick('s_men01');
</script>
<? include "$DOCUMENT_ROOT/inc/bottom.php";?>
OHA YOOOO