<!--내글수정하기-->
{@ $sub1 = array('sub101', 'sub102', 'sub103', 'sub104', 'sub105', 'sub106'); }
<block cond="in_array($mid, $sub1)">
<style>
   .edit-myarticle{text-align:center;padding:10px 0;}
   .edit-myarticle a{text-decoration:none;padding:7px 12px;display:block;font-weight:800;color:#4d4b7e;overflow:hidden;}
   .edit-myarticle a:hover{text-decoration:none;background:#7a78bb;color:#fff;}
   .edit-myarticle button{border:1px solid #4d4b7e;border-radius:5px;background:#fff;padding:0;overflow:hidden;}
</style>
{@
// $oDocumentModel = getModel('document');
// $document_srl = $oDocumentModel->getDocumentCountByMemberSrl($logged_info->member_srl);
$oDB = &DB::getInstance();
$query = $oDB->_query('select document_srl from xe_documents where module_srl = '.$module_info->module_srl.' AND member_srl = '.$logged_info->member_srl.' ORDER BY regdate DESC LIMIT 1');
$result = $oDB->_fetch($query);
}
<div class="edit-myarticle">
   <button><a href="{getUrl('mid',$mid,'act','dispBoardWrite','document_srl',$result->document_srl)}">내글수정</a></button>
</div>
</block>
<!--// 내글수정하기-->

https://xetown.com/questions/1124229


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