/home/mjc1/public_html/m_board2/w_edit.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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<?
/*
Á¦Ç° Á¤º¸ Ãâ·Â ÆäÀÌÁö

*/
$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 . "/m_board2/m_board2_class.php");
$m_board2_class = new m_board2_class();
$query "select * from $table_name  where id ='$user_id' order by fid desc,thread asc";
$result mysql_query($query);


if(
$user_id){
    
$m_row $m_board2_class -> search_data("member","Mid",$user_id);
    
$tel explode("-",$m_row[Mtel1]);
    
$hp explode("-",$m_row[Mhp]);
    
}


?>

<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 cellpadding="0" cellspacing="1" width="630" align="center">
            <tr>
            <td align="center" valign="top">
                <table border cellpadding="2" cellspacing="0" bordercolordark="white" bordercolorlight="gray" width="630" height="20" align="center">
                    <tr>
                        <td align="center" height="15%" width="8%" bgcolor="#D1D5D8" bordercolorlight="gray"><font color="#173771"><b>¹ø È£</b></font></td>
                        <td align="center" width="60%" bgcolor="#D1D5D8" bordercolorlight="gray"><font color="#173771"><b>Á¦ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;¸ñ</b></font></td>
                        <td align="center" width="15%" bgcolor="#D1D5D8" bordercolorlight="gray"><font color="#173771"><b>±Û¾´ÀÌ</b></font></td>
                        <td align="center" width="15%" bgcolor="#D1D5D8"><font color="#173771"><b>µî·ÏÀÏ</b></font></td>
                    </tr>
                </table>
            </td>
            </tr>
</table>
<?
$time_limit 
60*60*24*$new_article;
while(
$row mysql_fetch_array($result,MYSQL_ASSOC)){

    
$space strlen($row[thread]) -1;
    if(
$space $reply_indent){$space $reply_indent;}
    
$indent "";
    for(
$j=0;$j $space;$j++){
    
$indent $indent."&nbsp;&nbsp;&nbsp;";
    }

    
$date_diff time() - $row[reg_date];
    if(
$date_diff $time_limit){
        if(!
strcmp($row[thread],"A")){
            
$font_color "red";
        }else {
            
$font_color "#000000";
        }
    }


    if(!
strcmp($row[thread],"A")){
    
$thread_img " ";
    }else {
    
$thread_img "<img src='images/re.gif' border='0'>";
    }


$reg_date date("Y-m-d",$row[reg_date]);
    echo(
"
    <TABLE cellSpacing=0 cellPadding=0 width=630 align=center border=0>
     <TR bgColor=white>
      <TD align=middle width='9%' height=27>
$row[uid]</TD>
      <TD align=left width='60%'>
      
$indent &nbsp; $thread_img &nbsp;
      <A href='w_edit.php?mode=view&uid=
$row[uid]'>
      
$row[subject]</A></TD>
      <TD align=middle width='15%'><FONT  color='#9098c9'>
$row[name]</FONT></TD>
      <TD align=middle width='15%'>
$reg_date</TD></TR>
      <TR>
      <TD background=images/bg_tb.gif colSpan=4 height=1></TD>
     </TR>
    </table>
"
);
}
?>
<BR><BR>
<TABLE cellSpacing=0 cellPadding=0 border=0>
        <TBODY>
        <TR height=18>
          <TD width=15></TD>
          <TD><FONT color=#808080><IMG height=6 
            src="images/icon_menber.gif" width=8> Á¦Ç°ÀÇ °³¼±Á¡À̳ª ¼öÁ¤»çÇ×À» ÀÚ¼¼È÷ 
            Àû¾îÁÖ¼¼¿ä.&nbsp; </FONT></TD></TR>
        <TR height=18>
          <TD width=15></TD>
          <TD><IMG height=6 src="images/icon_menber.gif" 
            width=8><FONT color=red>&nbsp;´äº¯Àº 1~2Àϳ» ÇöÀç ÆäÀÌÁö¿¡¼­ º¼ ¼ö 
        ÀÖ½À´Ï´Ù.</FONT></TD></TR>
        <TR>
          <TD colSpan=2 height=5></TD></TR></TBODY></TABLE>
