1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
<?php $sub_menu = '500300'; include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$sql = " select ev_subject from {$g5['g5_shop_event_table']} where ev_id = '$ev_id' "; $ev = sql_fetch($sql);
$g5['title'] = $ev['ev_subject'].' 이벤트상품'; include_once(G5_PATH.'/head.sub.php'); ?>
<div class="new_win"> <h1><?php echo $g5['title']; ?></h1>
<div class="tbl_head01 tbl_wrap"> <table> <caption><?php echo $g5['title']; ?> 입력</caption> <thead> <tr> <th scope="col">상품명</th> <th scope="col">사용</th> <th scope="col">삭제</th> </tr> </thead> <tbody> <?php $sql = " select b.it_id, b.it_name, b.it_use from {$g5['g5_shop_event_item_table']} a left join {$g5['g5_shop_item_table']} b on (a.it_id=b.it_id) where a.ev_id = '$ev_id' order by b.it_id desc "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { $href = G5_SHOP_URL.'/item.php?it_id='.$row['it_id']; ?> <tr> <td> <a href="<?php echo $href; ?>" target="_blank"> <?php echo get_it_image($row['it_id'], 40, 40); ?> <?php echo cut_str(stripslashes($row['it_name']), 60, "…"); ?> </a> </td> <td class="td_boolean"><?php echo ($row['it_use']?"사용":"미사용"); ?></td> <td class="td_mngsmall"><a href="javascript:del('./itemeventwindel.php?ev_id=<?php echo $ev_id; ?>&it_id=<?php echo $row['it_id']; ?>');">삭제</a></td> <tr> <?php } if ($i == 0) echo '<tr><td colspan="3" class="empty_table">자료가 없습니다.</td></tr>'; ?> </tbody> </table> </div>
<div class="btn_win01 btn_win"> <button type="button" onclick="javascript:window.close()">창 닫기</button> </div>
</div>
<?php include_once(G5_PATH.'/tail.sub.php'); ?>
|