/home/mjc1/public_html/html/m/service_review_detail.php


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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
<? 
include("./include/header.php"); 

$ipaddr getenv("REMOTE_ADDR");  
$h date("H",time());
set_session("nomem_hash".$h$_SERVER['REMOTE_ADDR']);
set_session("nomem_hash_h"$h);

?>

<?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);
    }
}
*/
?>

<style>

.review_detail_tit{width:100%; padding-top:60px; background-color:#edf5ff }
.review_detail_tit img{width:100%;}
.review_detail_layout{position:relative; text-align:center;padding:10px 0; /* min-width:370px */width: 100%;}
.review_detail_layout div, .review_detail_layout span, .review_detail_layout dl, .review_detail_layout dt, .review_detail_layout dd, .review_detail_layout ul, .review_detail_layout ol, .review_detail_layout li, .review_detail_layout h1, .review_detail_layout h3, .review_detail_layout h4, .review_detail_layout h5, .review_detail_layout h6,.review_detail_layout blockquote,.review_detail_layout p,.review_detail_layout address,.review_detail_layout pre,.review_detail_layout cite,.review_detail_layout form,.review_detail_layout fieldset,.review_detail_layout input,.review_detail_layout textarea,.review_detail_layout select, .review_detail_layout table,.review_detail_layout th,.review_detail_layout td {font-family:'Pretendard Variable', sans-serif !important;}

.review_detail_layout .list {display:flex;flex-wrap: wrap;}
.review_detail_layout .list .list_li {flex-basis: 282px;flex-shrink: 0;margin-bottom:28px;margin-right:24px;}
.review_detail_layout .list .list_li:nth-child(4n) {margin-right:0px;}
.review_card {width:282px;box-sizing:border-box;border-radius:8px;border:1px solid #ccc;transition: 0.2s;}
.review_card .review_company {overflow: hidden;white-space: nowrap;text-overflow: ellipsis;padding:20px 20px 18px 20px;text-align:left;border-bottom:1px solid #ccc;}
.review_card .review_company h2{font-size:18px;line-height:24px;font-weight:900;color:#6868FF;font-family: 나눔스퀘어, 'NanumSquare', sans-serif;margin-bottom:16px;}
/*.review_card .review_company ul{width:100%;display:flex;justify-content:space-between;}*/
.review_card .review_company ul li{float:left;font-size:13px;line-height:13px;font-family: 나눔스퀘어, 'NanumSquare', sans-serif;color:#707070;}
.review_card .review_company ul li:last-child{/*padding-right:10px;*/margin-left:10px;}
.review_card .review_company ul li em{font-weight:600;color:#6868FF;}


.list_header{width: calc(100% - 20px);background-color: #424242;border-radius:12px;margin:0 auto;}
.list_header::after{content:'';display:block;clear:both;}
.list_header li{float:left;height:40px;box-sizing:border-box;border-bottom:1px solid #fff;text-align:center;line-height:40px;font-size:16px;font-weight:600;color:#fff;}
.list_header li:nth-child(2){border-right:2px dashed #fff;}
.list_header li:last-child{border-bottom:0px;}




.service_detail_list{width: calc(100% - 20px);margin:0 auto;overflow:hidden;padding:20px 10px; box-sizing:border-box; border-radius:10px;margin-bottom:10px;  }
.service_detail_list::after{content:'';clear:both;display:block;}
.service_detail_list:nth-of-type(2n){background-color:#fffdf4;}
.service_detail_list:nth-of-type(2n-1){background-color:#fff;}

.service_detail_list li{width:95%; text-align:left; color:#333;  box-sizing:border-box; font-size: 14px; line-height:1;word-break:break-all; overflow:hidden}

ul .date{ color:#fa4c4c; font-size:11px; font-weight:600; margin-bottom:7px; text-transform:uppercase}
ul .comp_name{text-overflow:ellipsis;overflow:hidden;white-space: nowrap }
.service_detail_list .comp_name { font-size:18px; margin-bottom:7px; letter-spacing:-1.1px}
.service_detail_list .comp_name span {font-weight:600; color:#666666; display:inline-block;padding-bottom:7px; border-bottom:2px solid #555;}
ul .comp_type{color:#999; font-size:13px; text-overflow:ellipsis;overflow:hidden;white-space: nowrap; float:left; width:50%}
ul .comp_type::after{content:'';display:block;clear:both;}
ul .review_contents{width:100%;box-sizing:border-box; font-weight:500;font-size:14px;line-height:1.25; margin-bottom:10px;} 
 

.more_btn, .more_btn2{position:relative; margin:0 auto;width:100px;height:56px;;padding-top:30px; left:-17px}
.more_btn p, .more_btn2 p{font-size:16px; font-weight:600; letter-spacing:-1px;}
.more_btn p::after, .more_btn2 p::after {
    position: absolute;
    right: 0; 
    top: 30px;
    content: '';
    width: 10px; /* 사이즈 */
    height: 10px; /* 사이즈 */
    border-top: 2px solid #000; /* 선 두께 */
    border-right: 2px solid #000; /* 선 두께 */
    transform: rotate(135deg); /* 각도 */
}


/* 24.04.29 이현정 수정 */
.r_wrap {background-color:#edf5ff; letter-spacing:-0.6px }


/* 베스트리뷰 / 일반리뷰 구분 24.06.12 이현정 추가 */
#normal {display:none}

#tab_btn {display:flex; flex-wrap:wrap; text-align:left ; margin: 0 10px} 
#btn_1, #btn_2 {position:relative; cursor:pointer; padding-left:10px; font-size:16px; z-index:1; width:50%; max-width:100px; line-height:35px; box-sizing: border-box; color:#2FAECA }
 
#btn_1::before,
#btn_2::before {content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index:-1; border-bottom: 35px solid #fff; border-left: 0 solid transparent; border-right: 25px solid transparent;}

#btn_1.active, 
#btn_2.active {color:#fff; font-weight:600}
 
#btn_1.active::before,
#btn_2.active::before {content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index:-1; border-bottom: 35px solid #2FAECA; border-left: 0 solid transparent; border-right: 25px solid transparent;}
 
 /*제품찾기 아이프레임 사이즈 축소*/
.ui-dialog iframe{    -ms-zoom: 0.38;
    -moz-transform: scale(0.38);
    -moz-transform-origin: 0 0;
    -o-transform: scale(0.38);
    -o-transform-origin: 0 0;
    -webkit-transform: scale(0.38);
    width: 850px;
    height: 700px;
    -webkit-transform-origin: 0 0;
    position: absolute;
    top: 10px;
    left: 0;}
#modal_member_box{overflow:hidden}

</style>
    <div class="review_detail_tit"><img src="./images/review_detail/service_review_detail_tit_2.jpg" alt="tit_image"></div>
    <div class="wrap r_wrap" style="width: 100%;">
        <div class="review_detail_layout">
            
            <div id="tab_btn">
                <p id="btn_1" class="active">베스트순</p>
                <p id="btn_2">최신순</p>
            </div>
            <?php 
                $cnt_sql 
"SELECT COUNT(*) AS cnt FROM mBoard_cus_after WHERE mark_flg = '1'";
                
$cnt_res mysql_query($cnt_sql,$connect_web);
                while(
$cnt_info mysql_fetch_array($cnt_res)) {
                    
$cnt $cnt_info['cnt'];
                }
            
?>
            <p style ="position: absolute; top: 22px; right: 15px; font-size: 14px; z-index:2; font-weight:600">등록건수 : <?php echo number_format($cnt); ?> 건</p>

            <div id="best">
                <?php
    $sql 
"SELECT * FROM mBoard_cus_after WHERE mark_flg = '1' ORDER BY show_top DESC, reg_date desc LIMIT 300";
    
$res mysql_query($sql,$connect_web);
    while(
$info=mysql_fetch_array($res)){
        
        
//$list_array[] = $info;
        
$reg_date strtotime($info['reg_date']);
        
$info['smcompany'] = iconv("EUC-KR""UTF-8"$info['smcompany']);
        
$info['industry_type'] = iconv("EUC-KR""UTF-8"$info['industry_type']);
        
$info['markdetail'] = iconv("EUC-KR""UTF-8"$info['markdetail']);
 
        
// 24.04.17
        
if($info['show_top'] == "1") {
            
$reg_txt "Best Review";

        } else {
            
$reg_txt "";
        }

?>
                <!-- 베스트 리뷰 리스트시작 -->
                <!-- 지금까지의 데이터 연동 필요, 더보기버튼 수정완료 -->                
                <ul class="service_detail_list service_best_list">
                    <li class="<?php if($reg_txt != ""){ echo "date"; }?>"><?php echo $reg_txt;?></li> <!--24.04.17-->
                    <li class="comp_name" ><span><?php echo $sangho;?> 
                    <?php 
                        
//상호명 글자 수 줄이기
                        
$sangho_leng mb_strlen($info['smcompany'], 'utf-8');
                        
$sangho_leng ceil($sangho_leng/2);

                        
$star "";
                        for(
$s=0$s<$sangho_leng$s++){
                            
$star .= "*";
                        }

                        
$sangho mb_substr($info['smcompany'], '0'$sangho_leng'utf-8').$star?>
                    </span>
                    
                    </li>
                    <li class="review_contents"><?php echo $info['markdetail']; ?></li>
                    <li class="comp_type" ><?php echo $info['industry_type']; ?></li>
                    <li class="comp_type" style="text-align:right">
                            <?php
                                
if($info['show_top'] == "1") {
                                    
                                } else {
                                    echo 
date('Y-m-d',$reg_date);
                                }

                                
                            
?>
                    </li>
                </ul>
                <?php ?>

                <div class="more_btn">
                    <p>더 보기</p>
                </div>
            </div><!-- //best -->    

            <div id="normal">
                <?php
                    $sql 
"SELECT * FROM mBoard_cus_after WHERE mark_flg = '1' AND show_top <> 1 ORDER BY reg_date desc LIMIT 300";
                    
$res mysql_query($sql,$connect_web);
                    while(
$info=mysql_fetch_array($res)){
                        
                        
//$list_array[] = $info;
                        
$reg_date strtotime($info['reg_date']);
                        
$info['smcompany'] = iconv("EUC-KR""UTF-8"$info['smcompany']);
                        
$info['industry_type'] = iconv("EUC-KR""UTF-8"$info['industry_type']);
                        
$info['markdetail'] = iconv("EUC-KR""UTF-8"$info['markdetail']);
                
?>
                <!-- 일반 리뷰 리스트시작 -->
                <!-- 지금까지의 데이터 연동 필요, 더보기버튼 수정완료 -->                
                <ul class="service_detail_list service_normal_list">
                    <li></li>
                    <li class="comp_name" ><span><!-- <?php echo $info['smcompany'];?> --><?php echo $sangho;?> 
                    <?php 
                        
//상호명 글자 수 줄이기
                        
$sangho_leng mb_strlen($info['smcompany'], 'utf-8');
                        
$sangho_leng ceil($sangho_leng/2);

                        
$star "";
                        for(
$s=0$s<$sangho_leng$s++){
                            
$star .= "*";
                        }

                        
$sangho mb_substr($info['smcompany'], '0'$sangho_leng'utf-8').$star?>
                    
                    </span></li>
                    <li class="review_contents"><?php echo $info['markdetail'];?></li>
                    <li class="comp_type" ><?php echo $info['industry_type'];?></li>
                    <li class="comp_type" style="text-align:right"><?php echo date('Y-m-d',$reg_date); ?></li>
                </ul>
                <?php ?>
                <div class="more_btn2">
                    <p>더 보기</p>
                </div>
            </div><!-- //normal -->
        </div>     <!-- //review_detail_layout -->    
    </div><!-- //wrap -->

    <div id="modal_member_box2" style="display:none;width:900px; height:615px; padding-top:15px;padding-left:17px;padding-right:3px;position:relative;"><iframe id='pop_box_iframe2'  frameborder=0 src=''></iframe></div>
    <div id="modal_member_box3" style="display:none;padding-top:25px;padding-left:12px;padding-right:12px;position:relative;"></div><!--//팝업창-->


<script>
$(document).ready(function(){ 

    $("#btn_1").click(function(){
        $("#best").show();
        $("#normal").hide();
        $("#btn_1").addClass("active");
        $("#btn_2").removeClass("active");
    });

    $("#btn_2").click(function(){
        $("#normal").show();
        $("#best").hide();
        $("#btn_2").addClass("active");
        $("#btn_1").removeClass("active");
    });


  var $list = $('.service_best_list'),
      $list2 = $('.service_normal_list'),
      $btn = $('.more_btn'),
      $btn2 = $('.more_btn2'),
      list_count = $list.length,
      list2_count = $list2.length,
      increment = 19;
  
 // $list.each(function(i){
    //$(this).append('<p>list' + i + '</p>')
  //});

// 베스트리뷰
  // 20보다 낮을 시 버튼숨김
  if( increment >= list_count ){
    $btn.hide();
  }
  
  // 20 이상 hide
  $list.slice(20).hide();
  
  $btn.on('click', function(){
    increment += 10; // 10 씩 증가
    
    // 더보기 기능
    $list.show();
    $list.slice(increment).hide();
    
    // 최대갯수일 시 버튼숨김
    if( increment > list_count ){
      $btn.hide();
    }
    
  }); 


// 일반리뷰
  // 20보다 낮을 시 버튼숨김
  if( increment >= list2_count ){
    $btn2.hide();
  }
  
  // 20 이상 hide
  $list2.slice(20).hide();
  
  $btn2.on('click', function(){
    increment += 10; // 10 씩 증가
    
    // 더보기 기능
    $list2.show();
    $list2.slice(increment).hide();
    
    // 최대갯수일 시 버튼숨김
    if( increment > list2_count ){
      $btn2.hide();
    }
    
  }); 
});

$(function(){
    $(".show_program_est").css("cursor","pointer").click(function(){ //엠제이 소프트란 팝업처리
        main_popup_show("https://mjsoft.co/html/millennium/index_new_program_new2.php","380","320","나에게 맞는 제품찾기");
    });

    //$("#jointinsertFrm input, #jointinsertFrm textarea").click(function(){
        //$(".float_div_class").hide();
    //});
    //$("#jointinsertFrm input, #jointinsertFrm textarea").blur(function(){
        //$(".float_div_class").show();
    //});
});

function main_popup_show(url,v_width,v_height,v_title){
    $("#pop_box_iframe2").attr("src","");
    $("#modal_member_box2").dialog({
        resizable: true, height:v_width, width:v_height, modal: true, title: v_title,
        show : {effect:'blind',duration:500},
        buttons: {
            닫기: function() {
                $( this ).dialog( "close" );
            }
        },
        close: function() {
            $("#pop_box_iframe2").attr("src","");
        }
    });
    setTimeout(function(){
        $("#pop_box_iframe2").attr("src",url);        
    },500);
}


function dialog_close(){
    $("#modal_member_box2").dialog( "close" );
}
</script>
<?include("./include/footer.php");?>