팝업레이어에서 그누보드5, 영카트5 구분짓는 필드 추가
This commit is contained in:
@ -5,6 +5,10 @@ include_once(G5_EDITOR_LIB);
|
|||||||
|
|
||||||
auth_check($auth[$sub_menu], "w");
|
auth_check($auth[$sub_menu], "w");
|
||||||
|
|
||||||
|
// 팝업레이어 테이블에 영카트, 그누보드 인지 구분하는 여부 필드 추가
|
||||||
|
$sql = " ALTER TABLE `{$g5['new_win_table']}` ADD `nw_division` VARCHAR(10) NOT NULL DEFAULT 'both' ";
|
||||||
|
sql_query($sql, false);
|
||||||
|
|
||||||
$html_title = "팝업레이어";
|
$html_title = "팝업레이어";
|
||||||
if ($w == "u")
|
if ($w == "u")
|
||||||
{
|
{
|
||||||
@ -45,6 +49,17 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|||||||
<col>
|
<col>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><label for="nw_division">구분</label></th>
|
||||||
|
<td>
|
||||||
|
<?php echo help("그누보드5에 표시될 것인지 영카트5에 표시될 것인지를 설정합니다."); ?>
|
||||||
|
<select name="nw_division" id="nw_division">
|
||||||
|
<option value="both"<?php echo get_selected($nw['nw_division'], 'both', true); ?>>그누보드5와 영카트5</option>
|
||||||
|
<option value="g5"<?php echo get_selected($nw['nw_division'], 'g5'); ?>>그누보드5</option>
|
||||||
|
<option value="yc5"<?php echo get_selected($nw['nw_division'], 'yc5'); ?>>영카트5</option>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="nw_device">접속기기</label></th>
|
<th scope="row"><label for="nw_device">접속기기</label></th>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@ -10,7 +10,8 @@ if ($W == 'd')
|
|||||||
else
|
else
|
||||||
auth_check($auth[$sub_menu], "w");
|
auth_check($auth[$sub_menu], "w");
|
||||||
|
|
||||||
$sql_common = " nw_device = '$nw_device',
|
$sql_common = " nw_division = '$nw_division',
|
||||||
|
nw_device = '$nw_device',
|
||||||
nw_begin_time = '$nw_begin_time',
|
nw_begin_time = '$nw_begin_time',
|
||||||
nw_end_time = '$nw_end_time',
|
nw_end_time = '$nw_end_time',
|
||||||
nw_disable_hours = '$nw_disable_hours',
|
nw_disable_hours = '$nw_disable_hours',
|
||||||
|
|||||||
@ -1,9 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
|
if (!defined('_SHOP_')) {
|
||||||
|
$g5['pop_division'] = 'g5';
|
||||||
|
} else {
|
||||||
|
$g5['pop_division'] = 'yc5';
|
||||||
|
}
|
||||||
|
|
||||||
$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_device IN ( 'both', 'pc' ) and nw_division IN ( 'both', '".$g5['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