/home/mjc1/public_html/html/ezpos/intro.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
<? include("./html/common/header.php"); ?>

    <div class="slides_container">
        <? include("./html/intro/main_slider.html"); ?>
    </div> 
    <!--  slides_container -->

    <div class="wrap">
        <div class="mainContents">
<style>
.mainSolution li.sol1 span {
    width: 225px;
    background-position: 0 0;
}
.mainSolution li.sol3 span {
    width: 225px;
}
.mainSolution li.sol2 span {
    width: 225px;
    background: url('./images/intro/program_img.png') no-repeat;
}
.mainSolution li a{top:105px;}
</style>

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

    // À¥ È¨ÆäÀÌÁö DB
    
$DB_HOSTWEB2  =  "localhost";
    
$DB_USERWEB2  =  "WebHostUser";
    
$DB_PWDWEB2   =  "WebHost5263";
    
$DB_NAMEWEB2  =  "webhost";
    
$connect_web    = @mysql_connect($DB_HOSTWEB2,$DB_USERWEB2,$DB_PWDWEB2);
    @
mysql_select_db$DB_NAMEWEB2,$connect_web);

    
$today date("Y-m-d"); // ¿À´Ã³¯Â¥
    
$time date("H");
    
$page basename($_SERVER['PHP_SELF']).",pos1000";
    if(
end(explode('.'basename($_SERVER['PHP_SELF']))) == "php") {
        
$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);

        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['ezpos_cnt_flg'] = "1";

    
mysql_close($connect_web);
}
?>


            <div class="mainCont1">
                <div class="mainCScenter">
                    <h1 class="screen_out">°í°´¼¾ÅÍ</h1>
                    <p class="screen_out">ÀüÈ­ : 02-401-5121 , 1566-8680</p>
                    <p class="screen_out">³óÇù : 093-02-307376, ±¹¹Î : 803901-01-443842</p>
                </div>
                <div class="mainSolution">
                    <h1><span class="screen_out">ÇÁ¸®¹Ì¾ö¼Ö·ç¼Ç</span></h1>
                    <ul>
                        <li class="sol1">
                            <span>µµ¼Ò¸Å°â¿ëÆ÷½º</span>
                            <a href="./html/software/ubipos.php">ÀÚ¼¼È÷º¸±â</a>
                        </li>
                        <li class="sol3">
                            <span>°æ¿µ°ü¸®¼Ö·ç¼Ç</span>
                            <a href="./html/software/spos.php">ÀÚ¼¼È÷º¸±â</a>
                        </li>
                        <li class="sol2">
                            <span>³ª¿¡°Ô ¸Â´Â Á¦Ç°Ã£±â</span>
                            <a class="show_program_pos">ÀÚ¼¼È÷º¸±â</a>
                        </li>
                    </ul>
                </div><!-- //mainSolution -->
            </div><!-- //mainCont1 -->

            <div class="mainCont2">
                <div class="mainHw">
                    <h1><span class="screen_out">¿¬µ¿ Çϵå¿þ¾î</span>
                    <a href="./html/accessory/peripherallist.php" class="more"><span class="screen_out">´õº¸±â</span></a>
                    </h1>
                    <ul>
                        <li class="scanner"><a href="./html/accessory/peripherallist.php?#scanner">¹ÙÄڵ彺ij³Ê</a></li>
                        <li class="print"><a href="./html/accessory/peripherallist.php?#printer">¿µ¼öÁõÇÁ¸°ÅÍ</a></li>
                        <li class="cardread"><a href="./html/accessory/peripherallist.php?#card">Ä«µå¸®´õ±â</a></li>
                    </ul>
                </div>
                <div class="mainService">
                    <h1><span class="screen_out">¼­ºñ½º ¹Ù·Î°¡±â</span></h1>
                    <ul>
                        <li class="system"><a  href="./images/intro/distribution.gif" target="_blank">
                            <span>¹°·ù°ü¸®½Ã½ºÅÛ</span>
                        </a></li>
                        <li class="point"><a href="./html/common/index_service.php" target="_blank">
                            <span>ºÎ°¡¼­ºñ½º</span>
                        </a></li>
                        <li class="advantage"><a href="./images/intro/ezpos.gif" target="_blank">
                            <span>õ³âÆ÷½ºÀåÁ¡</span>
                        </a></li>
                    </ul>
                </div>
                <div class="mainNotice">
                    <h1><span class="screen_out">°øÁö»çÇ×</span>
                    <a href="./html/support/customernotice.php" class="more"><span class="screen_out">´õº¸±â</span></a>
                    </h1>
                    <ul>
<?
    
//-- °øÁö»çÇ×
    
$noticeSql        =   " select * from mBoard_notice WHERE (company = '00' or company = '04')  and ifnull(temp,\"\") <>'Y' order by uid desc limit 5 ";

    
$noticeResult     =    mysql_query($noticeSql);
        if( 
mysql_num_rows($noticeResult) > ){
            while (
$noticeRow =  mysql_fetch_array($noticeResult)){
            
$reg_date  =  date('Y-m-d',$noticeRow['reg_date'] );
?>
                        <li>
                            <!--span class="bullet"></span-->
                            <a href="#">
                                <a href="./html/support/customernotice.php?nuid=<?=$noticeRow['uid'];?>">
                                    <span class="newsTitle" style="width:230px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"><?=$noticeRow['subject'];?></span>
                                    <span class="date"><?=$reg_date;?></span>
                                </a>
                            </a>
                        </li>
                    <?
                            
}
                        }
                    
