로그인

검색

조회 수 22658 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄


{@ $oIconshopModel = &getModel('iconshop'); } 
<form action="/" method="get" class="boardListForm">
    <fieldset>
        <legend>List of Articles</legend>

        <table cellspacing="0" border="1" summary="List of Articles" class="boardList">
<thead>
<tr>
<!--// 목록 설정으로 table theader 생성 -->
<!--@foreach($list_config as $key => $val)-->
<!--// 기본 컨텐츠 경우 -->
<!--@if($val->idx == -1)-->
<!--// 컨텐츠 종류에 따라서 출력 -->
<!--@if($val->type == 'no')-->
<th scope="col"><!--@if($module_info->active_clean_type == 'Y' )--><img src="img/{$module_info->colorset}/th_num.gif" alt="" /><!--@else-->{$lang->no}<!--@end--></th>
<!--@elseif($val->type == 'title')-->
<th scope="col" class="title">
<!--@if($module_info->use_category == "Y")-->
<span class="jumpTo">
<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>
<button type="button" name="go_button" id="go_button" onclick="doChangeCategory(); return false;" class="button">Go</button>
</span>
<!--@end-->
<!--@if($module_info->active_clean_type == 'Y' )--><img src="img/{$module_info->colorset}/th_subject.gif" alt="" /><!--@else-->{$lang->title}<!--@end-->
</th>
<!--@elseif($val->type == 'regdate')-->
<th scope="col"><a href="{getUrl('sort_index','regdate','order_type',$order_type)}"><!--@if($module_info->active_clean_type == 'Y' )--><img src="img/{$module_info->colorset}/th_date.gif" alt="" /><!--@else-->{$lang->date}<!--@end--><!--@if($sort_index=='regdate')--><img src="/img/common/{$order_icon}" alt="sort" width="5" height="3" class="sort" /><!--@end--></a></th>
<!--@elseif($val->type == 'last_update')-->
<th scope="col"><a href="{getUrl('sort_index','last_update','order_type',$order_type)}"><!--@if($module_info->active_clean_type == 'Y' )--><img src="img/{$module_info->colorset}/th_update.gif" alt="" /><!--@else-->{$lang->last_update}<!--@end--><!--@if($sort_index=='last_update')--><img src="/img/common/{$order_icon}" alt="sort" width="5" height="3" class="sort" /><!--@end--></a></th>
<!--@elseif($val->type == 'nick_name')-->
<th scope="col"><!--@if($module_info->active_clean_type == 'Y' )--><img src="img/{$module_info->colorset}/th_author.gif" alt="" /><!--@else-->{$lang->writer}<!--@end--></th>
<!--@elseif($val->type == 'user_id')-->
<th scope="col"><!--@if($module_info->active_clean_type == 'Y' )--><img src="img/{$module_info->colorset}/th_id.gif" alt="" /><!--@else-->{$lang->user_id}<!--@end--></th>
<!--@elseif($val->type == 'user_name')-->
<th scope="col"><!--@if($module_info->active_clean_type == 'Y' )--><img src="img/{$module_info->colorset}/th_name.gif" alt="" /><!--@else-->{$lang->user_name}<!--@end--></th>
<!--@elseif($val->type == 'readed_count')-->
<th scope="col"><a href="{getUrl('sort_index','readed_count','order_type',$order_type)}"><!--@if($module_info->active_clean_type == 'Y' )--><img src="img/{$module_info->colorset}/th_read.gif" alt="" /><!--@else-->{$lang->readed_count}<!--@end--><!--@if($sort_index=='readed_count')--><img src="/img/common/{$order_icon}" alt="sort" width="5" height="3" class="sort" /><!--@end--></a></th>
<!--@elseif($val->type == 'voted_count')-->
<th scope="col"><a href="{getUrl('sort_index','voted_count','order_type',$order_type)}"><!--@if($module_info->active_clean_type == 'Y' )--><img src="img/{$module_info->colorset}/th_vote.gif" alt="" /><!--@else-->{$lang->voted_count}<!--@end--><!--@if($sort_index=='voted_count')--><img src="/img/common/{$order_icon}" alt="sort" width="5" height="3" class="sort" /><!--@end--></a></th>
<!--@elseif($val->type == 'last_post')-->
                                <th scope="col"><a href="{getUrl('sort_index','last_update','order_type',$order_type)}"><!--@if($module_info->active_clean_type == 'Y' )--><img src="img/{$module_info->colorset}/th_last.gif" alt="" /><!--@else-->{$lang->last_post}<!--@end--><!--@if($sort_index=='last_update')--><img src="/img/common/{$order_icon}" alt="sort" width="5" height="3" class="sort" /><!--@end--></a></th>
