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
|
<?php $dir = "."; include_once($dir."/_common.php");
if($modepos=='etc'){ $spa = $sk_pos_array2; $sta = $sk_type_array2; } else { $spa = $sk_pos_array; $sta = $sk_type_array; }
if($code!=''){ $sql = "select * from shop_skin_show a where 1=1 and idx = '{$code}'"; $res = mysql_query($sql,$connect_j3); $cinfo = mysql_fetch_array($res); } else { $cinfo['sk_seq'] = 0; }
$sk_md_array = skin_module_list($sk_pos, $pos);
if($pos=='mobile'){ $j3_img_url = $j3_imgm_url; $is_mobile = 1; } else { $is_mobile = 0; } ?> <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='sk_pos' value='<?php echo $sk_pos;?>'> <input type='hidden' name='pos' value='<?php echo $pos;?>'>
<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>스킨 위치</th> <td colspan=3><?php echo $spa[$sk_pos]." (".$sk_pos.")";?></td> </tr> <tr> <th>스킨모듈 종류</th> <td colspan=3> <select name='sk_idx' id='sk_idx' class='width_200'> <?php foreach($sk_md_array as $key=>$val){ if($cinfo['sk_pos']==$val['idx']){ $std = "selected"; } else { $std = ""; } $v = explode(".",$val['sk_filename']); $file_dir = $v[0]; echo " <option value='{$val['idx']}' {$std} id='{$file_dir}'>{$val['sk_name']} ({$val['sk_type']})</option>"; } ?> </select> </td> </tr> <tr> <th>스킨 순서</th> <td colspan=3> <input type='text' name='sk_seq' class='width_60' value='<?php echo $cinfo['sk_seq'];?>'> </td> </tr> <tr> <th>샘플</th> <td colspan=3 class='sample_class'> <div style='width:830px;height:300px;overflow:scroll'> <iframe style='<?php if($is_mobile){?>width:380px;height:800px;<?php } else {?>width:1250px;height:800px;<?php }?>' id='sample_iframe'></iframe> </div> </td> </tr> </table> </div> </form> <script> $(function(){ $("#sk_idx").change(function(){ sk_sample(); }); sk_sample(); });
function sk_sample(){ $idx = $("#sk_idx option:selected"); $sample_idx = $idx.val(); $("#sample_iframe").attr("src","<?php if($is_mobile){ echo $j3_shopm_url; } else { echo $j3_shop_url; }?>/sample_view.php?pos=<?php echo $sk_pos;?>&is_mobile=<?php echo $is_mobile;?>&sample_idx="+$sample_idx); //$(".sample_class").html("<img src='<?php echo $j3_img_url;?>/"+$dir+"/sample' style='max-width:830px;' onerror='this.style.display=\"none\";';>"); } </script>
|