/home/mjc1/public_html/upgrade/upgrade_info-.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
171
172
173
174
175
176
177
178
179
180
<?
/*
Á¦Ç° Á¤º¸ Ãâ·Â ÆäÀÌÁö

*/
$position "¾÷±×·¹À̵å";
$page_title "¾÷±×·¹À̵å";
$sub_title "Á¦Ç° ÀÚ¼¼È÷º¸±â";
$upgrade_menu "m_b_menber_on.gif";
require 
"./inc/config.php";
require 
"./main_file/header.html";

require_once(
$ADMIN_DIR "/upgrade/upgrade_class.php");
$certinum explode("_",$table_name);

$field = array("cat_large","cat_middle","cat_small");
$field_value = array($certinum[1],"0","0");
$certi_result $upgrade_class ->  select_info2("category",$field,$field_value,"Y","and");
$certi_row mysql_fetch_array($certi_result,MYSQL_ASSOC);


$query "select * from $table_name where uid ='$uid'";
$result mysql_query($query);
$row mysql_fetch_array($result);
$header_memo nl2br(stripslashes($row[header_memo]));
$up_method nl2br(stripslashes($row[up_method]));
$footer_memo nl2br(stripslashes($row[footer_memo]));
// up_info_date           | up_info_memo


$sort_date explode("|",$row[up_info_date]);
$up_info_date array_reverse($sort_date);

for(
$date=0;$date<sizeof($up_info_date);$date++){
        
$up_date[$date] = stripslashes($up_info_date[$date]); 
    }


$sort_memo explode("|",$row[up_info_memo]);
$up_info_memo array_reverse($sort_memo);    
    for(
$date=0;$date<sizeof($up_info_memo);$date++){
        
$up_memo[$date] = stripslashes($up_info_memo[$date]); 
    }
/*
$up_info_date = explode("|",$row[up_info_date]);

*/
if($row[add_file]){
    
$add_file "<A HREF='./inc/download.php?type=upgrade&s_type=file&filename=$row[add_file]'><img src='images/file.gif' border='0'>°ü·ÃÀÚ·á¹Þ±â</A>";
    } else {
$add_file "";}

if(
$row[move_file]){
    
$move_file "<A HREF='./inc/download.php?type=upgrade&s_type=move&filename=$row[move_file]'><img src='images/file.gif' border='0'>°ü·ÃÀÚ·á¹Þ±â</A>";
    } else {
$add_file "";}

if(
$row[w_photo]){
    
$photo_file "<A HREF='./inc/download.php?type=upgrade&s_type=photo&filename=$row[w_photo]'><img src='images/file.gif' border='0'>°ü·ÃÀÚ·á¹Þ±â</A>";
    } else {
$add_file "";}

$t_number $table_name.$row[uid];
if(!
eregi($t_number,$ref_number)){
    
$real_ref $my_ref +1;
    
$result mysql_query("update $table_name set hit =$real_ref where uid = $row[uid]");

}
session_register($ref_number);
$ref_number "$ref_number:$t_number";

?>
<TABLE height=18 cellSpacing=0 cellPadding=0 width=630 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 cellspacing="1" cellpadding="0" width="630" border="0" bgcolor="#9B9B9B" align="center">
    <tr><td>
    <table cellspacing="0" cellpadding="0" width="630" border="0" height="22" bgcolor="#E0E3E5" align="center">
        <tr>
        <td width="15%" align="center"><font color="#173771">&nbsp;¹øÈ£ : <b><?=$row[uid]?></b></font></td>
        <td align="center"><font color="#173771">Á¦¸ñ : <b><?=$row[subject]?></b></font></td>
        <td width="15%" align="center"><font color="#173771">Á¶È¸ : <b><?=$row[hit]?></b></font>&nbsp;&nbsp;</td>
        </tr>
    </table>
    </td></tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="630" bgcolor="#9B9B9B" align="center">
    <tr><td>
        <table cellspacing="1" cellpadding="10" border="0" width="630" align="center">
        <tr height="25">
        <td width="100%" align="center" bgcolor="#FFFFFF" colspan='2'><font color="#173771">&nbsp;<?=$header_memo?> &nbsp;</font></td>
        </tr>
        <?
        
