Initial import from local backup (Documents-Playground/pakerpale)

This commit is contained in:
jeonghwa
2026-07-03 05:27:41 +09:00
commit 5b1bfe3390
2223 changed files with 561621 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li class="active"><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>나의 작성 댓글</h3>
<ul class="table-top mb10">
<li><a href="<?php echo site_url('mypage/post'); ?>" class="btn btn-warning btn-sm" title="원글">원글</a></li>
<li><a href="<?php echo site_url('mypage/comment'); ?>" class="btn btn-success btn-sm" title="댓글">댓글</a></li>
</ul>
<table class="table">
<thead>
<tr>
<th>번호</th>
<th>내용</th>
<th>날짜</th>
</tr>
</thead>
<tbody>
<?php
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $result) {
?>
<tr>
<td><?php echo element('num', $result); ?></td>
<td><a href="<?php echo element('comment_url', $result); ?>" target="new"><?php echo cut_str(html_escape(strip_tags(element('cmt_content', $result))), 200); ?></a>
<?php if (element('cmt_like', $result)) { ?><span class="label label-info">+ <?php echo element('cmt_like', $result); ?></span><?php } ?>
<?php if (element('cmt_dislike', $result)) { ?><span class="label label-danger">- <?php echo element('cmt_dislike', $result); ?></span><?php } ?>
</td>
<td><?php echo display_datetime(element('cmt_datetime', $result), 'full'); ?></td>
</tr>
<?php
}
}
if ( ! element('list', element('data', $view))) {
?>
<tr>
<td colspan="3" class="nopost">회원님이 작성하신 댓글이 없습니다</td>
</tr>
<?php
}
?>
</tbody>
</table>
<nav><?php echo element('paging', $view); ?></nav>
</div>

View File

@@ -0,0 +1,22 @@
/**
mypage skin css
*/
.mypage .mypagemain li {display: block;margin: 0px; clear: both; margin-bottom: 15px;}
.mypage .mypagemain li>span {float: left;width: 25%;text-align: right;padding-right: 20px;margin-top: 5px;color: #000;font-weight: bold;}
.mypage .mypagemain li {min-height:25px;}
.mypage .scrapbtn {font-size:10px;}
.mypage .askpassword li {display: block;margin: 0px; clear: both; margin-bottom: 15px;}
.mypage .askpassword li>span {float: left;width: 25%;text-align: right;padding-right: 20px;margin-top: 5px;color: #000;font-weight: bold;}
.mypage .member_modify li {display: block;margin: 0px; clear: both; margin-bottom: 15px;}
.mypage .member_modify li>span {float: left;width: 25%;text-align: right;padding-right: 20px;margin-top: 5px;color: #000;font-weight: bold;}
.mypage .member_modify textarea {width:500px; }
.mypage .table-top {overflow: hidden;padding-bottom: 10px;}
.mypage .table-top input{margin-bottom: 0;margin-top: 0;}
.mypage .table-top li{float: left;text-align: center;padding-right: 5px;}
.mypage .nav {margin-bottom:20px;}

View File

@@ -0,0 +1,57 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li class="active"><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>Followed</h3>
<ul class="table-top mb10">
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" class="btn btn-warning btn-sm" title="Following">Following (<?php echo number_format(element('following_total_rows', $view)); ?>)</a></li>
<li><a href="<?php echo site_url('mypage/followedlist'); ?>" class="btn btn-success btn-sm" title="Followed">Followed (<?php echo number_format(element('followed_total_rows', $view)); ?>)</a></li>
</ul>
<table class="table">
<thead>
<tr>
<th><i class="fa fa-user"></i></th>
<th>회원명</th>
<th>Follow한날짜</th>
</tr>
</thead>
<tbody>
<?php
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $result) {
?>
<tr>
<td><i class="fa fa-user"></i></td>
<td><?php echo element('display_name', $result); ?></td>
<td><?php echo display_datetime(element('fol_datetime', $result), 'full'); ?></td>
</tr>
<?php
}
}
if ( ! element('list', element('data', $view))) {
?>
<tr>
<td colspan="3" class="nopost">아직 나를 Follow 한 사람이 없습니다</td>
</tr>
<?php
}
?>
</tbody>
</table>
<nav><?php echo element('paging', $view); ?></nav>
</div>

View File

@@ -0,0 +1,56 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li class="active"><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>Following</h3>
<ul class="table-top mb10">
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" class="btn btn-warning btn-sm" title="Following">Following (<?php echo number_format(element('following_total_rows', $view)); ?>)</a></li>
<li><a href="<?php echo site_url('mypage/followedlist'); ?>" class="btn btn-success btn-sm" title="Followed">Followed (<?php echo number_format(element('followed_total_rows', $view)); ?>)</a></li>
</ul>
<table class="table">
<thead>
<tr>
<th><i class="fa fa-user"></i></th>
<th>회원명</th>
<th>Follow한날짜</th>
</tr>
</thead>
<tbody>
<?php
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $result) {
?>
<tr>
<td><i class="fa fa-user"></i></td>
<td><?php echo element('display_name', $result); ?></td>
<td><?php echo display_datetime(element('fol_datetime', $result), 'full'); ?></td>
</tr>
<?php
}
}
if ( ! element('list', element('data', $view))) {
?>
<tr>
<td colspan="3" class="nopost">Following 한 내역이 없습니다</td>
</tr>
<?php
}
?>
</tbody>
</table>
<nav><?php echo element('paging', $view); ?></nav>
</div>

View File

