MINI MINI MANI MO
<?
$temp1 = mysql_fetch_array(mysql_query("select count(*) from counsel where gubun='3' and step='1' "));
$total_article1 = $temp1[0]; // 현재 쿼리한 게시물의 총 개수를 구함
$temp2 = mysql_fetch_array(mysql_query("select count(*) from counsel where gubun='1' and step='1' "));
$total_article2 = $temp2[0]; // 현재 쿼리한 게시물의 총 개수를 구함
$temp3 = mysql_fetch_array(mysql_query("select count(*) from counsel where gubun='2' and step='1' "));
$total_article3 = $temp3[0]; // 현재 쿼리한 게시물의 총 개수를 구함
$temp4 = mysql_fetch_array(mysql_query("select count(*) from counsel where gubun='4' and step='1' "));
$total_article4 = $temp4[0]; // 현재 쿼리한 게시물의 총 개수를 구함
$temp5 = mysql_fetch_array(mysql_query("select count(*) from counsel where gubun='5' and step='1' "));
$total_article5 = $temp5[0]; // 현재 쿼리한 게시물의 총 개수를 구함
?>
<table cellpadding="5" cellspacing="0" class='b' width='150' align='center' style='margin-top:10px;'>
<tr>
<td width='7'><img src="/admin/image/l_icon.gif"></td>
<td class='l_tit'>상담관리</td>
</tr>
</table>
<table cellpadding="5" cellspacing="0" width='150' align='center'>
<tr>
<td height='2' bgcolor='909090' colspan='2' style="font-size:0px;padding:0px;"></td>
</tr>
<tr>
<td height='10'></td>
</tr>
<tr>
<td class='b_line b'><img src="/admin/image/dot.gif"><a href='/admin/sub01/list01.php'><?if ($chkdir=="sub01" && $chkdir2=="list01.php") {?><font color="#EA0000"><?}?>차량상담</font></a> <? if($total_article1>0){ ?><img src="/admin/img/bnew1.gif" /><? } ?></td>
</tr>
<tr>
<td class='b_line b'><img src="/admin/image/dot.gif"><a href='/admin/sub01/list02.php'><?if ($chkdir=="sub01" && ($chkdir2=="list02.php"||$chkdir2=="view02.php")) {?><font color="#EA0000"><?}?>폐차상담</font></a> <? if($total_article2>0){ ?><img src="/admin/img/bnew1.gif" /><? } ?></td>
</tr>
<!-- <tr>
<td class='b_line b'><img src="/admin/image/dot.gif"><a href='/admin/sub01/list03.php'><?if ($chkdir=="sub01" && ($chkdir2=="list03.php"||$chkdir2=="view03.php")) {?><font color="#EA0000"><?}?>부품상담</font></a> <? if($total_article3>0){ ?><img src="/admin/img/bnew1.gif" /><? } ?></td>
</tr>
<tr>
<td class='b_line b'><img src="/admin/image/dot.gif"><a href='/admin/sub01/list04.php'><?if ($chkdir=="sub01" && ($chkdir2=="list04.php"||$chkdir2=="view04.php")) {?><font color="#EA0000"><?}?>수출상담</font></a> <? if($total_article4>0){ ?><img src="/admin/img/bnew1.gif" /><? } ?></td>
</tr>
<tr>
<td class='b_line b'><img src="/admin/image/dot.gif"><a href='/admin/sub01/list05.php'><?if ($chkdir=="sub01" && $chkdir2=="list05.php") {?><font color="#EA0000"><?}?>폐차광고</font></a> <? if($total_article5>0){ ?><img src="/admin/img/bnew1.gif" /><? } ?></td>
</tr> -->
</table>
OHA YOOOO