묻고답하기

<!--@foreach($document_list as $no => $document)-->

 

제가 php에 대해 정확히 잘 몰라서요

 

위에 반복문에 보면

 

$document_list as $no

 

란것은 document_list에 있는 정보를 $no에 배열 순서대로 주면서 document_list의 배열의 갯수만큼 주는것 맞나요?

 

아니라면 더 알기쉽게 설명 부탁드리구요

 

뒤에

 

=> $document

 

는 어떤 의미인지 알고싶어요

 

=>가 뭔지도 모르겠네요 php책을 보면 저런건 안보이는데...

 

 결과적으로 제가 하고싶은건 그 소스를 수정해서 게시판에 목록 갯수를 목록만 볼때는 10개를 본다면 게시물을 볼때에는 아래에 5개만 뜨게 하고싶어서 질문드리는거에요

 

 

 

 

이 파일은

 

style.webzine.html 라는 파일이구요

 

파일의 전체 내용은 바로 아래에 있습니다.

 

<!-- 목록 출력 -->
    목록출력의 시작부위<form action="./" method="get">
    {@ $_col_count = 2; }

        <table cellspacing="0" summary="" class="boardList">
        <!--@if($module_info->display_number!='N')--><col width="80" /> {@ $_col_count++ }<!--@end-->
        <!--@if($grant->is_admin)--><col width="30" />{@ $_col_count++}<!--@end-->
        <col width="{$module_info->thumbnail_width+20}" />
        <col />
        <!--@if($module_info->display_author!='N')--><col width="120" /> {@ $_col_count++ }<!--@end-->
        <!--@if($module_info->display_readed_count!='N')--><col width="60" /> {@ $_col_count++ }<!--@end-->
        <!--@if($module_info->display_voted_count!='N')--><col width="60" /> {@ $_col_count++ }<!--@end-->
        <!--@if($module_info->display_regdate != 'N'+ '+ ')--><col width="80" /> {@ $_col_count++ }<!--@end-->
        <!--@if($module_info->display_last_update == 'Y')--><col width="90" /> {@ $_col_count++ }<!--@end-->
        <!--@if($_col_count>2)-->
        <thead>
            {@ $no_line_class = " no_line" }
            <tr>
                <!--@if($module_info->display_number!='N')--><th scope="col" class="num{$no_line_class}">{$lang->no}</th>{@ $no_line_class=""}<!--@end-->

                <!--@if($grant->is_admin)-->관리자모드일때출력<th scope="col" class="checkbox{$no_line_class}"><input type="checkbox" onclick="clickCheckBoxAll(this.form, 'cart'); return false;" /></th>{@ $no_line_class=""}<!--@end-->

                <th scope="col" colspan="2" class="<!--@if($module_info->use_category=='Y'+ ')-->category<!--@else-->title<!--@end-->{$no_line_class}">

                    <!--@if($module_info->use_category == "Y")-->
                        <select name="category" id="board_category">
                            <option value="" >{$lang->category}</option>
                            <!--@foreach($category_list as $val)-->
                            <option value="{$val->category_srl}" <!--@if($category==$val->category_srl)-->selected="selected"<!--@end-->>{str_repeat("&nbsp;&nbsp;",$val->depth)} {$val->title} <!--@if($val->document_count)-->({$val->document_count})<!--@end--></option>
                            <!--@end-->
                        </select>
                        <input type="button" name="go_button" id= "go_button" value="GO" onclick="doChangeCategory(); return false;" class="buttonTypeGo" />
                    <!--@else-->
                    {$lang->title}
                    <!--@end-->
                </th>
                <!--@if($module_info->display_author!='N')--><th class="author" scope="col">글쓴이{$lang->writer}</th><!--@end-->

                <!--@if($module_info->display_readed_count!='N')--><th class="reading" scope="col">조회수<a href="{getUrl('sort_index','readed_count','order_type',$order_type)}">{$lang->readed_count}<!--@if($sort_index=='readed_count')--><img src="./images/common/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a></th><!--@end-->

                <!--@if($module_info->display_voted_count!='N')--><th class="recommend" scope="col">추천수<a href="{getUrl('sort_index','voted_count','order_type',$order_type)}">{$lang->voted_count}<!--@if($sort_index=='voted_count')--><img src="./images/common/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a></th><!--@end-->

                <!--@if($module_info->display_regdate != 'N')--><th scope="col" class="date">날짜<a href="{getUrl('sort_index','regdate','order_type',$order_type)}">{$lang->date}<!--@if($sort_index=='regdate')--><img src="./images/common/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a></th><!--@end-->

                <!--@if($module_info->display_last_update=='Y')--><th scope="col" class="date"><a href="{getUrl('sort_index','last_update','order_type',$order_type)}">{$lang->last_update}<!--@if($sort_index=='last_update')--><img src="./images/common/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a></th><!--@end-->
            </tr>
        </thead>
        <!--@end-->

        <tbody>

        <!--@if(!$document_list && !$notice_list)-->
            <!-- 게시물이 없으면 등록된 글이 없음을 표시 -->
            <tr class="bg0">
                <td colspan="{$_col_count}" class="title">
                    {$lang->no_documents}
                </td>
            </tr>
        <!--@else-->
            <!-- 공지사항 출력 -->
            <!--@foreach($notice_list as $no => $document)-->
                <tr class="notice">
                    <!--@if($module_info->display_number!='+ 'N')--><td class="notice">{$lang->notice}</td><!--@end-->
                    <!--@if($grant->is_admin)--><td class="checkbox"><input type="checkbox" name="cart" value="{$document->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($document->isCarted())-->checked="checked"<!--@end--> /></td><!--@end-->
                    <td class="title" colspan="2">
                        <!--@if($module_info->use_category == "Y" && $document->get('category_srl'))-->
                        <strong class="category">{$category_list[$document->get('category_srl')]->title}</strong>
                        <!--@end-->

                        여기는 공지<a href="{getUrl('document_srl',$document->document_srl, 'listStyle', $listStyle, 'cpage','')}">{$document->getTitle($module_info->subject_cut_size)}</a>
                      
                        <!--@if($document->getCommentCount())-->
                            <span class="replyAndTrackback" title="Replies"><img src="./images/{$module_info->colorset}/iconReply.gif" alt="" width="12" height="12" class="icon" /> <strong>{$document->getCommentCount()}</strong></span>
                        <!--@end-->

                        <!--@if($document->getTrackbackCount())-->
                            <span class="replyAndTrackback" title="Trackbacks"><img src="./images/{$module_info->colorset}/iconTrackback.gif" alt="" width="12" height="13" class="trackback icon" /> <strong>{$document->getTrackbackCount()}</strong></span>
                        <!--@end-->
                      
                        {$document->printExtraImages(60*60*$module_info->duration_new)}
                    </td>
                    <!--@if($module_info->display_author!='N'+ ')--><td class="author"><div class="member_{$document->get('member_srl')}">{$document->getNickName()}</div></td><!--@end-->
                    <!--@if($module_info->display_readed_count!='N')--><td class="reading">{$document->get('readed_count')>0?$document->get('readed_count'):'+ '&nbsp;'}</td><!--@end-->
                    <!--@if($module_info->display_voted_count!='N')--><td class="recommend">{$document->get('voted_count')!=0?$document->get('voted_count'):'&nbsp;'}</td><!--@end-->
                    <!--@if($module_info->display_regdate!='N')--><td class="date">{$document->getRegdate('Y-m-d')}</td><!--@end-->
                    <!--@if($module_info->display_last_update=='Y')--><td class="date">{zdate($document->get('last_update'),'Y-m-d H:i')}</td><!--@end-->
                </tr>
            <!--@end-->

            <!-- 일반 글 출력 -->
            <!--@foreach($document_list as $no => $document)-->
                <tr class="bg{($no+1)%2+1}">

                    <!--@if($module_info->display_number!='N')--><td rowspan="2" class="num"><!--@if($document_srl == $document->document_srl)--><img src="./images/common/iconArrowD8.gif" border="0" alt="" /><!--@else-->{$no}<!--@end--></td><!--@end-->

                    <!--@if($grant->is_admin)--><td class="checkbox" rowspan="2">{$no}체크박스<input type="checkbox" name="cart" value="{$document->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($document->isCarted())-->checked="checked"<!--@end--> /></td><!--@end-->

                    <!--@if($document->thumbnailExists($module_info->thumbnail_width, $module_info->thumbnail_height, $module_info->thumbnail_type))-->
                    <td rowspan="2" class="thumb"><a href="{getUrl('document_srl',$document->document_srl,'listStyle',$listStyle, 'cpage','')}">이미지가있으면생겨<img src="{$document->getThumbnail($module_info->thumbnail_width, $module_info->thumbnail_height, $module_info->thumbnail_type)}" border="0" alt="" /></a></td>
                    <td class="webzineTitle">
                    <!--@else-->
                    <td class="webzineTitle" colspan="2">이미지없는것에만 나와
                    <!--@end-->
                        <!--@if($module_info->use_category == "Y" && $document->get('category_srl'))-->
                        <strong class="category">{$category_list[$document->get('category_srl')]->title}</strong>
                        <!--@end-->

                        제목앞<a href="{getUrl('document_srl',$document->document_srl, 'listStyle', $listStyle, 'cpage','')}">{$document->getTitle($module_info->subject_cut_size)}</a>
                      
                        <!--@if($document->getCommentCount())-->
                            <span class="replyAndTrackback" title="Replies"><img src="./images/{$module_info->colorset}/iconReply.gif" alt="" width="12" height="12" class="icon" /> <strong>{$document->getCommentCount()}</strong></span>
                        <!--@end-->

                        <!--@if($document->getTrackbackCount())-->
                            <span class="replyAndTrackback" title="Trackbacks"><img src="./images/{$module_info->colorset}/iconTrackback.gif" alt="" width="12" height="13" class="trackback icon" /> <strong>{$document->getTrackbackCount()}</strong></span>
                        <!--@end-->
                        {$document->printExtraImages(60*60*$module_info->duration_new)}
                    </td>
                    <!--@if($module_info->display_author!='N')--><td class="author"><div class="member_{$document->get('member_srl')}">{$document->getNickName()}</div></td><!--@end-->
                    <!--@if($module_info->display_readed_count!='N')--><td class="reading">{$document->get('readed_count')>0?$document->get('readed_count'):'&nbsp;'}</td><!--@end-->
                    <!--@if($module_info->display_voted_count!='N')--><td class="recommend">{$document->get('voted_count')!=0?$document->get('voted_count'):'&nbsp;'}</td><!--@end-->
                    <!--@if($module_info->display_regdate!='N')--><td class="date">{$document->getRegdate('Y-m-d')}</td><!--@end-->
                    <!--@if($module_info->display_last_update=='Y')--><td class="date">{zdate($document->get('last_update'),'Y-m-d H:i')}</td><!--@end-->
                </tr>
                {@ $_col_count = 1; }
                <!--@if(!$document->thumbnailExists($module_info->thumbnail_width, $module_info->thumbnail_height, $module_info->thumbnail_type))-->{@ $_col_count++}<!--@end-->
                <!--@if($module_info->display_author!='N')-->{@ $_col_count++ }<!--@end-->
                <!--@if($module_info->display_readed_count!='N')-->{@ $_col_count++ }<!--@end-->
                <!--@if($module_info->display_voted_count!='N')-->{@ $_col_count++ }<!--@end-->
                <!--@if($module_info->display_regdate != 'N')-->{@ $_col_count++ }<!--@end-->
                <!--@if($module_info->display_last_update == 'Y'+ ')-->{@ $_col_count++ }<!--@end-->
                <tr class="bg{($no+1)%2+1}">
                    <td colspan="{$_col_count}" class="summary">
                        <!--@if($grant->view)-->
                        내용앞<a href="{getUrl('document_srl',$document->document_srl, 'listStyle', $listStyle, 'cpage','')}">{$document->getSummary(120)}</a>
                        <!--@end-->
                        &nbsp;
                    </td>
                </tr>
            <!--@end-->
        <!--@end-->
        </tbody>
        </table>
    </form>

 

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
뽀칠이 게시판 본문에도 외부페이지 뿌릴수 있나요. [2] 2008.05.21 by 뽀칠이
김민787 이번에도 css 수정할 곳 질문 [1] file 2008.05.21 by 김민787
백용현 저 완전 초보맞겠죠??????  
엥셋별 외부로그인이 안되요 회원가입두요~~  
designoh 이 게시물을 팝업 메뉴를 다른 곳에서 링크를 시키려면 어떻게 해야 하나요?  
예광우 애플 게시판 스킨 적용을 하니 게시판이 모두 아래로 내려갔네요. [1] file 2008.05.21 by winty
MIN 비밀글이 안되요, 제발 갈르쳐주세요 [2] file 2008.05.21 by 一淚™
Aldebaran 게시판을 새창으로 띄울때 여백 주는 방법이요~ [2] 2008.05.21 by Aldebaran
MC 바리반디 혹시 이런거 어떻게 하나요.  
김재순 댓글에 에디터 몽땅 빼기.. [3] 2008.05.21 by sugarkane
*우^^기다* 홈페이지제작중에 로그인위젯 폼 크기를 수정하고 싶은데요..ㅠ  
N_mom 자꾸만 풀리는 로그인 [1] 2008.05.21 by eez
하얀카레 설치 후 처음 게시판에 글쓰기를 하면 [1] 2008.05.21 by 백성찬
꿈꾸는명탐정 이거 좀 봐주세여.. [1] 2008.05.21 by 백성찬
sroo 첨부파일 갯수 대로 이미지가 출력됩니다. [1] 2008.05.20 by 김태훈2
cosmo 나모에서 제로보드 넣기 알려주세요!!! [1] 2008.05.20 by xe
마음가는대로 팝업 창 없애기 문의(HTML header 입력 활용) [1] 2008.05.20 by 민수
소나기329 제로보드를 공공기관 홈페이지에 적용시켜도 무리가 없을까요? [3] 2008.05.20 by 민수
미령전설 제로보드 php코드관련 질문드려요  
조병국358 분류기능이 안먹힙니다..  
eversky 레이아웃 다운로드 후 적용 관련 질문입니다.  
graciella 회원가입란을 없애려면 [3] 2008.05.20 by 멋지게 살잔
김병곤117 멤버그룹 출력위젯에서 최근로근인순으로 정렬하고 싶습니다. [2] [1] 2008.05.20 by 김병곤117
노민상190 기존 회원 시스템에 제로보드XE 로긴을 추가하려면?  
아시안느 타인이 다운로드시 포인트  
느끼천사 포인트위젯에 대해 [3] 2008.05.20 by 띵야
우리한 메일 발송하는 것좀 해결해주세요....  
리어코리아 지금 zeroboard.com 에서 엑박 뜨는 데 저 혼자만 이런건가요 ?? [4] file 2008.05.20 by 리어코리아
김병곤117 member list파일 수정하려 합니다. [3] 2008.05.20 by 김병곤117
김민787 어느 css를 수정하면 되나요 ? [2] file 2008.05.20 by 김민787