묻고답하기

확장변수

2011.09.23 20:37

*******

확장변수를 관리자만 볼수있게 하고 싶은데
어떻게 하면 관리자만 볼수 있게 할수 있나요??

<!-- 글 내용 보여주기 -->
<document_title_format">!--@if(!$module_info->document_title_format)-->
    {@ $module_info->document_title_format = 'h4'}
<!--@end-->

<div class="boardRead">
    <div class="originalContent">
        <div class="readHeader">
            <div class="titleAndUser">

                <div class="title">
                    <{$module_info->document_title_format}><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getTitle()}</a></{$module_info->document_title_format}>
                </div>

                <display_author!='N'+ '">!--@if($module_info->display_author!='N')-->
                <div class="userInfo">
                    <getMemberSrl">!--@if(!$oDocument->getMemberSrl())-->
                        <div class="author">
                        <isExistsHomepage">!--@if($oDocument->isExistsHomepage())-->
                            <a href="{$oDocument->getHomepageUrl()}" onclick="window.open(this.href);return false;">{$oDocument->getNickName()}</a>
                        <!--@else-->
                            {$oDocument->getNickName()}
                        <!--@end-->
                        </div>
                    <!--@else-->
                        <div class="author"><span class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</span></div>
                    <!--@end-->
                </div>
                <!--@end-->

                <div class="clear"></div>

            </div>

            <div class="dateAndCount">
                <div class="uri" title="{$lang->document_url}"><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getPermanentUrl()}</a></div>

                <div class="date" title="{$lang->regdate}">
                    <strong>{$oDocument->getRegdate('Y.m.d')}</strong> {$oDocument->getRegdate('H:i:s')} <manager">!--@if($grant->manager || $module_info->display_ip_address!='N')-->({$oDocument->getIpaddress()})<!--@end-->
                </div>

                <div class="readedCount" title="{$lang->readed_count}">{$oDocument->get('readed_count')}</div>

                <get('voted_count')!=0">!--@if($oDocument->get('voted_count')!=0 || $oDocument->get('blamed_count')!=0)-->
                <div class="votedCount" title="{$lang->voted_count}">
                    <strong>{$oDocument->get('voted_count')} / {$oDocument->get('blamed_count')}</strong>
                </div>
                <!--@end-->

                <div class="replyAndTrackback">
                    <write_comment">!--@if($grant->write_comment && $oDocument->allowComment()) -->
                    <div class="replyCount"><a href="#comment" title="{$lang->comment}"><strong>{$oDocument->getCommentcount()}</strong></a></div>
                    <!--@end-->
                    <allowTrackback">!--@if($oDocument->allowTrackback() && $oDocument->getTrackbackCount() )-->
                    <div class="trackbackCount"><a href="#trackback" title="{$lang->trackback}"><strong>{$oDocument->getTrackbackCount()}</strong></a></div>
                    <!--@end-->
                </div>

                <use_category">!--@if($module_info->use_category == "Y" && $oDocument->get('+ 'category_srl'))-->
                <div class="category" title="{$lang->category}"><a href="{getUrl('category',$oDocument->get('category_srl'), 'document_srl', '')}">{$category_list[$oDocument->get('category_srl')]->title}</a></div>
                <!--@end-->

                <div class="clear"></div>
            </div>

            <div class="clear"></div>
        </div>

        <div class="clear"></div>

        <isExtraVarsExists">!--@if($oDocument->isExtraVarsExists() && (!$oDocument->isSecret() || $oDocument->isGranted()) )-->
        <table cellspacing="0" summary="" class="extraVarsList">
        <col width="150" />
        <col />
        <getExtraVars">!--@foreach($oDocument->getExtraVars() as $key => $val)-->
        <tr>
            <th>{$val->name}</th>
            <td>{$val->getValueHTML()}</td>
        </tr>
        <!--@end-->
        </table>
        <!--@end-->

        <div class="readBody">
            <div class="contentBody">

                <isSecret">!--@if($oDocument->isSecret() && !$oDocument->isGranted())-->
                    <div class="secretContent">
                        <form action="./" method="get" onsubmit="return procFilter(this, input_password)">
                        <input type="hidden" name="mid" value="{$mid}" />
                        <input type="hidden" name="page" value="{$page}" />
                        <input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />

                            <div class="title">{$lang->msg_is_secret}</div>
                            <div class="content"><input type="password" name="password" id="cpw" class="inputTypeText" /><span class="button {$btn_class}"><input type="submit" value="{$lang->cmd_input}" accesskey="s" /></span></div>

                        </form>
                    </div>
                <!--@else-->
                    {$oDocument->getContent()}
                <!--@end-->

                <!-- 서명 / 프로필 이미지 출력 -->
                <display_sign">!--@if($module_info->display_sign != 'N' && ($oDocument->getProfileImage() || $oDocument->getSignature()))-->
                    <div class="memberSignature">
                    <getProfileImage">!--@if($oDocument->getProfileImage())-->
                        <div class="profile"><img src="{$oDocument->getProfileImage()}" alt="profile" /></div>
                    <!--@end-->
                    <getSignature">!--@if($oDocument->getSignature())-->
                        <div class="signature">{$oDocument->getSignature()}</div>
                    <!--@end-->
                        <div class="clear"></div>
                    </div>
                <!--@end-->
            </div>
        </div>

        {@ $tag_list = $oDocument->get('tag_list') }
        <!--@if(count($tag_list))-->
        <div class="tag">
            <ul>
                <!--@for($i=0;$i<count($tag_list);$i++)-->
                    {@ $tag = $tag_list[$i]; }
                    <li><a href="{getUrl('search_target','tag','search_keyword',$tag,'document_srl','')}" rel="tag">{htmlspecialchars($tag)}</a><,&nbsp;!--@if($i<count($tag_list)-1)-->,&nbsp;<!--@end--></li>
                <!--@end-->
            </ul>
        </div>
        <!--@end-->

        <hasUploadedFiles">!--@if($oDocument->hasUploadedFiles())-->
        <div class="fileAttached">
            {@ $uploaded_list = $oDocument->getUploadedFiles() }
            <ul>
                <!--@foreach($uploaded_list as $key => $file)-->
                <li><a href="{getUrl('')}{$file->download_url}">{$file->source_filename} ({FileHandler::filesize($file->file_size)})({number_format($file->download_count)})</a></li>
                <!--@end-->
            </ul>
            <div class="clear"></div>
        </div>
        <!--@end-->
    </div>

    <!-- 목록, 수정/삭제 버튼 -->
    <div class="contentButton">
        <default_style">!--@if($module_info->default_style != 'blog' || ($module_info->default_style == 'blog' && Context::get('+ 'document_srl')))-->
        <a href="{getUrl('document_srl','')}" class="button {$btn_class}"><span><default_style">!--@if($module_info->default_style != 'blog')-->{$lang->cmd_list}<{$lang->cmd_view_all}!--@else-->{$lang->cmd_view_all}<!--@end--></span></a>
        <!--@end-->
        <isEditable">!--@if($oDocument->isEditable())-->
        <a href="{getUrl('act','dispBoardWrite','document_srl',$oDocument->document_srl,'comment_srl','')}" class="button {$btn_class}"><span>{$lang->cmd_modify}</span></a>
        <a href="{getUrl('act','dispBoardDelete','document_srl',$oDocument->document_srl,'comment_srl','')}" class="button {$btn_class}"><span>{$lang->cmd_delete}</span></a>
        <!--@end-->
    </div>