<!--@end-->
<!--// 사용자 선언 확장변수 경우 -->
<!--@else-->
<th scope="col"><strong>{$val->name}</strong></th>
<!--@end-->
<!--@end-->
<!--@if($grant->manager)--><th scope="col"><input type="checkbox" onclick="XE.checkboxToggleAll({ doClick:true }); return false;" title="Check All" /></th><!--@end-->
</tr>
</thead>
<tbody>
<!--@if(!$document_list && !$notice_list)-->
<tr>
<td colspan="<!--@if($grant->manager)-->{count($list_config)+1}<!--@else-->{count($list_config)}<!--@end-->">
{$lang->no_documents}
</td>
</tr>
<!--@else-->
<!--@foreach($notice_list as $no => $document)-->
<tr class="notice">
<!--// 목록 설정으로 table theader 생성 -->
<!--@foreach($list_config as $key => $val)-->
<!--// 기본 컨텐츠 경우 -->
<!--@if($val->idx == -1)-->
<!--// 컨텐츠 종류에 따라서 출력 -->
<!--@if($val->type == 'no')-->
<td class="notice"><!--@if($document_srl == $document->document_srl)-->&raquo;<!--@else--><!--@if($module_info->active_clean_type == 'Y' )--><img src="img/{$module_info->colorset}/th_notice.gif" alt="" /><!--@else-->{$lang->notice}<!--@end--><!--@end--></td>
<!--@elseif($val->type == 'title')-->
<td class="title">
<!--@if($module_info->use_category == "Y" && $document->get('category_srl'))-->
<strong class="category">{$category_list[$document->get('category_srl')]->title}</strong>
<!--@end-->
<a 
                                    <!--@if($module_info->active_subjectlink =='Y')-->
                                        <!--@if($document->getExtraValue(3))-->
                                        href="{$document->getExtraValue(3)}" 
                                        target="_blank"
                                        <!--@else-->
                                        href="{getUrl('document_srl',$document->document_srl, 'listStyle', $listStyle, 'cpage','')}"
                                        <!--@end-->
                                    <!--@else-->
                                    href="{getUrl('document_srl',$document->document_srl, 'listStyle', $listStyle, 'cpage','')}"
                                    <!--@end-->
                                    >{$document->getTitle($module_info->subject_cut_size)}</a>
{$document->printExtraImages(60*60*$module_info->duration_new)}
<!--@if($document->getCommentCount())-->
<a href="{getUrl('document_srl', $document->document_srl)}#comment"><span class="replyNum" title="Replies">[{$document->getCommentCount()}]</span></a>
<!--@end-->
<!--@if($document->getTrackbackCount())-->
<a href="{getUrl('document_srl', $document->document_srl)}#trackback"><span class="trackbackNum" title="Trackbacks">[{$document->getTrackbackCount()}]</span></a>
<!--@end-->
</td>
<!--@elseif($val->type == 'regdate')-->
<td class="date">{$document->getRegdate('Y-m-d')}</td>
<!--@elseif($val->type == 'last_update')-->
<td class="date">{zdate($document->get('last_update'),'Y-m-d H:i')}</td>
<!--@elseif($val->type == 'nick_name')-->
<td class="author"><a href="#popup_menu_area" class="member_{$document->get('member_srl')}" onclick="return false">{$document->getNickName()}</a></td>
<!--@elseif($val->type == 'user_id')-->
<td class="author">{$document->getUserID()}</a></td>
<!--@elseif($val->type == 'user_name')-->
<td class="author">{$document->getUserName()}</a></td>
<!--@elseif($val->type == 'readed_count')-->
<td class="reading">{$document->get('readed_count')>0?$document->get('readed_count'):'&nbsp;'}</td>
<!--@elseif($val->type == 'voted_count')-->
<td class="recommend">{$document->get('voted_count')!=0?$document->get('voted_count'):'&nbsp;'}</td>
<!--@elseif($val->type == 'last_post')-->
                                <td class="lastReply">
                                    <!--@if((int)($document->get('comment_count'))>0)-->
                                        <a href="{$document->getPermanentUrl()}#comment" class="replyAnchor">{zdate($document->get('last_update'),'Y-m-d')} {zdate($document->get('last_update'),'H:i')}</a>
                                        <!--@if($document->get('last_updater'))-->
                                            <sub class="by">by</sub>
                                            {htmlspecialchars($document->get('last_updater'))}
                                        <!--@end-->
                                    <!--@else-->
                                        &nbsp;
                                    <!--@end-->
                                </td>
