CMS솔루션마켓, 이온디 - 워드프레스, 라이믹스, 카페24, 그누보드, 엑셀

Contents Management System

참조 : bodex 문서수정내역

삽입위치 : ./modules/board/skins/sketchbook5_eond/_read.html 

코드 : 

<style>
   .docEditLog_wrap{margin-bottom:40px;padding:0 15px;}
   .docEditLog_wrap .title{margin: 0 0 1em 0 !important;line-height: 1;font-size: 1em;color: #555 !important;}
   .docEditLog_wrap table{border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;table-layout:fixed;width:100%;}
   .docEditLog_wrap table th{padding-top:8px;padding-bottom:8px;padding-left: 4px;color: #999;line-height: 18px;font-size: 0.95em;text-align:left;}
   .docEditLog_wrap table td{border-top:1px solid #ebebeb;padding-top:5px;padding-bottom:5px;}
   .docEditLog_wrap .no        {width:40px;}
   .docEditLog_wrap .author    {width:60px;}
   .docEditLog_wrap .date      {width:80px;}
   .docEditLog_wrap .ip        {width:100px;}
   .docEditLog_wrap .content   {width:;}
</style>
<div class="docEditLog_wrap" cond="$logged_info->is_admin">
   {@
   $oDB = &DB::getInstance();
   $query = $oDB->_query("SELECT * FROM xe_document_histories where document_srl = ".$document_srl);
   $result = $oDB->_fetch($query);
   $no=1;
   }
   <h4 class="title">History</h4>
   <table>
      <thead>
      <tr>
         <th class="no">#</th>
         <th class="author">글쓴이</th>
         <th class="date">변경날짜</th>
         <th class="ip">변경아이피</th>
         <th class="content">변경내용</th>
      </tr>
      </thead>
      <block loop="$result=>$getHistory" class="clearBar">
         <tr>
            <td class="no">{$no++}</td>
            <td class="author">{$getHistory->nick_name}</td>
            <td class="date"><span title="{zdate($getHistory->regdate,'Y.m.d H:s:i')}">{zdate($getHistory->regdate,"Y.m.d")}</span></td>
            <td class="ip">{$getHistory->ipaddress}</td>
            <td class="content">
               {@
               $_tmp = htmlspecialchars(str_replace(array('&lt;', '&gt;', '&quot;', '&nbsp;'), array('<', '>', '"', ' '), cut_str(strip_tags($getHistory->content), 250, '...')));
               $_tmp = trim($_tmp) ? $_tmp:'...&nbsp;';
               }
               {$_tmp}
            </td>
         </tr>
      </block>
   </table>
</div>


XE 문서수정내역 애드온 만들기에서 필요한 방법 및 기능

1. 애드온 만드는 방법

2. 글보기에서 원하는 위치에 출력하는 방법

3. 관리자만 보기 혹은 원하는 그룹만 보기 설정하는 기능

4. 로그 삭제하기 기능 [2.0]

5. 펼쳐보기 기능 [2.0]



추천한 사람

 
댓글은 로그인 사용자만 작성 가능합니다. 로그인하기