</div>

<!-- 엮인글 -->
<allowTrackback">!--@if($oDocument->allowTrackback())-->
    <!--#include("./trackback.html")-->
<!--@end-->

<!-- 댓글 -->
<a name="comment"></a>
<!--#include("./comment.html")-->

<!-- 댓글 입력 폼 -->
<write_comment">!--@if($grant->write_comment && $oDocument->isEnableComment() )-->
    <form action="./" method="post" onsubmit="return procFilter(this, insert_comment)" class="boardEditor" >
    <input type="hidden" name="mid" value="{$mid}" />
    <input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
    <input type="hidden" name="comment_srl" value="" />
    <input type="hidden" name="content" value="" />
        <div class="boardWrite commentEditor">
            <div class="userNameAndPw">
                <!--@if(!$is_logged)-->
                <label for="userName">{$lang->writer}</label>
                <input type="text" name="nick_name" value="" class="userName inputTypeText" id="userName"/>

                <label for="userPw">{$lang->password}</label>
                <input type="password" name="password" value="" id="userPw" class="userPw inputTypeText" />

                <label for="emailAddress">{$lang->email_address}</label>
                <input type="text" name="email_address" value="" id="emailAddress" class="emailAddress inputTypeText"/>

                <label for="homePage">{$lang->homepage}</label>
                <input type="text" name="homepage" value="" id="homePage" class="homePage inputTypeText"/>
                <!--@else-->
                <input type="checkbox" name="notify_message" value="Y" id="notify_message" />
                <label for="notify_message">{$lang->notify}</label>
                <!--@end-->
                <secret=="Y'>!--@if($module_info->secret=="Y")-->
                <input type="checkbox" name="is_secret" value="Y" id="is_secret" />
                <label for="is_secret">{$lang->secret}</label>
                <!--@end-->
            </div>

            <div class="editor">{$oDocument->getCommentEditor()}</div>
        </div>

        <div class="commentButton tRight">
            <span class="button {$btn_class}"><input type="submit" value="{$lang->cmd_comment_registration}" accesskey="s" /></span>
        </div>
    </form>
