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
|
<?php include("./_common.php"); header("Content-type:text/html;charset=utf-8");
$sql = "set names utf8"; mysql_query($sql,$connect_web);
$state['상담중'] = '상담중'; $state['임대중'] = '임대중'; $state['임대완료'] = '임대완료'; $state['환불완료'] = '환불완료'; $state['취소'] = '취소'; $state['불가'] = '불가';
$sql = "select * from admin where admin_team <> '' order by admin_team"; $res = mysql_query($sql,$connect_web); while($info=mysql_fetch_array($res)){ $admin_array[] = $info; }
$table = "mBoard_dd_request";
$comp_name = array_utf8($comp_name);
if($code!=''){ $sql = "select * from {$table} a where uid = '{$code}' "; $res = mysql_query($sql,$connect_web); $cinfo = mysql_fetch_array($res); $cinfo['add_file_kr'] = iconv("utf-8","euckr",$cinfo['add_file']); } ?>
<form name='etc_reg_form' id='etc_reg_form' method='post' action='m_demo_request_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> <input type='text' name='dd_device' class='width_150' value='<?php echo $cinfo['dd_device'];?>'> </td> <th>보증금</th> <td><input type='text' name='dd_price' class='width_80' value='<?php echo $cinfo['dd_price'];?>'>원</td> </tr> <tr> <th>장비 대여가능기간</th> <td> <input type='text' name='dd_day' id='dd_day' class='width_80' value='<?php echo $cinfo['dd_day'];?>'> </td> <th>신청자 ID</th> <td> <input type='text' name='dd_mid' id='dd_mid' class='width_80' value='<?php echo $cinfo['dd_mid'];?>'> </td> </tr> <tr> <th>상호명</th> <td> <input type='text' name='dd_company' id='dd_company' class='width_150' value='<?php echo $cinfo['dd_company'];?>'> </td> <th>신청자명</th> <td> <input type='text' name='dd_name' id='dd_name' class='width_80' value='<?php echo $cinfo['dd_name'];?>'> </td> </tr> <tr> <th>연락처</th> <td> <input type='text' name='dd_tel' id='dd_tel' class='width_150' value='<?php echo $cinfo['dd_tel'];?>'> </td> <th>보증금반환게좌</th> <td> <input type='text' name='dd_bank' id='dd_bank' class='width_150' value='<?php echo $cinfo['dd_bank'];?>'> </td> </tr> <tr> <th>배송지주소</th> <td colspan=3> <input type='text' name='dd_zipcode' id='dd_zipcode' class='' value='<?php echo $cinfo['dd_zipcode'];?>' style='width:60px;'> <input type='text' name='dd_address' id='dd_address' class='' value='<?php echo $cinfo['dd_address'];?>' style='width:400px;'> </td> </tr> <tr> <th>관리자</th> <td> <select name='admin'> <option value=''>--관리자--</option> <?php foreach($admin_array as $key=>$val){ if($cinfo['admin']==$val['admin_name']){ $std = "selected"; } else { $std = ""; } echo " <option value='{$val['admin_name']}' {$std}>{$val['admin_name']}</option>"; } ?> </select> </td> <th>상태값</th> <td> <select name='state'> <option value=''>--상태값--</option> <?php foreach($state as $key=>$val){ if($cinfo['state']==$val){ $std = "selected"; } else { $std = ""; } echo " <option value='{$val}' {$std}>{$val}</option>"; } ?> </select> </td> </tr> <tr> <th>메모</th> <td colspan=3> <textarea name='memo' id='memo' style='width:500px;height:130px;'><?php echo $cinfo['memo'];?></textarea> </td> </tr> <tr> <th>장비이미지 등록</th> <td colspan=3> <?php for($i=1;$i<=10;$i++){ ?> <INPUT TYPE="file" NAME="add_file<?php echo $i;?>" class='width_100'> <?php $filedir = "../save_dir/m_board/file/";?> <?php if(file_exists($filedir.$cinfo['add_file_kr']) && $cinfo['add_file'.$i]!=''){?> <a href='./m_filedown.php?filedir=<?php echo $filedir;?>&filename=<?php echo $cinfo['add_file'.$i]?>' target='_blank'><?php echo $cinfo['add_file'.$i];?></a> <input type='checkbox' name='add_file_del<?php echo $i;?>' value='Y'> 삭제 <input type='hidden' name='add_file<?php echo $i;?>_del_name' value='<?php echo $cinfo['add_file'.$i];?>'> <?php }?> <br> <?php } ?> </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>
|