51 lines
1.2 KiB
PHP
51 lines
1.2 KiB
PHP
<?php
|
|
// 슈퍼관리자 권한 체크
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>상품등록</title>
|
|
|
|
<link rel="stylesheet" href="/css/common.css">
|
|
<link rel="stylesheet" href="/css/adm_style.css">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/vitmalina/w2ui@master/dist/w2ui.min.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="product-wrap">
|
|
|
|
<!-- 타이틀 -->
|
|
<div class="product-header">
|
|
상품등록
|
|
<span class="btn-close" onclick="window.close()">X</span>
|
|
</div>
|
|
|
|
<!-- 버튼 영역 -->
|
|
<div class="product-toolbar">
|
|
<button id="btnAdd">+</button>
|
|
<button id="btnRemove">-</button>
|
|
<button id="btnSave">저장</button>
|
|
</div>
|
|
|
|
<!-- Grid -->
|
|
<div id="productGrid" style="height:260px;"></div>
|
|
|
|
</div>
|
|
|
|
<script type="module">
|
|
import { createProductGrid, addProductRow, removeProductRow, saveProducts }
|
|
from '/js/adm_index.js'
|
|
|
|
const grid = createProductGrid('#productGrid')
|
|
|
|
document.getElementById('btnAdd').onclick = () => addProductRow()
|
|
document.getElementById('btnRemove').onclick = () => removeProductRow()
|
|
document.getElementById('btnSave').onclick = () => saveProducts()
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|