[Tips] 게시판에서 최근 내가 작성한글 수정하기
2018.12.08 02:33
0
https://eond.com/412422
<!--내글수정하기-->
{@ $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


라이믹스는 이온디와 함께

닫기

마이페이지

로그인을 해주세요