#127 #152 게시물의 복사 기능 추가 & 이동/복사시 카테고리 지정 가능하도록 변경 & 기본 게시판 스킨에서 페이지의 게시물 토글 기능 추가 & 관리 선택된 게시물의 목록 노출 & 기본 게시판 스킨의 항목 숨김/열람 기능 모두 적용

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2737 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-10-11 09:13:02 +00:00
parent 72dcf54069
commit 14550e198f
41 changed files with 678 additions and 396 deletions

View file

@ -40,12 +40,11 @@ Jeong, Chan Myeong 070601~070630
.boardList tr.bg2 { background:#fbfbfb;}
.boardList th a { color:#3e3f3e; text-decoration:none; }
.boardList th.num { background-position:-3px bottom; border-left:1px solid #ffffff; }
.boardList th.title { text-align:center; }
.boardList th.category { text-align:center; }
.boardList th.title { text-align:left; padding-left:2em;}
.boardList th.category { text-align:left; padding-left:2em;}
.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;}
.boardList th .sort { padding:0 .2em; vertical-align:middle;}
.boardList td { border-top:1px solid #eff0ed; padding:.5em;}
.boardList td.num { font:.8em tahoma; color:#999999; padding:.5em 1em; text-align:center;}
@ -77,19 +76,20 @@ Jeong, Chan Myeong 070601~070630
.boardList td .thumbnailMedium { margin:0 .3em 0 .3em;}
.boardList td .thumbnailMedium img { border:1px solid #e0e1db; padding:3px;}
.boardList.thumbnail { margin-top:-1px; border-bottom:none;}
.boardList.thumbnail td { border-top:none; border-bottom:1px solid #eff0ed; padding:1.5em 0 0 1.5em; overflow:hidden;}
.boardList.thumbnail div.cell { float:left; width:167px; height:220px; overflow:hidden; margin:0 1.5em 0 0; padding-bottom:1.5em;}
.boardList.thumbnail div.cell img.thumb { padding:2px; border:1px solid #e0e1db; display:block; margin-bottom:1em;}
.boardList.thumbnail div.title { color:#444444; margin-bottom:.2em; padding-left:3px; overflow:hidden; white-space:nowrap;}
.boardList.thumbnail div.title a { color:#444444; text-decoration:none;}
.boardList.thumbnail div.nameAndDate { font-size:.9em; color:#999999; margin-bottom:.2em; padding-left:3px;}
.boardList.thumbnail div.nameAndDate a { color:#999999;}
.boardList.thumbnail div.nameAndDate .date { font:.8em Tahoma; color:#999999;}
.boardList.thumbnail div.readAndRecommend { font-size:.9em; color:#666666; padding-left:3px;}
.boardList.thumbnail div.readAndRecommend .num { font:.8em Tahoma;}
.boardList.thumbnail div.readAndRecommend .vr { color:#dddddd;}
.boardList.thumbnail div.readAndRecommend strong.num { font:bold .8em Tahoma; color:#ff6600;}
.thumbnailBox { border-top:none; border-bottom:1px solid #eff0ed; padding:1.5em 0 0 1.5em; overflow:hidden; padding-bottom:1em;}
.thumbnailBox div.cell { display:block; float:left; overflow:hidden; margin-bottom:1em;}
.thumbnailBox div.cell img.thumb { padding:2px; border:1px solid #e0e1db; display:block; margin-bottom:1em; margin-left:auto;margin-right:auto;}
.thumbnailBox div.title { color:#3B96C0; margin-bottom:.2em; overflow:hidden; white-space:nowrap; text-align:center;}
.thumbnailBox div.title a { color:#3B96C0; text-decoration:none;}
.thumbnailBox div.nameAndDate { font-size:.9em; color:#999999; margin-bottom:.2em; text-align:center;}
.thumbnailBox div.nameAndDate a { color:#999999;}
.thumbnailBox div.nameAndDate .author { margin-left:auto; margin-right:right; }
.thumbnailBox div.nameAndDate .author div { display:inline; vertical-align:middle;}
.thumbnailBox div.nameAndDate .date { font:.8em Tahoma; color:#999999;}
.thumbnailBox div.readAndRecommend { font-size:.9em; color:#666666; text-align:center;}
.thumbnailBox div.readAndRecommend .num { font:.8em Tahoma;}
.thumbnailBox div.readAndRecommend .vr { color:#dddddd;}
.thumbnailBox div.readAndRecommend strong.num { font:bold .8em Tahoma; color:#ff6600;}
/* pageNavigation */
.pageNavigation { display:block; padding:1.5em 0 2em 0; text-align:center; font:bold 11px Tahoma; }

View file

@ -4,19 +4,6 @@
* @brief board 모듈의 javascript
**/
/* 관리자가 카트 선택시 세션에 넣음 */
function doAddCart(mid, obj) {
var srl = obj.value;
var check_flag = obj.checked?'add':'remove';
var params = new Array();
params["mid"] = mid;
params["srl"] = srl;
params["check_flag"] = check_flag;
exec_xml("board","procBoardAdminAddCart", params, null);
}
/* 글쓰기 작성후 */
function completeDocumentInserted(ret_obj) {
var error = ret_obj['error'];

View file

@ -10,17 +10,21 @@
<!--@end-->
<!-- 목록 출력 -->
<table cellspacing="0" summary="" class="boardList">
<col width="50" />
<form action="./" method="get">
<table cellspacing="0" summary="" class="boardList">
<col width="80" />
<col />
<col width="90" />
<col width="90" />
<col width="110" />
<!--@if($module_info->display_readed_count!='N')--><col width="70" /><!--@end-->
<!--@if($module_info->display_voted_count!='N')--><col width="70" /><!--@end-->
<!--@if($module_info->display_regdate != 'N')--><col width="90" /><!--@end-->
<!--@if($module_info->display_last_update == 'Y')--><col width="90" /><!--@end-->
<thead>
<tr>
<th scope="col" class="title thumbStyle" colspan="2">
<th scope="col" class="<!--@if($module_info->use_category=='Y')-->category<!--@else-->title<!--@end-->" colspan="2">
<!--@if($grant->is_admin)-->
<input type="checkbox" onclick="checkboxSelectAll(this.form, 'cart'); return false;" />
<!--@end-->
<!--@if($module_info->use_category == "Y")-->
<form action="./" method="get">
<select name="category" id="board_category">
<option value="">{$lang->category}</option>
<!--@foreach($category_list as $val)-->
@ -28,7 +32,6 @@
<!--@end-->
</select>
<input type="button" name="go_button" id= "go_button" value="GO" onclick="doChangeCategory(); return false;" class="buttonTypeGo" />
</form>
<!--@else-->
{$lang->title}
<!--@end-->
@ -42,11 +45,12 @@
{@ $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/common/{$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/common/{$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/common/{$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/common/{$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/common/{$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/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>
@ -58,7 +62,11 @@
<td class="num">{$lang->notice}</td>
<td class="title">
<!--@if($grant->is_admin)-->
<input type="checkbox" value="{$document->document_srl}" onclick="doAddCart('{$mid}',this)" <!--@if($check_list[$document->document_srl])-->checked="checked"<!--@end--> />
<input type="checkbox" name="cart" value="{$document->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($document->isCarted())-->checked="checked"<!--@end--> />
<!--@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)}">{$document->getTitleText($module_info->subject_cut_size)}</a>
@ -73,9 +81,10 @@
{$document->printExtraImages(60*60*$module_info->duration_new)}
</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_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:i')}</td><!--@end-->
</tr>
<!--@end-->
@ -84,55 +93,59 @@
</tbody>
</table>
<table cellspacing="0" class="boardList thumbnail">
<tbody>
<tr class="bg1">
<td>
<!--@foreach($document_list as $no => $document)-->
<!--@if(!$document->isNotice())-->
{@ $height = $module_info->thumbnail_height + 40; }
<!--@if($module_info->display_author!='N' || $module_info->display_regdate!='N')-->{@ $height += 25 }<!--@end-->
<!--@if($module_info->display_readed_count !='N' || $module_info->display_voted_count!='N')-->{@ $height += 25 }<!--@end-->
<div class="cell">
<!--@if($document->thumbnailExists($module_info->thumbnail_width, $module_info->thumbnail_height, $module_info->thumbnail_type))-->
<a href="{getUrl('','document_srl',$document->document_srl)}"><img src="{$document->getThumbnail($module_info->thumbnail_width, $module_info->thumbnail_height, $module_info->thumbnail_type)}" border="0" alt="" class="thumb"/></a>
<!--@else-->
<img src="./images/blank.gif" border="0" alt="" class="thumb" width="{$module_info->thumbnail_width}" height="{$module_info->thumbnail_height}" />
<!--@end-->
<div class="title">
<!--@if($grant->is_admin)-->
<input type="checkbox" value="{$document->document_srl}" onclick="doAddCart('{$mid}',this)" <!--@if($check_list[$document->document_srl])-->checked="checked"<!--@end--> />
<!--@end-->
<!--@if($grant->view)-->
<a href="{getUrl('document_srl',$document->document_srl)}">{$document->getTitleText($module_info->subject_cut_size)}</a>
<!--@else-->
{$document->getTitleText(8,'')}
<!--@end-->
<div class="thumbnailBox">
<!--@if($document->getCommentCount())-->
<span class="replyAndTrackback" title="Replies">(<strong>{$document->getCommentCount()}</strong>)</span>
<!--@end-->
<!--@foreach($document_list as $no => $document)-->
<!--@if(!$document->isNotice())-->
<!--@if($document->getTrackbackCount())-->
<span class="replyAndTrackback" title="Trackbacks">[<strong>{$document->getTrackbackCount()}</strong>]</span>
<!--@end-->
<div class="nameAndDate">
<div class="author member_{$document->get('member_srl')}">{$document->getNickName()}</div>
<div class="date">{$document->getRegdate('Y.m.d')}</div>
</div>
</div>
<div class="readAndRecommend">
{$lang->readed_count} <span class="num">{$document->get('readed_count')}</span>
<!--@if($document->get('voted_count'))--><span class="vr">|</span> {$lang->voted_count} <strong class="num">{$document->get('voted_count')}</strong><!--@end-->
</div>
</div>
<div class="cell" style="width:{$module_info->thumbnail_width+30}px;height:{$height}px;">
<!--@if($document->thumbnailExists($module_info->thumbnail_width, $module_info->thumbnail_height, $module_info->thumbnail_type))-->
<a href="{getUrl('','document_srl',$document->document_srl)}"><img src="{$document->getThumbnail($module_info->thumbnail_width, $module_info->thumbnail_height, $module_info->thumbnail_type)}" border="0" alt="" class="thumb"/></a>
<!--@else-->
<img src="./images/blank.gif" border="0" alt="" class="thumb" width="{$module_info->thumbnail_width}" height="{$module_info->thumbnail_height}" />
<!--@end-->
<div class="title">
<!--@if($module_info->use_category == "Y" && $document->get('category_srl'))-->
<strong class="category">{$category_list[$document->get('category_srl')]->title}</strong><br />
<!--@end-->
<!--@if($grant->is_admin)-->
<input type="checkbox" name="cart" value="{$document->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($document->isCarted())-->checked="checked"<!--@end--> />
<!--@end-->
</td>
</tr>
</tbody>
</table>
<a href="{getUrl('document_srl',$document->document_srl)}">{$document->getTitleText($module_info->subject_cut_size)}</a>
<!--@if($document->getCommentCount())-->
<span class="replyAndTrackback" title="Replies">(<strong>{$document->getCommentCount()}</strong>)</span>
<!--@end-->
<!--@if($document->getTrackbackCount())-->
<span class="replyAndTrackback" title="Trackbacks">[<strong>{$document->getTrackbackCount()}</strong>]</span>
<!--@end-->
<div class="nameAndDate">
<!--@if($module_info->display_author!='N')--><div class="author"><div class="member_{$document->get('member_srl')}">{$document->getNickName()}</div></div><!--@end-->
<!--@if($module_info->display_regdate!='N')--><div class="date">{$document->getRegdate('Y.m.d')}</div><!--@end-->
</div>
</div>
<div class="readAndRecommend">
<!--@if($module_info->display_readed_count!='N')-->{$lang->readed_count} <span class="num">{$document->get('readed_count')}</span><!--@end-->
<!--@if($document->get('voted_count') && $module_info->display_voted_count!='N')-->
<!--@if($module_info->display_readed_count!='N')--><span class="vr">|</span> <!--@end-->
{$lang->voted_count} <strong class="num">{$document->get('voted_count')}</strong>
<!--@end-->
</div>
</div>
<!--@end-->
<!--@end-->
</div>
</form>
<div class="clear">
@ -148,7 +161,7 @@
<!--@if($grant->is_admin)-->
<!-- 문서 관리 버튼 -->
<div class="gap1 fl">
<a href="{getUrl('act','dispBoardAdminManageDocument')}" onclick="popopen(this.href,'manageDocument'); return false;" class="button"><span>{$lang->cmd_manage_document}</span></a>
<a href="{getUrl('','module','document','act','dispDocumentAdminManageDocument')}" onclick="popopen(this.href,'manageDocument'); return false;" class="button"><span>{$lang->cmd_manage_document}</span></a>
</div>
<!--@end-->

View file

@ -131,5 +131,50 @@
<description xml:lang="ko">썸네일의 세로 크기를 지정할 수 있습니다. (기본 100px)</description>
<default>100</default>
</var>
<var name="display_author" type="select">
<title xml:lang="ko">글쓴이 표시</title>
<title xml:lang="jp">投稿者表示</title>
<title xml:lang="zh-CN">显示昵称</title>
<title xml:lang="en">Display Author</title>
<default>Y</default>
<default>N</default>
<description />
</var>
<var name="display_regdate" type="select">
<title xml:lang="ko">작성일 표시</title>
<title xml:lang="jp">作成日表示</title>
<title xml:lang="zh-CN">显示发表日期</title>
<title xml:lang="en">Display Registered Date</title>
<default>Y</default>
<default>N</default>
<description />
</var>
<var name="display_readed_count" type="select">
<title xml:lang="ko">조회수 표시</title>
<title xml:lang="jp">照合数表示</title>
<title xml:lang="zh-CN">显示查看数</title>
<title xml:lang="en">Display Hit</title>
<default>Y</default>
<default>N</default>
<description />
</var>
<var name="display_voted_count" type="select">
<title xml:lang="ko">추천수 표시</title>
<title xml:lang="jp">推薦数表示</title>
<title xml:lang="zh-CN">显示推荐数</title>
<title xml:lang="en">Display 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="jp">最近の変更時間表示</title>
<title xml:lang="zh-CN">显示最后更新时间</title>
<title xml:lang="en">Display Latest Update</title>
<default>N</default>
<default>Y</default>
<description />
</var>
</extra_vars>
</skin>

View file

@ -40,8 +40,8 @@ Jeong, Chan Myeong 070601~070630
.boardList tr.bg2 { background:#fbfbfb;}
.boardList th a { color:#3e3f3e; text-decoration:none; }
.boardList th.num { background-position:-3px bottom; border-left:1px solid #ffffff; }
.boardList th.title { text-align:center; }
.boardList th.category { text-align:center; }
.boardList th.title { text-align:center; padding-left:1em; }
.boardList th.category { text-align:left; padding-left:1em; }
.boardList th.title select { vertical-align:middle; margin-left:.5em; }
.boardList th.reading { white-space:nowrap;}
.boardList th.recommend { white-space:nowrap;}

View file

@ -4,19 +4,6 @@
* @brief board 모듈의 javascript
**/
/* 관리자가 카트 선택시 세션에 넣음 */
function doAddCart(mid, obj) {
var srl = obj.value;
var check_flag = obj.checked?'add':'remove';
var params = new Array();
params["mid"] = mid;
params["srl"] = srl;
params["check_flag"] = check_flag;
exec_xml("board","procBoardAdminAddCart", params, null);
}
/* 글쓰기 작성후 */
function completeDocumentInserted(ret_obj) {
var error = ret_obj['error'];

View file

@ -10,21 +10,26 @@
<!--@end-->
<!-- 목록 출력 -->
<table cellspacing="0" summary="" class="boardList">
<!--@if($module_info->display_number!='N')--><col width="80" /><!--@end-->
<col />
<!--@if($module_info->display_author!='N')--><col width="120" /><!--@end-->
<!--@if($module_info->display_readed_count!='N')--><col width="70" /><!--@end-->
<!--@if($module_info->display_voted_count!='N')--><col width="70" /><!--@end-->
<!--@if($module_info->display_regdate != 'N')--><col width="90" /><!--@end-->
<!--@if($module_info->display_last_update == 'Y')--><col width="90" /><!--@end-->
<form action="./" method="get">
<table cellspacing="0" summary="" class="boardList">
<!--@if($module_info->display_number!='N')--><col width="80" /><!--@end-->
<col />
<!--@if($module_info->display_author!='N')--><col width="120" /><!--@end-->
<!--@if($module_info->display_readed_count!='N')--><col width="70" /><!--@end-->
<!--@if($module_info->display_voted_count!='N')--><col width="70" /><!--@end-->
<!--@if($module_info->display_regdate != 'N')--><col width="90" /><!--@end-->
<!--@if($module_info->display_last_update == 'Y')--><col width="90" /><!--@end-->
<thead>
<tr>
<!--@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-->">
<th scope="col" class="<!--@if($module_info->use_category == 'Y')-->category<!--@else-->title<!--@end-->">
<!--@if($grant->is_admin)-->
<input type="checkbox" onclick="checkboxSelectAll(this.form, 'cart'); return false;" />
<!--@end-->
<!--@if($module_info->use_category == "Y")-->
<!-- 카테고리 사용시 카테고리 선택 표시 -->
<form action="./" method="get">
<select name="category" id="board_category">
<option value="">{$lang->category}</option>
<!--@foreach($category_list as $val)-->
@ -32,7 +37,6 @@
<!--@end-->
</select>
<input type="button" name="go_button" id="go_button" value="GO" onclick="doChangeCategory(); return false;" class="buttonTypeGo" />
</form>
<!--@else-->
{$lang->title}
<!--@end-->
@ -83,7 +87,7 @@
<td class="title">
<!--@if($grant->is_admin)-->
<input type="checkbox" value="{$document->document_srl}" onclick="doAddCart('{$mid}',this)" <!--@if($check_list[$document->document_srl])-->checked="checked"<!--@end--> />
<input type="checkbox" name="cart" value="{$document->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($document->isCarted())-->checked="checked"<!--@end--> />
<!--@end-->
<!--@if($module_info->use_category == "Y" && $document->get('category_srl'))-->
@ -114,7 +118,8 @@
</tr>
<!--@end-->
</tbody>
</table>
</table>
</form>
<div class="clear">
@ -130,7 +135,7 @@
<!--@if($grant->is_admin)-->
<!-- 문서 관리 버튼 -->
<div class="gap1 fl">
<a href="{getUrl('act','dispBoardAdminManageDocument')}" onclick="popopen(this.href,'manageDocument'); return false;" class="button"><span>{$lang->cmd_manage_document}</span></a>
<a href="{getUrl('','module','document','act','dispDocumentAdminManageDocument')}" onclick="popopen(this.href,'manageDocument'); return false;" class="button"><span>{$lang->cmd_manage_document}</span></a>
</div>
<!--@end-->

View file

@ -39,21 +39,19 @@ Jeong, Chan Myeong 070601~070630
.boardList tr.bg1 { background:#ffffff}
.boardList tr.bg2 { background:#fbfbfb;}
.boardList th a { color:#3e3f3e; text-decoration:none; }
.boardList th.num,
.boardList th.title,
.boardList th.category_title,
.boardList th.category,
.boardList th.num,
.boardList th.reading,
.boardList th.recommend,
.boardList th.author,
.boardList th.date { border-bottom:1px solid #e0e1db; padding:.5em;}
.boardList th.num { background-position:-3px bottom; border-left:1px solid #ffffff; }
.boardList th.title { text-align:center; }
.boardList th.category_title { text-align:left; padding-left:10px;}
.boardList th.category_title select { vertical-align:middle; width:200px; }
.boardList th.title { text-align:center; padding-left:1em;}
.boardList th.category { text-align:left; padding-left:1em;}
.boardList th.reading { white-space:nowrap;}
.boardList th.recommend { white-space:nowrap;}
.boardList th.date { border-right:1px solid #ffffff;}
.boardList th .sort { padding:0 .2em; vertical-align:middle;}
.boardList td { border-bottom:1px solid #eff0ed; padding:.5em;}
.boardList td.num { font:.8em tahoma; color:#999999; padding:.5em 1em; text-align:center;}
@ -61,7 +59,7 @@ Jeong, Chan Myeong 070601~070630
.boardList tr.notice td.notice { font-size:.9em; color:#999999; font-weight:bold; text-align:center;}
.boardList td.thumb { padding:8px; width:145px; table-layout:fixed; white-space:nowrap;}
.boardList td.thumb * { vertical-align:middle;}
.boardList td.title {padding-left:1em; }
.boardList td.title {padding-left:1em; height:1em; border-bottom:none;}
.boardList td.title strong.category { font-size:1em; background:url(../images/common/line_1x10_e0e0e0.gif) no-repeat right 3px; padding-right:.5em; margin-right:.5em;}
.boardList td.title.bold { font-size:1.2em; font-weight:bold;}
.boardList td.title.bold a { position:relative; top:.3em;}
@ -73,7 +71,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.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; padding-left:20px;}
.boardList td.summary { border-top:none; vertical-align:top; color:#666666; line-height:1.25em; padding-left:1em;}
.boardList td.summary a { color:#666666; text-decoration:none; line-height:inherit;}
.boardList td.summary a:visited { color:#999999;}
.boardList td input { _margin:-3px;}

View file

@ -4,19 +4,6 @@
* @brief board 모듈의 javascript
**/
/* 관리자가 카트 선택시 세션에 넣음 */
function doAddCart(mid, obj) {
var srl = obj.value;
var check_flag = obj.checked?'add':'remove';
var params = new Array();
params["mid"] = mid;
params["srl"] = srl;
params["check_flag"] = check_flag;
exec_xml("board","procBoardAdminAddCart", params, null);
}
/* 글쓰기 작성후 */
function completeDocumentInserted(ret_obj) {
var error = ret_obj['error'];

View file

@ -10,20 +10,25 @@
<!--@end-->
<!-- 목록 출력 -->
<table cellspacing="0" summary="" class="boardList">
<col width="50" />
<col width="{$module_info->thumbnail_width+20}" />
<col />
<col width="120" />
<col width="60" />
<col width="60" />
<col width="80" />
<form action="./" method="get">
<table cellspacing="0" summary="" class="boardList">
<!--@if($module_info->display_number!='N')--><col width="80" /><!--@end-->
<col width="{$module_info->thumbnail_width+20}" />
<col />
<!--@if($module_info->display_author!='N')--><col width="120" /><!--@end-->
<!--@if($module_info->display_readed_count!='N')--><col width="70" /><!--@end-->
<!--@if($module_info->display_voted_count!='N')--><col width="70" /><!--@end-->
<!--@if($module_info->display_regdate != 'N')--><col width="90" /><!--@end-->
<!--@if($module_info->display_last_update == 'Y')--><col width="90" /><!--@end-->
<thead>
<tr>
<th scope="col" class="num">{$lang->no}</th>
<th scope="col" colspan="2" class="<!--@if($module_info->use_category=='Y')-->category_title<!--@else-->title<!--@end-->">
<!--@if($module_info->display_number!='N')--><th scope="col" class="num">{$lang->no}</th><!--@end-->
<th scope="col" colspan="2" class="<!--@if($module_info->use_category=='Y')-->category<!--@else-->title<!--@end-->">
<!--@if($grant->is_admin)-->
<input type="checkbox" onclick="checkboxSelectAll(this.form, 'cart'); return false;" />
<!--@end-->
<!--@if($module_info->use_category == "Y")-->
<form action="./" method="get">
<select name="category" id="board_category">
<option value="" >{$lang->category}</option>
<!--@foreach($category_list as $val)-->
@ -31,12 +36,11 @@
<!--@end-->
</select>
<input type="button" name="go_button" id= "go_button" value="GO" onclick="doChangeCategory(); return false;" class="buttonTypeGo" />
</form>
<!--@else-->
{$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" }
@ -46,11 +50,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/common/{$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/common/{$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/common/{$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/common/{$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/common/{$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/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>
@ -58,7 +64,7 @@
<!--@if(!$document_list)-->
<!-- 게시물이 없으면 등록된 글이 없음을 표시 -->
<tr class="bg0">
<td colspan="6" class="title">
<td colspan="7" class="title">
{$lang->no_documents}
</td>
</tr>
@ -69,10 +75,10 @@
<!--@if($document->isNotice())-->
<tr class="notice">
<td class="num">{$lang->notice}</td>
<!--@if($module_info->display_number!='N')--><td class="notice">{$lang->notice}</td><!--@end-->
<td class="title" colspan="2">
<!--@if($grant->is_admin)-->
<input type="checkbox" value="{$document->document_srl}" onclick="doAddCart('{$mid}',this)" <!--@if($check_list[$document->document_srl])-->checked="checked"<!--@end--> />
<input type="checkbox" name="cart" value="{$document->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($document->isCarted())-->checked="checked"<!--@end--> />
<!--@end-->
<!--@if($module_info->use_category == "Y" && $document->get('category_srl'))-->
<strong class="category">{$category_list[$document->get('category_srl')]->title}</strong>
@ -90,17 +96,19 @@
{$document->printExtraImages(60*60*$module_info->duration_new)}
</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')>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>
<!--@else-->
<tr class="bg{($no+1)%2+1}">
<td rowspan="2" class="num"><!--@if($document_srl == $document->document_srl)--><img src="./images/common/iconArrowD8.gif" alt="" border="0" /><!--@else-->{$no}<!--@end--></td>
<!--@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($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)}" class="thumbnailMedium"><img src="{$document->getThumbnail($module_info->thumbnail_width, $module_info->thumbnail_height, $module_info->thumbnail_type)}" border="0" alt="" /></a></td>
<td class="title">
@ -109,7 +117,7 @@
<!--@end-->
<!--@if($grant->is_admin)-->
<input type="checkbox" value="{$document->document_srl}" onclick="doAddCart('{$mid}',this)" <!--@if($check_list[$document->document_srl])-->checked="checked"<!--@end--> />
<input type="checkbox" name="cart" value="{$document->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($document->isCarted())-->checked="checked"<!--@end--> />
<!--@end-->
<!--@if($module_info->use_category == "Y" && $document->get('category_srl'))-->
<strong>{$category_list[$document->get('category_srl')]->title}</strong>
@ -126,23 +134,32 @@
<!--@end-->
{$document->printExtraImages(60*60*$module_info->duration_new)}
</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')>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>
<!--@if($document->thumbnailExists(100))-->
{@ $_col_count = 5}
{@ $_col_count = 7}
<!--@else-->
{@ $_col_count = 6}
{@ $_col_count = 8}
<!--@end-->
<!--@if($module_info->display_number=='N')-->{@ $_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=='N')-->{@ $_col_count --; }<!--@end-->
<tr class="bg{($no+1)%2+1}">
<td colspan="{$_col_count}" class="summary"><a href="{getUrl('','document_srl',$document->document_srl)}">{$document->getSummary(120)}</a></td>
<td colspan="{$_col_count}" class="summary"><a href="{getUrl('','document_srl',$document->document_srl)}">{$document->getSummary(120)}</a>&nbsp;</td>
</tr>
<!--@end-->
<!--@end-->
</tbody>
</table>
</table>
</form>
<div class="clear">
@ -158,7 +175,7 @@
<!--@if($grant->is_admin)-->
<!-- 문서 관리 버튼 -->
<div class="gap1 fl">
<a href="{getUrl('act','dispBoardAdminManageDocument')}" onclick="popopen(this.href,'manageDocument'); return false;" class="button"><span>{$lang->cmd_manage_document}</span></a>
<a href="{getUrl('','module','document','act','dispDocumentAdminManageDocument')}" onclick="popopen(this.href,'manageDocument'); return false;" class="button"><span>{$lang->cmd_manage_document}</span></a>
</div>
<!--@end-->

View file

@ -140,5 +140,59 @@
<description xml:lang="ko">썸네일의 세로 크기를 지정할 수 있습니다. (기본 100px)</description>
<default>100</default>
</var>
<var name="display_number" type="select">
<title xml:lang="ko">번호 표시</title>
<title xml:lang="jp">番号表示</title>
<title xml:lang="zh-CN">显示编号</title>
<title xml:lang="en">Dispay Number</title>
<default>Y</default>
<default>N</default>
<description />
</var>
<var name="display_author" type="select">
<title xml:lang="ko">글쓴이 표시</title>
<title xml:lang="jp">投稿者表示</title>
<title xml:lang="zh-CN">显示昵称</title>
<title xml:lang="en">Display Author</title>
<default>Y</default>
<default>N</default>
<description />
</var>
<var name="display_regdate" type="select">
<title xml:lang="ko">작성일 표시</title>
<title xml:lang="jp">作成日表示</title>
<title xml:lang="zh-CN">显示发表日期</title>
<title xml:lang="en">Display Registered Date</title>
<default>Y</default>
<default>N</default>
<description />
</var>
<var name="display_readed_count" type="select">
<title xml:lang="ko">조회수 표시</title>
<title xml:lang="jp">照合数表示</title>
<title xml:lang="zh-CN">显示查看数</title>
<title xml:lang="en">Display Hit</title>
<default>Y</default>
<default>N</default>
<description />
</var>
<var name="display_voted_count" type="select">
<title xml:lang="ko">추천수 표시</title>
<title xml:lang="jp">推薦数表示</title>
<title xml:lang="zh-CN">显示推荐数</title>
<title xml:lang="en">Display 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="jp">最近の変更時間表示</title>
<title xml:lang="zh-CN">显示最后更新时间</title>
<title xml:lang="en">Display Latest Update</title>
<default>N</default>
<default>Y</default>
<description />
</var>
</extra_vars>
</skin>