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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
|
<? @session_start();
//include("category/common.php"); //include("memberManage.php"); include("./include/admin_include_header.php");
if($uid!=''){
$admin_info = admin_member_info(); if($admin_info['psn_auth']=='0' || substr($admin_info['psn_rwed'],0,1)=='0'){ echo "<script>alert('ÇØ´ç Á¢±Ù±ÇÇÑÀÌ ¾ø½À´Ï´Ù.');window.history.go(-1);</script>"; exit; }
auth_access_log("VIEW"); } else { $admin_info = admin_member_info(); if($admin_info['psn_auth']=='0' || substr($admin_info['psn_rwed'],1,1)=='0'){ echo "<script>alert('ÇØ´ç »ý¼º±ÇÇÑÀÌ ¾ø½À´Ï´Ù.');window.history.go(-1);</script>"; exit; } } $sel = " select * from mBoard_install_req where uid = '$uid'"; $result = mysql_query($sel); $row = mysql_fetch_array($result);
$mid = $row['id']; //ÀÛ¼ºÀÚ ¾ÆÀ̵ð
$telArr = explode("-",$row['tel'] ); $hphoneArr = explode("-",$row['hphone'] ); if( isset($re) && $re == "n" && $uid !== "" && $mode == "" ){
//ÀÛ¼ºÀÚ Á¤º¸¸¦ º¸±â À§ÇÑ Äõ¸® $selmember = " select * from member where Mid = '$mid'"; $resultmember = mysql_query($selmember); $rowmember = mysql_fetch_array($resultmember); $adminid = $_SESSION['ADMINID'];
$nameQry = " SELECT admin_name From admin WHERE admin_id = '$adminid' "; $nameResult = MYSQL_QUERY($nameQry); $nameRow = MYSQL_FETCH_ARRAY($nameResult);
$adminName = $nameRow['admin_name'];
$sql = "select * from admin where 1=1 and not (admin_team like '°³¹ß%' or admin_team = '') order by admin_name "; $res = mysql_query($sql); while($info = mysql_fetch_array($res)){ $admin_array[] = $info; }
?>
<script> function displayChange(p,p2){ if(confirm("ÀÌ Ç׸ñÀÇ »óŸ¦ ¹Ù²Ù½Ã°Ú½À´Ï±î?")){ end_Change.location.href = "install_reqBoardEnd.php?exCode=end_change&codevalue=" + p + "&uid="+ p2; }
}
function displayContract(p,p2){ $v = $("input[name='contract']"); if($v.is(":checked")){ $msg = "°è¾àµÊ »óÅ·Π¹Ù²Ù½Ã°Ú½À´Ï±î?"; $nck = false; $cval = "°è¾àµÊ"; } else { $msg = "ºñ°è¾à »óÅ·Π¹Ù²Ù½Ã°Ú½À´Ï±î?"; $nck = true; $cval = "ºñ°è¾à"; } if(confirm($msg)){ end_Change.location.href = "install_reqBoardEnd.php?exCode=contract_change&codevalue=" + $cval + "&uid="+ p2; } else { $v.prop("checked",$nck); } }
function save_edit(){ if($("select[name='smoption'] option:selected").val()==''){ alert('ó¸®ÀÚ¸¦ ¼±ÅÃÇØ¼ 󸮳»¿ëÀ» ÀúÀåÇϽñ⠹ٶø´Ï´Ù.'); return; } $("form[name='asReplyFrm']").submit(); } </script>
<iframe name='changeIframe' width='0' height='0'></iframe>
<form name=asReplyFrm method=post action='install_reqBoardEnd.php' enctype='multipart/form-data'> <input type='hidden' name='mode' value='update'> <input type='hidden' name='uid' value='<?php echo $uid;?>'> <div class="container"> <div class="border_contents"> <div class="editSection"> <h3>¼³Ä¡¿äû ±Ûº¸±â</h3> <INPUT TYPE="hidden" NAME="uid" value="<?=$uid;?>"> <div class="editWarp"> <table class="editTable"> <colgroup> <col style="width:110px;"><col><col style="width:110px;"><col> </colgroup> <tr> <th>±¸ºÐ</th> <td colspan=3> <select name="smemail" size="1"> <option value="±¸¸ÅÀü" <? if($row['smemail'] == "±¸¸ÅÀü"){ echo "selected"; } ;?> >±¸¸ÅÀü</option> <option value="±¸¸ÅÀÚ" <? if($row['smemail'] == "±¸¸ÅÀÚ"){ echo "selected"; } ;?> >±¸¸ÅÀÚ</option> <option value="±âŸ" <? if($row['smemail'] == "±âŸ"){ echo "selected"; } ;?> >±âŸ</option> </select> </td> </tr> <tr> <th>󸮻óȲ</th> <td colspan=3> <select name="end_view" size="1" value='<?=$end_view;?>' onChange="displayChange(this.value,'<?=$uid;?>');"> <option value=0 <? if($row['proResult'] == 0){ echo "selected"; } ;?> >¹ÌÈ®ÀÎ</option> <option value=1 <? if($row['proResult'] == 1){ echo "selected"; } ;?> >ó¸®Áß</option> <option value=2 <? if($row['proResult'] == 2){ echo "selected"; } ;?> >»ó´ã¿Ï·á</option> <option value=3 <? if($row['proResult'] == 3){ echo "selected"; } ;?> >󸮺Ұ¡</option> <option value=4 <? if($row['proResult'] == 4){ echo "selected"; } ;?> >¼³Ä¡&±³À°</option> <option value=5 <? if($row['proResult'] == 5){ echo "selected"; } ;?> >ºÎÀçÁß</option> <option value=6 <? if($row['proResult'] == 6){ echo "selected"; } ;?> >°í°´Ãë¼Ò</option> <option value=7 <? if($row['proResult'] == 7){ echo "selected"; } ;?> >ó¸®À̰ü</option> </select> </td> </tr> <tr> <th>°è¾à¿©ºÎ</th> <td colspan=3> <input type='checkbox' name='contract' value='°è¾àµÊ' onChange="displayContract(this,'<?=$uid;?>');" <?php if($row['contract']=='°è¾àµÊ'){ echo "checked"; }?>> °è¾àµÊ </td> </tr> <tr> <th>»óÈ£¸í</th> <td colspan="3"><?=$row['smname'];?></td> </tr> <tr> <th>´ã´çÀÚ¸í</th> <td colspan="3"><?=$row['telname'];?></td> </tr> <tr> <th>¿¬¶ôó</th> <td colspan="3"><?=$row['smtel'];?><?php if($row['s_contact']=='0' || $row['s_contact']=='2'){ echo " [¼ö½Å¼±ÅÃÇ׸ñ]"; }?></td> </tr> <?php if($row['smtitle']=='consult-pc' || $row['smtitle']=='consult-mobile'){?> <tr> <th>ÀüÈ</th> <td colspan="2"><?=$row['hptel'];?></td> <td><?php if($row['hp_chk'] == "1") { echo "ÀüÈ ¼ö½Å üũÇÔ"; }else if($row['massage_chk'] == "1"){ echo "¹®ÀÚ ¼ö½Å üũÇÔ"; } ?></td> </tr> <tr> <th>ÆÑ½º</th> <td colspan="2"><?=$row['faxtel'];?></td> <td><?php if($row['fax_chk'] == "1") { echo "ÆÑ½º ¼ö½Å üũÇÔ"; }?></td> </tr> <tr> <th>ÁÖ¼Ò(Áö¿ª)</th> <td colspan="3"><?=$row['address'];?></td> </tr> <?php }?> <?php if($row['smtitle']=='visit-pc' || $row['smtitle']=='visit-mobile'){?> <tr> <th>Á÷¿ø¼ö</th> <td colspan="3"><?=$row['faxtel'];?></td> </tr> <tr> <th>ÁÖ¼Ò(Áö¿ª)</th> <td colspan="3"><?=$row['address'];?></td> </tr> <?php } ?> <?php if($row['smtitle'] == "shopping-pc" || $row['smtitle'] == "shopping-mobile") { ?> <tr> <th>¼îÇθô»ó´ã</th> <td colspan="3">¼îÇθôµµÀÔ»ó´ã</td> </tr> <?php } ?> <tr> <th>À̸ÞÀÏ</th> <td colspan="2"><?=$row['s_email'];?><?php if($row['s_contact']=='1' || $row['s_contact']=='2'){ echo " [¼ö½Å¼±ÅÃÇ׸ñ]"; }?></td> <td><?php if($row['mail_chk'] == "1") { echo "°ßÀû¼ ¼ö½Å üũÇÔ"; }?></td> </tr> <tr> <th>¿äûÀϽÃ</th> <td colspan="3"><?=$row['contact_time'];?></td> </tr> <?php if($row['prog_select']!=''){?> <tr> <th>³ª¿¡°Ô ¸Â´Â<br>Á¦Ç°Ã£±â</th> <td colspan="3" style='width:600px;'><?=nl2br($row['prog_select']);?></td> </tr> <?php }?> <tr> <th>ó¸®ÀÚ</th> <td colspan="3"> <select name='smoption'> <option value=''>==¼±ÅÃ==</option> <option value='¹ÌÁöÁ¤' <?php if($row['smoption'] == '¹ÌÁöÁ¤'){ echo "selected"; }?>>¹ÌÁöÁ¤</option> <?php foreach($admin_array as $key=>$info){ ?> <option value='<?php echo $info['admin_name'];?>' <?php if($info['admin_name']==$row['smoption']){?>selected<?php }?>><?php echo $info['admin_name'];?><??> <?php } ?> </select> </td> </tr> <tr> <th>°í°´¿äû³»¿ë</th> <td colspan="3"> <?php if(strpos($row['inflow'], "ÇÏ´ÜÀ¯ÀÔ") !== false) { $row['smdetail'] = "µµÀÔ»ó´ãºÐ¾ß : ".$row['smtitle']; } ?> <textarea cols="76" rows="5" name='content' onclick="clear_text()" id="content"><?=$row['smdetail'];?></textarea> </td> </tr> <tr> <th>°ü¸®ÀÚ<br>󸮳»¿ë</th> <td colspan="3"><textarea cols="76" rows="5" name='content2' onclick="clear_text()" id="content2"><?=$row['dodetail'];?></textarea> </td> </tr> <tr> <th>󸮷α×</th> <td colspan="3"><pre style='margin:10px;'><?php echo $row['state_log'];?></pre></textarea> </td> </tr> <tr> <th>µî·Ï °æ·Î</th> <td colspan="3"><?php echo $row['come_from'];?></textarea> </td> </tr> </table> </div><!--//editWarp--> </div><!-- //editSection --> <div class="btn1Warp" style='width:200px;'> <input type="button" value="󸮳»¿ë ÀúÀå" Onclick="save_edit();"> <input type="button" value="¸ñ·Ïº¸±â" Onclick="javascript:document.location.href='install_reqBoard.php';"> </div><!-- //btn1Warp --> </div><!-- //border_contents --> </div><!-- //container --> </form> <iframe name='end_Change' width='0' height='0'></iframe>
<? } ?>
|