<!--@end-->

어디를 수정해야 하나요???
view_document.html

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
gcent 모바일웹에서 단말기 정보(모델명)를 가져올 수 있나요?  
쿵푸팬더 자료실 모듈 게시판 사용중 수정 문의  
GGobugi 폼메일에서 이지윅 에디터를 적용시키면 데이터가 전송이 안됩니다.  
히이릯 메뉴 (gnb) 를 가운데로 오게 하고 싶어요. [2] 2011.09.24 by 송동우
마도니에 게시판 아이콘 수정문제 [1] 2011.09.24 by 송동우
악히 xe게시판에 올린 게시물이 들어있는 폴더 [1] 2011.09.24 by 송동우
플로어 익스 6과 익스 8 차이 [1] 2011.09.24 by 웹 엔진
초급이 송동우님그러면 [1] 2011.09.24 by 송동우
초급이 급급급include문제 [1] 2011.09.24 by 송동우
☆민트☆ 회원정보페이지 경로설정법을 알고싶어요  
張漢 윈도우xp 에서 메뉴 이미지 문제  
홈페이지123 송동우님 초보자라 질문이 많네여ㅠㅠ [2] 2011.09.24 by 홈페이지123
noDelete 특정 사용자 글쓰기시 자바스크립트 허용의 문제 [1] 2011.09.24 by 송동우
홍승수465 읽을 권한 없다는 메시지가 한글로 나오는데 영어로 바꿀수 있는 방법? [1] 2011.09.24 by 송동우
******* 확장변수 [1] file 2011.09.24 by 송동우
phyci 빠른 목록 전환 아이콘 문제 ㅠ  
잔비어 명언을 랜덤식으로 출력하려고 하는데 [3] 2011.09.23 by 송동우
chaosinbi 질문드립니다 ㅠㅠ [1] 2011.09.23 by 엄마네과일가게
김일광186 content 위젯 표시항목 정렬방법좀 꼭 부탁드려요 ㅠㅠ [1] 2011.09.23 by 송동우
왜만지냐 보통 상단메인메뉴에서 첫번째값 구하는법 알려주세요... [1] 2011.09.23 by 송동우
김태우524 비회원일경우 글쓰기 할시에 인증코드.. [1] 2011.09.23 by 송동우
채이진 섬네일 태두리 색상변경 문의합니다. [1] file 2011.09.23 by 송동우
채이진 섬네일 태두리 색상변경 문의합니다. [2] 2011.09.23 by 채이진
티지아이 송동우님 부탁드려요 [1] 2011.09.23 by 송동우
Bugs 최근글 추출시 글쓴이 표시 위치고정 [1] 2011.09.23 by 송동우
R J 404 오류가 생기는데 [2] 2011.09.23 by R J
최영석365 메뉴 클릭하면 바디 프레임에만 원하는 페이지 또는 내용 나오도록.. [1] 2011.09.23 by 송동우
이광호281 본문 내용 이미지가 클경우 사이트 페이지가 커지는 문제.... [2] 2011.09.23 by 이광호281
ibwj 폼 3개의 값을 하나에 변수에 넣는 방법  
섭러뷔 여러개 안 보이게 하고 싶습니다. 초보질문입니다 ㅠ.ㅜ