#179 열람 권한이 없더라도 작성 권한이 있으면 작성이 되도록 하였으며 자신이 쓴 글에 대해서는 열람할 수 있게 하여 권한에 대한 정리를 하여 직관적인 사용이 가능하도록 하였습니다.

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2669 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-10-02 08:24:43 +00:00
parent 126c36edd0
commit a185b1fda5
7 changed files with 205 additions and 230 deletions

View file

@ -5,7 +5,7 @@
<!--#include("header.html")-->
<!-- 선택된 게시물이 있고 권한이 있으면 내용 출력 -->
<!--@if($oDocument->isExists() && $grant->view)-->
<!--@if($oDocument->isExists())-->
<!--#include("./view_document.html")-->
<!--@end-->
@ -94,11 +94,7 @@
<a href="{getUrl('','document_srl',$document->document_srl)}" class="thumbnailMedium"><img src="{$document->getThumbnail(100)}" border="0" alt="" /></a>
<!--@end-->
<!--@if($grant->view)-->
<a href="{getUrl('document_srl',$document->document_srl)}">{$document->getTitleText($module_info->subject_cut_size)}</a>
<!--@else-->
{$document->getTitleText($module_info->subject_cut_size)}
<!--@end-->
<a href="{getUrl('document_srl',$document->document_srl)}">{$document->getTitleText($module_info->subject_cut_size)}</a>
<!--@if($document->getCommentCount())-->
<span class="replyAndTrackback" title="Replies"><img src="./images/common/iconReply.gif" alt="" width="12" height="12" class="icon" /> <strong>{$document->getCommentCount()}</strong></span>
@ -120,7 +116,6 @@
</tbody>
</table>
<!--@if($grant->view)-->
<div class="clear">
<!-- 글쓰기, 목록 버튼 -->
@ -155,23 +150,24 @@
<!-- 검색 -->
<!--@if($grant->view)-->
<div class="boardSearch">
<form action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="category" value="{$category}" />
<form action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="category" value="{$category}" />
<fieldset>
<legend>{$lang->cmd_search}</legend>
<select name="search_target">
<!--@foreach($search_option as $key => $val)-->
<option value="{$key}" <!--@if($search_target==$key)-->selected="selected"<!--@end-->>{$val}</option>
<!--@end-->
</select>
<input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputTypeText"/><a href="#" onclick="xGetElementById('fo_search').submit();return false;" class="button"><span>{$lang->cmd_search}</span></a><a href="{getUrl('','mid',$mid)}" class="button"><span>{$lang->cmd_cancel}</span></a>
</fieldset>
</form>
<fieldset>
<legend>{$lang->cmd_search}</legend>
<select name="search_target">
<!--@foreach($search_option as $key => $val)-->
<option value="{$key}" <!--@if($search_target==$key)-->selected="selected"<!--@end-->>{$val}</option>
<!--@end-->
</select>
<input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputTypeText"/><a href="#" onclick="xGetElementById('fo_search').submit();return false;" class="button"><span>{$lang->cmd_search}</span></a><a href="{getUrl('','mid',$mid)}" class="button"><span>{$lang->cmd_cancel}</span></a>
</fieldset>
</form>
</div>
<!--@end-->
</div>
<!--@end-->
<!--#include("footer.html")-->