로그인

검색

조회 수 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
번호 분류 제목 글쓴이 날짜 조회 수
117 XE 콘텐츠 위젯 제목에 코드 노출되는 문제 보석 2012.04.27 11552
» XE 원하는 위치에 아이콘샵 아이콘 출력하기 보석 2012.09.05 22658
115 XE 오토컴플릿 z-index secret 보석 2015.02.25 0
114 XE 스케치북5 게시판 스킨 사용시 모바일 코멘트 수정시 글 내용이 없는경우 보석 2014.04.02 12017
113 XE 스케치북 현스가이님 유투브 스킨 썸네일 출력 문제 보석 2015.03.01 577
112 XE 리눅스 백업서버 만들기 보석 2014.05.01 6672
111 XE 레벨아이콘과 그룹아이콘 동시에 출력하기 보석 2012.09.05 31098
110 XE 단어 한번에 변경하는 쿼리 보석 2013.02.17 10093
109 XE 글작성시 미리 작성된 내용 출력 후 클릭시 사라지게 하기 보석 2015.02.24 448
108 XE 게시판DX 모바일 댓글 펼치기 보석 2012.04.18 12703
107 XE [XE]Vegas Background 플러그인 애드온 file 보석 2014.04.29 7694
106 XE [XE] 회원 정보에 순위(랭킹) 출력 보석 2012.09.18 13486
105 XE [XE] 포인트복권 스킨 file 보석 2014.04.29 7742
104 XE [XE] 콘텐츠 위젯 제목에 &을 쓰면 amp; 같이 출력될때 보석 2016.04.26 122
103 XE [XE] 위젯 스타일 제목 클릭시 해당 게시판으로 링크 걸기 3 file 보석 2012.12.04 18969
102 XE [XE] 관리자 페이지 댓글 목록수 변경 보석 2012.09.25 14770
101 XE [XE] SKETCHBOOK5 (최신버전)에서 특정 확장변수를 추천하는 사람에게만 공개 보석 2014.04.30 8171
100 XE [XE] P테그 제거 애드온 file 보석 2014.04.29 8286
99 XE [XE[ 공백제거 애드온 입니다. file 보석 2014.04.29 8267
98 XE XE카테고리 자동등록 쿼리 보석 2011.11.06 15396
Board Pagination Prev 1 2 3 4 5 6 Next
/ 6