모바일용 페이징 변수 추가
This commit is contained in:
@ -48,7 +48,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$tmp_write_table = $g4['write_prefix'].$row['bo_table'];
|
||||
|
||||
if ($row['wr_id'] == $row['wr_parent']) {
|
||||
|
||||
|
||||
// 원글
|
||||
$comment = "";
|
||||
$comment_link = "";
|
||||
@ -103,7 +103,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$list[$i]['wr_subject'] = $row2['wr_subject'];
|
||||
}
|
||||
|
||||
$write_pages = get_paging($config['cf_write_pages'], $page, $total_page, "?gr_id=$gr_id&view=$view&mb_id=$mb_id&page=");
|
||||
$write_pages = get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "?gr_id=$gr_id&view=$view&mb_id=$mb_id&page=");
|
||||
|
||||
include_once($new_skin_path.'/new.skin.php');
|
||||
|
||||
|
||||
@ -1,22 +1,22 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
|
||||
if (!$member[mb_id])
|
||||
if ($is_guest)
|
||||
alert_close('회원만 조회하실 수 있습니다.');
|
||||
|
||||
$g4['title'] = $member[mb_nick].' 님의 포인트 내역';
|
||||
$g4['title'] = $member['mb_nick'].' 님의 포인트 내역';
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
|
||||
$list = array();
|
||||
|
||||
$sql_common = " from {$g4[point_table]} where mb_id = '".mysql_escape_string($member[mb_id])."' ";
|
||||
$sql_common = " from {$g4['point_table']} where mb_id = '".mysql_escape_string($member['mb_id'])."' ";
|
||||
$sql_order = " order by po_id desc ";
|
||||
|
||||
$sql = " select count(*) as cnt {$sql_common} ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row[cnt];
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
$rows = $config[cf_page_rows];
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if (!$page) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
@ -58,7 +58,7 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" colspan="2">보유포인트</th>
|
||||
<td colspan="2"><?=number_format($member[mb_point])?></td>
|
||||
<td colspan="2"><?=number_format($member['mb_point'])?></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@ -72,18 +72,18 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$point1 = $point2 = 0;
|
||||
if ($row[po_point] > 0) {
|
||||
$point1 = '+' .number_format($row[po_point]);
|
||||
$sum_point1 += $row[po_point];
|
||||
if ($row['po_point'] > 0) {
|
||||
$point1 = '+' .number_format($row['po_point']);
|
||||
$sum_point1 += $row['po_point'];
|
||||
} else {
|
||||
$point2 = number_format($row[po_point]);
|
||||
$sum_point2 += $row[po_point];
|
||||
$point2 = number_format($row['po_point']);
|
||||
$sum_point2 += $row['po_point'];
|
||||
}
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_datetime"><?=$row[po_datetime]?></td>
|
||||
<td><?=$row[po_content]?></td>
|
||||
<td class="td_datetime"><?=$row['po_datetime']?></td>
|
||||
<td><?=$row['po_content']?></td>
|
||||
<td class="td_bignum"><?=$point1?></td>
|
||||
<td class="td_bignum"><?=$point2?></td>
|
||||
</tr>
|
||||
@ -102,14 +102,13 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
</table>
|
||||
|
||||
|
||||
<?=get_paging($config[cf_write_pages], $page, $total_page, $_SERVER[PHP_SELF].'?'.$qstr.'&page=');?>
|
||||
<?=get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&page=');?>
|
||||
|
||||
<div class="btn_win"><a>창닫기</a></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("#point").append("<div class=\"btn_win\"><a>창닫기</a></div>");
|
||||
|
||||
$(".btn_win a").click(function() {
|
||||
window.close();
|
||||
});
|
||||
|
||||
@ -27,7 +27,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?=get_paging($config['cf_write_pages'], $page, $total_page, "?$qstr&page=");?>
|
||||
<?=get_paging($config['cf_mobile_pages'], $page, $total_page, "?$qstr&page=");?>
|
||||
|
||||
<div class="btn_win"><a href="javascript:;" onclick="window.close();">창닫기</a></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user