@@ -0,0 +1,59 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li class="active"><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>추천(댓글)</h3>
<ul class="table-top mb10">
<li><a href="<?php echo site_url('mypage/like_post'); ?>" class="btn btn-warning btn-sm" title="원글">원글</a></li>
<li><a href="<?php echo site_url('mypage/like_comment'); ?>" class="btn btn-success btn-sm" title="댓글">댓글</a></li>
</ul>
<table class="table">
<thead>
<tr>
<th>번호</th>
<th>내용</th>
<th>날짜</th>
</tr>
</thead>
<tbody>
<?php
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $result) {
?>
<tr>
<td><?php echo element('num', $result); ?></td>
<td><a href="<?php echo element('comment_url', $result); ?>" target="new"><?php echo cut_str(html_escape(strip_tags(element('cmt_content', $result))), 200); ?></a>
<?php if (element('cmt_like', $result)) { ?><span class="label label-info">+ <?php echo number_format(element('cmt_like', $result)); ?></span><?php } ?>
<?php if (element('cmt_dislike', $result)) { ?><span class="label label-danger">- <?php echo number_format(element('cmt_dislike', $result)); ?></span><?php } ?>
</td>
<td><?php echo display_datetime(element('cmt_datetime', $result), 'full'); ?></td>
</tr>
<?php
}
}
if ( ! element('list', element('data', $view))) {
?>
<tr>
<td colspan="3" class="nopost">회원님이 추천하신 댓글이 없습니다</td>
</tr>
<?php
}
?>
</tbody>
</table>
<nav><?php echo element('paging', $view); ?></nav>
</div>

View File

@@ -0,0 +1,63 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li class="active"><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>추천(원글)</h3>
<ul class="table-top mb10">
<li><a href="<?php echo site_url('mypage/like_post'); ?>" class="btn btn-warning btn-sm" title="원글">원글</a></li>
<li><a href="<?php echo site_url('mypage/like_comment'); ?>" class="btn btn-success btn-sm" title="댓글">댓글</a></li>
</ul>
<table class="table">
<thead>
<tr>
<th>번호</th>
<th>이미지</th>
<th>제목</th>
<th>날짜</th>
</tr>
</thead>
<tbody>
<?php
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $result) {
?>
<tr>
<td><?php echo html_escape(element('num', $result)); ?></td>
<td><?php if (element('post_image', $result)) { ?><img class="media-object" src="<?php echo thumb_url('post', element('pfi_filename', element('images', $result)), 50, 40); ?>" alt="<?php echo html_escape(element('post_title', $result)); ?>" title="<?php echo html_escape(element('post_title', $result)); ?>" style="width:50px;height:40px;" /><?php } ?></td>
<td><a href="<?php echo element('post_url', $result); ?>" target="new" title="<?php echo html_escape(element('post_title', $result)); ?>"><?php echo html_escape(element('post_title', $result)); ?></a>
<?php if (element('post_comment_count', $result)) { ?><span class="label label-success"><?php echo number_format(element('post_comment_count', $result)); ?> comments</span><?php } ?>
<?php if (element('post_like', $result)) { ?><span class="label label-info">+ <?php echo number_format(element('post_like', $result)); ?></span><?php } ?>
<?php if (element('post_dislike', $result)) { ?><span class="label label-danger">- <?php echo number_format(element('post_dislike', $result)); ?></span><?php } ?>
</td>
<td><?php echo display_datetime(element('post_datetime', $result), 'full'); ?></td>
</tr>
<?php
}
}
if ( ! element('list', element('data', $view))) {
?>
<tr>
<td colspan="4" class="nopost">회원님이 추천하신 글이 없습니다</td>
</tr>
<?php
}
?>
</tbody>
</table>
<nav><?php echo element('paging', $view); ?></nav>
</div>

View File

@@ -0,0 +1,57 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li class="active"><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>로그인 기록</h3>
<table class="table">
<thead>
<tr>
<th>로그인여부</th>
<th>IP</th>
<th>OS</th>
<th>Browser</th>
<th>날짜</th>
</tr>
</thead>
<tbody>
<?php
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $result) {
?>
<tr>
<td><?php echo element('mll_success', $result) === '1' ? "<span class=\"label label-success\">로그인성공</span>":"<span class=\"label label-danger\">로그인실패</span>"; ?></td>
<td><?php echo html_escape(element('mll_ip', $result)); ?></td>
<td><?php echo html_escape(element('os', $result)); ?></td>
<td><?php echo html_escape(element('browsername', $result)); ?> <?php echo html_escape(element('browserversion', $result)); ?> <?php echo html_escape(element('engine', $result)); ?></td>
<td><?php echo display_datetime(element('mll_datetime', $result), 'full'); ?></td>
</tr>
<?php
}
}
if ( ! element('list', element('data', $view))) {
?>
<tr>
<td colspan="5" class="nopost">로그인 기록이 없습니다</td>
</tr>
<?php
}
?>
</tbody>
</table>
<nav><?php echo element('paging', $view); ?></nav>
</div>

View File

