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();
?>
<!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 style="padding-left:10px;"><strong>수출상담</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>
<div align="center">
<!-- contents start--><table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" style="color:#FF0000"> </td>
<td align="right" valign="top" style="color:#FF0000"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td style="padding-left:3px;"> </td>
<td style="padding-left:3px;"><a href="sub07_write.php"><img src="/images/w_bt.jpg" border="0" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td height="5" colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" style="border-top:1px solid #0066CC;">
<tr>
<td width="9%" height="30" align="center" bgcolor="#F6F6F6"><strong>no</strong></td>
<td width="13%" align="center" bgcolor="#F6F6F6"><strong>구분</strong></td>
<td width="66%" align="center" bgcolor="#F6F6F6"><strong>제목</strong></td>
<td width="12%" align="center" bgcolor="#F6F6F6"><strong>등록자</strong></td>
</tr>
<?
$view_article = 15; // 한화면에 나타날 게시물의 총 개수
if (!$page) $page = 1; // 현재 페이지 지정되지 않았을 경우 1로 지정
$start = ($page-1)*$view_article;
$query = "select count(*) from counsel where gubun='1' ";
$result = mysql_query($query);
$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 style="cursor:pointer">
<td height="30" align="center" bgcolor="#FFFFFF" onclick="location.href='sub07_view.php';"><?=$num?></td>
<td height="30" align="center" bgcolor="#FFFFFF" onclick="location.href='sub07_view.php';"><?=$data[type]?></td>
<td align="left" bgcolor="#FFFFFF" onclick="location.href='sub07_view.php?idx=<?=$data[idx]?>';" style="padding-left:10px;"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><?=$data[type2]=="기타"?$data[title]:$data[type2]?></td>
<td style="padding-left:10px;"><img src="/images/lock.png" style='vertical-align:middle; '/></td>
</tr>
</table></td>
<td align="center" bgcolor="#FFFFFF" onclick="location.href='sub07_view.php?idx=<?=$data[idx]?>';"><?=$data[name]?></td>
</tr>
<tr style="cursor:pointer">
<td height="1" align="center" bgcolor="#cccccc" colspan="4"></td>
</tr>
<?
$i++;
}
?>
</table></td>
</tr>
<tr>
<td height="5" colspan="2"> </td>
</tr>
<tr>
<td height="5" colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15%"> </td>
<td align="center"><? include "../inc/page.php";?></td>
<td width="15%" align="right"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="5" colspan="2"> </td>
</tr>
</table>
</div>
<!-- contents end--> </td>
</tr>
<div id="btm">
<? include "inc/btm.html"; ?>
</div>
OHA YOOOO