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
|
<?php include("./_common.php"); header("Content-type:text/html;charset=utf-8");
$sql = "set names utf8"; mysql_query($sql,$connect_web);
$table = "manualBoard";
$comp_name = array_utf8($comp_name);
if($code!=''){ $sql = "select a.*, b.name as cate1_name, c.name as cate2_name from {$table} a, manual_cate1 b, manual_cate2 c WHERE a.uid > 0 and a.cate1 = b.code and a.cate2 = c.code and a.uid = '{$code}' "; $res = mysql_query($sql,$connect_web); $cinfo = mysql_fetch_array($res); $cinfo['add_file_kr'] = iconv("utf-8","euckr",$cinfo['add_file']); }
$sql = "select * from manual_cate1 where 1=1"; $res = mysql_query($sql,$connect_web); while($info=mysql_fetch_array($res)){ $cate1_array[$info['code']] = $info['name']; }
$sql = "select * from manual_cate2 where 1=1"; $res = mysql_query($sql,$connect_web); $cate1_key_array = ""; $cate2_key_array = ""; $cate2_val_array = ""; while($info=mysql_fetch_array($res)){ $cate1_key_array .= substr($info['code'],0,2)."^"; $cate2_key_array .= $info['code']."^"; $cate2_val_array .= $info['name']."^"; $cate2_array[$info['code']] = $info['name']; } ?>
<form name='manual_reg_form' id='manual_reg_form' method='post' action='m_manual_process.php' enctype='multipart/form-data'> <input type='hidden' name='qstr' value='<?php echo $qstr;?>'> <input type='hidden' name='code' value='<?php echo $cinfo['uid'];?>'>
<div class='cust_modal1'> <h4>기본정보</h4> <table class="order-sheet table-top-border"> <caption class="screen_out">기본정보</caption> <colgroup> <col style="width:100px;"><col style="width:200px;"> <col style="width:100px;"><col style="width:200px;"> </colgroup>
<tbody> <tr> <th>분류</th> <td colspan=3> <select name='cate1' id='cate1'> <?php foreach($cate1_array as $key=>$val){ if($cinfo['cate1']==$key){ $selected = "selected"; } else { $selected = ""; } echo " <option value='{$key}' $selected>{$val}</option>"; } ?> </select> <select name='cate2' id='cate2' style='width:150px;'> <?php foreach($cate2_array as $key=>$val){ if($cinfo['cate2']==$key){ $selected = "selected"; } else { $selected = ""; } echo " <option value='{$key}' $selected>{$val}</option>"; } ?> </select> </td> </tr> <tr> <th>작성자</th> <td> <input type='text' name='name' class='width_200' value='<?php echo $cinfo['name'];?>'> </td> <th>조회수</th> <td colspan=3> <input type='text' name='hit' class='width_80' value='<?php echo $cinfo['hit'];?>'> </td> </tr> <tr> <th>화면명</th> <td> <input type='text' name='chapter' class='width_200' value='<?php echo $cinfo['chapter'];?>'> </td> <th>글순서</th> <td colspan=3> <input type='text' name='thread' class='width_80' value='<?php echo $cinfo['thread'];?>'> </td> </tr> <tr> <th>제목</th> <td colspan=3><input type='text' name='subject' id='subject' class='width_500' value='<?php echo $cinfo['subject'];?>'></td> </tr> <!--<tr> <th>첨부파일</th> <td colspan=3> <INPUT TYPE="file" NAME="add_file" class='width_100'> <?php $filedir = "../save_dir/manual/";?> <?php if(file_exists($filedir.$cinfo['add_file_kr']) && $cinfo['add_file']!=''){?> <a href='./m_filedown.php?filedir=<?php echo $filedir;?>&filename=<?php echo $cinfo['add_file']?>' target='_blank'><?php echo $cinfo['add_file'];?></a> <input type='checkbox' name='add_file_del' value='Y'> 삭제 <input type='hidden' name='add_file_del_name' value='<?php echo $cinfo['add_file'];?>'> <?php }?> </td> </tr>--> <tr> <th>내용<br />(태그사용 <span class="red">가능</span>)</th> <td colspan=3><TEXTAREA NAME="content" style='width:500px;height:300px;'><?php echo stripslashes($cinfo['content']);?></TEXTAREA></td> </tr>
</table> </div> </form> <script> $(function(){ $(".colorBox input").click(function(){ var val1 = $("#subject").val(); var val2 = val1+"<font color="+$(this).val()+"></font>"; $("#subject").val(val2); });
});
</script>
|