@@ -0,0 +1,79 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li class="active"><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>마이페이지</h3>
<ol class="mypagemain">
<li>
<span>아이디</span>
<div class="form-text"><?php echo html_escape($this->member->item('mem_userid')); ?></div>
</li>
<li>
<span>이메일 주소</span>
<div class="form-text"><?php echo html_escape($this->member->item('mem_email')); ?></div>
</li>
<?php if (element('use', element('mem_username', element('memberform', $view)))) { ?>
<li>
<span>이름</span>
<div class="form-text"><?php echo html_escape($this->member->item('mem_username')); ?></div>
</li>
<?php } ?>
<li>
<span>닉네임</span>
<div class="form-text"><?php echo html_escape($this->member->item('mem_nickname')); ?></div>
</li>
<?php if (element('use', element('mem_homepage', element('memberform', $view)))) { ?>
<li>
<span>홈페이지</span>
<div class="form-text"><?php echo $this->member->item('mem_homepage') ? html_escape($this->member->item('mem_homepage')) : '미등록'; ?></div>
</li>
<?php } ?>
<?php if (element('use', element('mem_birthday', element('memberform', $view)))) { ?>
<li>
<span>생일</span>
<div class="form-text"><?php echo html_escape($this->member->item('mem_birthday')); ?></div>
</li>
<?php } ?>
<li>
<span>포인트</span>
<div class="form-text"><?php echo number_format($this->member->item('mem_point')); ?></div>
</li>
<?php
/* if (element('member_group_name', $view)) {
// 회원에게 자신이 어떤 그룹에 속해있는지 보여주고 싶으면 여기 주석을 해제해주세요
// 웹사이트 운영 정책에 따라 결정해주시면 됩니다
?>
<li>
<span>회원그룹</span>
<div class="form-text"><?php echo element('member_group_name', $view); ?></div>
</li>
<?php } */ ?>
<li>
<span>가입일</span>
<div class="form-text"><?php echo display_datetime($this->member->item('mem_register_datetime'), 'full'); ?></div>
</li>
<li>
<span>최근 로그인</span>
<div class="form-text"><?php echo display_datetime($this->member->item('mem_lastlogin_datetime'), 'full'); ?></div>
</li>
<li class="mt20">
<span></span>
<div class="group">
<a href="<?php echo site_url('membermodify'); ?>" class="btn btn-default btn-sm" title="회원정보 변경">회원정보 변경</a>
</div>
</li>
</ol>
</div>

View File

@@ -0,0 +1,25 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li <?php if (uri_string() === 'membermodify') { ?>class="active" <?php } ?>><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li <?php if (uri_string() === 'membermodify/memberleave') { ?>class="active" <?php } ?>><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>관리자 회원</h3>
<div class="alert alert-dismissible alert-info infoalert">
<span id="return_message">
관리자회원정보는 관리자페이지에서만 수정이 가능합니다.
</span>
</div>
</div>

View File

@@ -0,0 +1,98 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li class="active"><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>회원정보 수정</h3>
<?php
echo validation_errors('<div class="alert alert-warning" role="alert">', '</div>');
echo show_alert_message(element('message', $view), '<div class="alert alert-auto-close alert-dismissible alert-info"><button type="button" class="close alertclose" >&times;</button>', '</div>');
echo show_alert_message($this->session->flashdata('message'), '<div class="alert alert-auto-close alert-dismissible alert-info"><button type="button" class="close alertclose" >&times;</button>', '</div>');
?>
<div class="alert alert-dismissible alert-info">
회원님은 소셜 계정을 통하여 로그인하셨습니다. <br />
회원님의 아이디, 패스워드, 이메일, 닉네임 정보를 입력하시면, 앞으로는 소셜계정으로도 로그인을 계속 하실 수 있으며, 또한 입력하신 회원 아이디와 패스워드로도 이 홈페이지에 로그인이 가능해집니다. <br />
또한 이 정보를 입력하신 후에 상세 개인정보 수정페이지에서 메일수신여부, 쪽지수신여부 등을 계속하여 설정하실 수 있습니다.
</div>
<?php
$attributes = array('class' => 'form-horizontal', 'name' => 'fdefaultinfoform', 'id' => 'fdefaultinfoform');
echo form_open_multipart(current_url(), $attributes);
?>
<ol class="member_modify">
<li>
<span>회원아이디</span>
<div class="form-text text-primary group"><input type="text" id="mem_userid" name="mem_userid" class="form-control input" minlength="3" />
<p class="help-block">영문자, 숫자, _ 만 입력 가능. 최소 3자이상 입력하세요</p>
</div>
</li>
<li>
<span>패스워드</span>
<div class="form-text text-primary group"><input type="password" id="mem_password" name="mem_password" class="form-control input" />
<p class="help-block">패스워드는 <?php echo element('password_length', $view); ?> 자리 이상이어야 하며 영문과 숫자를 반드시 포함해야 합니다</p>
</div>
</li>
<li>
<span>패스워드 확인</span>
<div class="form-text text-primary group">
<input type="password" id="mem_password_re" name="mem_password_re" class="form-control input" />
</div>
</li>
<li>
<span>이메일</span>
<div class="form-text text-primary group"><input type="email" id="mem_email" name="mem_email" class="form-control input" />
<?php if ($this->cbconfig->item('use_register_email_auth')) { ?>
<p class="help-block">이메일 인증을 받으신 후에 아이디/패스워드로 로그인이 가능합니다</p>
<?php } ?>
</div>
</li>
<li>
<span>닉네임</span>
<div class="form-text text-primary group"><input type="text" id="mem_nickname" name="mem_nickname" class="form-control input" value="<?php echo html_escape($this->member->item('mem_nickname'));?>" />
<p class="help-block">공백없이 한글, 영문, 숫자만 입력 가능 2글자 이상
<?php if ($this->cbconfig->item('change_nickname_date')) { ?>
<br />지금 적용되는 닉네임은 앞으로 <?php echo $this->cbconfig->item('change_nickname_date'); ?>일 이내에는 변경할 수 없습니다
<?php } ?>
</p>
</div>
</li>
<li>
<span></span>
<button type="submit" class="btn btn-success">수정하기</button>
</li>
</ol>
<?php echo form_close(); ?>
</div>
<?php
$this->managelayout->add_js(base_url('assets/js/member_register.js'));
?>
<script type="text/javascript">
//<![CDATA[
$(function() {
$('#fdefaultinfoform').validate({
rules: {
mem_userid: {required :true, minlength:3, maxlength:20, is_userid_available:true},
mem_password: {required :true, minlength:<?php echo element('password_length', $view); ?>, is_password_available:true},
mem_password_re : {required: true, minlength:<?php echo element('password_length', $view); ?>, equalTo : '#mem_password' },
mem_email: {required :true, email:true, is_email_available:true},
mem_nickname: {required :true, is_nickname_available:true}
}
});
});
//]]>
</script>

