/home/mjc1/public_html/j3demo/adm/banner_reg.inc.php


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
<?php
$dir 
".";
include_once(
$dir."/_common.php");
if(
$code!=''){
    
$sql "select * from shop_banner a where 1=1 and idx = '{$code}'";
    
$res mysql_query($sql,$connect_j3);
    
$cinfo mysql_fetch_array($res);
} else {
    
$cinfo['bn_sdate'] = date("Y-m-d",time());
    
$cinfo['bn_edate'] = date("Y-m-d",time()+(60*60*24*365));
    
$cinfo['bn_seq'] = 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='banner_reg_form' method='post' action='ajax.banner_reg_process.php' enctype="multipart/form-data">
<input type='hidden' name='qstr' value=''>
<input type='hidden' name='code' value='<?php echo $cinfo['idx'];?>'>

<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>
                <input type='file' name='bn_file'>
<?php
    
if(file_exists("{$j3_data_path}/banner/banner_{$cinfo['idx']}")){
        echo 
"<img src='{$j3_data_url}/banner/banner_{$cinfo['idx']}' style='max-width:820px;'>";
    }
?>
            </td>
        </tr>
<?php if($app_id=='csfd2019' || $app_id=='ryunen'){ ?>
        <tr>
            <th>배너 탭 이미지</th>
            <td colspan=3>
                <input type='file' name='bn_file_tab'>
<?php
    
if(file_exists("{$j3_data_path}/banner/banner_tab_{$cinfo['idx']}")){
        echo 
"<img src='{$j3_data_url}/banner/banner_tab_{$cinfo['idx']}' style='max-width:150px;'>";
    }
?>
            <br><span class='help_info'>특정 쇼핑몰의 특정 배너에서만 동작합니다. 해당파일 등록한다고 무조건 표시되는것 아닙니다.</span>
            </td>
        </tr>
<?php
}
?>
        <tr>
            <th>배너 설명</th>
            <td colspan=3>
                <input type='text' name='bn_name' class='width_200' value='<?php echo $cinfo['bn_name'];?>'>
            </td>
        </tr>
        <tr>
            <th>배너링크</th>
            <td colspan=3 style='padding:5px;'>
                <input type='text' name='bn_link' class='width_500' value='<?php echo $cinfo['bn_link'];?>'>
                <span class='help_info'>가급적으로 http://로 시작하는 링크를 사용하시기 바랍니다.</span>
            </td>
        </tr>
        <tr>
            <th>이미지맵</th>
            <td colspan=3 style='padding:5px;line-height:normal;'>
                <textarea name='bn_map' style='width:100%;height:100px;'><?php echo stripslashes($cinfo['bn_map']);?></textarea>
                <span class='help_info'>area 부분만 등록하시기 바랍니다. <br>배너링크와 중복이 안되기때문이 이미지맵 등록시엔 배너링크를 삭제하셔야 합니다. 보통은 이미지맵이 있을경우 링크를 걸어도 무시됩니다.</span>
            </td>
        </tr>
        <tr>
            <th>출력위치</th>
            <td colspan=3 style='padding:5px;'>
                <select name='bn_pos'>
<?php
    
foreach($bn_pos_array as $key=>$val){
        if(
$cinfo['bn_pos']==$val){ $std "selected"; } else { $std ""; }
        echo 
"    <option value='{$val}{$std}>{$val}</option>";
    }
?>
                </select> <span class='help_info'>배너위치는 디자인 스킨과 일치할때 적용됩니다. 특정 스킨에서는 적용안될수도 있습니다.</span>
            </td>
        </tr>
        <tr>
            <th>새창여부</th>
            <td colspan=3 style='padding:5px;'>
                <select name='bn_target'>
                    <option value='_self' <?php if($cinfo['bn_target']=='_self'){?>selected<?php }?>>사용안함</option>
                    <option value='_blank' <?php if($cinfo['bn_target']=='_blank'){?>selected<?php }?>>사용함</option>
                </select>
            </td>
        </tr>
        <tr>
            <th>시작일시</th>
            <td colspan=3 style='padding:5px;'>
                <input type='text' name='bn_sdate' class='width_100' value='<?php echo $cinfo['bn_sdate'];?>' maxlength=10>
            </td>
        </tr>
        <tr>
            <th>종료일시</th>
            <td colspan=3 style='padding:5px;'>
                <input type='text' name='bn_edate' class='width_100' value='<?php echo $cinfo['bn_edate'];?>' maxlength=10>
            </td>
        </tr>
        <tr>
            <th>출력순서</th>
            <td colspan=3 style='padding:5px;'>
                <input type='text' name='bn_seq' class='width_60' value='<?php echo $cinfo['bn_seq'];?>' maxlength=10>
            </td>
        </tr>
    </table>
</div>
</form>
<script>

</script>