<?
$sub_menu = "400300";
include_once("./_common.php");

auth_check($auth[$sub_menu], "r");

$g4[title] = "상품 복사";
include_once(G4_PATH.'/head.sub.php');
?>

<link rel='stylesheet' href='./admin.style.css' type='text/css'>

<table cellpadding=8><tr><td>

<?=subtitle($g4['title']);?>
<table cellpadding=4 cellspacing=1>
<tr><td colspan=2 height=3 bgcolor=0E87F9></td></tr>
<tr>
    <td>상품코드</td>
    <td><input type="text" id="new_it_id" value='<?=time()?>'></td>
</tr>
</table>

<p>
<div align='center'>
<input type="button" value='복사하기' onclick="_copy('item_copy_update.php?it_id=<?=$it_id?>&ca_id=<?=$ca_id?>');">
&nbsp;
<input type="button" value='창닫기' onclick='self.close();'>
</div>
</form>

<script type='text/javascript'>
function _copy(link)
{
    var new_it_id = document.getElementById('new_it_id').value;
    opener.parent.location.href = encodeURI(link+'&new_it_id='+new_it_id);
    self.close();
}
</script>

<?
include_once(G4_PATH.'/tail.sub.php');
?>