View File

@@ -0,0 +1,252 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li class="active"><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>회원정보 수정</h3>
<?php
echo validation_errors('<div class="alert alert-warning" role="alert">', '</div>');
echo show_alert_message(element('message', $view), '<div class="alert alert-auto-close alert-dismissible alert-info"><button type="button" class="close alertclose" >&times;</button>', '</div>');
echo show_alert_message($this->session->flashdata('message'), '<div class="alert alert-auto-close alert-dismissible alert-info"><button type="button" class="close alertclose" >&times;</button>', '</div>');
$attributes = array('name' => 'fregisterform', 'id' => 'fregisterform');
echo form_open_multipart(current_url(), $attributes);
?>
<ol class="member_modify">
<li>
<span>아이디</span>
<div class="form-text text-primary"><strong><?php echo $this->member->item('mem_userid'); ?></strong></div>
</li>
<?php
if ($this->cbconfig->item('use_sociallogin')) {
$this->managelayout->add_js(base_url('assets/js/social_login.js'));
?>
<li>
<span>소셜 연동</span>
<div class="form-text text-primary">
<div class="social-login-register">
<?php if ($this->cbconfig->item('use_sociallogin_facebook')) {?>
<div class="social-login-button social-facebook social-facebook-on">
<a href="javascript:;" onClick="social_connect_off('facebook');" title="페이스북 연동해제하기"><img src="<?php echo base_url('assets/images/social_facebook.png'); ?>" width="30" height="30" alt="페이스북 연동해제하기" title="페이스북 연동해제하기" /></a>
</div>
<div class="social-login-button social-facebook social-facebook-off">
<a href="javascript:;" onClick="social_connect_on('facebook');" title="페이스북 연동하기"><img src="<?php echo base_url('assets/images/social_facebook_off.png'); ?>" width="30" height="30" alt="페이스북 연동하기" title="페이스북 연동하기" /></a>
</div>
<script type="text/javascript">
<?php if ($this->member->socialitem('facebook_id')) {?>
$('.social-facebook-on').css('display', 'inline-block');
$('.social-facebook-off').css('display', 'none');
<?php } else {?>
$('.social-facebook-on').css('display', 'none');
$('.social-facebook-off').css('display', 'inline-block');
<?php } ?>
</script>
<?php } ?>
<?php if ($this->cbconfig->item('use_sociallogin_twitter')) {?>
<div class="social-login-button social-twitter social-twitter-on">
<a href="javascript:;" onClick="social_connect_off('twitter');" title="트위터 연동해제하기"><img src="<?php echo base_url('assets/images/social_twitter.png'); ?>" width="30" height="30" alt="트위터 연동해제하기" title="트위터 연동해제하기" /></a>
</div>
<div class="social-login-button social-twitter social-twitter-off">
<a href="javascript:;" onClick="social_connect_on('twitter');" title="트위터 연동하기"><img src="<?php echo base_url('assets/images/social_twitter_off.png'); ?>" width="30" height="30" alt="트위터 연동하기" title="트위터 연동하기" /></a>
</div>
<script type="text/javascript">
<?php if ($this->member->socialitem('twitter_id')) {?>
$('.social-twitter-on').css('display', 'inline-block');
$('.social-twitter-off').css('display', 'none');
<?php } else {?>
$('.social-twitter-on').css('display', 'none');
$('.social-twitter-off').css('display', 'inline-block');
<?php } ?>
</script>
<?php } ?>
<?php if ($this->cbconfig->item('use_sociallogin_google')) {?>
<div class="social-login-button social-google social-google-on">
<a href="javascript:;" onClick="social_connect_off('google');" title="구글 연동해제하기"><img src="<?php echo base_url('assets/images/social_google.png'); ?>" width="30" height="30" alt="구글 연동해제하기" title="구글 연동해제하기" /></a>
</div>
<div class="social-login-button social-google social-google-off">
<a href="javascript:;" onClick="social_connect_on('google');" title="구글 연동하기"><img src="<?php echo base_url('assets/images/social_google_off.png'); ?>" width="30" height="30" alt="구글 연동하기" title="구글 연동하기" /></a>
</div>
<script type="text/javascript">
<?php if ($this->member->socialitem('google_id')) {?>
$('.social-google-on').css('display', 'inline-block');
$('.social-google-off').css('display', 'none');
<?php } else {?>
$('.social-google-on').css('display', 'none');
$('.social-google-off').css('display', 'inline-block');
<?php } ?>
</script>
<?php } ?>
<?php if ($this->cbconfig->item('use_sociallogin_naver')) {?>
<div class="social-login-button social-naver social-naver-on">
<a href="javascript:;" onClick="social_connect_off('naver');" title="네이버 연동해제하기"><img src="<?php echo base_url('assets/images/social_naver.png'); ?>" width="30" height="30" alt="네이버 연동해제하기" title="네이버 연동해제하기" /></a>
</div>
<div class="social-login-button social-naver social-naver-off">
<a href="javascript:;" onClick="social_connect_on('naver');" title="네이버 연동하기"><img src="<?php echo base_url('assets/images/social_naver_off.png'); ?>" width="30" height="30" alt="네이버 연동하기" title="네이버 연동하기" /></a>
</div>
<script type="text/javascript">
<?php if ($this->member->socialitem('naver_id')) {?>
$('.social-naver-on').css('display', 'inline-block');
$('.social-naver-off').css('display', 'none');
<?php } else {?>
$('.social-naver-on').css('display', 'none');
$('.social-naver-off').css('display', 'inline-block');
<?php } ?>
</script>
<?php } ?>
<?php if ($this->cbconfig->item('use_sociallogin_kakao')) {?>
<div class="social-login-button social-kakao social-kakao-on">
<a href="javascript:;" onClick="social_connect_off('kakao');" title="카카오 연동해제하기"><img src="<?php echo base_url('assets/images/social_kakao.png'); ?>" width="30" height="30" alt="카카오 연동해제하기" title="카카오 연동해제하기" /></a>
</div>
<div class="social-login-button social-kakao social-kakao-off">
<a href="javascript:;" onClick="social_connect_on('kakao');" title="카카오 연동하기"><img src="<?php echo base_url('assets/images/social_kakao_off.png'); ?>" width="30" height="30" alt="카카오 연동하기" title="카카오 연동하기" /></a>
</div>
<script type="text/javascript">
<?php if ($this->member->socialitem('kakao_id')) {?>
$('.social-kakao-on').css('display', 'inline-block');
$('.social-kakao-off').css('display', 'none');
<?php } else {?>
$('.social-kakao-on').css('display', 'none');
$('.social-kakao-off').css('display', 'inline-block');
<?php } ?>
</script>
<?php } ?>
</div>
</div>
</li>
<?php } ?>
<li>
<span>패스워드</span>
<div class="form-text text-primary"><a href="<?php echo site_url('membermodify/password_modify'); ?>" class="btn btn-default" title="패스워드 변경">패스워드 변경</a></div>
</li>
<?php foreach (element('html_content', $view) as $key => $value) { ?>
<li>
<span><?php echo element('display_name', $value); ?></span>
<div class="form-text text-primary group">
<?php echo element('input', $value); ?>
<?php if (element('description', $value)) { ?>
<p class="help-block"><?php echo element('description', $value); ?></p>
<?php } ?>
</div>
</li>
<?php } ?>
<?php if ($this->cbconfig->item('use_member_photo') && $this->cbconfig->item('member_photo_width') > 0 && $this->cbconfig->item('member_photo_height') > 0) { ?>
<li>
<span>프로필사진</span>
<div class="form-text text-primary group">
<?php if ($this->member->item('mem_photo')) { ?>
<img src="<?php echo member_photo_url($this->member->item('mem_photo')); ?>" alt="프로필사진" title="프로필사진" />
<label for="mem_photo_del">
<input type="checkbox" name="mem_photo_del" id="mem_photo_del" value="1" <?php echo set_checkbox('mem_photo_del', '1'); ?> />
삭제
</label>
<?php } ?>
<input type="file" name="mem_photo" id="mem_photo" />
<p class="help-block">가로길이 : <?php echo number_format($this->cbconfig->item('member_photo_width')); ?>px, 세로길이 : <?php echo number_format($this->cbconfig->item('member_photo_height')); ?>px 에 최적화되어있습니다, gif, jpg, png 파일 업로드가 가능합니다</p>
</div>
</li>
<?php } ?>
<?php if ($this->cbconfig->item('use_member_icon') && $this->cbconfig->item('member_icon_width') > 0 && $this->cbconfig->item('member_icon_height') > 0) { ?>
<li>
<span>회원아이콘</span>
<div class="form-text text-primary group">
<?php if ($this->member->item('mem_icon')) { ?>
<img src="<?php echo member_icon_url($this->member->item('mem_icon')); ?>" alt="회원아이콘" title="회원아이콘" />
<label for="mem_icon_del">
<input type="checkbox" name="mem_icon_del" id="mem_icon_del" value="1" <?php echo set_checkbox('mem_icon_del', '1'); ?> />
삭제
</label>
<?php } ?>
<input type="file" name="mem_icon" id="mem_icon" />
<p class="help-block">가로길이 : <?php echo number_format($this->cbconfig->item('member_icon_width')); ?>px, 세로길이 : <?php echo number_format($this->cbconfig->item('member_icon_height')); ?>px 에 최적화되어있습니다, gif, jpg, png 파일 업로드가 가능합니다</p>
</div>
</li>
<?php } ?>
<li>
<span>정보공개</span>
<div class="form-text text-primary group">
<div class="checkbox">
<label for="mem_open_profile">
<input type="checkbox" name="mem_open_profile" id="mem_open_profile" value="1" <?php echo set_checkbox('mem_open_profile', '1', ($this->member->item('mem_open_profile') ? true : false)); ?> <?php echo element('can_update_open_profile', $view) ? '' : 'disabled="disabled"'; ?> />
다른분들이 나의 정보를 볼 수 있도록 합니다.
</label>
<?php if (element('open_profile_description', $view)) { ?>
<p class="help-block"><?php echo element('open_profile_description', $view); ?></p>
<?php } ?>
</div>
</div>
</li>
<?php if ($this->cbconfig->item('use_note')) { ?>
<li>
<span>쪽지 기능</span>
<div class="form-text text-primary group">
<div class="checkbox">
<label for="mem_use_note">
<input type="checkbox" name="mem_use_note" id="mem_use_note" value="1" <?php echo set_checkbox('mem_use_note', '1', ($this->member->item('mem_use_note') ? true : false)); ?> <?php echo element('can_update_use_note', $view) ? '' : 'disabled="disabled"'; ?> />
쪽지를 주고 받을 수 있습니다.
</label>
<?php if (element('use_note_description', $view)) { ?>
<p class="help-block"><?php echo element('use_note_description', $view); ?></p>
<?php } ?>
</div>
</div>
</li>
<?php } ?>
<li>
<span>이메일 수신</span>
<div class="form-text text-primary group">
<div class="checkbox">
<label for="mem_receive_email" >
<input type="checkbox" name="mem_receive_email" id="mem_receive_email" value="1" <?php echo set_checkbox('mem_receive_email', '1', ($this->member->item('mem_receive_email') ? true : false)); ?> /> 수신
</label>
</div>
</div>
</li>
<li>
<span>SMS 문자수신</span>
<div class="form-text text-primary group">
<div class="col-lg-8">
<div class="checkbox">
<label for="mem_receive_sms">
<input type="checkbox" name="mem_receive_sms" id="mem_receive_sms" value="1" <?php echo set_checkbox('mem_receive_sms', '1', ($this->member->item('mem_receive_sms') ? true : false)); ?> /> 수신
</label>
</div>
</div>
</div>
</li>
<li>
<span></span>
<button type="submit" class="btn btn-success">수정</button>
</li>
</ol>
<?php echo form_close(); ?>
</div>
<?php
$this->managelayout->add_css(base_url('assets/css/datepicker3.css'));
$this->managelayout->add_js('http://dmaps.daum.net/map_js_init/postcode.v2.js');
$this->managelayout->add_js(base_url('assets/js/bootstrap-datepicker.js'));
$this->managelayout->add_js(base_url('assets/js/bootstrap-datepicker.kr.js'));
?>
<script type="text/javascript">
//<![CDATA[
$('.datepicker').datepicker({
format: 'yyyy-mm-dd',
language: 'kr',
autoclose: true,
todayHighlight: true
});
//]]>
</script>

