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

파일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개 카테고리 제거하신다음에..

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

현재 상태로는.. 복잡해보입니다ㅏㅏㅏㅏㅏ
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

태그 필터 (최대 3개) 전체 개발자 소스 기타 mysql 팁자료실 javascript php linux flash 정규표현식 jquery node.js mobile 웹서버 os 프로그램 강좌 썸네일 이미지관련 도로명주소 그누보드5 기획자 견적서 계약서 기획서 마케팅 제안서 seo 통계 서식 통계자료 퍼블리셔 html css 반응형 웹접근성 퍼블리싱 표준화 반응형웹 홈페이지기초 부트스트랩 angularjs 포럼 스크린리더 센스리더 개발자톡 개발자팁 퍼블리셔톡 퍼블리셔팁 기획자톡 기획자팁 프로그램강좌 퍼블리싱강좌
+
제목 글쓴이 날짜 조회
13년 전 조회 1,221
13년 전 조회 1,290
13년 전 조회 764
13년 전 조회 1,918
13년 전 조회 832
13년 전 조회 908
13년 전 조회 711
13년 전 조회 1,421
13년 전 조회 850
13년 전 조회 1,220
13년 전 조회 1,206
13년 전 조회 715
13년 전 조회 2,302
13년 전 조회 1,459
13년 전 조회 1,165
13년 전 조회 1,129
13년 전 조회 932
13년 전 조회 736
13년 전 조회 670
13년 전 조회 1,401
13년 전 조회 1,172
13년 전 조회 792
13년 전 조회 5,874
13년 전 조회 855
13년 전 조회 679
13년 전 조회 611
13년 전 조회 703
13년 전 조회 1,218
13년 전 조회 812
13년 전 조회 1,025
13년 전 조회 1,358
13년 전 조회 911
13년 전 조회 1,796
13년 전 조회 842
13년 전 조회 851
13년 전 조회 1,266
13년 전 조회 1,418
13년 전 조회 2,086
13년 전 조회 784
13년 전 조회 839
13년 전 조회 758
13년 전 조회 1,418
13년 전 조회 2,058
13년 전 조회 1,164
13년 전 조회 1,485
13년 전 조회 866
13년 전 조회 584
13년 전 조회 699
13년 전 조회 1,235
13년 전 조회 1,895
13년 전 조회 1,669
13년 전 조회 1,255
13년 전 조회 1,317
13년 전 조회 636
13년 전 조회 828
13년 전 조회 2,117
13년 전 조회 760
13년 전 조회 783
13년 전 조회 4,647
13년 전 조회 1,305
13년 전 조회 3,311
13년 전 조회 764
13년 전 조회 822
13년 전 조회 816
13년 전 조회 773
13년 전 조회 1,356
13년 전 조회 727
13년 전 조회 789
13년 전 조회 2,132
13년 전 조회 562
13년 전 조회 2,243
13년 전 조회 1,507
13년 전 조회 1,020
13년 전 조회 815
13년 전 조회 1,888
13년 전 조회 570
13년 전 조회 1,089
13년 전 조회 1,273
13년 전 조회 1,168
13년 전 조회 638
13년 전 조회 812
13년 전 조회 1,074
13년 전 조회 3,640
13년 전 조회 3,181
13년 전 조회 3,760
13년 전 조회 3,097
13년 전 조회 615
13년 전 조회 664
13년 전 조회 765
13년 전 조회 9,209
13년 전 조회 2,232
13년 전 조회 2,649
13년 전 조회 2,616
13년 전 조회 3,183
13년 전 조회 746
13년 전 조회 792
13년 전 조회 4,707
13년 전 조회 738
13년 전 조회 1,415
13년 전 조회 1,273
🐛 버그신고