2026, 새로운 도약을 시작합니다.

홈페이지 카테고리 수정 도움 요청

파일1.jpg


사진에 보이는 카테고리처럼 이상하게 되어 버렸어요
원래는 해당 카테고리에 마우스를 올리게 되면 거기만 한글로 바뀌게 되어 있었구요,
이렇게 된 이유는 위에 루이비통,구찌,프라다,샤넬 저 카테고리만 지우려다가..
잘못 건든것 같아요. 위에 적은 4개의 카테고리만 지우는 방법 없을까요...
초보이다 보니까 잘 못건드리겠네요..ㅠㅠ

★. 이건 나모에서 FTP로 열기한 a_left.html 파일 소스구요 

<meta name="generator" content="Namo WebEditor(Trial)">
<table width="180" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/cate_01.gif"></td>
  </tr>
  <tr>
    <td align="center" background="images/cate_bg.gif"><!----------- 쇼핑 카테고리 ---------->
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
<?
/*******************************************************************
// 하위메뉴형 카테고리
*******************************************************************/
$category_use = "0";
if($ps_ctid && $category_use > 0){
$ps_ctid_tw = substr($ps_ctid, 0, 2);
$ca_depth_num = 2;
$ca_depth_num2 = 3;
$ca_depth_num3 = 4;
$하위 = "and substring(category_id,1,2) = '$ps_ctid_tw'";
}else{
$ca_depth_num = 1;
$ca_depth_num2 = 2;
$ca_depth_num3 = 2;
}
/*******************************************************************
// 상품카테고리 디자인
*******************************************************************/
$ca_result = morning_query_error("select * from $morning_category_table where category_depth = '$ca_depth_num' and approval_date > 0  $하위 order by category_rank");

