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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
|
<?php include("./include/header.php"); ?>
<?php /* // 몇명이 이 페이지에 들어왔는지 카운팅 if($_SERVER['REMOTE_ADDR']!='58.151.27.172' && $_SERVER['REMOTE_ADDR']!='115.138.35.2'){ // 사내의 대구, 서울 아이피가 아닐 경우에만
$today = date("Y-m-d"); // 오늘날짜 $time = date("H");
$page = basename($_SERVER['PHP_SELF']).",m"; $sql = "SELECT * FROM mBoard_page_count WHERE inflow_date = '{$today}' AND page = '{$page}' ORDER BY inflow_time DESC"; $res = mysql_query($sql,$connect_web); $row = mysql_fetch_array($res);
$txt = iconv("UTF-8","EUC-KR","천년경영 생생후기(m)");
if(!$row || $row['inflow_time'] != $time){ // 데이터가 없을 때 $insertsql = "INSERT INTO mBoard_page_count(inflow_date, inflow_time, count, page, page_kr) VALUES ('{$today}', '{$time}', 1, '{$page}', '{$txt}')"; mysql_query($insertsql,$connect_web); } else { // 데이터가 있을 때 $updatesql = "UPDATE mBoard_page_count SET count = count+1 WHERE inflow_date = '{$today}' AND inflow_time = '{$time}' AND page = '{$page}'"; mysql_query($updatesql,$connect_web); } } */
//24.02.22 기준 남상복 수정, 홍재원팀장 요청 / 기존 파일명 mypageevent4.php 에서 myevent.php 로 수정 ?>
<?php
if(date("Y-m-d")>"2020-12-31"){ ?>
<?php //exit; // 사장님지시 : 항시가능하게 수정 }
if($ev_code!='86801567' && 1==2){ ?> <script> alert('참여번호가 정확하지 않습니다.'); window.history.go(-1); </script> <?php exit; }
/*if($_COOKIE['USERID']==''){ ?> <script> alert('로그인 하셔야 됩니다.'); window.history.go(-1); </script> <? exit; }*/
$memberQry = " SELECT * FROM member WHERE Mid = '$_COOKIE[USERID]' "; $memberResult = MYSQL_QUERY($memberQry); $memberRow = MYSQL_FETCH_ARRAY($memberResult);
?>
<!-- 요청사유 텍스트 클릭시 내용 삭제 함수 --> <script> function clear_text(){ if(document.getElementById("clicktime").value == "0"){ //첫클릭만 삭제
var str=""; var bb=document.getElementById("content1"); bb.innerHTML= str; document.getElementById("clicktime").value = "1"; } }
function clear_text2(){ if(document.getElementById("clicktime2").value == "0"){ //첫클릭만 삭제
var str=""; var bb=document.getElementById("content2"); bb.innerHTML= str; document.getElementById("clicktime2").value = "1"; } }
function clear_text3(){ if(document.getElementById("clicktime3").value == "0"){ //첫클릭만 삭제
var str=""; var bb=document.getElementById("content3"); bb.innerHTML= str; document.getElementById("clicktime3").value = "1"; } }
function FrmCh(){
if(document.getElementById("clicktime").value == "0" || document.getElementById("content1").value.length < 100){ alert('업무형태를 100자 이상 입력해 주십시오. : '+document.getElementById("content1").value.length+'자'); return ; }
if(document.getElementById("clicktime2").value == "0" || document.getElementById("content2").value.length < 300){ alert('도입 전 불편사항을 300자 이상 입력해 주십시오. : '+document.getElementById("content2").value.length+'자'); return ; }
if(document.getElementById("clicktime3").value == "0" || document.getElementById("content3").value.length < 300){ alert('도입 후 효과를 300자 이상 입력해 주십시오. : '+document.getElementById("content3").value.length+'자'); return ; }
if( jointinsertFrm.formText[1].checked == true){ alert('개인정보 취급방침에 동의 하셔야 합니다.'); return ; } if( jointinsertFrm.company.value == ""){ alert("상호(회사명)를 입력하세요."); jointinsertFrm.company.focus(); return; } if( jointinsertFrm.name.value == ""){ alert("성명을 입력하세요."); jointinsertFrm.name.focus(); return; } if( jointinsertFrm.tel1.value == ""){ alert("전화 번호를 입력하세요."); jointinsertFrm.tel1.focus(); return; }
if( jointinsertFrm.address.value == ""){ alert("주소를 입력하세요."); jointinsertFrm.address.focus(); return; }
jointinsertFrm.target = "jointIframe"; jointinsertFrm.action = "<?php if($MJSOFT_SSL_USE=='Y'){?>https://<?php echo $_SERVER['SERVER_NAME'];?>/html/millennium/reviewProcess.php<?php } else {?>reviewProcess.php<?php }?>"; jointinsertFrm.submit(); }
function Msg(txt) { alert(txt); location.href = "event.php";
} $(function(){ $("#content1, #content2, #content3").keydown(function(){ $v = $(this).val().length; $(this).closest("td").find("label span").html($v); }); }); </script>
<style> .wrap {margin-top: 25px;font-size:14px;} .tab_nav {width:100%;box-sizing:border-box;border-top:1px solid #eee;border-bottom:1px solid #eee;margin-top:20px;} .tab_nav li {float:left;width:50%;box-sizing:border-box;text-align:center;padding:10px;font-size:1.2em;background-color:#f2f2f2;} .tab_nav li a{font-weight:bold;color:#888888;} /* .tab_nav li.active {background-color:#3B63D1;} */ .tab_nav li.active {background-color:#6868FF;} .tab_nav li.active a {color:#fff;} </style>
<div class="wrap" onclick="closeNav()">
<div class="contents"> <!-- <div class="asideMenu"> --> <!-- <? include("./Page/mypage/leftNavi.html"); ?> --> <!-- </div><!-- //leftNavi --> <div class="subContents"> <h1 style="margin:10px;"> <img src="./images/titlebar/mypageevent1.jpg" alt="사용후기"> <!-- <p> --> <!-- <span class="home"><a href="intro.php">Home</a></span> --> <!-- <span class="depth">></span> --> <!-- <span class="depth1">마이페이지</span> --> <!-- <span class="depth">></span> --> <!-- <span class="depth2">사용후기</span> --> <!-- </p> --> </h1> <img src="./images/buy/review_event_top_221230.png" alt="이벤트배너" style="width:100%;">
<ul class="tab_nav clearfix"> <li><a href="#tab01">후기 등록하기</a></li> <li><a href="#tab02">사용후기 보기</a></li> </ul> <div class="tabcontent"> <div id="tab01"> <? include ("./write_review_inc.php"); ?> </div> <div id="tab02"> <? include ("./review_detail_inc_4.php"); ?> </div> </div> </div><!-- //subContents --> </div><!-- //contents --> <!-- '사은품발송리스트'의 페이지기능 관련 변수 *삭제하지 말 것* --> <?php $review = ''; ?> <!-- //'사은품발송리스트'의 페이지기능 관련 변수 *삭제하지 말 것* --> <? include ("./freebies_inc.php"); ?> </div><!-- //wrap -->
<iframe name='jointIframe' width=0 height=0></iframe> <?php if($mode=='after'){ $pos = 1; } else { $pos = 0; } ?>
<script> $(function(){ $('.tabcontent > div').hide(); $('.tab_nav a').click(function () { $('.tabcontent > div').hide().filter(this.hash).fadeIn(); $('.tab_nav a').parent().removeClass('active'); $(this).parent().addClass('active'); return false; }).filter(':eq(<?php echo $pos;?>)').click(); //우하단 아이콘 존재여부 결정(후기등록하기에서만 안 보이게) if($('.tab_nav li:nth-child(1)').hasClass('active') === true){ $('.float_div_class').addClass('off'); } $(".tab_nav li:nth-child(1) a").click(function(){ $('.float_div_class').addClass('off'); });
$(".tab_nav li:nth-child(2) a").click(function(){ $('.float_div_class').removeClass('off'); }); }); </script> <style> .float_div_class.off{display:none;} </style>
<? include("./include/footer.php"); ?>
|