게시판모듈의 XE_LIST 스킨의 경우 헤더를 숨기거나 노출할 수 있도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/trunk@1971 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-07-20 02:57:00 +00:00
parent 0722383917
commit e9f3bc1563
4 changed files with 69 additions and 18 deletions

View file

@ -49,9 +49,9 @@ Jeong, Chan Myeong 070601~070630
.boardList th { color:#3e3f3e; font-weight:normal; border-bottom:1px solid #ffffff; padding:.8em .5em .5em .5em; background:#ffffff url(../images/white/lineBoardListTh.gif) no-repeat left bottom;}
.boardList th a { color:#3e3f3e; text-decoration:none; }
.boardList th.num { background-position:-3px bottom; border-left:1px solid #ffffff; }
.boardList th.category { padding:0 .2em 0 .5em; white-space:nowrap;}
.boardList th.category.thumbStyle { background-position:-3px bottom !important; border-left:1px solid #ffffff; text-align:left;}
.boardList th.title select { vertical-align:middle; margin-left:1em; }
.boardList th.title { text-align:center; }
.boardList th.category { text-align:left; }
.boardList th.title select { vertical-align:middle; margin-left:.5em; }
.boardList th.reading { white-space:nowrap;}
.boardList th.recommend { white-space:nowrap;}
.boardList th.date { border-right:1px solid #ffffff;}
@ -73,7 +73,7 @@ Jeong, Chan Myeong 070601~070630
.boardList td.author a { font-size:1em; color:#333333;}
.boardList td.reading { font:.8em Tahoma; color:#999999; text-align:center;}
.boardList td.recommend { font:bold .8em Tahoma; color:#ff6600; text-align:center;}
.boardList td.date { font:.8em Tahoma; color:#999999; text-align:center;}
.boardList td.date { font:.8em Tahoma; color:#999999; text-align:center; white-space:nowrap;}
.boardList td.summary { border-top:none; vertical-align:top; color:#666666; line-height:1.25em;}
.boardList td.summary a { color:#666666; text-decoration:none; line-height:inherit;}
.boardList td.summary a:visited { color:#999999;}

View file

@ -13,8 +13,8 @@
<table cellspacing="0" summary="" class="boardList">
<thead>
<tr>
<th scope="col" class="num">{$lang->no}</th>
<th scope="col" class="title <!--@if($module_info->use_category)-->tLeft<!--@end-->">
<!--@if($module_info->display_number!='N')--><th scope="col" class="num">{$lang->no}</th><!--@end-->
<th scope="col" class="title <!--@if($module_info->use_category == 'Y')-->category<!--@end-->">
<!--@if($module_info->use_category == "Y")-->
<!-- 카테고리 사용시 카테고리 선택 표시 -->
<form action="./" method="get">
@ -30,7 +30,7 @@
{$lang->title}
<!--@end-->
</th>
<th class="author" scope="col">{$lang->writer}</th>
<!--@if($module_info->display_author!='N')--><th class="author" scope="col">{$lang->writer}</th><!--@end-->
<!--@if($order_type == "desc")-->
{@ $order_icon = "buttonDescending.gif" }
@ -40,11 +40,13 @@
{@ $order_type = "desc"; }
<!--@end-->
<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/{$module_info->colorset}/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a></th>
<!--@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/{$module_info->colorset}/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a></th><!--@end-->
<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/{$module_info->colorset}/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a></th>
<!--@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/{$module_info->colorset}/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a></th><!--@end-->
<th scope="col" class="date"><a href="{getUrl('sort_index','regdate','order_type',$order_type)}">{$lang->date}<!--@if($sort_index=='regdate')--><img src="./images/{$module_info->colorset}/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a></th>
<!--@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/{$module_info->colorset}/{$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/{$module_info->colorset}/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a></th><!--@end-->
</tr>
</thead>
@ -63,12 +65,12 @@
<!--@if($document->isNotice())-->
<tr class="notice">
<td class="num">{$lang->notice}</td>
<!--@if($module_info->display_number!='N')--><td class="num">{$lang->notice}</td><!--@end-->
<!--@else-->
<tr class="bg{($no+1)%2+1}">
<td class="num"><!--@if($document_srl == $document->document_srl)--><img src="./images/white/iconArrowD8.gif" border="0" /><!--@else-->{$no}<!--@end--></td>
<!--@if($module_info->display_number!='N')--><td class="num"><!--@if($document_srl == $document->document_srl)--><img src="./images/white/iconArrowD8.gif" border="0" /><!--@else-->{$no}<!--@end--></td><!--@end-->
<!--@end-->
@ -103,10 +105,11 @@
<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-->
</td>
<td class="author"><div class="member_{$document->get('member_srl')}">{$document->getNickName()}</div></td>
<td class="reading">{$document->get('readed_count')}</td>
<td class="recommend">{$document->get('voted_count')}</td>
<td class="date">{$document->getRegdate('Y-m-d')}</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')}</td><!--@end-->
<!--@if($module_info->display_voted_count!='N')--><td class="recommend">{$document->get('voted_count')}</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:m')}</td><!--@end-->
</tr>
<!--@end-->
</tbody>

View file

@ -84,5 +84,53 @@
<default>N</default>
<default>Y</default>
</var>
<var name="display_number" type="select">
<title xml:lang="ko">번호 표시</title>
<title xml:lang="zh-CN">number 显示</title>
<title xml:lang="en">Show number</title>
<default>Y</default>
<default>N</default>
<description />
</var>
<var name="display_author" type="select">
<title xml:lang="ko">글쓴이 표시</title>
<title xml:lang="zh-CN">昵称 显示</title>
<title xml:lang="en">Show author</title>
<default>Y</default>
<default>N</default>
<description />
</var>
<var name="display_regdate" type="select">
<title xml:lang="ko">작성일 표시</title>
<title xml:lang="zh-CN">登录日期 显示</title>
<title xml:lang="en">Show date published</title>
<default>Y</default>
<default>N</default>
<description />
</var>
<var name="display_readed_count" type="select">
<title xml:lang="ko">조회수 표시</title>
<title xml:lang="zh-CN">浏览数 显示</title>
<title xml:lang="en">Show views</title>
<default>Y</default>
<default>N</default>
<description />
</var>
<var name="display_voted_count" type="select">
<title xml:lang="ko">추천수 표시</title>
<title xml:lang="zh-CN">推荐数 显示</title>
<title xml:lang="en">Show votes</title>
<default>Y</default>
<default>N</default>
<description />
</var>
<var name="display_last_update" type="select">
<title xml:lang="ko">최근 변경시간 표시</title>
<title xml:lang="zh-CN">近期修改日期 显示</title>
<title xml:lang="en">Show last update</title>
<default>N</default>
<default>Y</default>
<description />
</var>
</extra_vars>
</skin>

View file

@ -92,8 +92,8 @@
// 정상적으로 업로드된 파일이 아니면 무시
if(!$image_obj['tmp_name'] || !is_uploaded_file($image_obj['tmp_name'])) continue;
// 이미지 파일이 아니어도 무시
if(!eregi("\.(jpg|jpeg|gif|png)$", $image_obj['name'])) continue;
// 이미지 파일이 아니어도 무시 (swf는 패스~)
if(!eregi("\.(jpg|jpeg|gif|png|swf)$", $image_obj['name'])) continue;
// 경로를 정해서 업로드
$path = sprintf("./files/attach/images/%s/", $args->layout_srl);