$g_category_list = "<select size=\"1\" name=\"ps_ctid\">\n";
$g_category_list .= "<option value=\"\">모든매장</option>\n";
while($ca_list = morning_fetch_array($ca_result)) {
$display_level = "";

// 셀렉트 카테고리 만들어 놓기
$ca_list[category_name] = trim($ca_list[category_name]);
if($ps_ctid == $ca_list[category_id]){$ca_chk="selected";}else{$ca_chk="";}
$g_category_list .= "<option value=\"$ca_list[category_id]\" $ca_chk>$ca_list[category_name]</option>\n";

$cno++;
$parent_str = substr($ca_list[category_id], 0, $ca_depth_num3);

// 버튼이미지로 사용하기
if($ca_list[category_file1]) {
  $show_category_name = "<img src=\"$ca_list[category_file1]\" border=\"0\" onMouseOver=\"this.style.filter = 'alpha(opacity=0)';\" onMouseOut=\"this.style.filter='none';\">";
} else {
  $show_category_name = "$ca_list[category_name]";
}

// 서브레이어 카테고리 $ly_view[$cno] 변수로 만들어 놓기
if($cf_left_layer == "1") {
$sc_result = morning_query_error("select * from $morning_category_table where substring(category_id,1,$ca_depth_num3) = $parent_str and category_depth = '$ca_depth_num2' and approval_date > 0  order by category_rank");

while($sc_list = morning_fetch_array($sc_result)) {
$scno++;
if($scno == "1"){$ly_view[$cno] = "
<div style='position:relative;left:0px;top:0px'>
<div id='category$cno' style='position:absolute; width:150px; z-index:1; left: 170px; top: -2px;display:none'>
<table width='100%' border='0' cellspacing='1' cellpadding='4' align='center'>
";}

$ly_view[$cno] .= "
 <!-- 서브레이어 (서브카테고리 수만큼 반복시켜 배열에 담기)-->
 <tr>
<td bgcolor='#e8e8e8' onclick=location.href='m_mall_list.php?ps_ctid=$sc_list[category_id]' onMouseOver=this.style.backgroundColor=\"#cccccc\" onMouseOut=this.style.backgroundColor=\"\" style='cursor:hand;border:1 solid #e8e8e8; FILTER:alpha(opacity=80);'>
 <table width='100%' border='0' cellspacing='0' cellpadding='0' align='center'>
<tr>
 <td width=10><img src='$g_skin_link/image/R_icon_02.gif' width='3' height='3'></td>
 <td>$sc_list[category_name]</td>
</tr>
 </table>
</td>
 </tr>
 <!-- 서브레이어 (서브카테고리 수만큼 반복시켜 배열에 담기)end-->
";
}

if($scno > 0) {
$ly_view[$cno] .= "
</table>
</div>
</div>";
}

if(!$scno){$ly_view[$cno] = "<div style='position:relative;left:0px;top:0px'><div id='category$cno' style='position:absolute; width:150px; z-index:1; left: 80px; top: -7px;display:none'></div></div>";} //하위메뉴없는 거는 빈레이어 만들기
$scno = "0";
// 서브레이어 카테고리 $ly_view[$cno] 변수로 만들어 놓기 end

}//if($cf_left_layer == "1") end
?>
<!-- 카테고리 메인메뉴 시작 (메인카테고리 수만큼 반복)-->
                      <tr> 
                        <td height="26" <? if($cf_left_layer == "1"){?>onmouseover="javascript:show('category<?=$cno?>')" onMouseOut="javascript:hide('category<?=$cno?>')"<?}?>>

<? if($cf_left_layer == "1"){echo"$ly_view[$cno]";}?><!-- 서브레이어 불러오기-->
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr onclick=location.href="m_mall_list.php?ps_ctid=<?=$ca_list[category_id]?>&quot;> 
 <td style="cursor:hand"><?=$show_category_name?><!-- 카테고리이름 --></td>
 </table>

                        </td>
                      </tr>
 <!-- 카테고리 메인메뉴 시작 (메인카테고리 수만큼 반복) end -->
<?
}
$g_category_list .= "</select>";
?>
            </table>
<!-----------// 쇼핑 카테고리 ----------></td>
  </tr>
  <tr>
    <td><img src="images/cate_14.gif"></td>
  </tr>
  <tr>
    <td><a href="m_board.php?ps_db=notice"><img src="images/cate_03-15.gif" border="0"></a></td>
  </tr>
  <tr>
    <td><a href="m_board.php?ps_db=qna"><img src="images/cate_03-16.gif" border="0"></a></td>
  </tr>
  <tr>
    <td><a href="m_board.php?ps_db=check"><img src="images/cate_03-17.gif" border="0"></a></td>
  </tr>
  <tr>
    <td><a href="m_board.php?ps_db=freeboard"><img src="images/cate_03-18.gif" border="0"></a></td>
  </tr>
  <tr>
    <td><a href="m_board.php?ps_db=wholesale"><img src="images/cate_03-19.gif" border="0"></a></td>
  </tr>
  <tr>
    <td><img src="images/cate_20.gif"></td>
  </tr>
  <tr>
    <td><img src="images/cate_21.gif"></td>
  </tr>
  <tr>
    <td><img src="images/cate_22.gif" border="0" usemap="#bMap"></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

<map name="bMap">
<area shape="rect" coords="67,7,108,30" href="http://www.hanabank.com/" target="_blank" />
<area shape="rect" coords="9,9,48,31" href="http://www.kbstar.com/" target="_blank" />
<area shape="rect" coords="128,6,173,30" href="http://www.wooribank.com/" target="_blank" />
<area shape="rect" coords="6,37,45,56" href="http://www.mybank.co.kr/" target="_blank" />
<area shape="rect" coords="64,34,116,56" href="http://www.epostbank.go.kr/" target="_blank" />
<area shape="rect" coords="127,34,174,55" href="http://www.chb.co.kr/" target="_blank" />
<area shape="rect" coords="7,59,51,82" href="http://www.keb.co.kr/" target="_blank" />
<area shape="rect" coords="66,61,115,82" href="http://www.nonghyup.com/Main/main.aspx" target="_blank" />
<area shape="rect" coords="123,61,175,81" href="http://www.scfirstbank.com/gw/index.html" target="_blank" />
</map>




★. 이건 m_mall_list.php 입니다


<meta name="generator" content="Namo WebEditor(Trial)">
<?php
include "func_ini.php";
session_start();
include "session.php";
include "func.php";
include "counter.php";

/*--------------------- ps_ctid 있는지 검사해서 돌여 보내기 ---------------------*/
if(!$ps_ctid or $ps_ctid == "00000000") {
   $te_list = morning_fetch_array(morning_query_error("select * from $morning_category_table order by category_id asc limit 1, 1"));
   if($te_list[category_id]) {
       $ps_ctid = $te_list[category_id];
   } else {
       error_msg("$ERROR_MALL_CTEGORY_UID","");
   }
}

/*--------------------- 카테고리정보 ---------------------*/
$mc_list = morning_fetch_array(morning_query_error("select * from $morning_category_table where category_id = '$ps_ctid'"));

/*--------------------- 카테고리 헤더와 풋더 레벨만들기 ---------------------*/
$tmp_level = category_level($ps_ctid);
for($ii = $tmp_level;$tmp_level > 0;$tmp_level--){
$next_num = ($tmp_level)*2;
$parent_str = substr($ps_ctid, 0, $next_num);

if(!$mc_list[category_head]){
if(!$ca_list[category_head]){
$ca_list = morning_fetch_array(morning_query_error("select * from $morning_category_table where substring(category_id,1,$next_num) = '$parent_str'"));
$mc_list[category_head] = $ca_list[category_head];
$mc_list[category_foot] = $ca_list[category_foot];
}
}

if(!$mc_list[category_head_file]){
if(!$caf_list[category_head_file]){
$caf_list = morning_fetch_array(morning_query_error("select * from $morning_category_table where substring(category_id,1,$next_num) = '$parent_str'"));
$mc_list[category_head_file] = $caf_list[category_head_file];
$mc_list[category_foot_file] = $caf_list[category_foot_file];
}
}
}

if(!$mc_list[uid]) error_msg("$ERROR_MALL_CTEGORY_UID","");

/*--------------------- 카테고리 출입 제한 ---------------------*/
if($g_check_rank < $mc_list[category_grant]) {
    if(!$g_check_id) { error_msg("$ERROR_MALL_GRANT","m_login.php?url=m_mall_list.php&ps_ctid=$ps_ctid");
    } else { error_msg("$ERROR_MALL_GRANT_MEMBER",""); }
}

/*--------------------- 카테고리 헤더파일 불러오기 ---------------------*/
if($mc_list[category_head_file]){include "$mc_list[category_head_file]";}else{include "m_header.php";}

/*--------------------- 카테고리 선택시 ---------------------*/
$search_sql = " where a.goods_class = '0' and a.approval_date > '0' ";

if($ps_ctid) {
$tmp_level = category_level($ps_ctid);
    $next_num = ($tmp_level)*2;
    $parent_str = substr($ps_ctid, 0, $next_num);

    /*-- 일반상품 --*/
$search_sql .= " and ( substring(a.goods_category,1,$next_num) = '$parent_str' or substring(a.goods_mcategory1,1,$next_num) = '$parent_str' or substring(a.goods_mcategory2,1,$next_num) = '$parent_str' or substring(a.goods_mcategory3,1,$next_num) = '$parent_str' or substring(a.goods_mcategory4,1,$next_num) = '$parent_str' or substring(a.goods_mcategory5,1,$next_num) = '$parent_str'  ) and a.goods_grant <= $g_check_rank";

/*-- 브랜드상품 --*/
$brand_sql = $search_sql;
}

/*--------------------- 카테고리내 검색시 ---------------------*/
if($ps_search) {
    if($ps_subject == "subject") { $search_sql .= " and a.goods_name like '%$ps_search%' "; }
    elseif($ps_subject == "detail") { $search_sql .= " and a.goods_name like '%ps_search%' and a.goods_main like '%$ps_search%' "; }
    else { $search_sql .= " and a.goods_name like '%$ps_search%' "; }

$brand_sql = $search_sql;
}

if($ps_brand){ $search_sql .= " and a.goods_brand = '$ps_brand'";}

/*--------------------- 출력순서 ---------------------*/
if($ps_line == "best")         { $order_by = " order by a.goods_sale_stock desc "; }
elseif($ps_line == "new")      { $order_by = " order by a.register_date desc "; }
elseif($ps_line == "high")     { $order_by = " order by a.goods_sale_price desc "; }
elseif($ps_line == "low")      { $order_by = " order by a.goods_sale_price asc "; }
elseif($ps_line == "point")    { $order_by = " order by a.goods_point desc "; }
elseif($ps_line == "category") { $order_by = " order by a.goods_category desc "; }
elseif($ps_line == "brand")    { $order_by = " order by a.goods_brand desc "; }
elseif($ps_line == "company")  { $order_by = " order by a.goods_company desc "; }
elseif($ps_line == "origin")  { $order_by = " order by a.goods_origin desc "; }
else { $order_by = " order by a.goods_rank asc "; }

$search_sql2 = str_replace('a.','',$search_sql);

/*--------------------- 브랜드 카테고리 ---------------------
$bq =  "select count(uid) as total,goods_brand from $morning_goods_table $brand_sql group by goods_brand";
$bq_result = morning_query_error($bq);

while($bqrow = morning_fetch_array($bq_result)){
if(trim($bqrow[goods_brand])){
$br_view .= "<div style='padding:5px 9px 5px 9px;text-align:left;float:left;white-space:nowrap'><a href='$PHP_SELF?ps_ctid=$ps_ctid&ps_brand=$bqrow[goods_brand]'>$bqrow[goods_brand] <font color=red>($bqrow[total])</font></a></div>";
}
}
*/
/*--------------------- 토탈 페이지 계산 ---------------------*/
//$total_count = morning_counter($morning_goods_table, "$search_sql", "*");
$total_count = morning_counter($morning_goods_table, "$search_sql2", "*");

/*--------------------- 모바일일때 목록수량 ---------------------*/
if($_SESSION["mobile_sess"] == "on"){
$cf_limit_list = "6";
}

/*--------------------- 카테고리상단 가져오기 ---------------------*/
//$gt_result = morning_query_error("select * from $morning_goods_table $search_sql2 and goods_status = '3' order by goods_rank asc limit 0, 5");

/*--------------------- 페이징 ---------------------*/
$list_num = $cf_limit_list;
$page_num = 10;

// 전체 페이지 계산
$total_page  = @ceil($total_count / $list_num);

// 페이지가 없으면 첫 페이지 (1 페이지)
if ($ps_page == "") $ps_page = 1;
$from_record = ($ps_page - 1) * $list_num;
$counter = $total_count - (($ps_page - 1) * $list_num);

/*--------------------- 본상품가져오기 ---------------------*/
//$query =  "select * from $morning_goods_table $search_sql $order_by limit $from_record, $list_num";
$query =  "select a.*, b.category_id, b.category_img_x, b.category_img_y, b.category_img_x2, b.category_img_y2 from $morning_goods_table AS a left outer join $morning_category_table AS b on a.goods_category=b.category_id $search_sql $order_by limit $from_record, $list_num";
$result = morning_query_error($query);

/*--------------------- 하위 카테고리 네비게이션 ---------------------*/
$tree_text = tree_navigation($ps_ctid);

/*--------------------- <br> 태그 넣어주기 ---------------------*/
if(!$mc_list[use_html]) {
   $mc_list[category_head] = make_br($mc_list[category_head]);
   $mc_list[category_foot] = make_br($mc_list[category_foot]);
}

/*--------------------- 카테고리 상단 내용 ---------------------*/
if($mc_list[category_head]) { echo "$mc_list[category_head]"; }


// ----------------------------------------------------------
// 모바일모드
// ----------------------------------------------------------
if($_SESSION["mobile_sess"] == "on"){

include "mobile/mbi_goods_list.html";

// ----------------------------------------------------------
// PC모드
// ----------------------------------------------------------
}else{ 
include "$g_mall_skin_dir/$cf_skin_name/$mc_list[category_skin]";
}

/*--------------------- 카테고리 하단 내용 ---------------------*/
if($mc_list[category_foot]) { echo "$mc_list[category_foot]"; }

/*--------------------- 카테고리 바톰파일 불러오기 ---------------------*/
if($mc_list[category_foot_file]){include "$mc_list[category_foot_file]";}else{include "m_bottom.php";}
morning_close($connect);
exit;
 ?>



★. 이건 a_category.html 입니다.. 


<!-- Save for Web Slices (cate.psd) -->
<meta name="generator" content="Namo WebEditor(Trial)">
<table id="__01" width="180" height="1162" border="0" cellpadding="0" cellspacing="0">
<!>
<meta name="generator" content="Namo WebEditor(Trial)">
<table id="__01" width="180" height="1162" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="images/cate_01.gif" width="180" height="26" alt=""></td>
</tr>
<tr>
<td>
<a href="m_mall_list.php?ps_ctid=01000000"><img src="images/cate_02.gif" alt="" width="180" height="28" border="0"></a></td>
</tr>
<tr>
<td>
<a href="m_mall_list.php?ps_ctid=01010000"><img src="images/cate_03.gif" alt="" width="180" height="21" border="0"></a></td>
</tr>
<tr>
<td>
<a href="m_mall_list.php?ps_ctid=01020000"><img src="images/cate_04.gif" alt="" width="180" height="19" border="0"></a></td>
</tr>
<tr>
<td>
<a href="m_mall_list.php?ps_ctid=01030000"><img src="images/cate_05.gif" alt="" width="180" height="19" border="0"></a></td>
</tr>
<tr>
<td>
<a href="m_mall_list.php?ps_ctid=01030000"><img src="images/cate_05.gif" alt="" width="180" height="19" border="0"></a></td>
</tr>
<tr>
<td>
<a href="m_mall_list.php?ps_ctid=01040000"><img src="images/cate_06.gif" alt="" width="180" height="20" border="0"></a></td>
</tr>
<tr>
<td>
<a href="m_mall_list.php?ps_ctid=01050000"><img src="images/cate_07.gif" alt="" width="180" height="19" border="0"></a></td>
</tr>
<tr>
<td>
<a href="m_mall_list.php?ps_ctid=01060000"><img src="images/cate_08.gif" alt="" width="180" height="21" border="0"></a></td>
</tr>
<tr>
<td>

첨부파일

파일1.jpg (23.4 KB)
0회 2012-06-15 18:26
|

댓글 2개

해당 코드로는 도저히 감이 안오구요.. 이미지맵 쓰고 그런게 있으니.. 감이 안잡히네요

괜찮은 방법은 코드를 새로 짜는게 나을것같아요;

위의 보시면 카테고리 등록된거 다 불러오고.. 왼쪽 메뉴 이미지 처리하고 그런것이..

쿼리문에서 우선 4개 못불러오게 처리하고 where 절에서 4개 카테고리 제거하신다음에..

이미지맵으로 메뉴처리된곳을 그냥 사각형으로 잘라서 넣으시면 될거같은데..

현재 상태로는.. 복잡해보입니다ㅏㅏㅏㅏㅏ

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

프로그램

번호 제목 글쓴이 날짜 조회
8230 9년 전 조회 18
8229 9년 전 조회 25
8228 9년 전 조회 62
8227 9년 전 조회 71
8226 9년 전 조회 115
8225 9년 전 조회 99
8224 9년 전 조회 92
8223 9년 전 조회 53
8222 9년 전 조회 126
8221 9년 전 조회 38
8220 9년 전 조회 35
8219 9년 전 조회 38
8218 9년 전 조회 72
8217 9년 전 조회 51
8216 9년 전 조회 100
8215 9년 전 조회 55
8214 9년 전 조회 175
8213 9년 전 조회 116
8212 9년 전 조회 22
8211 9년 전 조회 191
8210 9년 전 조회 180
8209 9년 전 조회 281
8208 9년 전 조회 153
8207 9년 전 조회 171
8206 9년 전 조회 127
8205 9년 전 조회 119
8204 9년 전 조회 75
8203 9년 전 조회 168
8202 9년 전 조회 97
8201 9년 전 조회 137
8200 9년 전 조회 94
8199 9년 전 조회 148
8198 9년 전 조회 123
8197 9년 전 조회 102
8196 9년 전 조회 479
8195 9년 전 조회 102
8194 9년 전 조회 238
8193 9년 전 조회 108
8192 9년 전 조회 133
8191 9년 전 조회 87
8190 9년 전 조회 83
8189 9년 전 조회 140
8188 9년 전 조회 70
8187 9년 전 조회 91
8186 9년 전 조회 101
8185 9년 전 조회 260
8184 9년 전 조회 56
8183 9년 전 조회 286
8182 9년 전 조회 115
8181 9년 전 조회 82
8180 9년 전 조회 647
8179 9년 전 조회 443
8178 9년 전 조회 248
8177 9년 전 조회 253
8176 9년 전 조회 298
8175 9년 전 조회 172
8174 9년 전 조회 178
8173 9년 전 조회 295
8172 9년 전 조회 138
8171 9년 전 조회 137
8170 9년 전 조회 245
8169 9년 전 조회 213
8168 9년 전 조회 263
8167 9년 전 조회 274
8166 9년 전 조회 188
8165 9년 전 조회 128
8164 9년 전 조회 247
8163 9년 전 조회 235
8162 9년 전 조회 244
8161 9년 전 조회 233
8160 9년 전 조회 436
8159 9년 전 조회 340
8158 9년 전 조회 162
8157 9년 전 조회 307
8156 9년 전 조회 219
8155 9년 전 조회 201
8154 9년 전 조회 541
8153 9년 전 조회 174
8152 9년 전 조회 346
8151 9년 전 조회 356
8150 9년 전 조회 445
8149 9년 전 조회 283
8148 9년 전 조회 112
8147 9년 전 조회 331
8146 9년 전 조회 386
8145 9년 전 조회 305
8144 9년 전 조회 271
8143 9년 전 조회 125
8142 9년 전 조회 377
8141 9년 전 조회 326
8140 9년 전 조회 868
8139 9년 전 조회 192
8138 9년 전 조회 339
8137 9년 전 조회 316
8136 9년 전 조회 683
8135 9년 전 조회 721
8134 9년 전 조회 437
8133 9년 전 조회 386
8132 9년 전 조회 400
8131 9년 전 조회 753
🐛 버그신고