if($row[move_file]){
        
?>
        <tr height="25">
        <td width="80" align="right" bgcolor="#ECEAEA"><font color="#173771">&nbsp;µ¿¿µ»ó &nbsp;</font></td>
        <td bgcolor="white">&nbsp;<?=$move_file?>
        <!-- ÇØ´ç µ¿¿µ»óÀÌ ¾ø½À´Ï´Ù. -->
        &nbsp;&nbsp;
        </td></tr>
        <?}?>
        
        <tr height="25">    
        <td width="80" align="right" bgcolor="#ECEAEA"><font color="#173771">¾÷±×·¹À̵å<br>ÆÄÀÏ &nbsp;</font></td>
        <td bgcolor="white">
        <!-- ¿ùÁ¤È¸¿ø¸¸ »ç¿ë °¡´ÉÇÕ´Ï´Ù. <br>°í°´Áö¿øºÎ Àü±¹ 1544-8680À¸·Î ¿¬¶ô¹Ù¶ø´Ï´Ù. -->
        &nbsp;&nbsp;<?=$add_file?>&nbsp;&nbsp;ÀÎÁõ¹øÈ£ : <INPUT TYPE="text" NAME="" size='12' value='<?=$certi_row[certi_num]?>' class='noline' readonly>
        </td>
        </tr>

        <?
        
if($row[w_photo]){
        
?>
        <tr height="25">    
        <td width="80" align="right" bgcolor="#ECEAEA"><font color="#173771">&nbsp;À̹ÌÁö &nbsp;</font></td>
        <td bgcolor="white">
        <!-- ÇØ´ç À̹ÌÁö°¡ ¾ø½À´Ï´Ù. -->&nbsp;&nbsp;<?=$photo_file?>
        </td>
        </tr>
        <?}?>

        <tr>
        <td width="80" align="right" bgcolor="#ECEAEA"><font color="#173771">¾÷±×·¹À̵å<BR>¹æ¹ý </font>&nbsp;</td>
        <td align="left" bgcolor="white">
            <?=$up_method?>
            <br>
        </td>
        </tr><tr>
        <td width="80" align="right" bgcolor="#ECEAEA"><font color="#173771">³»¿ë </font>&nbsp;</td>
        <td align="left" bgcolor="white">
        <TABLE width='500' border='0'>
        <tr>
        <td width='20%' style='padding-left:30'> ³»¿ë </td>
        <td width='80%'>ÀÏ ÀÚ</td>
        </tr>
        <?
            
for($i=1;$i<sizeof($up_info_date);$i++){
                
//$j = $i + 1;
                
$j $i;
                
                
$up_memo[$j] = nl2br($up_memo[$j]);
                echo(
"
                <tr><td colspan='2' height='1' bgcolor='#000000'></td></tr>
                <tr>
                    <td width='80%' style='padding-left:30'>
$up_memo[$j] </td>
                    <td width='20%' align='reft'>
$up_date[$j]</TD>
                </TR>
                "
);
            
            }
            
            
            
?>    
        </TABLE>
        
        
        </td>
        </tr><tr height="25">
        <td width="100%" align="center" bgcolor="#FFFFFF" colspan='2'><font color="#173771">&nbsp;<?=$footer_memo?> &nbsp;</font></td>
        </tr>
        </table>
    </td></tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="579">
     <tr>
         <td align="center" width="100%" height="30" bgcolor="#ffffff"><a href="upgrade.php?table_name=<?=$table_name?>"><img SRC="images/list.gif" border="0" WIDTH="54" HEIGHT="21"></a></td>
     </tr>
</table><br>

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