MINI MINI MANI MO
<?
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();
?>
<?
$query_board = "select * from admin_table where a_name='$id' ";
$result_board = mysql_query($query_board);
$board=mysql_fetch_array($result_board);
$view_article = 15; // 한화면에 나타날 게시물의 총 개수
if (!$page) $page = 1; // 현재 페이지 지정되지 않았을 경우 1로 지정
$start = ($page-1)*$view_article;
if (!$type) $type = 1;
$href = "&id=$id&page=$page";
$where=" level < 1 ";
$query = "select count(*) from $id where $where ";
$result = mysql_query($query);
$temp = mysql_fetch_row($result);
$total_article = $temp[0]; // 현재 쿼리한 게시물의 총 개수를 구함
?>
<!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>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<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">
<tr>
<td align="center"><table align="center"><tr><td><strong><?=$board[a_title]?></strong></td>
</tr></table></td>
</tr>
<tr><td height="1" bgcolor="#0066CC"></td></tr>
<tr><td height="10" ></td></tr>
</table> </td>
</tr>
</table>
<!-- navi end-->
</td>
</tr>
<tr>
<td height="10" style="border-top:1px solid #CCCCCC"><table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-left:1px solid #dfdfdf;border-right:0px solid #dfdfdf">
<?php
$i=0;
$sql="select * from $id where $where order by notice desc,list desc,ridx asc,date desc LIMIT $start, $view_article ";
$dre=mysql_query($sql) or die(mysql_error());
while($data=mysql_fetch_array($dre)){
?>
<tr>
<td height="40" align="left" bgcolor="#FFFFFF" class="table_tit2" style="border-bottom:1px solid #CCCCCC; line-height:20px; padding:10px 0 10px 0"><div align="left"><a href="view.php?id=<?=$id?>&act1=view&vno=<?=$data[no]?>" style="color:#000; padding-left:10px;">▶
<?=$data[subject]==cut_str($data[subject],35)?$data[subject]:cut_str($data[subject],35)."..."?>
<br />
<span style="color:#999999; font-size:12px;padding-left:10px;"><?=$data[name]?> | <?=date("Y-m-d",$data["date"])?> | 조회 : <?=$data[ref]?></span></a></div></td>
</tr>
<?
$i++;
}
?>
</table></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td height="10"><div align="center">
<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>
</div></td>
</tr>
<tr>
<td height="10"> </td>
</tr>
</table></td>
</tr>
</table>
</div></td>
</tr>
</table>
</td>
</tr>
<div id="btm">
<? include "inc/btm.html"; ?>
</div>
OHA YOOOO