View File

@@ -0,0 +1,35 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li class="active"><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>회원 정보 수정</h3>
<div class="final">
<div class="table-box">
<div class="table-heading">회원 정보 수정</div>
<div class="table-body">
<div class="msg_content">
<?php echo element('result_message', $view); ?>
<p class="btn_final mt20">
<a href="<?php echo site_url(); ?>" class="btn btn-danger" title="<?php echo html_escape($this->cbconfig->item('site_title'));?>" title="<?php echo html_escape($this->cbconfig->item('site_title'));?>">홈페이지로 이동</a>
</p>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,61 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage ">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li <?php if (uri_string() === 'membermodify') { ?>class="active" <?php } ?> ><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li <?php if (uri_string() === 'membermodify/memberleave') { ?>class="active" <?php } ?>><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>회원 비밀번호 확인</h3>
<?php
echo validation_errors('<div class="alert alert-warning" role="alert">', '</div>');
echo show_alert_message(element('message', $view), '<div class="alert alert-auto-close alert-dismissible alert-info"><button type="button" class="close alertclose" >&times;</button>', '</div>');
$attributes = array('name' => 'fconfirmpassword', 'id' => 'fconfirmpassword');
echo form_open(current_url(), $attributes);
?>
<ol class="askpassword">
<li>
<span>아이디</span>
<div class="form-text"><strong><?php echo $this->member->item('mem_userid'); ?></strong></div>
</li>
<li>
<span>비밀번호</span>
<div class="group">
<input type="password" class="input px150" id="mem_password" name="mem_password" />
<button class="btn btn-primary" type="submit">확인</button>
</div>
</li>
<li>
<span></span>
<div>
<span class="fa fa-exclamation-circle"></span>
외부로부터 회원님의 정보를 안전하게 보호하기 위해 비밀번호를 확인하셔야 합니다.
</div>
</li>
</ol>
<?php echo form_close(); ?>
</div>
<script type="text/javascript">
//<![CDATA[
$(function() {
$('#fconfirmpassword').validate({
rules: {
mem_password : { required:true, minlength:4 }
}
});
});
//]]>
</script>

