/home/mjc1/public_html/ware/detail.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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<?
@extract($_REQUEST);
/*
Á¦Ç° Á¤º¸ Ãâ·Â ÆäÀÌÁö

*/
$position "ÇÁ·Î±×·¥ ¼Ò°³";
$page_title "ÇÁ·Î±×·¥ ¼Ò°³";
//$sub_title = "Á¦Ç° ÀÚ¼¼È÷º¸±â";
$intro_img1 "button1_1.gif";

//require "../inc/config.php";


$rows "uid";
$sorts "asc";
$page_num ="20";
$page_block "10";

$q_query "select * from $ware_table where uid ='$uid'";
$q_result mysql_query($q_query);
$row mysql_fetch_array($q_result);
$outline stripslashes($row[w_outline]);
$special stripslashes($row[w_special]);
$etc_menu stripslashes($row[w_etc_menu]);
$ch_line 0;
$page_num_view =1;


$p_query "select * from company_list where com_large ='$row[w_large]'";
$p_result mysql_query($p_query);
$p_row mysql_fetch_array($p_result);
if(
$p_row[ch_pop] == "y"){echo("<script>company_list('$row[w_large]')</script>");}
?>
<!--Áß¾Ó¸ÞÀκκÐ579 -->
        <!--  -->
        <TABLE height=18 cellSpacing=0 cellPadding=0 width=630 align=center border=0>
        <TBODY>
        <TR>
          <TD width=7><IMG height=18 src="images/pro_td_1.gif" width=7></TD>
          <TD vAlign=bottom width=600  background=images/pro_td_2.gif>
          <IMG height=9 src="images/bar1_2.gif" width=5><FONT 
            color=#ffffff>ÇÁ·Î±×·¥¼Ò°³/´Ù¿î·Îµå</FONT>
          </TD>
        </TR>
        </TBODY>
        </TABLE><BR>

<?

