/home/mjc1/public_html/html/newtop_sub.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
<?
    
if(isset($_COOKIE[USERID]) &&  $_COOKIE[USERID] !== "")   $_statu  =   "<a href=\"javascript:logout();\"><img src=\"../newimg/common/top_sub_02_1.gif\" border=\"0\">";
    else                           
$_statu  =   "<a href=\"javascript:login();\"><img src=\"../newimg/common/top_sub_02.gif\"    border=\"0\">";
?>
<script>

function menu01(){
    <?
    
if( isset($_COOKIE[USERID]) && $_COOKIE[USERID] !== ""){
        
?>
        location.href='mypage.php' ;
        <?
    
}
    else{
        
        
//echo "alert('로그인 후에 이용하세요');";
        
?>
        window.open("login.php","","width=434,height=330,menubar=no,location=no,toolbar=no,scrollbar=no");
        <?
        
    
}
    
?>
}

function menu02() {    
<?
    
if(isset($_COOKIE[USERID]) &&  $_COOKIE[USERID] !== "") {
        
        
$currentDay date('Y-m-d',Time());
        
$j_query  "select * from member where (Mdiv ='2' and  Mup ='1') and End_day > '$currentDay' and Mid = '$_COOKIE[USERID]'  ";
        
$j_result mysql_query($j_query);
        
$i_query  "select * from member where (Mdiv ='3' and  Mper ='1') and End_day > '$currentDay' and Mid = '$_COOKIE[USERID]' ";
        
$i_result mysql_query($i_query);
        
        if( 
MYSQL_NUM_ROWS($j_result) > 0  || MYSQL_NUM_ROWS($i_result) > ){
?>
            location.href='mypage_01.php';
<?
        
} else {
            echo 
"alert('정품구매자가 아니거나 정품인증기간이 지났습니다.');";
        }
    } else {
        
        
//  echo "alert('로그인 후에 이용하세요');";
?>
        window.open("login.php","","width=434,height=330,menubar=no,location=no,toolbar=no,scrollbar=no");
<?
    
}
?>
}


function menu03(){
    <?
    
if(isset($_COOKIE[USERID]) && $_COOKIE[USERID] !== ""){
        
?>
        location.href='mypage_03.php' ;
        <?
    
}
    else{
        
// echo "alert('로그인 후에 이용하세요');";
        
?>
        window.open("login.php","","width=434,height=330,menubar=no,location=no,toolbar=no,scrollbar=no");
        <?
    
}
    
?>
}


function menu04(){
    <?
    
if(isset($_COOKIE[USERID]) &&  $_COOKIE[USERID] !== ""){
        
?>
        location.href='mypage_04.php' ;
        <?
    
}
    else{
        
//  echo "alert('로그인 후에 이용하세요');";
        
?>
        window.open("login.php","","width=434,height=330,menubar=no,location=no,toolbar=no,scrollbar=no");
        <?
        
    
}
    
?>
}
function menu05(){
    <?
    
if(isset($_COOKIE[USERID]) &&  $_COOKIE[USERID] !== ""){
        
?>
        location.href='mypage_05.php' ;
        <?
    
}
    else{
        
        
// echo "alert('로그인 후에 이용하세요');";
        
?>
        window.open("login.php","","width=434,height=330,menubar=no,location=no,toolbar=no,scrollbar=no");
        <?
        
    
}
    
?>
}

</script>
<script>
function login(){
    window.open("login.php","","width=434,height=330,menubar=no,location=no,toolbar=no,scrollbar=no");
}
function logout(){
    logout_ifm.location.href =  "logout.php";
}
</script>
<iframe name='logout_ifm' width=0 height=0></iframe>
<table border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td><a href='http://www.RCNT.net/mijin' target='_blank'><img src="../newimg/common/top_sub_01.gif" border="0"></a></td>
                    <!--td><?=$_statu;?></td-->
                    <td><a href="community_07.php"><img src="../newimg/common/top_sub_02.gif" border="0"></a></td>
                    <td><a href="community_08.php"><img src="../newimg/common/top_sub_03.gif" border="0"></a></td>
                    <td><a href="deallist.php"><img src="../newimg/common/top_sub_04.gif" border="0"></a></td>
                    <td><a href="community_05.php"><img src="../newimg/common/top_sub_05.gif" border="0"></a></td>
                    <td><a href="/html/goods_results.php"><img src="../newimg/common/top_sub_06.gif" border="0"></a></td>
                    <td><a href="consultation.php"><img src="../newimg/common/top_sub_07.gif" border="0"></a></td>  <!-- 전산도입상담신청 -->
                    <td><a href="mjsitemap.php"><img src="../newimg/common/top_sub_08.gif" border="0"></a></td>  <!-- 사이트맵 -->
                    <td><a href="/html/community_02.php"><img src="../newimg/common/top_sub_09.gif" border="0"></a></td>  <!-- Q/A -->
                    <!--<td><a href="mailto:mjc1@korea.com"><img src="../newimg/common/top_sub_06.gif" width="104" height="30" border="0"></a></td>-->
                    <td width="20"></td>
                </tr>
            </table>
        </td>
    </tr>
</table>