/home/mjc1/public_html/html/millennium/customermovie.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
<?php include_once("./_common2.php"); ?>
<? 
include("./Page/common/header.php"); ?>

<?php

// ¸î¸íÀÌ ÀÌ ÆäÀÌÁö¿¡ µé¾î¿Ô´ÂÁö Ä«¿îÆÃ
if($_SERVER['REMOTE_ADDR']!='58.151.27.172' && $_SERVER['REMOTE_ADDR']!='115.138.35.2' && $_SESSION['movie_cnt_flg'] != "1"){ // »ç³»ÀÇ ´ë±¸, ¼­¿ï ¾ÆÀÌÇǰ¡ ¾Æ´Ò °æ¿ì¿¡¸¸

    
$today date("Y-m-d"); // ¿À´Ã³¯Â¥
    
$time date("H");
    
$page basename($_SERVER['PHP_SELF']);
    if(
end(explode('.'basename($_SERVER['PHP_SELF']))) == "php") {
        
$sql "SELECT * FROM mBoard_page_count WHERE inflow_date = '{$today}' AND page = '{$page}' AND page_kr = 'µ¿¿µ»ó°­ÀÇ' ORDER BY inflow_time DESC";
        
$res mysql_query($sql,$connect_web);
        
$row mysql_fetch_array($res);

        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}', 'µ¿¿µ»ó°­ÀÇ')";
            
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);
        }
    }

    
$_SESSION['movie_cnt_flg'] = "1";
}

?>

