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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
<?php include_once("./_common.php");
$login_id=$id_cust; $page = 1; $list_num = 9999; $list_array = coupon_list_get($ccode, $where2, $page, $list_num); //_pr($list_array); ?> <style> .height130 { height:130px; } </style>
<form name='prod_use_reg_form' id='prod_use_reg_form' method='post' action='ajax.prod_use_img.php' enctype="multipart/form-data"> <input type='hidden' name='qstr' value=''> <input type='hidden' name='code' value='<?php echo $idx;?>'> <input type='hidden' name='pcode' value='<?php echo $code;?>'> <input type='hidden' name='cur_idx' value=''>
<div class="p10_20"> <h4 class="mb10 height24 ">쿠폰번호 등록하기</h4> <table class="width_full top_bold_line"> <colgroup> <col class="width80"><col> <col class=""><col> </colgroup>
<tbody> <tr> <th class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">쿠폰번호</th> <td colspan="3" class="pt10 pb10 pl20 txt14 gray2 gray_line_b2"> <input type='text' name='coupon_reg_no' class="box170_30 gray_line" value='' id='coupon_reg_no'> <a class="mr10 box100_40 custom2 align_c bold l_height40 custom_line2 bg_custom2 white coupon_reg_class">쿠폰등록</a> </td> </tr> </tbody> </table> <h4 class="mb10 height24 mt15">쿠폰 보유 리스트</h4> <table class="width_full top_bold_line"> <colgroup> <col class=""> <col class=""> <col class=""> <col class=""> </colgroup> <thead> <tr> <th scope="col" class="p15_0 txt14 gray_line_b">쿠폰명</th> <th scope="col" class="p15_0 txt14 gray_line_b">쿠폰금액</th> <th scope="col" class="p15_0 txt14 gray_line_b">최소주문금액</th> <th scope="col" class="p15_0 txt14 gray_line_b">사용가능일자</th> <th scope="col" class="p15_0 txt14 gray_line_b">등록일</th> </tr> </thead> <tbody> <?php foreach($list_array as $key=>$info){ if($info['cp_name']==''){ continue; } ?> <tr> <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo $info['cp_name'];?></td> <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo number_format($info['cp_price']);?></td> <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php if($info['cp_min']=='0'){ echo "제한없음"; } else { echo number_format($info['cp_min']); }?></td> <td class="p15_0 txt14 gray2 align_c gray_line_b2"> <?php if($info['cp_sdate']=='0000-00-00' || $info['cp_edate']=='0000-00-00'){ echo "제한없음"; } else { echo $info['cp_sdate']."~".$info['cp_edate']; } ?> </td> <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo substr($info['reg_date'],0,10);?></td>
</tr> <?php } ?> </tbody> </table> </div> </form> <script> $(function(){ $(".coupon_reg_class").click(function(){ if($("#coupon_reg_no").val()==''){ alert("쿠폰번호를 입력해주세요."); return; } $.get("../shop/ajax.mypage_process.php?mode=cp_reg&coupon_reg_no="+$("#coupon_reg_no").val(),function(rtn){ if(rtn=="OK"){ alert("쿠폰발행이 완료 되었습니다."); $("#modal_member_box").dialog("close"); } else { alert(rtn); } }); }); });
</script>
|