로그인

검색

조회 수 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
번호 분류 제목 글쓴이 날짜 조회 수
104 Server ssl 항상 적용하기 + http->https로 rewrite 보석 2012.08.18 20010
» XE 원하는 위치에 아이콘샵 아이콘 출력하기 보석 2012.09.05 22658
102 XE 레벨아이콘과 그룹아이콘 동시에 출력하기 보석 2012.09.05 31098
101 XE xe 업데이트 후 해야할일 금일 부터정리 코어수정사항 7 보석 2012.09.06 15909
100 XE XE 포인트 수정 최고관리자만 가능 2 보석 2012.09.09 14373
99 XE XE 게시물 자동삭제 애드온 file 보석 2012.09.13 14460
98 XE XE 지식인 오류 해결 보석 2012.09.14 12121
97 XE [XE] 회원 정보에 순위(랭킹) 출력 보석 2012.09.18 13486
96 XE XE 닉네임 글자수 제한 보석 2012.09.19 30817
95 XE [XE] 관리자 페이지 댓글 목록수 변경 보석 2012.09.25 14770
94 Pydio 웹하드 솔루션 - AjaXplorer 4.0 한글패치 file 보석 2012.09.30 10132
93 XE XE 1.4 스팸필터 1.5호환 file 보석 2012.10.05 12776
92 XE XE 닉네임 아이디 패스워드 길이제한 하기 보석 2012.10.20 12910
91 Server 우분투 레이드0 설치 install Ubuntu RAID0 보석 2012.10.23 11882
90 XE XE 관리그룹만 글쓰기버튼 보이게 하기 보석 2012.11.02 31558
89 Server 우분투 트림활성화 및 수동 트림하기 보석 2012.11.04 19857
88 Server 우분투 업데이트 서버 변경 보석 2012.11.11 12053
87 XE XE DB 오류 해결방법 입니다. 보석 2012.11.12 17867
86 Server 우분투 innoDB 활성화하기 보석 2012.11.16 8568
85 XE XE 최근 친구글 출력 위젯 file 보석 2012.12.04 19521
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 Next
/ 11