View File

@@ -0,0 +1,24 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li class="active"><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>회원 탈퇴</h3>
<div class="mt20">
<p style="padding:20px;">안녕하세요 <span class="text-primary"><?php echo html_escape($this->member->item('mem_nickname')); ?></span>님, <br />
회원님의 탈퇴가 정상적으로 진행되었습니다.<br />
그 동안 저희 사이트를 이용해주셔서 감사합니다. </p>
</div>
</div>

View File

@@ -0,0 +1,74 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li <?php if (uri_string() === 'membermodify') { ?>class="active" <?php } ?> ><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li <?php if (uri_string() === 'membermodify/memberleave') { ?>class="active" <?php } ?>><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>회원 비밀번호 확인</h3>
<?php
echo validation_errors('<div class="alert alert-warning" role="alert">', '</div>');
echo show_alert_message(element('message', $view), '<div class="alert alert-auto-close alert-dismissible alert-warning"><button type="button" class="close alertclose" >&times;</button>', '</div>');
?>
<div class="form-horizontal mt20">
<?php
$attributes = array('class' => 'form-horizontal', 'name' => 'fconfirmpassword', 'id' => 'fconfirmpassword', 'onsubmit' => 'return confirmleave()');
echo form_open(current_url(), $attributes);
?>
<div class="alert alert-dismissible alert-danger infoalert">
회원 탈퇴를 위한 패스워드 입력페이지입니다.<br />
패스워드를 입력하시면 회원탈퇴가 정상적으로 진행됩니다.<br />
탈퇴한 회원정보는 복구할 수 없으므로, 신중히 선택해주시기 바랍니다.
</div>
<ol class="askpassword">
<li>
<span>아이디</span>
<div class="form-text"><strong><?php echo $this->member->item('mem_userid'); ?></strong></div>
</li>
<li>
<span>비밀번호</span>
<input type="password" class="input px150" id="mem_password" name="mem_password" />
<button class="btn btn-primary" type="submit">확인</button>
</li>
<li>
<span></span>
<div>
<span class="fa fa-exclamation-circle"></span>
외부로부터 회원님의 정보를 안전하게 보호하기 위해 비밀번호를 확인하셔야 합니다.
</div>
</li>
</ol>
<?php echo form_close(); ?>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
$(function() {
$('#fconfirmpassword').validate({
rules: {
mem_password : { required:true, minlength:4 }
}
});
});
function confirmleave() {
if (confirm('정말 회원 탈퇴를 하시겠습니까? 탈퇴한 회원정보는 복구할 수 없으므로 신중히 선택하여주세요. 확인을 누르시면 탈퇴가 완료됩니다 ')) {
return true;
} else {
return false;
}
}
//]]>
</script>