<style>
.tab_navi {position:relative;width:1200px;margin-bottom:35px;}
.tab_navi ul {overflow:hidden;width: 1200px;margin: auto;}
.tab_navi li {float:left;width:400px;line-height:60px;font-size:20px;text-align:center;letter-spacing:-0.5px;overflow: hidden;background: #fff;}
.tab_navi li:nth-child(1){border-radius: 0px 0px 0px 30px;box-sizing: border-box;border-bottom: 2px solid;border-left: 2px solid;border-right: 2px solid;border-color:  #547490;}
.tab_navi li:nth-child(2){box-sizing: border-box;border-bottom: 2px solid;border-right: 2px solid;border-color:  #547490;}
.tab_navi li:nth-child(3){box-sizing: border-box;border-bottom: 2px solid;border-right: 2px solid;border-color:  #547490;border-radius: 0px 0px 30px 0px;}
.tab_navi li span {display:inline-block;width:100%;height:60px;color:#023059;font-size:20px;font-weight:600;cursor:pointer;/* background: url("./images/millennium/function/movie_btn_new2.png") no-repeat;background-size: 400px auto; */}
.tab_navi li.on{background: #2A4C6A;border-color: #2A4C6A;}
.tab_navi li.on span {color:#FFF;text-decoration:none;font-weight:600;/* background: url("./images/millennium/function/movie_btn_on_new2.png") no-repeat;background-size: 400px auto; */}

.mov_class ul{margin-top: 50px; border-bottom: 1px dashed #d6d6d6;}
.mov_class ul:last-child{border-bottom: 0px;}
.mov_class ul::after{content: '';display: block;clear: both;}
.video_li{float: left;width: 285px;margin-right: 20px;margin-bottom: 50px;}
.video_li:nth-child(4n){margin-right: 0px;}
.video_li p{font-size: 16px;font-weight: 600;padding-left: 10px;margin-top: 10px;text-align: center;}
.video_li a{width: 100%;display: block;border-radius: 10px;overflow: hidden;}
.video_li a img{width: 100%;}

/*µ¿¿µ»ó°³¼±Á¡ µî·ÏÇϱâ*/
.impromovie {padding: 12px 16px;background: #999;/* width: 126px; */color: #fff;/* font-weight: 900; */font-weight: 600;border-radius: 6px;display: block;cursor: pointer;font-size: 16px;}
.impromovie:hover{background: #333;}
[aria-describedby="customermovie_improvement"]{padding: 0px;border-radius: 10px;border: 1px solid #333;}
[aria-describedby="customermovie_improvement"] .ui-widget-header{background: #333;border: 0px;border-radius: 0px;padding: 1em 1.5em;}
[aria-describedby="customermovie_improvement"] .ui-dialog-title{color: #fff;font-size: 16px;}
[aria-describedby="customermovie_improvement"] .ui-dialog-titlebar-close{right: 1.5em;}
#customermovie_improvement{padding: 10px 0px 5px !important;}
#impromovietext{width: 100%;box-sizing: border-box;}
[aria-describedby="customermovie_improvement"] .ui-dialog-buttonpane{border: 0px;margin-top: 0px;padding: 0 1em 0.5em;}
[aria-describedby="customermovie_improvement"] .ui-dialog-buttonpane button{background: #fff;border: 1px solid #999;font-size: 14px;font-weight: bold;}
[aria-describedby="customermovie_improvement"] .ui-dialog-buttonpane button:hover{background: #333;color: #fff;}

#m3_search{width: 300px;height: 40px;box-sizing: border-box;border: 2px solid #4d4d4d;border-right: 0px;border-radius: 6px 0px 0px 6px;cursor: text;float: left;padding-left: 10px;font-size: 16px;outline: none;}
#m3_search_btn{display: inline-block;width: 60px;height: 40px;line-height: 40px;background: #4d4d4d;color: #fff;text-align: center;font-size: 16px;float: left;border-radius: 0px 6px 6px 0px;font-weight: bold;cursor: pointer;}
</style>

    <div class="wrap">
        <div class="contents">
            <div class="subContents" style="width: 1200px;">
                <h1>
                    <img src="./img/titlebar/customermovie.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>

                <div class="section" style="width:1200px;">
                    <!--<h2><img src="./img/customer/movie_top.jpg" alt="±âÁ¸Å¸ÀÌÆ²"></h2>-->
                    <h2><img src="./img/customer/board_title/movie_banner7_8.jpg" alt="µ¿¿µ»ó¸Þ´º¾óŸÀÌÆ²" usemap="#cu_as_top"/></h2>

                    <div class="tab_navi">
                        <ul>
                            <li value="3" class="on" ><span>õ³â°æ¿µERP ¿µ»óº¸±â</span></li>
                            <li value="2"><span>õ³â°æ¿µ¥± ¿µ»óº¸±â</span></li>
                            <li value="4"><span>Àåºñ°ü·Ã ¿µ»óº¸±â</span></li>
                        </ul>
                    </div>

                    <div id="tab_m3" class="tab_class mov_class">
                        <? //include("./customermovie_m3.php"); ?>

                        <div style="display: flex;justify-content: space-between;">
                            <form name="m3_search_form" id="m3_search_form" method="post">
                                <div>
                                    <input type="text" name="stc" value="<?php echo $stc?>" id="m3_search" placeholder="ã°í½ÍÀº °­ÀǸíÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.">
                                    <a id='m3_search_btn'>°Ë»ö</a>
                                </div>
                            </form>

                            <p class="impromovie">µ¿¿µ»ó°³¼±Á¡ µî·ÏÇϱâ</p>
                        </div>

                        <?php
                            $where 
"";
                            if(
$stc != "") { // °Ë»ö¸íÀÌ ÀÖÀ¸¸é Ãß°¡
                                
$where .= " AND a.title LIKE '%{$stc}%'";
                            }

                            
$sql "SELECT a.idx, a.title, a.link, a.thumb from mBoard_movie AS a WHERE 1=1 {$where} AND a.hidden <> '1' ORDER BY idx ASC";
                            
$res mysql_query($sql,$connect_web);
                            
$cnt 0// ul Å±׿ë Ä«¿îÆ®
                            
$cnt2 1// ¸Ç¸¶Áö¸·¿¡ Ãß°¡¿µ»ó li¸¦ Ãß°¡Çϱâ À§ÇÑ Ä«¿îÆ®
                            
$allcnt mysql_num_rows($res); // À§ sqlÀÇ Àüü °á°ú Ä«¿îÆ®
                            
while($info mysql_fetch_array($res)) {
                            
                                if(
$cnt 3) { $cnt 0; } // ul Å±׿ë Ä«¿îÆ®°¡ 3ÀÌ»óÀÌ µÇ¸é 0À¸·Î ÃʱâÈ­

                                
if($cnt == 0) { echo "<ul>"; } // ul Å±׿ë Ä«¿îÆ®°¡ 0ÀÏ ¶§ ulűנÃß°¡

                                
$moviename preg_replace("/[0-9.]/","",$info['title']); // hidden °ª¿ëÀ¸·Î Å¸ÀÌÆ²¿¡¼­ ¼ýÀÚ¿Í .¸¸ Á¦°Å
                        
?>
                            <li class="video_li">
                                <input type="hidden" name="moviename" value="<?php echo $moviename?>">
                                <a href="<?php echo $info['link']; ?>" target="_blank"><img src="<?php echo "../../save_dir/m_movie/".$info['thumb']; ?>" alt="<?php echo $info['title']; ?>"></a>
                                <p><?php echo $info['title']; ?></p>
                            </li>

                        <?php
                                
if($cnt2 == $allcnt) { // ¸Ç¸¶Áö¸· Ä«¿îÆ®¿Í Àüü°á°ú Ä«¿îÆ®°¡ µ¿ÀÏÇϸ頸Ǡ¸¶Áö¸·À̶ó ÆÇ´ÜÇϰí Ãß°¡¿µ»ó li Ãß°¡
                                
if($cnt == 3) { echo "</ul><ul>"; } // ul Å±׿ë Ä«¿îÆ®°¡ 3À̸é ulűנ´Ý°í Ãß°¡¿µ»ó¿ëÀ¸·Î ´Ù½Ã¿°
                        
?>
                            <li class="video_li">
                                <a><img src="./img/customer/m3_video_update.png" alt="Ãß°¡¿µ»ó ¾÷µ¥ÀÌÆ® Áß"></a>
                            </li>
                        <?php
                                
}

                                if(
$cnt == 3) { echo "</ul>"; } // ul Å±׿ë Ä«¿îÆ®°¡ 3À̸é ulűנ´ÝÀ½
                                
$cnt ++; // Ä«¿îÆ®¿Ã¸²
                                
$cnt2 ++; // Ä«¿îÆ®¿Ã¸²

                            
}
                        
?>
                    </div>
                    <div id="tab_m2" class="tab_class gang_class" style="display:none;box-sizing: border-box;padding: 0px 150px;" ><? //include("./gang01.php"); ?></div>
                    <div id="tab_m4" class="tab_class hw_class" style="display:none;margin-top:60px;margin-bottom:60px;box-sizing: border-box;padding: 0px 150px;" ><? //include("./hardware_video.php"); ?></div>
                </div><!-- //section -->

            </div><!-- //subContents -->
        </div><!-- //contents -->
    </div><!-- //wrap -->
 
<?php if($_SERVER['REMOTE_ADDR']!='58.151.27.172' && $_SERVER['REMOTE_ADDR']!='115.138.35.2'){ // »ç³»ÀÇ ´ë±¸, ¼­¿ï ¾ÆÀÌÇǰ¡ ¾Æ´Ò °æ¿ì¿¡¸¸ ?>
<script>
$(function(){
    $(".video_li a").click(function(){
        var hid = $(this).closest("li").find("input[name='moviename']").val();
        $.ajax({type:"post", url:"ajax.customermovie.php", data:{"page":"youtube","page_kr":hid}, async:false, dataType : "xml", 
            success:function(xml){    
                var v_mode = $(xml).find("mode").text();
                var v_mode_ok = $(xml).find("mode_ok").text();
                var v_msg = $(xml).find("msg").text();
                if(v_mode_ok=='Y'){
                    //document.location.reload();
                } else {
                    alert(v_msg);
                }
            },
            error:function(rtn,status,error){    alert(error);        }
        });
    });
});
</script>
<?php ?>

<script>
$(document).ready(function () { //õ³â3 ÅÇ

    $(".tab_navi li").click(function () {
        $(".tab_navi li").removeClass("on");
            $(this).addClass("on");
        $(".tab_class").hide();
            $("#tab_m"+$(this).val()).show();
    });

    $("#m3_search_btn").click(function(){
        $(this).closest("form").submit();
    });
});

$(function(){
    $url = "./gang01.php";
    $.ajax({
        type : "POST",    
        url : $url,
        dataType : "html",
        contentType : 'application/x-www-form-urlencoded;charset=euc-kr',
        beforeSend : function(jqXHR){
            jqXHR.overrideMimeType('application/x-www-form-urlencoded;charset=euc-kr');
        },
        success: function(rtn){
            $("#debug_ta").val(rtn);
            $(".gang_class").html(rtn);
        },
        error:function(xhr,textStatus){
            //console.lof(xhr.responseText);
        }        
    });    

    $url = "./hardware_video.php";
    $.ajax({
        type : "POST",    
        url : $url,
        dataType : "html",
        contentType : 'application/x-www-form-urlencoded;charset=euc-kr',
        beforeSend : function(jqXHR){
            jqXHR.overrideMimeType('application/x-www-form-urlencoded;charset=euc-kr');
        },
        success: function(rtn){
            $("#debug_ta").val(rtn);
            $(".hw_class").html(rtn);
        },
        error:function(xhr,textStatus){
            //console.lof(xhr.responseText);
        }        
    });

    // sale_movie_list.phpÀÇ À̹ÌÁö ·Îµù¼Óµµ ¹®Á¦·Î customermovie_m3.php¿¡¼­ include¹æ½ÄÀ¸·Î ajax¹æ½ÄÀ¸·Î º¯°æÇÔ
    $.get("./Page/function/sale_movie_list.php",function(rtn){
        $(".sale_inventory_list").html(rtn);
    });

    $(".impromovie").click(function(){
        $.get("customermovie_improvement.php",function(rtn){
            $("#customermovie_improvement").html(rtn).dialog({
                resizable: false, height: 'auto', width: 560, modal: true, title:"°³¼±Á¡ µî·ÏÇϱâ",
                buttons: {
                "°³¼±Á¡ µî·ÏÇϱâ": function() { 
                    if($("form[name='impromovieform']").find("#impromovietext").val() == "") { alert("³»¿ëÀ» ÀÔ·ÂÇØÁֽñ⠹ٶø´Ï´Ù."); return; }

                    var form_data = $("form[name='impromovieform']").serialize();
                    
                    $.ajax({type:"post", url:"ajax.customermovie.php", data:form_data, async:false, dataType : "xml", 
                        success:function(xml){
                            var v_mode = $(xml).find("mode").text();
                            var v_mode_ok = $(xml).find("mode_ok").text();
                            var v_msg = $(xml).find("msg").text();
                            if(v_mode_ok!='Y'){
                                alert(v_msg);
                            } else {
                                alert("µî·ÏµÇ¾ú½À´Ï´Ù.");
                            }
                        },
                        error:function(rtn,status,error){    alert("Error : "+error);    }
                    });
                    $(this).dialog('close'); 
                },
                "´Ý±â": function() { 
                    $(this).dialog('close'); 
                }
            }
            });
        });
    });
});
</script>

<? include("./Page/common/footer.php"); ?>

<div id="customermovie_improvement" title="°³¼±Á¡ µî·ÏÇϱâ" style="display:none;width:100%; height:100%; padding-top:3px;padding-left:3px;background-color:#FFFFFF;position:relative;"></div>