<BR><!--¸ÞÀθ®½ºÆ®ºÎºÐ-->
     <FORM name='<?=$table_name?>' action='./m_board2/m_board_save.php?mode=insert' method=post>
      <INPUT type='hidden' value='<?=$table_name?>' name='table_name'> 
        <INPUT type='hidden' value='<?=$next_url?>' name='next_url'>
        <INPUT type='hidden' value='<?=$user_name?>' name='name'>
        <INPUT type='hidden' value='<?=$user_id?>' name='user_id'>
      <TABLE height=20 cellSpacing=0 borderColorDark=white cellPadding=2 
      width=630 align=center borderColorLight=gray border=1>
        <TBODY>
        <TR>
          <TD borderColorLight=gray bgColor=#d1d5d8 
            height=20>&nbsp;&nbsp;<FONT color=#173771><B>Á¦Ç° °³¼±(¹®¼­ÀÛ¼º)</B></FONT>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            [<IMG height=8 src="images/v_icon.gif" width=8>]´Â ÇʼöÀԷ Ç׸ñÀÔ´Ï´Ù. 
          </TD></TR>
          </TBODY>
          </TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width=630 align=center border=0>
        <TBODY>
        <TR>
          <TD align=middle bgColor=#e9e9e9 colSpan=2><BR>
            <TABLE cellSpacing=0 cellPadding=3 width=550>
              <TBODY>
              <TR>
                <TD align=right width=110 height=30><IMG height=8 
                  src="images/v_icon.gif" width=8>&nbsp;<FONT 
                  color=#173771><B>Á¦&nbsp;&nbsp;&nbsp;¸ñ</B></FONT> &nbsp;:</TD>
                <TD><INPUT maxLength=50 size=47 name=subject> </TD></TR>
              <TR><TR>
                <TD align=right width=110 height=30><IMG height=8 
                  src="images/v_icon.gif" width=8>&nbsp;<FONT 
                  color=#173771><B>»ó&nbsp;&nbsp;&nbsp;È£</B></FONT> &nbsp;:</TD>
                <TD><INPUT maxLength=50 size=47 name=company value='<?=$m_row[Mcompany]?>'> </TD></TR>
              <TR>
                <TD align=right width=110 height=30><IMG height=8 
                  src="images/v_icon.gif" width=8>&nbsp;<FONT 
                  color=#173771><B>¼º&nbsp;&nbsp;&nbsp;¸í</B></FONT> &nbsp;:</TD>
                <TD><INPUT maxLength=50 size=47 value='<?=$m_row[Mname]?>' name=name> </TD></TR>
              <TR><TR>
                <TD align=right width=110 height=30><IMG height=8 
                  src="images/v_icon.gif" width=8>&nbsp;<FONT 
                  color=#173771><B>ÀÌ&nbsp;¸Þ&nbsp;ÀÏ</B></FONT> &nbsp;:</TD>
                <TD><INPUT maxLength=50 size=47 value='<?=$m_row[Memail]?>' name=email> </TD></TR>
              <TR>
                <TD align=right width=110 height=30><IMG height=8 
                  src="images/v_icon.gif" width=8>&nbsp;<FONT 
                  color=#173771><B>¿¬¶ôó</B></FONT> &nbsp;:</TD>
                <TD>
                <INPUT maxLength=4 size=4 value='<?=$tel[0]?>' name=tel1>&nbsp;-&nbsp;
                  <INPUT maxLength=4 size=4 value='<?=$tel[1]?>' name=tel2>&nbsp;-&nbsp;
                  <INPUT maxLength=4 size=4 value='<?=$tel[2]?>' name=tel3>

                </TD></TR><TR>
                <TD align=right width=110 height=30><IMG height=8 
                  src="images/v_icon.gif" width=8>&nbsp;<FONT 
                  color=#173771><B>ÇÚµåÆù</B></FONT> &nbsp;:</TD>
                <TD>
                  <INPUT maxLength=4 size=4 value='<?=$hp[0]?>' name=hp1>&nbsp;-&nbsp;
                  <INPUT maxLength=4 size=4 value='<?=$hp[1]?>' name=hp2>&nbsp;-&nbsp;
                  <INPUT maxLength=4 size=4 value='<?=$hp[2]?>' name=hp3>
                </TD></TR>
              
              </TBODY>
              </TABLE>
            <TABLE cellSpacing=0 cellPadding=0 width=550>
              <TBODY>
              <TR>
                <TD align=middle colSpan=2 height=180><TEXTAREA style="HEIGHT: 95%" name='content' cols=80></TEXTAREA> 
                </TD></TR>
              <TR>
                <TD align=right colSpan=2><INPUT  
                  Onclick="m_board_form('<?=$table_name?>');return false" type=image 
                  height=19 width=69 src="images/save_icon.gif" 
                  name=submit1>&nbsp;&nbsp;&nbsp; <INPUT id=reset1 
                  onclick="<?=$table_name?>.reset();return false;" type=image height=19 
                  width=69 src="images/cancel_icon.gif" name=reset1> 
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  <BR></TD></TR>
                  </TBODY>
                  </TABLE>
                  </TD>
                  </TR>
                  </TBODY>
                  </TABLE>
                  </FORM><!--¸ÞÀθ®½ºÆ®³¡--></TD>
<?require "./main_file/footer.html"?>