From 30960540970b0ff8f6109f16f6e692a8955efb57 Mon Sep 17 00:00:00 2001 From: TATECK Date: Sat, 15 Oct 2022 11:43:24 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8E=98=EC=96=B4=20=EB=A6=AC=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EC=88=9C=EC=84=9C=20=EC=A0=95=EB=A0=AC=20=EB=B0=8F?= =?UTF-8?q?=20=EC=A0=95=EB=A0=AC=20=EC=88=9C=EC=84=9C=20=ED=95=84=EB=93=9C?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 페어 리스트 순서 정렬 및 정렬 순서 필드 추가 --- .../skin/board/character/list.order.skin.php | 37 ++++++++++--------- .../skin/board/character/write.pair.skin.php | 6 +++ 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/AvocadoEdition_Light/skin/board/character/list.order.skin.php b/AvocadoEdition_Light/skin/board/character/list.order.skin.php index c4af8f8..f33d388 100644 --- a/AvocadoEdition_Light/skin/board/character/list.order.skin.php +++ b/AvocadoEdition_Light/skin/board/character/list.order.skin.php @@ -80,29 +80,32 @@ if (!$sca) { $from_notice_idx = ($page - 1) * $page_rows; if($from_notice_idx < 0) $from_notice_idx = 0; + $arr_notice = array_filter($arr_notice); $board_notice_count = count($arr_notice); - for ($k=0; $k<$board_notice_count; $k++) { - if (trim($arr_notice[$k]) == '') continue; + if($board_notice_count > 0) { + $pair_str = implode("' or wr_id = '", $arr_notice); + $pair_str = "wr_id = '".$pair_str."'"; + $pair_sql = " select * from {$write_table} where {$pair_str} order by wr_ing desc, wr_subject asc "; + $notice_result = sql_query($pair_sql); - $row = sql_fetch(" select * from {$write_table} where wr_id = '{$arr_notice[$k]}' "); + for($k=0; $row = sql_fetch_array($notice_result); $k++) { + if (!$row['wr_id']) continue; + $notice_array[] = $row['wr_id']; - if (!$row['wr_id']) continue; + if($k < $from_notice_idx) continue; + if($sst != 'wr_id') { + $list[$i] = get_list($row, $board, $board_skin_url, G5_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']); + $list[$i]['is_notice'] = true; - $notice_array[] = $row['wr_id']; - - if($k < $from_notice_idx) continue; - - if($sst != 'wr_id') { - $list[$i] = get_list($row, $board, $board_skin_url, G5_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']); - $list[$i]['is_notice'] = true; - - $i++; - $notice_count++; - - if($notice_count >= $list_page_rows) - break; + $i++; + $notice_count++; + + if($notice_count >= $list_page_rows) + break; + } } + } } diff --git a/AvocadoEdition_Light/skin/board/character/write.pair.skin.php b/AvocadoEdition_Light/skin/board/character/write.pair.skin.php index 624fe5e..9a007d7 100644 --- a/AvocadoEdition_Light/skin/board/character/write.pair.skin.php +++ b/AvocadoEdition_Light/skin/board/character/write.pair.skin.php @@ -20,6 +20,12 @@ for($i=0; $row = sql_fetch_array($character_list); $i++) { + + 정렬순서 + + + +