팝업레이어에서 그누보드5, 영카트5 구분짓는 필드 이름 수정
This commit is contained in:
@ -52,11 +52,11 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="nw_division">구분</label></th>
|
<th scope="row"><label for="nw_division">구분</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo help("그누보드5에 표시될 것인지 영카트5에 표시될 것인지를 설정합니다."); ?>
|
<?php echo help("커뮤니티에 표시될 것인지 쇼핑몰에 표시될 것인지를 설정합니다."); ?>
|
||||||
<select name="nw_division" id="nw_division">
|
<select name="nw_division" id="nw_division">
|
||||||
<option value="both"<?php echo get_selected($nw['nw_division'], 'both', true); ?>>그누보드5와 영카트5</option>
|
<option value="both"<?php echo get_selected($nw['nw_division'], 'both', true); ?>>커뮤니티와 쇼핑몰</option>
|
||||||
<option value="g5"<?php echo get_selected($nw['nw_division'], 'g5'); ?>>그누보드5</option>
|
<option value="comm"<?php echo get_selected($nw['nw_division'], 'comm'); ?>>커뮤니티</option>
|
||||||
<option value="yc5"<?php echo get_selected($nw['nw_division'], 'yc5'); ?>>영카트5</option>
|
<option value="shop"<?php echo get_selected($nw['nw_division'], 'shop'); ?>>쇼핑몰</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -2,14 +2,14 @@
|
|||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
if (!defined('_SHOP_')) {
|
if (!defined('_SHOP_')) {
|
||||||
$g5['pop_division'] = 'g5';
|
$pop_division = 'comm';
|
||||||
} else {
|
} else {
|
||||||
$g5['pop_division'] = 'yc5';
|
$pop_division = 'shop';
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = " select * from {$g5['new_win_table']}
|
$sql = " select * from {$g5['new_win_table']}
|
||||||
where '".G5_TIME_YMDHIS."' between nw_begin_time and nw_end_time
|
where '".G5_TIME_YMDHIS."' between nw_begin_time and nw_end_time
|
||||||
and nw_device IN ( 'both', 'pc' ) and nw_division IN ( 'both', '".$g5['pop_division']."' )
|
and nw_device IN ( 'both', 'pc' ) and nw_division IN ( 'both', '".$pop_division."' )
|
||||||
order by nw_id asc ";
|
order by nw_id asc ";
|
||||||
$result = sql_query($sql, false);
|
$result = sql_query($sql, false);
|
||||||
for ($i=0; $row_nw=sql_fetch_array($result); $i++)
|
for ($i=0; $row_nw=sql_fetch_array($result); $i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user