?>
                    </ul>
                </div>
            </div><!-- //mainCont2 -->
        </div><!-- /mainContents -->
    </div><!-- //wrap -->


<script language="javascript">
    
    function getCookie(name) { //ÆË¾÷¶ç¿ì±â
      var Found = false 
      var start, end 
      var i = 0 
     
      while(i <= document.cookie.length) { 
        start = i 
        end = start + name.length 
     
        if(document.cookie.substring(start, end) == name) { 
          Found = true 
          break 
        } 
        i++ 
      } 
 
      if(Found == true) { 
        start = end + 1 
        end = document.cookie.indexOf(";", start) 
          if(end < start) 
            end = document.cookie.length 
        return document.cookie.substring(start, end) 
      } 
      return "" 
    } 
 
    function openPopup() { 
        var noticeCookie=getCookie("delivery_pop");  // ÄíŰº¯¼ö À̸§    

        if (noticeCookie != "no") {
            //window.open('./pop_delivery.php','pop1','width=395,height=370,top=50,left=100');    //Ãß¼®
        }
    }

    openPopup();

</script>

<script language='javascript' src="./js/jqueryui/jquery-ui.js"></script>
<link href="./js/jqueryui/jquery-ui.css" rel="stylesheet" />
<style>
.ui-dialog-buttonpane{display:none;}
.ui-button .ui-button-text{padding:0px;}
</style>

    <!--³ª¿¡°Ô¸Â´ÂÁ¦Ç°Ã£±â-->
    <div id="modal_member_box" style="display:none;width:900px; height:684px; padding-top:15px;padding-left:17px;padding-right:3px;position:relative;"><iframe id='pop_box_iframe' style='width:100%;height:99%;' frameborder=0 src=''></iframe></div>
<script language="javascript">

$(function(){
    $(".show_program_pos").css("cursor","pointer").click(function(){ //¿¥Á¦ÀÌ ¼ÒÇÁÆ®¶õ ÆË¾÷ó¸®
        main_popup_show("http://mjsoft.co/html/millennium/index_new_program_new2.php","725","900","³ª¿¡°Ô ¸Â´Â Á¦Ç°Ã£±â");
    });
});

function main_popup_show(url,v_width,v_height,v_title){
    $("#pop_box_iframe").attr("src","");
    $("#modal_member_box").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_iframe").attr("src","");
        }
    });
    setTimeout(function(){
        $("#pop_box_iframe").attr("src",url);        
    },500);
}


function dialog_close(){
    $("#modal_member_box").dialog( "close" );
}
window.addEventListener('message', function(e) {
    console.log('parent message');
    console.log(e.data); // { childData : 'test data' }
    console.log("e.origin : " + e.origin); //http://123.com(ÀÚ½Äâ µµ¸ÞÀÎ)

    $day = 0;
    if(e.data.childData === 'close window'){
        dialog_close();
    } else if(e.data.childData === 'close window1'){
        dialog_close();
        $day = 1;
    } else if(e.data.childData === 'close window7'){
        dialog_close();
        $day = 7;
    } else if(e.data.childData === 'goto customerprice'){
        document.location.href='http://mjsoft.co/html/millennium/customerprice.php#list_view';
    } else if(e.data.childData === 'goto customer_buy_cs'){
        document.location.href='http://mjsoft.co/html/millennium/customer_buy_cs.php#list_view';
    }

    if($day>0){
        //return;
        if($day=='1'){
            var today = new Date();
            $remain_time = 24-today.getHours();
            setsave_time("find_pop_not_open", "1", $remain_time);
        } else {
            setsave("find_pop_not_open", "1", $day);
        }
    }
});
function setsave(name, value, expiredays){
    value = encodeURI(value); // Çѱ۱úÁü¹®Á¦ Ã³¸®
    var today = new Date();
    today.setDate( today.getDate() + expiredays );
    //alert(today.toGMTString()); return;
    document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + today.toGMTString() + ";"
}

function setsave_time(name, value, expiretime){
    value = encodeURI(value); // Çѱ۱úÁü¹®Á¦ Ã³¸®
    var today = new Date();
    today.setTime( today.getTime() + (parseInt(expiretime)*60*60*1000) );
    document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + today.toGMTString() + ";"
}
</script>
<?php
if($_COOKIE['find_pop_not_open']!='1'){
?>
    <script>
    $(function(){
        setTimeout(function(){
            main_popup_show("http://mjsoft.co/html/millennium//index_new_program_new2.php?mode=pop&domain=other","680","900","³»°Ô ¸Â´Â ÇÁ·Î±×·¥");
        },1000);
    });
    </script>
<?}?>
<? 
include("./html/common/footer.php"); ?>