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
|
<? @session_start();
//include("category/common.php"); //include("memberManage.php"); include("./include/admin_include_header.php"); ?>
<script> function FrmCh(){
if( faqFrm.SelcategoryCode1.value == 'all'){ alert("ºÐ·ù¸¦ ¼±ÅÃÇϼ¼¿ä"); faqFrm.SelcategoryCode.focus(); return; } if( faqFrm.SelcategoryCode2.value == 'all'){ alert("ºÐ·ù¸¦ ¼±ÅÃÇϼ¼¿ä"); faqFrm.SelcategoryCode.focus(); return; } if( faqFrm.subject.value == ''){ alert("±ÛÁ¦¸ñÀ» ÀÔ·ÂÇϼ¼¿ä"); faqFrm.subject.focus(); return; } if( faqFrm.content.value == ''){ alert("±Û³»¿ëÀ» ÀÔ·ÂÇϼ¼¿ä"); faqFrm.content.focus(); return; } if( confirm("À§ ³»¿ëÀ¸·Î ÀÔ·ÂÇϽðڽÀ´Ï±î?") ){ document.getElementById("faqFrm").target="hidden_frame_mijin"; faqFrm.submit(); } } </script>
<form name="faqFrm" id="faqFrm" method="post" action="faqBoardProcess.php" enctype='multipart/form-data'> <input type=hidden name='mode' value='insert'> <div class="container"> <div class="border_contents"> <div class="editSection"> <h3>FAQ ±Û¾²±â</h3> <div class="editWarp"> <table class="editTable"> <colgroup> <col style="width:200px;"><col><col style="width:110px;"><col> </colgroup> <tr> <th>ºÐ·ù</th> <td> <!-- ´ëºÐ·ù --> <select name='SelcategoryCode1'> <? $qry = " select code,name from faq_cate1 order by uid "; $cateResult = mysql_query($qry); if($categoryCode == "" || $categoryCode == "all" ) echo "<option value='all'>¼±ÅÃ</option>"; while( $cateRow = mysql_fetch_array($cateResult) ){ ?> <option value='<?=$cateRow['code'];?>' <? if($cateRow['code'] == $row['cate1'] ){ echo "selected"; } ?> ><?=$cateRow['name'];?></option>"; <? } ?> </select>
<!-- Áߺзù --> <select name='SelcategoryCode2'> <? $qry = " select code,name from faq_cate2 where fave = 1 order by uid "; $cateResult = mysql_query($qry);
if($categoryCode == "" || $categoryCode == "all" ) echo "<option value='all'>¼±ÅÃ</option>"; while( $cate2Row = mysql_fetch_array($cateResult) ){ ?> <option value='<?=$cate2Row['code'];?>' <? if($cate2Row['code'] == $row['cate2'] ){ echo "selected"; } ?> ><?=$cate2Row['name'];?></option>"; <? } ?> </select> </td> <th>±Û¼ø¼</th> <td><INPUT TYPE="text" NAME="gongcount" size='5'></td> </tr> <tr> <th>ÀÛ¼ºÀÚ</th> <td><INPUT TYPE="text" NAME="name" size='20' value='°ü¸®ÀÚ'></td> <th>Á¶È¸¼ö</th> <td><INPUT TYPE="text" NAME="hit_value" size='5'></td> </tr> <tr> <th>Á¦¸ñ</th> <td colspan="3"><INPUT TYPE="text" NAME="subject" size='50' value=''></td> </tr> <tr> <th>÷ºÎÆÄÀÏ</th> <td colspan="3"><INPUT TYPE="FILE" NAME="add_file" size='50'></td> </tr> <tr> <th class="last">³»¿ë<br />(ű׻ç¿ë <span class="red">°¡´É</span>)</th> <td class="last" colspan="3"><textarea NAME="content" ROWS="23" COLS="80"></textarea></td> </tr> </table><!--//editTable--> </div><!-- //editWarp -->
<div class="btn2Warp"> <input type="button" value="ÀúÀå" Onclick="javascript:FrmCh();"><input type="button" value="¸ñ·Ïº¸±â" Onclick="javascript:history.back(-1);" class="ml10"><!--input type="reset" value="Ãë¼Ò" class="ml10"--> </div><!-- //btn2Warp -->
</div><!-- //editSection --> </div><!-- //border_contents --> </div><!-- //container --> </form> <iframe id='hidden_frame_mijin' name='hidden_frame_mijin' style="display:none;"></iframe>
|