상품복사에서 form 태그 추가

This commit is contained in:
chicpro
2013-05-13 18:04:01 +09:00
parent 7e1c0f90e9
commit 3bee8746a1

View File

@ -8,6 +8,7 @@ $g4['title'] = '상품 복사';
include_once(G4_PATH.'/head.sub.php');
?>
<form name="fitemcopy">
<div class="cbox">
<h1>상품 복사</h1>
@ -15,7 +16,7 @@ include_once(G4_PATH.'/head.sub.php');
<tbody>
<tr>
<th scope="row"><label for="new_it_id">상품코드</label></th>
<td><input type="text" value="<?php echo time(); ?>" id="new_it_id" class="frm_input"></td>
<td><input type="text" name="new_it_id" value="<?php echo time(); ?>" id="new_it_id" class="frm_input"></td>
</tr>
</tbody>
</table>
@ -29,12 +30,14 @@ include_once(G4_PATH.'/head.sub.php');
</form>
<script>
// <![CDATA[
function _copy(link)
{
var new_it_id = document.getElementById('new_it_id').value;
opener.parent.location.href = encodeURI(link+'&amp;new_it_id='+new_it_id);
opener.parent.location.href = encodeURI(link+'&new_it_id='+new_it_id);
self.close();
}
// ]]>
</script>
<?php