쪽지관련 수정중
This commit is contained in:
1 parent
b71274a429
commit
641ede57ef
4 files changed
+22
-29
No files matched your search
@@ -71,6 +71,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
$send_datetime = substr($row['me_send_datetime'],2,14);
|
||||
|
||||
$list[$i]['mb_id'] = $mb_id;
|
||||
$list[$i]['name'] = $name;
|
||||
$list[$i]['send_datetime'] = $send_datetime;
|
||||
$list[$i]['read_datetime'] = $read_datetime;
|
||||
|
||||
@@ -20,35 +20,25 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
|
||||
<div class="memo_list">
|
||||
<ul>
|
||||
<!-- **** 예시 참고 후 삭제합니다 : 읽은쪽지 -->
|
||||
<li class="read">
|
||||
<div class="memo_li profile_img">
|
||||
<?php echo get_member_profile_img($member['mb_id']); ?>
|
||||
<?php
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
$readed = (substr($list[$i]['me_read_datetime'],0,1) == 0) ? '' : 'read';
|
||||
$memo_preview = utf8_strcut(strip_tags($list[$i]['me_memo']), 30, '..');
|
||||
?>
|
||||
<li class="<?php echo $readed; ?>">
|
||||
<div class="memo_li profile_big_img">
|
||||
<?php echo get_member_profile_img($list[$i]['mb_id']); ?>
|
||||
<?php if (! $readed){ ?><span class="no_read">안 읽은 쪽지</span><?php } ?>
|
||||
</div>
|
||||
<div class="memo_li memo_name">
|
||||
<a href="<?php echo $list[$i]['view_href'] ?>">아리아나벤티</a> <span class="memo_datetime"><i class="fa fa-clock-o" aria-hidden="true"></i> 18-11-13 16:58</span>
|
||||
<br>
|
||||
<a href="<?php echo $list[$i]['view_href'] ?>" class="memo_cnt">읽은 쪽지입니다.</a>
|
||||
<?php echo $list[$i]['name']; ?> <span class="memo_datetime"><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $list[$i]['send_datetime']; ?></span>
|
||||
<div class="memo_preview">
|
||||
<a href="<?php echo $list[$i]['view_href']; ?>"><?php echo $memo_preview; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo $list[$i]['del_href'] ?>" onclick="del(this.href); return false;" class="memo_del"><i class="fa fa-trash-o" aria-hidden="true"></i> <span class="sound_only">삭제</span></a>
|
||||
</li>
|
||||
<!-- **** 예시 참고 후 삭제합니다 : 읽은쪽지 -->
|
||||
|
||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||
<li>
|
||||
<div class="memo_li profile_img">
|
||||
<?php echo get_member_profile_img($member['mb_id']); ?>
|
||||
<span class="no_read">안 읽은 쪽지</span>
|
||||
</div>
|
||||
<div class="memo_li memo_name">
|
||||
<a href="<?php echo $list[$i]['view_href'] ?>"><?php echo $list[$i]['mb_nick'] ?></a> <span class="memo_datetime"><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $list[$i]['send_datetime'] ?></span>
|
||||
<br>
|
||||
<a href="<?php echo $list[$i]['view_href'] ?>" class="memo_cnt">안 읽은 쪽지입니다. 쪽지 내용입니다.</a>
|
||||
</div>
|
||||
<?php// 쪽지 읽은 시간 echo $list[$i]['read_datetime'] ?>
|
||||
<a href="<?php echo $list[$i]['del_href'] ?>" onclick="del(this.href); return false;" class="memo_del"><i class="fa fa-trash-o" aria-hidden="true"></i> <span class="sound_only">삭제</span></a>
|
||||
<a href="<?php echo $list[$i]['del_href']; ?>" onclick="del(this.href); return false;" class="memo_del"><i class="fa fa-trash-o" aria-hidden="true"></i> <span class="sound_only">삭제</span></a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php if ($i==0) { echo '<li class="empty_table">자료가 없습니다.</li>'; } ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -22,7 +22,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<li>
|
||||
<label for="me_recv_mb_id" class="sound_only">받는 회원아이디<strong>필수</strong></label>
|
||||
|
||||
<input type="text" name="me_recv_mb_id" value="<?php echo $me_recv_mb_id; ?>" id="me_recv_mb_id" required class="frm_input full_input required" size="47" placeholder="받는 회원닉네임">
|
||||
<input type="text" name="me_recv_mb_id" value="<?php echo $me_recv_mb_id; ?>" id="me_recv_mb_id" required class="frm_input full_input required" size="47" placeholder="받는 회원아이디">
|
||||
<span class="frm_info">여러 회원에게 보낼때는 컴마(,)로 구분하세요.</span>
|
||||
<?php if ($config['cf_memo_send_point']) { ?>
|
||||
<br ><span class="frm_info">쪽지 보낼때 회원당 <?php echo number_format($config['cf_memo_send_point']); ?>점의 포인트를 차감합니다.</span>
|
||||
|
||||
@@ -212,9 +212,11 @@
|
||||
.memo_list li.empty_li {text-align:center;padding:20px 0;color:#666}
|
||||
|
||||
.memo_list .memo_li {float:left}
|
||||
.memo_list .profile_img {position:relative;margin-right:15px}
|
||||
.memo_list .profile_img img {border-radius:50%;width:52px;height:52px}
|
||||
.memo_list .memo_name {padding-top:5px}
|
||||
.memo_list .profile_big_img {position:relative;margin-right:15px}
|
||||
.memo_list .profile_big_img img {border-radius:50%;width:52px;height:52px}
|
||||
.memo_list .memo_li.memo_name {padding-top:5px;float:none}
|
||||
.memo_list .memo_preview a{display:block;margin-right:30px;padding-top:10px;font-weight:normal !important;font-size:1.2em}
|
||||
.memo_list .memo_preview a:hover{text-decoration:underline}
|
||||
.memo_list .memo_name a,
|
||||
.memo_list .memo_name .sv_wrap {font-weight:bold}
|
||||
.memo_list .no_read {position:absolute;bottom:0;right:0;display:inline-block;background:#3a8afd;border:1px solid #e1edff;text-indent:-9999px;border-radius:10px;width:10px;height:10px;box-shadow:0 0 10px 3px #9ec3f9}
|
||||
|
||||
Reference in new issue
Block a user