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
|
<?php $sub_menu = '200100'; include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
vender_auth_check("itemcopy");
$g5['title'] = '상품 복사'; include_once(G5_PATH.'/head.sub.php'); ?>
<div class="new_win"> <h1>상품 복사</h1> <form name="fitemcopy">
<div id="sit_copy"> <label for="new_it_id">상품코드</label> <input type="text" name="new_it_id" value="<?php echo time(); ?>" id="new_it_id" class="frm_input" maxlength="20"> </div>
<div class="btn_confirm01 btn_confirm"> <input type="button" value="복사하기" class="btn_submit" onclick="_copy('itemcopyupdate.php?it_id=<?php echo $it_id; ?>&ca_id=<?php echo $ca_id; ?>');"> <button type="button" onclick="self.close();">창닫기</button> </div>
</form> </div>
<script> // <![CDATA[ function _copy(link) { var new_it_id = document.getElementById('new_it_id').value; var t_it_id = new_it_id.replace(/[A-Za-z0-9\-_]/g, ""); if(t_it_id.length > 0) { alert("상품코드는 영문자, 숫자, -, _ 만 사용할 수 있습니다."); return false; } opener.parent.location.href = encodeURI(link+'&new_it_id='+new_it_id); self.close(); } // ]]> </script>
<?php include_once(G5_PATH.'/tail.sub.php'); ?>
|