View File

@@ -0,0 +1,73 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li class="active"><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>회원 비밀번호 변경</h3>
<div class="mt20">
<?php
echo validation_errors('<div class="alert alert-warning" role="alert">', '</div>');
echo show_alert_message(element('message', $view), '<div class="alert alert-auto-close alert-dismissible alert-info"><button type="button" class="close alertclose" >&times;</button>', '</div>');
echo show_alert_message($this->session->flashdata('message'), '<div class="alert alert-auto-close alert-dismissible alert-info"><button type="button" class="close alertclose" >&times;</button>', '</div>');
echo show_alert_message(element('info', $view), '<div class="alert alert-info">', '</div>');
$attributes = array('class' => 'form-horizontal', 'name' => 'fchangepassword', 'id' => 'fchangepassword');
echo form_open(current_url(), $attributes);
?>
<ol class="askpassword">
<li>
<span>아이디</span>
<div class="form-text"><strong><?php echo $this->member->item('mem_userid'); ?></strong></div>
</li>
<li>
<span>현재비밀번호</span>
<div class="group">
<input type="password" class="input" id="cur_password" name="cur_password" />
</div>
</li>
<li>
<span>새로운비밀번호</span>
<div class="group">
<input type="password" class="input" id="new_password" name="new_password" />
</div>
</li>
<li>
<span>재입력</span>
<div class="group">
<input type="password" class="input" id="new_password_re" name="new_password_re" />
</div>
</li>
<li>
<span></span>
<button type="submit" class="btn btn-success">수정하기</button>
</li>
</ol>
<?php echo form_close(); ?>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
$(function() {
$('#fchangepassword').validate({
rules: {
cur_password : { required:true },
new_password : { required:true, minlength:<?php echo element('password_length', $view); ?> },
new_password_re : { required:true, minlength:<?php echo element('password_length', $view); ?>, equalTo: '#new_password' }
}
});
});
//]]>
</script>

View File

@@ -0,0 +1,63 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li class="active"><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>포인트 내역 <small>보유 포인트 : <?php echo number_format($this->member->item('mem_point')); ?>점</small></h3>
<table class="table">
<thead>
<tr>
<th>번호</th>
<th>일시</th>
<th>내용</th>
<th>지급 포인트</th>
<th>사용 포인트</th>
</tr>
</thead>
<tbody>
<?php
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $result) {
?>
<tr>
<td><?php echo element('num', $result); ?></td>
<td><?php echo display_datetime(element('poi_datetime', $result), 'full'); ?></td>
<td><?php echo html_escape(element('poi_content', $result)); ?></td>
<td><?php if (element('poi_point', $result) > 0) { ?><span class="label label-success">+<?php echo number_format(element('poi_point', $result)); ?></span><?php } ?></td>
<td><?php if (element('poi_point', $result) < 0) { ?><span class="label label-danger"><?php echo number_format(element('poi_point', $result)); ?></span><?php } ?></td>
</tr>
<?php
}
}
if ( ! element('list', element('data', $view))) {
?>
<tr>
<td colspan="5" class="nopost">회원님의 포인트 내역이 없습니다</td>
</tr>
<?php
}
?>
<tr class="success">
<td>소계</td>
<td></td>
<td></td>
<td>+<?php echo number_format(element('plus', element('data', $view))); ?></td>
<td><?php echo number_format(element('minus', element('data', $view))); ?></td>
</tr>
</tbody>
</table>
<nav><?php echo element('paging', $view); ?></nav>
</div>

View File

@@ -0,0 +1,62 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li class="active"><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>나의 작성글</h3>
<ul class="table-top mb10">
<li><a href="<?php echo site_url('mypage/post'); ?>" class="btn btn-warning btn-sm" title="원글">원글</a></li>
<li><a href="<?php echo site_url('mypage/comment'); ?>" class="btn btn-success btn-sm" title="댓글">댓글</a></li>
</ul>
<table class="table">
<thead>
<tr>
<th>번호</th>
<th>이미지</th>
<th>제목</th>
<th>날짜</th>
</tr>
</thead>
<tbody>
<?php
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $result) {
?>
<tr>
<td><?php echo element('num', $result); ?></td>
<td><?php if (element('thumb_url', $result)) { ?><img class="media-object" src="<?php echo element('thumb_url', $result); ?>" alt="<?php echo html_escape(element('post_title', $result)); ?>" title="<?php echo html_escape(element('post_title', $result)); ?>" style="width:50px;height:40px;" /><?php } ?></td>
<td><a href="<?php echo element('post_url', $result); ?>" target="new" title="<?php echo html_escape(element('post_title', $result)); ?>"><?php echo html_escape(element('post_title', $result)); ?></a>
<?php if (element('post_comment_count', $result)) { ?><span class="label label-success"><?php echo element('post_comment_count', $result); ?> comments</span><?php } ?>
<?php if (element('post_like', $result)) { ?><span class="label label-info">+ <?php echo element('post_like', $result); ?></span><?php } ?>
<?php if (element('post_dislike', $result)) { ?><span class="label label-danger">- <?php echo element('post_dislike', $result); ?></span><?php } ?>
</td>
<td><?php echo display_datetime(element('post_datetime', $result), 'full'); ?></td>
</tr>
<?php
}
}
if ( ! element('list', element('data', $view))) {
?>
<tr>
<td colspan="4" class="nopost">회원님이 작성하신 글이 없습니다</td>
</tr>
<?php
}
?>
</tbody>
</table>
<nav><?php echo element('paging', $view); ?></nav>
</div>

