MINI MINI MANI MO

Path : /home/lhcar/www/mobile/
File Upload :
Current File : /home/lhcar/www/mobile/sub04.php

<?
require_once "./_common/common.php";
include $_SERVER['DOCUMENT_ROOT'].'/_config/global.php';
include $_SERVER['DOCUMENT_ROOT'].'/_config/_class/phpfun.class.php';
$phpfun = new phpfun();
$SID = session_id();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=medium-dpi">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>


<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="css/scale.css" rel="stylesheet" type="text/css">
</head>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<div id="top">
<? include "inc/sub_top.html"; ?>
</div>

<tr>	
			<td><? include "inc/customer_menu.php"; ?></td>
</tr>
<tr>
	<td>	
			<!-- navi start-->
							<table id="navi"  width="100%"  height="60"  border="0" cellpadding="0" cellspacing="0">
  <tr>	
									<td>
										<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<?if(!$tt){$ts1="color: #FF0000;font-weight:bolder;";$ts2="color: #000000";}else{$ts2="color: #FF0000;font-weight:bolder;";$ts1="color: #000000";}?>
											<tr>
												    <td align="center"><strong>폐차상담</strong></td>
										  </tr></table></td>
												
											</tr>
                                            <tr><td height="1" bgcolor="#0066CC"></td></tr>
                                            <tr><td height="20" ></td>
                              </tr>
										</table>								  </td>
							    </tr>
							 </table>
	  <!-- navi end-->
	</td>
</tr>

<tr>
	<td>	
			<div align="center">
			  <!-- contents start--><table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="5"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="ex" style="border-top:1px solid #cccccc;">
<?
$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 width="20%" height="50" align="center" bgcolor="f6f6f6" class="tab_bg" style="border-bottom:1px solid #cccccc;" onclick="location.href='sub04_view.php?idx=<?=$data[idx]?>'"><img src="/images/qna_bt0<?=$data[step]?>.jpg" width="53" height="23" /></td>
                    <td align="left" bgcolor="f6f6f6" style="padding-left:7px;border-bottom:1px solid #cccccc; line-height:16px;" onclick="location.href='sub04_view.php?idx=<?=$data[idx]?>'"><strong><?=$data[title]?></strong><br />
                        <span style="color:#666666; font-size:12px;"><?=cut_str($data[name],2,false)?>* <?=substr($data[regdate],0,10)?></span></td>
                  </tr>
<?
	$i++;
}
?>
                  <!--tr>
                    <td width="15%" height="50" align="center" bgcolor="f6f6f6" class="tab_bg" style="border-bottom:1px solid #cccccc;" onclick="location.href='sub04_view.php'"><img src="/images/qna_bt02.jpg" width="53" height="23" /></td>
                    <td align="left" bgcolor="f6f6f6" style="padding-left:7px;border-bottom:1px solid #cccccc; line-height:16px;" onclick="location.href='sub04_view.php'"><strong>제목이 나오는곳입니다</strong><br />
                        <span style="color:#666666; font-size:12px;">홍길동 2021-02-01</span></td>
                  </tr>
                  <tr>
                    <td height="35" align="center" bgcolor="f6f6f6" class="tab_bg" style="border-bottom:1px solid #EEEEEE; color:#0066CC; font-size:14px;">질문</td>
                    <td align="left" bgcolor="#FFFFFF" style="padding-left:7px;border-bottom:1px solid #EEEEEE;">내용이나오는곳입니다.</td>
                  </tr>
                  <tr>
                    <td height="35" align="center" bgcolor="f6f6f6" class="tab_bg" style="border-bottom:1px solid #EEEEEE;color:#ff0000; font-size:14px;">답변</td>
                    <td align="left" bgcolor="#FFFFFF" style="padding-left:7px;border-bottom:1px solid #EEEEEE;">내용이나오는곳입니다.</td>
                  </tr-->
                </table>                </td>
              </tr>
              <tr>
                <td height="5">&nbsp;</td>
              </tr>
              <tr>
                <td height="5"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="15%">&nbsp;</td>
                      <td align="center"><table width="50%" id="menu" border="0" cellspacing="0" cellpadding="0">
                        <tbody>
                          <tr>
                            <td colspan="7"></td>
                          </tr>
                        </tbody>
                      </table>
                        <table width="100%">
                          <tbody>
                            <tr>
                              <td height="40" align="center" colspan="7"><table border="0" cellspacing="0" cellpadding="2">
                                <tbody>
                                  <tr>
                                    <td><img width="32" height="32" src="http://m.lhcar.co.kr/images/num_be02.jpg" /></td>
                                    <td width="20" align="center"><strong>1</strong> </td>
                                    <td><img width="32" height="32" src="http://m.lhcar.co.kr/images/num_next02.jpg" /></td>
                                  </tr>
                                </tbody>
                              </table></td>
                            </tr>
                          </tbody>
                        </table>                      </td>
                      <td width="15%" align="right">&nbsp;</td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td height="5">&nbsp;</td>
              </tr>
      </table>
	  </div>
			
			<!-- contents end-->	</td>
</tr>

<div id="btm">
<? include "inc/btm.html"; ?>
</div>
  


OHA YOOOO