dbConnect(); } include_once $_SERVER[DOCUMENT_ROOT]."/new_2015/cgi/lib/shop_conf.inc"; // action 및 기본파일 경로설정 $act_path = "/new_2015/cgi/code"; $b_file = "/new_2015/cgi/code.html"; $upfile_path = $_SERVER[DOCUMENT_ROOT]."/new_2015/cgi/code/upload"; // 사용 테이블정의 $goods_tab = "goods"; $orders_tab = "orders"; $cart_tab = "cart"; if(!$code1) $code1 = "A"; switch ($on) { case "1" : $type = "view"; $code1 = "A"; $code2 = "AA"; $code3 = "AAA"; break; case "3" : $type = "view"; $code1 = "A"; $code2 = "AA"; $code3 = "AAC"; break; case "6" : $type = "list"; $code1 = "A"; $code2 = "AB"; $gubun = 3; break; case "7" : $type = "list"; $code1 = "A"; $code2 = "AC"; $gubun = 3; break; case "8" : $type = "list"; $code1 = "A"; $code2 = "AD"; $gubun = 3; break; case "9" : $type = "list"; $code1 = "A"; $code2 = "AE"; $gubun = 3; break; } // 코드명 및 맵 $map = "Home"; //$map2 = "쇼핑몰"; if($code1) { $code1_nm = getCodeName($code1, 1); $map .= " > $code1_nm"; $map2 .= "쇼핑몰 > $code1_nm"; } if($code2) { $code2_nm = getCodeName($code2, 2); $map .= " > $code2_nm"; $map2 .= " > $code2_nm"; } if($code3) { $code3_nm = getCodeName($code3, 3); $map .= " > $code3_nm"; $map2 .= " > $code3_nm"; } if($code4) { $code4_nm = getCodeName($code4, 4); $map .= " > $code4_nm"; $map2 .= " > $code4_nm"; } if($code5) { $code5_nm = getCodeName($code5, 5); $map .= " > $code5_nm"; $map2 .= " > $code5_nm"; } //$map .= " > $name"; include "../include/header2.php"; //include $_SERVER[DOCUMENT_ROOT]."/inc/code_up.html"; if($type) $type = $type; //if(!$type) $type = "list"; if($mode == "search") $type_add = "_search"; include $DOCUMENT_ROOT."/new_2015/cgi/code/{$type}{$type_add}.html"; // 하단 include "../include/footer.php"; //include $_SERVER[DOCUMENT_ROOT]."/inc/code_down.html"; if($connectionID) $dbapi->dbDisconnect($connectionID); ?>