|
|
|
12-07-06
|
조회 873
|
|
|
|
12-07-06
|
조회 1,650
|
|
|
|
12-07-06
|
조회 1,393
|
|
|
|
12-07-06
|
조회 1,033
|
|
|
|
12-07-06
|
조회 1,720
|
|
|
|
12-07-06
|
조회 1,701
|
|
|
|
12-07-06
|
조회 869
|
|
|
|
12-07-06
|
조회 3,299
|
|
|
|
12-07-06
|
조회 885
|
|
|
|
12-07-06
|
조회 1,079
|
|
|
|
12-07-06
|
조회 816
|
|
|
|
12-07-06
|
조회 913
|
|
|
|
12-07-06
|
조회 824
|
|
|
|
12-07-06
|
조회 1,677
|
|
|
|
12-07-06
|
조회 827
|
|
|
|
12-07-06
|
조회 1,703
|
|
|
|
12-07-06
|
조회 929
|
|
|
|
12-07-06
|
조회 8,303
|
|
|
|
12-07-06
|
조회 827
|
|
|
|
12-07-06
|
조회 1,073
|
댓글 12개
잠시만요 소스 만들고 올께요~ ㅎ
$sWriteTime = strtotime($list[$i][wr_datetime]);
$sNowTime = time();
$sTimeGap = $sNowTime - $sWriteTime;
$sWriteTime = "";
if($sTimeGap < 60*60)
$sWriteTime = round($sTimeGap/60)."분전";
else if($sTimeGap < 60*60*24)
$sWriteTime = floor($sTimeGap/(60*60))."시간 전";
else
$sWriteTime = floor($sTimeGap/(60*60*24))."일 전";
echo "<!-- {$sWriteTime} -->";
<form name="fboardlist" method="post" action="" style="margin:0px;">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr><td style="padding:10;">
<? for ($i=0; $i<count($list); $i++) { ?>
<table width='100%' cellpadding=0 cellspacing=0 border=0 >
<tr><td height="10" colspan='5'></td></tr>
<tr>
<td width="120" rowspan='3' align=center class="f_14px"><? if ($is_checkbox) { ?><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"><? } ?> <?=$list[$i][name]?>
</td>
<td width=11 height=11><img src='<?=$board_skin_path?>/img/box_1.gif' width=11 height=11 border=0></td>
<td background='<?=$board_skin_path?>/img/box_2.gif'></td>
<td width=11><img src='<?=$board_skin_path?>/img/box_3.gif' width=11 height=11 border=0></td>
<td width="75" rowspan='3' align=center class="l10 f_11px"><span class="no">
<?=$list[$i][wr_datetime]?> 여기가 날짜가 나오는곳이 되겠네요 !! </span>
<? if (($member[mb_id] && ($member[mb_id] == $list[$i][mb_id])) || $is_admin) { ?>
<p class="t5">
<a href="<?=$write_href?>&w=u&wr_id=<?=$list[$i][wr_id]?>&page=<?=$page?>">수정</a>
<a href="javascript:if (confirm('삭제하시겠습니까?')) { location='./delete.php?w=d&bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>&page=<?=$page?>';}" >삭제</a>
</p>
<? } ?>
</td>
</tr>
<form name="fboardlist" method="post" action="" style="margin:0px;">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr><td style="padding:10;">
<? for ($i=0; $i<count($list); $i++) { ?>
<table width='100%' cellpadding=0 cellspacing=0 border=0 >
<tr><td height="10" colspan='5'></td></tr>
<tr>
<td width="120" rowspan='3' align=center class="f_14px"><? if ($is_checkbox) { ?><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"><? } ?> <?=$list[$i][name]?>
</td>
<td width=11 height=11><img src='<?=$board_skin_path?>/img/box_1.gif' width=11 height=11 border=0></td>
<td background='<?=$board_skin_path?>/img/box_2.gif'></td>
<td width=11><img src='<?=$board_skin_path?>/img/box_3.gif' width=11 height=11 border=0></td>
<td width="75" rowspan='3' align=center class="l10 f_11px"><span class="no">
<?
$sWriteTime = strtotime($list[$i][wr_datetime]);
$sNowTime = time();
$sTimeGap = $sNowTime - $sWriteTime;
$sWriteTime = "";
if($sTimeGap < 60*60)
$sWriteTime = round($sTimeGap/60)."분전";
else if($sTimeGap < 60*60*24)
$sWriteTime = floor($sTimeGap/(60*60))."시간 전";
else
$sWriteTime = floor($sTimeGap/(60*60*24))."일 전";
echo $sWriteTime;
?></span>
<? if (($member[mb_id] && ($member[mb_id] == $list[$i][mb_id])) || $is_admin) { ?>
<p class="t5">
<a href="<?=$write_href?>&w=u&wr_id=<?=$list[$i][wr_id]?>&page=<?=$page?>">수정</a>
<a href="javascript:if (confirm('삭제하시겠습니까?')) { location='./delete.php?w=d&bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>&page=<?=$page?>';}" >삭제</a>
</p>
<? } ?>
</td>
</tr>
아 정말정말 감사합니다. 즐거운 금요일되세요!!