AppML 案例 Products




源代码

HTML 源代码

<html>
<body>

<h1>产品</h1>

<div id="Form01"></div>
</div><br>

<表格 id="Template01" class="appmltable" style="width:100%;display:none">
<tr>
<th></th>
<th>产品名称</th>
<第>类别
<第>供应商



<td>#ProductName#</td>
<td>#CategoryName#</td>
< td>#SupplierName#</td>
</tr>
</table>

<div id="Template02" class="appmlform" style="width:100%;display:none"> ;
<标签>产品名称:</label><输入 id="产品名称">
<标签>供应商:</label>
<选择 id="SupplierID" data-appmlapplication="Models/Dropdown_Suppliers">




;<输入 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";