AppML 케이스 제품
源代码
HTML 源代码
<html>
<body>
<h1>제품</h1>
<div id="Form01"></div >
<div id="List01"></div><br>
<테이블 id="Template01" class="appmltable" style="width:100%;display:none">
<tr>
<th></th>
<th>제품 이름</th>
번째>카테고리</th>
<번째>공급업체</th>
</tr>
<tr id="appml_row">
<td style="cursor:pointer" onclick="productForm.run('Form01','Template02','#ProductID#')">
<img src="../style/images/appmlPlus.png"></td>
<td>#ProductName#</td>
<td>#CategoryName#</td>
< td>#SupplierName#</td>
</tr>
</table>
<div id="Template02" class="appmlform" style="width:100%;display:none"> ;
<label>ProductName:</label><input id="ProductName">
<label>공급업체:</label>
<select id="SupplierID" data-appmlapplication="모델/Dropdown_Suppliers">
</select>
<label>Category:</label>
<select id="CategoryID" data-appmlapplication="모델/Dropdown_Categories">
</select>
<label>단위:</label><input id="단위">
<label>가격:</label> ;<입력 id="가격">
</div>
<script src="appml.js"></script>
<script>
var products,productForm
products=new AppML("appml.php","모델/제품");
products.run("List01","Template01");
productForm=new AppML("appml.php","모델/제품");
productForm.displayType="form";
</script>
</body>
</html>
<body>
<h1>제품</h1>
<div id="Form01"></div >
<div id="List01"></div><br>
<테이블 id="Template01" class="appmltable" style="width:100%;display:none">
<tr>
<th></th>
<th>제품 이름</th>
번째>카테고리</th>
<번째>공급업체</th>
</tr>
<tr id="appml_row">
<td style="cursor:pointer" onclick="productForm.run('Form01','Template02','#ProductID#')">
<img src="../style/images/appmlPlus.png"></td>
<td>#ProductName#</td>
<td>#CategoryName#</td>
< td>#SupplierName#</td>
</tr>
</table>
<div id="Template02" class="appmlform" style="width:100%;display:none"> ;
<label>ProductName:</label><input id="ProductName">
<label>공급업체:</label>
<select id="SupplierID" data-appmlapplication="모델/Dropdown_Suppliers">
</select>
<label>Category:</label>
<select id="CategoryID" data-appmlapplication="모델/Dropdown_Categories">
</select>
<label>단위:</label><input id="단위">
<label>가격:</label> ;<입력 id="가격">
</div>
<script src="appml.js"></script>
<script>
var products,productForm
products=new AppML("appml.php","모델/제품");
products.run("List01","Template01");
productForm=new AppML("appml.php","모델/제품");
productForm.displayType="form";
</script>
</body>
</html>