echo("
<style type=\"text/css\">
input, textarea, select {border:1; border-style:solid; height:20; width='70'; border-color:#ADADAD; font-size:9pt;}
</style>
<TABLE cellSpacing=0 cellPadding=5 width=590 border=0 align='center'>
<TBODY>
<TR>
<TD colSpan=4>
    <TABLE cellSpacing=0 cellPadding=0 width='100%' border=0 align='center'>
    <TBODY>
    <TR>
    <TD align=left width='300'>
$row[w_title]</TD>
    <TD align=right width='250'>
        <table border='0' width='230'>
        <tr>
        <td width='1'>&nbsp;</td>
        <td width='180'>
"
);
    
//cat_down
    //$path = "./file";
    
$file "$path/$row[w_download]";
    
/*
    if(file_exists($file)){
        echo("<INPUT TYPE='button'  Onclick=\"down_file('w_file','$row[w_download]','$row[w_large]')\" style='cursor:hand;' value='´Ù¿î ¹Þ±â'>");
    }else { disabled
        */
        
echo("<INPUT TYPE='button'  Onclick=\"down_file('w_file','$row[w_download]','$row[w_large]')\" style='cursor:hand;' value='´Ù¿î ¹Þ±â'>");
    
//}
echo("
        </td><td width='70'>
    "
);
    
$path "./save_dir/doc";
    
$file "$path/$row[w_doc]";
    if(
file_exists($file)){
        echo(
"<INPUT TYPE='button'  Onclick=\"down_file('w_doc','$row[w_doc]')\" style='cursor:hand;' value='»ç¿ë¼³¸í¼­'>");
    }else {echo(
"<INPUT TYPE='button'  Onclick=\"down_file('w_doc','$row[w_doc]')\" style='cursor:hand;' value='»ç¿ë¼³¸í¼­' disabled>");}

echo(
"</td>");
if(
$p_row[ch_pop] == "y"){
echo(
"
        <td width='70'>        
        <INPUT TYPE='button'  Onclick=\"company_list('
$row[w_large]')\"style='cursor:hand;' value='Á¦Ç°»ç¿ëó'>
        </td>
        
"
);
}else{
    echo(
"
        <td width='70'>        
        &nbsp;
        </td>
        
"
);
}
echo(
"</tr>");
if(
$row[chart_link]){

    if(
$row[w_large] == "1"){
        
$v_name "õ³â°æ¿µ°ú Â÷ÀÌÁ¡";
    }else if(
$row[w_large] == "2"){
        
$v_name "õ³â°æ¿µPlus¿Í Â÷ÀÌÁ¡";
    }else if(
$row[w_large] == "4"){
        
$v_name "üũOK¿Í Â÷ÀÌÁ¡";
    }else if(
$row[w_large] == "7"){
        
$v_name "Ä«¸ÞÀÌÆ®¿Í Â÷ÀÌÁ¡";
    }else {
        
$v_name $row[chart_txt];
    
    }
    
$href $row[chart_link];
echo(
"
    <tr>
            <td width='70'>&nbsp;</td>
            <td width='70'><INPUT TYPE='button' value='Á¦Ç°°¡°Ý' Onclick=\"location.href='w_buy.php?uid=
$row[uid]';\" style='cursor:hand;width:70;'></td>
            <td width='120' colspan='2'><INPUT TYPE='button' value='
$v_name' Onclick=\"chart_pop('$href')\" style='width:145;cursor:hand'></td>
        </tr>    
"
);
}
else
    {

echo(
"
    <tr>
            <td width='70'>&nbsp;</td>
            <td width='70'><INPUT TYPE='button' value='Á¦Ç°°¡°Ý' Onclick=\"location.href='w_buy.php?uid=
$row[uid]';\" style='cursor:hand;width:70;'></td>
            <td width='120' colspan='2'></td>
        </tr>    
"
);


    }
echo(
"
        </table>    
    </TD>
    </TR>
    </TBODY>
    </TABLE>
</TD>
</TR>
 <TR>
<TD align=middle colSpan=4>
    <TABLE width='590' border='0' cellspacing='1' cellpadding='2' align='center' bgcolor='#FFFFFF'>
    <TR>
        <TD height='5'></TD>
    </TR><TR>
        <TD  height=''> 
$outline</TD>
    </TR>
    <TR>
        <TD height='5'></TD>
    </TR><TR>
        <TD height=''> 
$special</TD>
    </TR>
    <TR>
        <TD height='5'></TD>
    </TR><TR>
        <TD height=''> 
$etc_menu</TD>
    </TR>
    </TABLE>
     </TD>
</TR>
</TBODY>
</TABLE>
<BR>
<TABLE cellSpacing=0 cellPadding=0 width=590 border=0 align='center'>
<TR>
    <TD>
"
);    
$w_info "select * from ware_info where w_large = '$row[w_large]'";
$result_info mysql_query($w_info);
$w_row mysql_fetch_array($result_info,MYSQL_ASSOC);

$num_value explode("|",$w_row[w_s_img]);

    
$w_title explode("|",$w_row[w_title]);
    
$s_img explode("|",$w_row[w_s_img]);
    
$b_img explode("|",$w_row[w_b_img]);
    
$i_memo explode("|",$w_row[w_memo]);


    
$num sizeof($num_value) -1;


ECHO(
"
    <TABLE width='600'  border='0' cellspacing='0' cellpadding='0' align='center'>
"
);                

$ch_line =0;
for(
$i=0;$i<$num;$i++){ 
    
$ii $i +
    
$ch_line++;
    
$mode_line $ch_line  ;
    
$w_memo stripslashes($i_memo[$i]);
    
$w_memo nl2br($w_memo);
    
$b_img[$i] = "./save_dir/w_img/$b_img[$i]";
    if(
$mode_line == 1){
        echo(
"<tr>");
    }
    echo(
"
                
                    <TD width='600' align='center' bgcolor='#FFFFFF' valign='top'>
                    <TABLE  width='300'  cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'>
                    <TR>
                        <td width='150' align='center'> 
$w_title[$i]</td>
                        <td width='150' colspan='3' align='center'></td>
                    </tr>
                    <tr>
                        <td  width='150' valign='top'><img src='./save_dir/w_img/
$s_img[$i]' width='150' Onclick=\"showPicture('$b_img[$i]')\" style=cursor:hand></td>
                        <td width='10'></td>
                        <TD  width='130'bgcolor='#FFFFFF' valign='top'>
$w_memo</TD>
                        <td width='10'></td>
                    </TR><tr>
                        <td  height='20' colspan='4'></td>
                    </TR>
                    </TABLE>
                    </TD>
        "
);
    if(!
$mode_line){
        echo(
"
        </TR>
        "
);
        }
    
}
ECHO(
"
    </TABLE>
    <BR>
    </TD>
</TR>
</TABLE>
"
);

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