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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
|
<?php $dir = "."; include_once($dir."/_common.php"); if($code!=''){ $sql = "select * from shop_skin a where 1=1 and idx = '{$code}'"; $res = mysql_query($sql,$connect_j3); $cinfo = mysql_fetch_array($res); $modepos = $cinfo['pos']; } else { $cinfo['faq_seq'] = 0; }
$sql = "select idx, ev_type, ev_subject from shop_event where ev_use = '1' order by idx desc"; $res = mysql_query($sql,$connect_j3); while($info = mysql_fetch_array($res)){ $ev_array[] = $info; }
$sql = "select ev_type from shop_event where ev_use = '1' group by ev_type "; $res = mysql_query($sql,$connect_j3); while($info = mysql_fetch_array($res)){ $et_array[] = $info; }
$sql = "select ev_type from shop_event where ev_use = '1' group by ev_type "; $res = mysql_query($sql,$connect_j3); while($info = mysql_fetch_array($res)){ $et_array[] = $info; }
$sql = "select * from product_category_s where pc_use = '1' order by code2 "; $res = mysql_query($sql,$connect_j3); while($info = mysql_fetch_array($res)){ $ct_array[] = $info; } ?> <style> .cust_modal1, .cust_modal2 { border:0px solid #e1e1e1; width:1000px; padding:10px; font-size:13px } .cust_modal1 h4, .cust_modal2 h4 { position:relative; top:-5px; font-size:14px; font-weight:bold; } .cust_modal2 { margin-top:0px; } .table-top-border tbody { border-top:1px solid #e1e1e1;} .cust_modal1 table tbody td, .cust_modal2 table tbody td { text-align:left; padding-left:5px; } .cust_modal1 table tbody td input, .cust_modal2 table tbody td input{ border:1px solid #e9e9e9; } .input_readonly {background:#E9E9E9; } .width_500 { width:500px !important; } .width_80 { width:80px !important; } .width_120 { width:120px !important; } </style> <form name='skin_reg_form' method='post' action='' enctype="multipart/form-data"> <input type='hidden' name='qstr' value=''> <input type='hidden' name='code' value='<?php echo $cinfo['idx'];?>'> <input type='hidden' name='pos' value='<?php echo $modepos;?>'>
<div class='cust_modal1'> <h4>기본정보</h4> <table class="order-sheet table-top-border"> <caption class="screen_out">기본정보</caption> <colgroup> <col style="width:150px;"><col style="width:850px;"> </colgroup>
<tbody> <tr> <th>스킨 idx</th> <td colspan=3><?php echo $code;?></td> </tr> <tr> <th>스킨 위치</th> <td colspan=3> <select name='sk_pos' id='sk_pos' class='width_200'> <?php if($modepos=='mobile'){ foreach($sk_pos_arraym as $key=>$val){ if($cinfo['sk_pos']==$key){ $std = "selected"; } else { $std = ""; } echo " <option value='{$key}' {$std}>{$val} ({$key})</option>"; } foreach($sk_pos_arraym2 as $key=>$val){ if($cinfo['sk_pos']==$key){ $std = "selected"; } else { $std = ""; } echo " <option value='{$key}' {$std}>{$val} ({$key})</option>"; } } else { foreach($sk_pos_array as $key=>$val){ if($cinfo['sk_pos']==$key){ $std = "selected"; } else { $std = ""; } echo " <option value='{$key}' {$std}>{$val} ({$key})</option>"; } foreach($sk_pos_array2 as $key=>$val){ if($cinfo['sk_pos']==$key){ $std = "selected"; } else { $std = ""; } echo " <option value='{$key}' {$std}>{$val} ({$key})</option>"; } } ?> </select> </td> </tr> <tr> <th>스킨종류</th> <td colspan=3> <select name='sk_type' id='sk_type' class='width_200'>
</select> </td> </tr> <tr class='ev_code_class screen_out'> <th>이벤트 선택</th> <td colspan=3 style='padding:5px;'> <select name='sk_ev_code' class='width_200'> <option value=''>--이벤트선택--</option> <?php foreach($ev_array as $key=>$val){ if($val['idx']==$cinfo['sk_ev_code']){ $std = "selected"; } else { $std = ""; } echo " <option value='{$val['idx']}' {$std}>{$val['ev_subject']}</option>"; } ?> </select> </td> </tr>
<tr class='p_type_class screen_out'> <th>상품표시 추가 설정</th> <td colspan=3 style='padding:5px;'> 라인당 상품수 : <input type='text' name='sk_line_cnt' class='width_60' value='<?php echo $cinfo['sk_line_cnt'];?>'> 세로 라인수 : <input type='text' name='sk_max_cnt' class='width_60' value='<?php echo $cinfo['sk_max_cnt'];?>'> 박스 width : <input type='text' name='sk_box_width' class='width_60' value='<?php echo $cinfo['sk_box_width'];?>'> 이미지 width : <input type='text' name='sk_img_width' class='width_60' value='<?php echo $cinfo['sk_img_width'];?>'> 이미지 height : <input type='text' name='sk_img_height' class='width_60' value='<?php echo $cinfo['sk_img_height'];?>'> </td> </tr> <tr class='ev_type_class screen_out'> <th>이벤트 분류 설정</th> <td colspan=3 style='padding:5px;'> <select name='sk_ev_type' style='width:150px;'> <option value=''>--분류선택--</option> <?php foreach($et_array as $key=>$val){ if($val['ev_type']==$cinfo['sk_bn_pos']){ $std = "selected"; } else { $std = ""; } echo " <option value='{$val['ev_type']}' {$std}>{$val['ev_type']}</option>"; } ?> </select> </td> </tr> <tr class='bn_pos_class screen_out'> <th>배너 위치 설정</th> <td colspan=3 style='padding:5px;'> <select name='sk_bn_pos' style='width:150px;'> <option value=''>--위치선택--</option> <?php foreach($bn_pos_array as $key=>$val){ if($val==$cinfo['sk_bn_pos']){ $std = "selected"; } else { $std = ""; } echo " <option value='{$val}' {$std}>{$val}</option>"; } ?> </select> </td> </tr> <tr class='cate_pos_class screen_out'> <th>분류 선택</th> <td colspan=3 style='padding:5px;'> <select name='sk_ct_pos' style='width:150px;'> <option value=''>--분류선택--</option> <?php foreach($ct_array as $key=>$val){ $code2 = $val['code2']; $name = str_repeat(" ", $val['lv']).$val['name']; if($code2==$cinfo['sk_bn_pos']){ $std = "selected"; } else { $std = ""; } echo " <option value='{$code2}' {$std}>{$name}</option>"; } ?> </select> </td> </tr> <tr> <th>스킨명</th> <td colspan=3 style='padding:5px;'> <input type='text' name='sk_name' class='width_300' value='<?php echo $cinfo['sk_name'];?>'> </td> </tr> <tr> <th>스킨타이틀</th> <td colspan=3 style='padding:5px;line-height:20px;'> <input type='text' name='sk_title' class='width_200' value='<?php echo $cinfo['sk_title'];?>'><br><span class='help_info'>해당 스킨에 타이틀을 입력한다. 공백이면 기본 타이틀 처리. 스킨에 따라 표시 안될수도 있습니다. <br>상품유형의 경우 상품유형명은 기본으로 들어가고 뒷단의 타이틀을 표시합니다.</span> </td> </tr> <tr> <th>스킨설명</th> <td colspan=3 style='padding:5px;line-height:20px;'> <input type='text' name='sk_desc' class='width_400' value='<?php echo $cinfo['sk_desc'];?>'><br><span class='help_info'>메인페이지 상품유형에서는 타이틀 하단설명글로 들어갑니다. 그 이외에는 모듈의 설명글로 모듈의 표시에 영향을 미치치않습니다.</span> </td> </tr> <tr> <th>스킨파일명</th> <td colspan=3 style='padding:5px;'> <input type='text' name='sk_filename' class='width_200' value='<?php echo $cinfo['sk_filename'];?>'> <?php if(strpos($cinfo['sk_filename'],"xmllnb")>0){ ?> <br><span class='help_info'>XML메뉴 등록은 환경설정-><a style='cursor:pointer' class='config_go_class'>기본환경설정</a> 하단 기타설정에서 lnb.xml파일을 등록 수정하는 항목이 있습니다. 그곳을 이용해서 수정하기기 바랍니다. <br>해당 xml은 xmllnb형태의 모듈만 적용되어서 동작합니다.</span> <?php } ?> </td> </tr> <tr> <th>스킨CSS</th> <td colspan=3 style='padding:5px;line-height:14px;'> <textarea name='sk_css' id='sk_css' style='width:100%;height:300px;'><?php echo stripslashes($cinfo['sk_css']);?></textarea> <span class='help_info'>CSS를 공백으로 넣으면 스킨모듈의 기본 CSS가 적용됩니다.</span><br> <span class='help_info'>모듈의 가장 바깥 section이나 div에 해당되는 클래스는 class_skin_idx_<?php echo $code;?> 입니다.</span><br> <span class='help_info'>배너모됼 사용시 해당 배너리스트늬 ul클래스는 banner_ul_배너위치(한글사용) 입니다.</span><br> <span class='help_info'>메인의 이벤트상품구성은 여기서 하지만 이벤트상품리스트 페이지의 상품갯수, 이미지크기등은 이벤트관리에서 수정하시면 됩니다.</span> </td> </tr> <?php if($cinfo['sk_filename']!=''){ $filename = "{$j3_skin_path}/{$cinfo['sk_pos']}/{$cinfo['sk_filename']}"; $handle = fopen($filename, "r"); $contents = fread($handle, filesize($filename)); fclose($handle);
$v = explode("} else { ?>",$contents); $vv = explode("<?php }?>",$v[1]); ?> <tr> <th class='file_def_css'>파일기본CSS</th> <td colspan=3 style='padding:5px;line-height:14px;display:none;'> <textarea name='sk_css_def' id='sk_css_def' style='width:100%;height:200px;'><?php echo $vv[0];?></textarea> <span class='help_info'>스킨파일에 기본적으로 저장된 CSS및 스크립트입니다. 상단에 초기설정으로 바꿀려면 여기 정보를 상단에 넣고 저장해주세요.</span><br> </td> </tr> <?php } ?> </table> </div> </form> <script> $(function(){ $("#sk_pos").change(function(){ sk_type_set(); }); sk_type_set();
$("#sk_type").change(function(){ sk_type_vh(); });
if("<?php echo substr($cinfo['sk_type'],0,4)?>"=="type"){ // 상품유형일 경우 해당설정 표시함 $(".p_type_class").removeClass("screen_out"); } if("<?php echo $cinfo['sk_type'];?>"=="banner"){ // 배너일경우 해당설정 표시함 $(".bn_pos_class").removeClass("screen_out"); }
$(".file_def_css").click(function(){ $obj = $(this).closest("tr").find("td").toggle(); }); });
function sk_type_vh($this){ $this = $("#sk_type option:selected"); if($this.val().substring(0,4)=='type'){ $(".ev_type_class").addClass("screen_out"); $(".p_type_class").removeClass("screen_out"); $(".bn_pos_class").addClass("screen_out"); $(".ev_code_class").addClass("screen_out"); $(".cate_pos_class").addClass("screen_out"); } else if($this.val()=='banner'){ $(".ev_type_class").addClass("screen_out"); $(".bn_pos_class").removeClass("screen_out"); $(".p_type_class").addClass("screen_out"); $(".ev_code_class").addClass("screen_out"); $(".cate_pos_class").addClass("screen_out"); } else if($this.val()=='evbanner'){ $(".ev_type_class").removeClass("screen_out"); $(".bn_pos_class").addClass("screen_out"); $(".p_type_class").addClass("screen_out"); $(".ev_code_class").addClass("screen_out"); $(".cate_pos_class").addClass("screen_out"); } else if($this.val()=='list' || $this.val()=='listtype' || $this.val()=='search'){ $(".ev_type_class").addClass("screen_out"); $(".p_type_class").removeClass("screen_out"); $(".bn_pos_class").addClass("screen_out"); $(".ev_code_class").addClass("screen_out"); $(".cate_pos_class").addClass("screen_out"); } else if($this.val()=='event' && $("#sk_pos option:selected").val()=='main'){ // 메인 이벤트만 사용 $(".ev_type_class").addClass("screen_out"); $(".bn_pos_class").addClass("screen_out"); $(".p_type_class").removeClass("screen_out"); $(".ev_code_class").removeClass("screen_out"); $(".cate_pos_class").addClass("screen_out"); } else if($this.val()=='cate' || $this.val()=='orderform2'){ $(".ev_type_class").addClass("screen_out"); $(".bn_pos_class").addClass("screen_out"); $(".p_type_class").removeClass("screen_out"); $(".ev_code_class").addClass("screen_out"); $(".cate_pos_class").removeClass("screen_out"); } else { $(".ev_type_class").addClass("screen_out"); $(".bn_pos_class").addClass("screen_out"); $(".p_type_class").addClass("screen_out"); $(".ev_code_class").addClass("screen_out"); $(".cate_pos_class").addClass("screen_out"); }
$(".config_go_class").click(function(){ parent.window.opener.location.href='config.php#xmllnb'; window.close(); }); } function sk_type_set(){ $pos = $("#sk_pos option:selected").val(); $.get("ajax.skin_type_get.php?sk_pos="+$pos+"&pos=<?php echo $modepos;?>&sk_type=<?php echo $cinfo['sk_type'];?>",function(rtn){ $("#sk_type option").remove(); $("#sk_type").html(rtn); sk_type_vh(); }) }
</script>
|