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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
<?php $sub_menu = '300800'; include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g5['title'] = '오픈마켓 Q&A가져오기'; include_once (G5_ADMIN_PATH.'/admin.head.php'); $pg_anchor = '<ul class="anchor"> <li><a href="#anc_pricecompare_info">오픈마켓 연동 안내</a></li> <li><a href="#anc_pricecompare_auction">옥션/지마켓 상품 가져오기</a></li> <li><a href="#anc_pricecompare_11st">11번가 상품 가져오기</a></li> </ul>';
$microtime = microtime_13();
$otms_qna_table = "otms_qna";
$sql = "select count(*) as cnt from {$otms_qna_table} where SiteId = 'au' "; $res = mysql_query($sql); $info = mysql_fetch_array($res); $cnt_au = $info['cnt'];
$sql = "select count(*) as cnt from {$otms_qna_table} where SiteId = 'gm' "; $res = mysql_query($sql); $info = mysql_fetch_array($res); $cnt_gm = $info['cnt'];
$sql = "select count(*) as cnt from {$otms_qna_table} where SiteId = '11' "; $res = mysql_query($sql); $info = mysql_fetch_array($res); $cnt_11 = $info['cnt'];
if(trim($default['de_otms_id_esm'])=='' && trim($default['de_otms_pw_esm'])==''){ $esm_flag = "N"; }
if(trim($default['de_otms_id_11st'])=='' && trim($default['de_otms_pw_11st'])==''){ $st11_flag = "N"; } ?> <script type="text/javascript" src="https://www.11st.co.kr/js/common/rsa.js?noCache=<?php echo $microtime;?>"></script> <script type="text/javascript" src="https://login.soffice.11st.co.kr/jsp/ktb/ktb.agent.jsp"></script>
<script> function get_good_esm(){ if('<?php echo $esm_flag?>'=='N'){ alert('ESM+(옥션/지마켓) 계정 정보 등록되지 않았습니다. 쇼핑몰 설정에서 등록하시기 바랍니다.'); location.href='configform.php'; } else { var url = "get_qna_esm.php"; $.get(url,function(rtn){ $("#dd_html_esm").html(rtn); }); } } function get_good_11st(){ if('<?php echo st11_flag?>'=='N'){ alert('Seller Office 계정 정보 등록되지 않았습니다. 쇼핑몰 설정에서 등록하시기 바랍니다.'); location.href='configform.php'; } else { var xx = rsa.encrypt("<?php echo trim($default['de_otms_id_11st'])?>"); var yy = rsa.encrypt("<?php echo trim($default['de_otms_pw_11st'])?>"); var url = "get_qna_11st.php?id="+xx+"&pw="+yy+"&priority="+priority+"&ktb_agent="+ktb.getScanResult(); $.get(url,function(rtn){ //alert(rtn); $("#dd_html_11st").html(rtn); }); } } </script> <section id="anc_pricecompare_info"> <h2>오픈마켓 연동 안내</h2> <?php echo $pg_anchor; ?>
<div class="local_desc01 local_desc"> <ol> <li>현재 가져오기 가능한 오픈마켓은 <strong>옥션, G마켓, 11번가</strong>만 가능합니다.</li> <li>옥션,G마켓은 ESM+ 계정을 사용하며 11번가는 셀러오피스 계정을 이용합니다.</li> <li>쇼핑몰과 오픈마켓같의 구조가 틀리기 때문에 100% 정보를 가져온다는 보장은 없으며 최대한 가져올수 있는 부분을 가져옵니다.</li> </ol> </div> </section>
<section id="anc_pricecompare_auction"> <h2>옥션/지마켓 QNA 가져오기</h2> <?php echo $pg_anchor; ?>
<div class="local_desc01 local_desc"> <p>현재 옥션 가져온 상품 수 : <?php echo $cnt_au;?></p> <p>현재 지마켓 가져온 상품 수 : <?php echo $cnt_gm;?></p>
<dl class="price_engine"> <dt> <?php if($default['de_otms_id_esm']=='' || $default['de_otms_pw_esm']==''){?> 옥션/지마켓 계정정보가 입력되어 있지 않습니다. <a href="configform.php">[오픈마켓 계정 입력하기]</a> <?php } else {?> <a onclick="get_good_esm()">옥션/지마켓 상품 가져오기</a> <?php }?> </dt> <dd id='dd_html_esm'> </dd> </dl> </div> </section>
<section id="anc_pricecompare_11st"> <h2>11번가 QNA 가져오기</h2> <?php echo $pg_anchor; ?>
<div class="local_desc01 local_desc"> <p>현재 11번가 가져온 상품 수 : <?php echo $cnt_11;?></p>
<dl class="price_engine"> <dt> <?php if($default['de_otms_id_11st']=='' || $default['de_otms_pw_11st']==''){?> 11번가 계정정보가 입력되어 있지 않습니다. <a href="configform.php">[오픈마켓 계정 입력하기]</a> <?php } else {?> <a onclick="get_good_11st()">11번가 상품 가져오기</a> <?php }?> </dt> <dd id='dd_html_11st'> </dd> </dl> </div> </section>
<?php include_once (G5_ADMIN_PATH.'/admin.tail.php'); ?>
|