/home/mjc1/public_html/main_file/certi_num.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
<?
session_start
();
//$user_id = "gugu";
$position "ÀÎÁõ¹øÈ£ ¹ß±Þ";
$page_title "ÀÎÁõ¹øÈ£ ¹ß±Þ";
$upgrade_menu "m_b_menber_on.gif";
require 
"./inc/config.php";
require 
"./main_file/header.html";
$member_class = new member_class();

//Á¦Ç° ¸í °¡Á® ¿À±â ½ÃÀÛ
$table_name "category";
$field =  array("cat_large","cat_middle","cat_small");
$field_value = array($user_program,"0","0");
$find "y";
$and_or "and";
$w_info $member_class ->select_info2($table_name,$field,$field_value,$find,$and_or);
$w_row mysql_fetch_array($w_info,MYSQL_ASSOC);

// Á¦Ç° ¸í °¡Á® ¿À±â ³¡

if($user_type == $member_type_value[1]){ // Á¤Ç° ±¸¸ÅÀÚ À̳Ä? [Y]
    
if($user_check == "USE" && $user_up == $if_upgrade_value[0]){

        
//¸¸±âÀÏÀÚ°¡ Áö³ªÁö ¾ÊÀº °æ¿ì¿¡¸¸ ÀÎÁõ¹øÈ£¸¦ »õ·Î ¾÷µ¥ÀÌÆ® Àû¿ë
        
$ca_query "select certi_num from category where cat_large='$user_program' and cat_middle ='0' and cat_small ='0'";
        
$ca_result mysql_query($ca_query);
        
$ca_row mysql_fetch_row($ca_result);
        
//echo($ca_query);

        
        //$up_query = "update member set Certi_num='$ca_array[certi_num]' where Mid='$user_id'";
        //$up_result = mysql_query($up_query);
    
}//<-- ¸¸±â Àû¿ë ³¡
    
else { 

        echo(
"<script>alert(\"Á¤Ç°ÀÎÁõÀÌ ºÒ°¡ÀΠ»óÅÂÀÔ´Ï´Ù.\")</script>");
    }
    
    
}else if(
$check_value == "END"){ 

        echo(
"<script>alert(\"Á¤Ç° ±¸¸ÅÀÚ°¡ ¾Æ´Ï°Å³ª \n\nÁ¤Ç°ÀÎÁõ±â°£ÀÌ Áö³­°æ¿ìÀÔ´Ï´Ù.\")</script>");
}
?>


<body topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0>
<TABLE height=18 cellSpacing=0 cellPadding=0 width=626 align=center border=0>
<TBODY>
 <TR>
    <TD width=7><IMG height=18 src="images/q&amp;a_td_1.gif" 
            width=7></TD>
    <TD vAlign=bottom width=623 
            background=images/q&amp;a_td_2.gif>&nbsp;<IMG height=9 
            src="images/bar1_2.gif" width=5>&nbsp;<FONT 
            color=#ffffff><?=$page_title?></FONT>
    </TD>
    </TR>
</TBODY>
</TABLE>
<BR>
            
            <!--¸ÞÀθ®½ºÆ®ºÎºÐ-->
            <table border="1" cellpadding="2" cellspacing="0" bordercolordark="white" bordercolorlight="gray" width="626" height="20" align="center"  bordercolordark="white" bordercolor="gray">
                <tr>
                    <td align="center" height="15%" bgcolor="#D1D5D8" bordercolorlight="gray"><font color="#173771"><b>&nbsp;&nbsp;<?=$page_title?></b></font></td>
                </tr>
            </table><BR>
            
                <table border="0" cellpadding="0" cellspacing="0" width="626" align="center">
                    <tr>
                        <td align="left" valign="top">
                            <table border="0" cellpadding="0" cellspacing="0" bordercolordark="white" bordercolor="gray" align = "center" width="520">            
                                <tr>
                                    <td width = "260" align="center">
                                    <table border=0 width='130'% height=100% cellpadding=0 cellspacing=0>
    <tr>
        <td align=center>
        <table width=550 border=0 cellpadding=0 cellspacing=0>
            
            <tr>
                <td>
                

                <table width='550' border="0" cellspacing="1" cellpadding="2" align="center" bgcolor="#D1D1D1">
                    
                    <tr height="30" bgcolor="#FFFFFF">
                        <td width="530" colspan='4' height='50' ><BR>
                        ¡Ø °í°´´Ô²²¼­ ±¸¸ÅÇϽŠÁ¦Ç°¿¡ ´ëÇÑ <FONT COLOR="RED">[Á¤Ç°ÀÎÁõ¹øÈ£]</FONT>ÀÔ´Ï´Ù.<BR> 
                        ¡Ø Á¤Ç°ÀÎÁõ¹øÈ£´Â ±¸¸ÅÈÄ 6°³¿ù±îÁö, ¾÷±×·¹À̵堽Åû½Ã 1°³¿ùµ¿¾È È®ÀÎÀÌ °¡´ÉÇÕ´Ï´Ù.<BR>
                        <BR>
                    </td></tr>
                    <tr height="30" bgcolor="#ECECEC">
                        <td width="150" align='center'><font color="#173771"><b> ±¸¸ÅÁ¦Ç° :</b></font></td>
                        <td width='200' style='padding-left:30'><?=$w_row[cat_name]?>
                        <td width="150" align='center'><font color="#173771"><b> ÀÎÁõ¹øÈ£ :</b></font></td>
                        <td width='200' style='padding-left:30'><?=$ca_row[0]?>
                        </td>
                        
                    </tr>
                </table>


                </td>
            </tr>
            <tr>
                <td><hr></td>
            </tr>
            
        </table>
        </td>
    </tr>
</table>

                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <!--  -->
    

        
<?require "./main_file/footer.html"?>