<!--@end-->
<!--// 사용자 선언 확장변수 경우 -->
<!--@else-->
<td class="extraVars">{$document->getExtraValueHTML($val->idx)}&nbsp;</td>
<!--@end-->
<!--@end-->
<!--@if($grant->manager)-->
<td class="check"><input type="checkbox" name="cart" value="{$document->document_srl}" title="Check this" onclick="doAddDocumentCart(this)" <!--@if($document->isCarted())-->checked="checked"<!--@end--> /></td>
<!--@end-->
</tr>
<!--@end-->
<!--@foreach($document_list as $no => $document)-->
{@
$icon_data = $oIconshopModel->getMemberIconBySelected($document->get('member_srl'));
$_icon_mark = ($icon_data->file1)? sprintf('<img src="%s%s" alt="title: %s" title="title : %s" style="vertical-align:middle;margin-right:3px" />', Context::getRequestUri(),$icon_data->file1, strip_tags($icon_data->title), strip_tags($icon_data->title)) : "";
<tr class="bg{($no+1)%2+1}">
<!--// 목록 설정으로 table theader 생성 -->
<!--@foreach($list_config as $key => $val)-->
<!--// 기본 컨텐 경우 -->
<!--@if($val->idx == -1)-->
<!--// 컨텐츠 종류에 따라서 출력 -->
<!--@if($val->type == 'no')-->
<td class="num"><!--@if($document_srl == $document->document_srl)-->&raquo;<!--@else-->{$no}<!--@end--></td>
<!--@elseif($val->type == 'title')-->
<td class="title">
<!--@if($module_info->use_category == "Y" && $document->get('category_srl'))-->
<strong class="category">{$category_list[$document->get('category_srl')]->title}</strong>
<!--@end-->
{$_icon_mark}
<a 
                                    <!--@if($module_info->active_subjectlink =='Y')-->
                                        <!--@if($document->getExtraValue(3))-->
                                        href="{$document->getExtraValue(3)}" 
                                        target="_blank"
                                        <!--@else-->
                                        href="{getUrl('document_srl',$document->document_srl, 'listStyle', $listStyle, 'cpage','')}"
                                        <!--@end-->
                                    <!--@else-->
                                    href="{getUrl('document_srl',$document->document_srl, 'listStyle', $listStyle, 'cpage','')}"
                                    <!--@end-->
                                    >{$document->getTitle($module_info->subject_cut_size)}</a>
{$document->printExtraImages(60*60*$module_info->duration_new)}
<!--@if($document->getCommentCount())-->
<a href="{getUrl('document_srl', $document->document_srl)}#comment"><span class="replyNum" title="Replies">[{$document->getCommentCount()}]</span></a>
<!--@end-->
<!--@if($document->getTrackbackCount())-->
<a href="{getUrl('document_srl', $document->document_srl)}#trackback"><span class="trackbackNum" title="Trackbacks">[{$document->getTrackbackCount()}]</span></a>
<!--@end-->
</td>
<!--@elseif($val->type == 'nick_name')-->
<td class="author"><a href="#popup_menu_area" class="member_{$document->get('member_srl')}" onclick="return false">{$document->getNickName()}</a></td>
<!--@elseif($val->type == 'user_id')-->
<td class="author">{$document->getUserID()}</a></td>
<!--@elseif($val->type == 'user_name')-->
<td class="author">{$document->getUserName()}</a></td>
<!--@elseif($val->type == 'regdate')-->
<td class="date">{$document->getRegdate('Y-m-d')}</td>
<!--@elseif($val->type == 'last_update')-->
<td class="date">{zdate($document->get('last_update'),'Y-m-d H:i')}</td>
<!--@elseif($val->type == 'readed_count')-->
<td class="reading">{$document->get('readed_count')>0?$document->get('readed_count'):'&nbsp;'}</td>
<!--@elseif($val->type == 'voted_count')-->
<td class="recommend">{$document->get('voted_count')!=0?$document->get('voted_count'):'&nbsp;'}</td>
<!--@elseif($val->type == 'last_post')-->
                                <td class="lastReply">
                                    <!--@if((int)($document->get('comment_count'))>0)-->
                                        <a href="{$document->getPermanentUrl()}#comment">최종작성 : </a>
                                        <!--@if($document->get('last_updater'))-->
                                            {htmlspecialchars($document->get('last_updater'))}
                                        <!--@end-->
                                    <!--@else-->
                                        &nbsp;
                                    <!--@end-->
                                </td>
<!--@end-->
<!--// 사용자 선언 확장변수경우 -->
<!--@else-->
<td class="extraVars">{$document->getExtraValueHTML($val->idx)}&nbsp;</td>
<!--@end-->
<!--@end-->
<!--@if($grant->manager)--><td class="checkbox"><input type="checkbox" name="cart" value="{$document->document_srl}" title="Check this" onclick="doAddDocumentCart(this)" <!--@if($document->isCarted())-->checked="checked"<!--@end--> /></td><!--@end-->
</tr>
<!--@end-->
<!--@end-->
</tbody>
        </table>
    </fieldset>
</form>



위코드를 활용하면 된다 강조한 부분만



리눅스

유용한 정보 및 자료

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
204 Server 테이블 형태 변경하기 MyISAM -> InnoDB(또는 InnoDB -> MyISAM) 보석 2011.10.21 25963
203 KimsQ 킴스큐 RBShop유플러스(UPLUS - 엘지데이콤) 결제후 주문서가 접수 되지 않는 오류 보석 2013.08.23 15269
202 XE 콘텐츠 위젯 제목에 코드 노출되는 문제 보석 2012.04.27 11552
201 Pydio 웹하드 솔루션 - AjaXplorer 4.0 한글패치 file 보석 2012.09.30 10132
200 기타 원하는 크기로 새창 띄우기 보석 2013.08.23 14299
» XE 원하는 위치에 아이콘샵 아이콘 출력하기 보석 2012.09.05 22658
198 Server 우분투에서 압축하고 풀기( tar, gzip, tar.gz ) 보석 2011.08.31 15714
197 Server 우분투에 메일서버를 설치하자. file 보석 2011.12.10 10649
196 Server 우분투(리눅스) 상위폴더로 전체 데이터 옮기기 1 보석 2016.05.18 217
195 Server 우분투 프록시서버 만들기 file 보석 2014.02.03 9691
194 Server 우분투 폴더 소유권 설정 보석 2011.05.15 16403
193 Server 우분투 폴더 삭제 및 폴더 생성 보석 2011.05.15 21160
192 Server 우분투 트림활성화 및 수동 트림하기 보석 2012.11.04 19857
191 Server 우분투 크론 (예약작업) 설정 자동 백업 4 보석 2011.09.01 15846
190 Server 우분투 원격데스크톱 설정 보석 2012.03.30 12098
189 Server 우분투 오래된 커널 삭제 방법 보석 2016.01.14 317
188 Server 우분투 업데이트 서버 변경 보석 2012.11.11 12053
187 Server 우분투 업데이트 서버 변경 보석 2016.06.21 83
186 Server 우분투 센드메일 설치 및 설정 sendmail 2 보석 2011.05.16 22216
185 Server 우분투 서버(커맨드 모드)에서 외부 아이피 알아내기 보석 2012.04.05 14163
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 Next
/ 11