/home/mjc1/public_html/html/mypage_01_20081208.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
<?
 
include("../manage/category/common.php");
  
  if(  
$_COOKIE[USERID] == ""){
?>
<script>
 alert("·Î±×ÀΠÈÄ¿¡ ÀÌ¿ëÇϼ¼¿ä");
 location.href =  "intro.php";
</script>
<?
  

  
  
$memberQry       =   " SELECT * FROM member WHERE Mid = '$_COOKIE[USERID]' "
  
$memberResult    =     MYSQL_QUERY($memberQry);
  
$memberRow       =     MYSQL_FETCH_ARRAY($memberResult);
   
  if(
$memberRow[Msw1] !== "0"){
  
$programNameQry    =    " SELECT category_name FROM cate3 WHERE category_code = '$memberRow[Msw1]' ";
  
$programResult     =      MYSQL_QUERY($programNameQry);
  
$programRow        =      MYSQL_FETCH_ARRAY($programResult);
  
$programName       =      explode("->",$programRow[0]);
   }
  else {
    
   
$programName      =     "¼±ÅõÇÁö ¾ÊÀ½"
      }
   
   
  if(
$memberRow[Mdiv] == "2")  $_certiNum   "certi_num";  
  else                         
$_certiNum   "rent_num"
     
   
$certiQry      "  SELECT $_certiNum FROM  certinumManage WHERE substring( category_code , 5,2 ) = '$memberRow[Msw1]' ";
   
$certiResult   =     mysql_query($certiQry);
   
$certiRow      =     mysql_fetch_array($certiResult);
   
      
     
//Á¤Ç°¹øÈ£ ¾÷µ¥ÀÌÆ®
  
$certiUpdate      =  " update member set Certi_num = '$certiRow[0]'  WHERE Mid = '$_COOKIE[USERID]' ";  
                         
mysql_query($certiUpdate);  
                         
  
  
$memberQry       =   " SELECT * FROM member WHERE Mid = '$_COOKIE[USERID]' "
  
$memberResult    =     MYSQL_QUERY($memberQry);
  
$memberRow       =     MYSQL_FETCH_ARRAY($memberResult);                       
  
?>
<html>
<head>
<title>¾÷¹«¿ë ¼ÒÇÁÆ®¿þ¾î Àü¹®°³¹ß¾÷ü::::¹ÌÁø¼ÒÇÁÆ®::::</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="../css/style.css" rel="stylesheet" type="text/css">
<script language='javascript' src='../js/left_menu.js'></script>
</head>

<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" style="background: url(../img/common/bg_mypage_top.jpg) #ffffff repeat-x" >
<? include("top_mypage.php"); ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="220" height="100%" valign="top"><table width="220" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="25" height="100%" valign="top"><table width="25" height="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="5"></td>
              </tr>
              <tr>
                <td background="../img/common/bg_bar.gif"></td>
              </tr>
            </table></td>
          <td width="195" align="right" valign="top"><table width="190" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td colspan="3"><img src="../img/mypage/tit.gif" width="190" height="110"></td>
              </tr>
              <tr> 
                <td width="10" valign="top"><img src="../img/common/left_tit_bg.gif" width="10" height="189"></td>
                <td width="170" valign="top"><? include("left_my.php"); ?>
                  <br>
                  <? include("banner.php"); ?>
                  <br>
                </td>
                <td width="10" valign="top"><img src="../img/common/left_tit_bg01.gif" width="10" height="163"></td>
              </tr>
            </table></td>
        </tr>
      </table> </td>
    <td width="755" align="center" valign="top"><table width="755" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td colspan="2"><img src="../img/mypage/top.jpg" width="755" height="110"></td>
        </tr>
        <tr> 
          <td width="765" align="center" valign="top"><table width="735" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="735" height="30" align="right" class="txt01"><img src="../img/common/history.gif" width="63" height="13" align="absmiddle"> 
                  <img src="../img/common/history_icon.gif" width="4" height="5" hspace="7" align="absmiddle">HOME<img src="../img/common/history_icon.gif" width="4" height="5" hspace="7" align="absmiddle">¸¶ÀÌÆäÀÌÁö<img src="../img/common/history_icon.gif" width="4" height="5" hspace="7" align="absmiddle">Á¤Ç°ÀÎÁõ¹øÈ£ 
                  ¹ß±Þ&nbsp;&nbsp;&nbsp;</td>
              </tr>
            </table>
            <table width="725" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="../img/mypage/tit_02.gif" width="725" height="35"></td>
              </tr>
            </table>
            <br>
            <br>
            <table width="680" border="0" cellpadding="15" cellspacing="5" background="../img/common/center_bg_02.gif">
              <tr> 
                <td bgcolor="f6f6f6" class="txt03"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="txt03">
                    <tr> 
                      <td height="25"><img src="../img/common/box_orange.gif" width="3" height="3" hspace="10" align="absmiddle">°í°´´Ô²²¼­ 
                        ±¸¸ÅÇϽŠÁ¦Ç°¿¡ ´ëÇÑ [Á¤Ç°ÀÎÁõ¹øÈ£]ÀÔ´Ï´Ù.</td>
                    </tr>
                    <tr> 
                      <td><img src="../img/common/box_orange.gif" width="3" height="3" hspace="10" vspace="10" align="absmiddle">Á¤Ç°ÀÎÁõ¹øÈ£´Â 
                        ±¸¸ÅÈÄ 1³â±îÁö, ¾÷±×·¹À̵堽Åû½Ã 1°³¿ùµ¿¾È È®ÀÎÀÌ °¡´ÉÇÕ´Ï´Ù.(2007³â8¿ù±¸¸ÅÀÚ ±âÁØ)</td>
                    </tr>
                  </table>
                  <br>
                  <br>
                  <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC" class="txt03">
                    <tr> 
                      <td align="center" bgcolor="f0f0f0">±¸¸ÅÁ¦Ç°</td>
                      <td align="center" bgcolor="#FFFFFF"><?=$programName[1]?></td>
                      <td align="center" bgcolor="f0f0f0">ÀÎÁõ¹øÈ£</td>
                      
                      
                      
<!-- Á¤Ç° »ç¿ëÀÚ ±×¸®°í Á¤Ç°±â°£À» Ã¼Å©ÇÏ¿© ÀÎÁõ¹øÈ£¸¦ º¸¿©ÁÙÁö ¿©ºÎ Ã¼Å© -->
<?  
 $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) > ){ ?>
        <td align="center" bgcolor="#FFFFFF"><?=$memberRow[Certi_num]?></td>

  <?   
  else {  
?>
        <td align="center" bgcolor="#FFFFFF">Á¤Ç° ÀÎÁõ±â°£ ¸¸·á</td>
  <?   }  ?>
                      
                      
                      
                      <!-- <td align="center" bgcolor="#FFFFFF"><?=$memberRow[Certi_num]?></td> -->
                      
                    </tr>
                  </table> </td>
              </tr>
            </table>
            <br>
            <br>
          </td>
          <td valign="top"><img src="../img/common/right_tit_bg.gif" width="10" height="153"></td>
        </tr>
      </table> </td>
    <td valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="100"></td>
        </tr>
        <tr>
          <td background="../img/common/bg_bar.gif">&nbsp;</td>
        </tr>
      </table></td>
  </tr>
</table>
<? include("foot.php"); ?>
</body>
</html>