/home/mjc1/public_html/html/m_renew/include/header.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
<?
session_start
();
if(!isset(
$_SESSION['id'])) $_SESSION['id'] = "";     // Notice Error 방지

if(!isset($sname))            $sname "";            // Notice Error 방지
if(!isset($id))                $id "";                // Notice Error 방지

$nowDate date("Y-m-d"time());

/* jyh 디버깅 함수 */
function prt($data=null$size=0) {
    
//if (!isdev()) return;
    
ob_start();
    
print_r($data);
    
$content_text ob_get_contents();
    
ob_end_clean();
    
$content_list explode("\n"$content_text);
    
$rows count($content_list);
    
$cols 0;
    foreach (
$content_list as $line) {
        if ((
$col mb_strlen($line)) > $cols) {
            
$cols $col;
            if (
$cols 128$rows++;
        }
    }
    
$rows += 2;
    
$cols += 2;
    if (!
headers_sent()) {
        
header('Content-type: text/html; charset=utf-8');
    }
    echo 
'<textarea cols="' $cols '" rows="' $rows '"';
    echo 
' style="display:block; margin:0; padding:5px; border:1px solid #999;';
    if (
$size) echo ' width:' $size 'px;';
    echo 
' font-family:Hwsr_9pt, Gulimche; font-size:9pt;">';
    echo 
$content_text;
    echo 
'</textarea>';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>엠제이소프트</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3.0, minimum-scale=1.0, user-scalable=yes" />
    <!-- 호환성 보기 적용 North Carolina State University -->
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7,IE=EmulateIE8,IE=EmulateIE9,IE=EmulateIE10,IE=EmulateIE11" />    
    <link rel="stylesheet" type="text/css" href="css/basic.css" />
    <script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
</head>


<body>
<?
// Notice Error 방지
if(!isset($cuscode)) $cuscode "";
if(!isset(
$sacode))    $sacode    "";
?>
<div class="wrap">
    <!--좌측메뉴바-->
    <div id="mySidenav" class="sidenav">
      <img src="./images/common/sidenav_logo.png" style="width:250px;" onclick="closeNav()">
      <a href="#">회사소개</a>
      <button class="dropdown-btn">제품소개
        <i class="fa fa-caret-down"></i>
      </button>
      <div class="dropdown-container">
        <a href="#">Link 1</a>
        <a href="#">Link 2</a>
        <a href="#">Link 3</a>
      </div>
      <a href="#">하드웨어</a>
      <a href="#">고객센터</a>
    </div>
    
    <!--상담요청 우측하단배너-->
    <?php
    
if(!(strpos($_SERVER['SCRIPT_NAME'],"right_install.php")>0)){
    
?>
        <div id="rightBanner">
            <div class="cs_icon"><a href="http://mjsoft.co/html/m/right_install.php" target="_blank"><img src="./images/intro/right_cs_kakao.png" alt="right_install"></a></div>
        </div>
    <?php
    
}
    
?>

    <!--상단메뉴바-->
    <div class="top1"> </div>
    <div class="header" id="navbar">
    <div class="top_menu">
        <!--menu_btn,logo,kakao-->
        <div class="top"> </div>
        <div class="menu_btn"><div id="trapeze" style="cursor:pointer" onclick="openNav()"><img src="http://mjsoft.co/html/m_renew/images/common/menu_btn.png" alt="menu_btn" style="max-width:90px;"></div></div>
        <a class="top_logo" href="./index.php"><img src="http://mjsoft.co/html/m_renew/images/common/top_logo.png" alt="top_logo" style="max-width:125px; margin:7px 18px 7px;"></a>
    </div>    
    


<script>
window.onscroll = function() {myFunction()};

var header = document.getElementById("navbar");
var sticky = header.offsetTop;

function myFunction() {
  if (window.pageYOffset >= sticky) {
    header.classList.add("sticky");
  } else {
    header.classList.remove("sticky");
  }
}


//사이드메뉴
function openNav() {
    document.getElementById("mySidenav").style.width = "250px";
}

function closeNav() {
    document.getElementById("mySidenav").style.width = "0";
}


/* Loop through all dropdown buttons to toggle between hiding and showing its dropdown content - This allows the user to have multiple dropdowns without any conflict */
var dropdown = document.getElementsByClassName("dropdown-btn");
var i;

for (i = 0; i < dropdown.length; i++) {
  dropdown[i].addEventListener("click", function() {
    this.classList.toggle("active");
    var dropdownContent = this.nextElementSibling;
    if (dropdownContent.style.display === "block") {
      dropdownContent.style.display = "none";
    } else {
      dropdownContent.style.display = "block";
    }
  });
}


</script>