[영카트4] 현재 사용중인 사이트 맵 입니다. 정보
[영카트4] 현재 사용중인 사이트 맵 입니다.관련링크
본문
<?
include_once("./_common.php");
$g4[title] = "사이트맵";
include_once("$g4[path]/head_comm.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$width= "97%";
?>
<table width='669' cellpadding='0' cellspacing='0' border='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>
<tr>
<td align='left'><img src='<?=$g4['path']?>/img/html/site_map.gif'></td>
</tr>
</table>
</td>
</tr>
</table>
<table width=95% cellpadding=5 cellspacing=0 align=center border=0>
<tr><td class=sitemap> <B></B></td></tr>
<tr>
<td>
<?
// 1단계 분류 판매가능한것만
$sql = " select ca_id, ca_name from $g4[yc4_category_table]
where length(ca_id) = '2'
and ca_use = '1'
order by ca_id ";
$result = sql_query($sql);
while ($row=mysql_fetch_array($result)) {
echo "<table width=100% cellpadding=4 cellspacing=1 bgcolor=#F0F0F0><tr>";
echo "<td valign=top width=120 bgcolor=#F5F5F5> · <a href='./shop/list.php?ca_id=$row[ca_id]'>$row[ca_name]</a></td>";
echo "<td width='' bgcolor=#FFFFFF> ";
$sql2 = " select ca_id, ca_name from $g4[yc4_category_table]
where LENGTH(ca_id) = '4'
and SUBSTRING(ca_id,1,2) = '$row[ca_id]'
and ca_use = '1'
order by ca_id ";
$result2 = sql_query($sql2);
$bar = "";
while ($row2=mysql_fetch_array($result2)) {
echo "$bar<a href='./shop/list.php?ca_id=$row2[ca_id]'>$row2[ca_name]</a>";
$bar = " | ";
}
echo "</td></tr></table>";
}
?>
</td>
</tr>
</table>
<table width="<?=$width?>" height="380" cellpadding=0 cellspacing=0 align="center" border="0">
<tr><td height="20"></td></tr>
<tr><td valign="top">
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>
<?
$cells = 0;
switch(true)
{
case $member[mb_level] <= 5 : // 정회원 5 미만일때
$except="'banner','test'"; // 제외 그룹
break;
case $member[mb_level] <= 4 : // 정회원일때
$except="'banner','test'"; // 제외그룹
break;
default:
$except="''";
}
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id not in ($except) order by gr_subject desc ";
$rst1 = sql_query($sql);
while ($row=sql_fetch_array($rst1)) {
if($cells%3==0)
echo "</tr><tr>";
echo "<td width='33%' valign='top' align='center'>";
echo "<table width='179' height='100%' cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td background='$g4[path]/img/sitemap_bg1.gif' width='179' height='42' style='padding-left:22px;'><img src='$g4[path]/img/icon_dot.gif' width='2' height='2' align='absmiddle'> <strong>$row[gr_subject]</strong></td></tr>"; // 그룹명 출력
$sql2 = " select * from $g4[board_table] where gr_id = '$row[gr_id]' order by bo_order_search ";
$rst2 = sql_query($sql2);
$cells++;
while ($row2=sql_fetch_array($rst2)) {
$new_time = date("Y-m-d H:i:s", time()-3600*$row2[bo_new]);
$sql3 = " select count(*) as cnt from $g4[write_prefix]$row2[bo_table] where wr_datetime >= '$new_time' ";
$row3 = sql_fetch($sql3);
if ($row3[cnt] > 0)
$new = " <img src='$g4[path]/img/icon_new.gif'>"; // new 아이콘
else
$new = ""; //new 아이콘 없음
echo "<tr><td style='padding-left:18px; height:26px;'>ㆍ<a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]'>$row2[bo_subject]</a> $new <br /></td>";
echo "<tr><td height='1' bgcolor='#E9E9E9'></td></tr>";
}
echo "<tr><td height='20'></td></tr></table>";
echo "</td>";
}
?>
</tr>
</table>
</table>
<?
include_once("$g4[path]/tail_comm.php");
?>
봉화몰님 스킨위에 영카트3에 쓰이던 카테고리를 영카트4로
고친것 외에는 별다른것 없습니다.
미리보기 : http://okpcas.co.kr/cart/sitemap.php
include_once("./_common.php");
$g4[title] = "사이트맵";
include_once("$g4[path]/head_comm.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$width= "97%";
?>
<table width='669' cellpadding='0' cellspacing='0' border='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>
<tr>
<td align='left'><img src='<?=$g4['path']?>/img/html/site_map.gif'></td>
</tr>
</table>
</td>
</tr>
</table>
<table width=95% cellpadding=5 cellspacing=0 align=center border=0>
<tr><td class=sitemap> <B></B></td></tr>
<tr>
<td>
<?
// 1단계 분류 판매가능한것만
$sql = " select ca_id, ca_name from $g4[yc4_category_table]
where length(ca_id) = '2'
and ca_use = '1'
order by ca_id ";
$result = sql_query($sql);
while ($row=mysql_fetch_array($result)) {
echo "<table width=100% cellpadding=4 cellspacing=1 bgcolor=#F0F0F0><tr>";
echo "<td valign=top width=120 bgcolor=#F5F5F5> · <a href='./shop/list.php?ca_id=$row[ca_id]'>$row[ca_name]</a></td>";
echo "<td width='' bgcolor=#FFFFFF> ";
$sql2 = " select ca_id, ca_name from $g4[yc4_category_table]
where LENGTH(ca_id) = '4'
and SUBSTRING(ca_id,1,2) = '$row[ca_id]'
and ca_use = '1'
order by ca_id ";
$result2 = sql_query($sql2);
$bar = "";
while ($row2=mysql_fetch_array($result2)) {
echo "$bar<a href='./shop/list.php?ca_id=$row2[ca_id]'>$row2[ca_name]</a>";
$bar = " | ";
}
echo "</td></tr></table>";
}
?>
</td>
</tr>
</table>
<table width="<?=$width?>" height="380" cellpadding=0 cellspacing=0 align="center" border="0">
<tr><td height="20"></td></tr>
<tr><td valign="top">
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>
<?
$cells = 0;
switch(true)
{
case $member[mb_level] <= 5 : // 정회원 5 미만일때
$except="'banner','test'"; // 제외 그룹
break;
case $member[mb_level] <= 4 : // 정회원일때
$except="'banner','test'"; // 제외그룹
break;
default:
$except="''";
}
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id not in ($except) order by gr_subject desc ";
$rst1 = sql_query($sql);
while ($row=sql_fetch_array($rst1)) {
if($cells%3==0)
echo "</tr><tr>";
echo "<td width='33%' valign='top' align='center'>";
echo "<table width='179' height='100%' cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td background='$g4[path]/img/sitemap_bg1.gif' width='179' height='42' style='padding-left:22px;'><img src='$g4[path]/img/icon_dot.gif' width='2' height='2' align='absmiddle'> <strong>$row[gr_subject]</strong></td></tr>"; // 그룹명 출력
$sql2 = " select * from $g4[board_table] where gr_id = '$row[gr_id]' order by bo_order_search ";
$rst2 = sql_query($sql2);
$cells++;
while ($row2=sql_fetch_array($rst2)) {
$new_time = date("Y-m-d H:i:s", time()-3600*$row2[bo_new]);
$sql3 = " select count(*) as cnt from $g4[write_prefix]$row2[bo_table] where wr_datetime >= '$new_time' ";
$row3 = sql_fetch($sql3);
if ($row3[cnt] > 0)
$new = " <img src='$g4[path]/img/icon_new.gif'>"; // new 아이콘
else
$new = ""; //new 아이콘 없음
echo "<tr><td style='padding-left:18px; height:26px;'>ㆍ<a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]'>$row2[bo_subject]</a> $new <br /></td>";
echo "<tr><td height='1' bgcolor='#E9E9E9'></td></tr>";
}
echo "<tr><td height='20'></td></tr></table>";
echo "</td>";
}
?>
</tr>
</table>
</table>
<?
include_once("$g4[path]/tail_comm.php");
?>
봉화몰님 스킨위에 영카트3에 쓰이던 카테고리를 영카트4로
고친것 외에는 별다른것 없습니다.
미리보기 : http://okpcas.co.kr/cart/sitemap.php
추천
0
0
댓글 2개
good입니다..잘사용하겠습니다
네.^^b
좋은 오후 보내세요 !!!
좋은 오후 보내세요 !!!