/home/mjc1/public_html/html/top_sub_old_mook.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
<?
    
if(isset($_COOKIE[USERID]) &&  $_COOKIE[USERID] !== "")   $_statu  =   "<a href=\"javascript:logout();\"><img src=\"../img/common/top_sub_02_1.gif\" border=\"0\">";
    else                           
$_statu  =   "<a href=\"javascript:login();\"><img src=\"../img/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="../img/common/top_sub_01.gif" width="96" height="30" border="0"></a></td>
                    <!--td><?=$_statu;?></td-->
                    <td><a href="community_07.php"><img src="../img/common/top_sub_03.gif" border="0"></a></td>
                    <td><a href="community_08.php"><img src="../img/common/top_sub_04.gif" border="0"></a></td>
                    <td><a href="deal.php"><img src="../img/common/top_sub_08.gif" border="0"></a></td>
                    <td><a href="community_05.php"><img src="../img/common/top_sub_09.gif" border="0"></a></td>
                    <td><a href="/html/goods_results.php"><img src="../img/common/top_sub_10.gif" border="0"></a></td>
                    <td>
<? if(isset($_COOKIE[USERID]) &&  $_COOKIE[USERID] !== "") { ?>
<a href="/html/mypage_06.php">
<? } else { ?>
<a href="javascript:login()">
<? ?><img src="../img/common/top_sub_11.gif" border="0"></a></td>
                    <td><a href="javascript:site();"><img src="../img/common/top_sub_05.gif" border="0"></a></td>
                    <!--<td><a href="mailto:mjc1@korea.com"><img src="../img/common/top_sub_06.gif" width="104" height="30" border="0"></a></td>-->
                </tr>
            </table>
        </td>
        <td width="30">&nbsp;</td>
    </tr>
</table>