프리샵 질문 이요.^^ > 질문답변

본문 바로가기

사이트 내 전체검색

뒤로가기 질문답변

프리샵 질문 이요.^^

본문

안뇽하세요.^^

프리샵에서요.

메인에 상품 나열갯수를

5개씩 두줄로 하고 싶은데요~

어느 부분을 수정해야 할까요.?

http://www.rootscanada.co.kr
현재 무한데로 나열이 되는 것 같아서요..ㅡ.ㅡ;;

5개씩 두줄로 나열하고 싶습니다.
추천0

댓글목록 2

제로님의 댓글

제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

lib.inc.php
341라인 수정
**********************************************
function group_item($sel_item,$mod=5, $limit=5){
global $item_table, $category_table, $g_mb_id;
$sql = " select * from $item_table a, $category_table b
                where a.ca_id = b.ca_id and a.it_group ='$sel_item' and b.ca_rank >= 0 and a.it_rank >= 0
 and a.it_sell_use = 'Y'
 order by a.it_id desc,a.ca_id,a.it_rank desc limit $limit ";
$result      = mysql_query($sql) or die (mysql_error());
if(mysql_num_rows($result))
{
echo "<br>";
echo "<table width=100% cellpadding=0 cellspacing=0><tr>";
    $i=0;
    while($row=mysql_fetch_array($result)) {
        if($i%$mod==0 && $i!=0) echo "</tr><tr>";
        $i++;
        echo "<td width=20% valign=top><table width=100% cellpadding=0 cellspacing=0>";
아래쪽에 width=20% 몇군데 고처주세요..
-----------------------------------

center.php수정
**********************************************
<tr><td><? group_item("신규", 5 , 10) ?></td><tr>  <<<한줄에 5개 총 10개 출력
이렇게 하시면 됩니다~

제로님의 댓글의 댓글

제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

프리샵이 먼저 일껍니다~!^^&

전체 1,640건 4 페이지
게시물 검색
Copyright (c) 株式会社YHPLUS. All rights reserved.

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒171-0014 東京都豊島区池袋2-41-5 アーバン154 8F
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

PC 버전으로 보기