View File

@@ -0,0 +1,92 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="mypage">
<ul class="nav nav-tabs">
<li><a href="<?php echo site_url('mypage'); ?>" title="마이페이지">마이페이지</a></li>
<li><a href="<?php echo site_url('mypage/post'); ?>" title="나의 작성글">나의 작성글</a></li>
<?php if ($this->cbconfig->item('use_point')) { ?>
<li><a href="<?php echo site_url('mypage/point'); ?>" title="포인트">포인트</a></li>
<?php } ?>
<li><a href="<?php echo site_url('mypage/followinglist'); ?>" title="팔로우">팔로우</a></li>
<li><a href="<?php echo site_url('mypage/like_post'); ?>" title="내가 추천한 글">추천</a></li>
<li class="active"><a href="<?php echo site_url('mypage/scrap'); ?>" title="나의 스크랩">스크랩</a></li>
<li><a href="<?php echo site_url('mypage/loginlog'); ?>" title="나의 로그인기록">로그인기록</a></li>
<li><a href="<?php echo site_url('membermodify'); ?>" title="정보수정">정보수정</a></li>
<li><a href="<?php echo site_url('membermodify/memberleave'); ?>" title="탈퇴하기">탈퇴하기</a></li>
</ul>
<h3>스크랩 <small>총: <?php echo number_format(element('total_rows', element('data', $view), 0)); ?>건</small></h3>
<?php
echo validation_errors('<div class="alert alert-warning" role="alert">', '</div>');
echo show_alert_message(element('alert_message', $view), '<div class="alert alert-auto-close alert-dismissible alert-info"><button type="button" class="close alertclose" >&times;</button>', '</div>');
?>
<table class="table">
<thead>
<tr>
<th>번호</th>
<th>게시판</th>
<th>제목</th>
<th>보관일시</th>
<th>제목수정</th>
<th>삭제</th>
</tr>
</thead>
<tbody>
<?php
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $result) {
?>
<tr>
<td><?php echo element('num', $result); ?></td>
<td><a href="<?php echo element('board_url', $result); ?>" title="<?php echo html_escape(element('board_name', element('board', $result))); ?>"><?php echo html_escape(element('board_name', element('board', $result))); ?></a></td>
<td>
<div class="title-a-<?php echo element('scr_id', $result); ?>">
<a href="<?php echo element('post_url', $result); ?>" title="<?php echo element('scr_title', $result) ? html_escape(element('scr_title', $result)) : html_escape(element('post_title', $result)); ?>"><?php echo element('scr_title', $result) ? html_escape(element('scr_title', $result)) : html_escape(element('post_title', $result)); ?></a>
<?php if (element('post_comment_count', $result)) { ?><span class="label label-success"><?php echo element('post_comment_count', $result); ?> comments</span><?php } ?>
<?php if (element('post_like', $result)) { ?><span class="label label-info">+ <?php echo element('post_like', $result); ?></span><?php } ?>
<?php if (element('post_dislike', $result)) { ?><span class="label label-danger">- <?php echo element('post_dislike', $result); ?></span><?php } ?>
</div>
<div class="title-b-<?php echo element('scr_id', $result); ?>" style="display:none;">
<?php
$attributes = array('class' => 'form-inline', 'name' => 'fscrap');
echo form_open(current_full_url(), $attributes);
?>
<input type="hidden" name="scr_id" value="<?php echo element('scr_id', $result); ?>" />
<input type="text" name="scr_title" class="input scrapbtn" value="<?php echo html_escape(element('scr_title', $result)); ?>" />
<button class="btn btn-xs btn-primary" type="submit" >저장</button>
<?php echo form_close(); ?>
</div>
</td>
<td><?php echo display_datetime(element('scr_datetime', $result), 'full'); ?></td>
<td>
<button class="btn btn-success btn-scrap-modify" data-scrap-id="<?php echo element('scr_id', $result); ?>" type="button"><span class="fa fa-pencil"></span></button>
</td>
<td>
<button class="btn btn-danger btn-one-delete" type="button" data-one-delete-url = "<?php echo element('delete_url', $result); ?>"><span class="fa fa-trash"></span></button>
</td>
</tr>
<?php
}
}
if ( ! element('list', element('data', $view))) {
?>
<tr>
<td colspan="6" class="nopost">회원님이 스크랩하신 글이 없습니다</td>
</tr>
<?php
}
?>
</tbody>
</table>
<nav><?php echo element('paging', $view); ?></nav>
</div>
<script type="text/javascript">
//<![CDATA[
$(document).on('click', '.btn-scrap-modify', function() {
$('.title-a-' + $(this).attr('data-scrap-id')).toggle();
$('.title-b-' + $(this).attr('data-scrap-id')).toggle();
});
//]]>
</script>