AppML 案例 Customers




源代码

HTML 源代码




客户



<div id="List01"></div><br>
<div id="Orders01">
;

<tr>
<th></th>
<th>客户</th>
<第>城市
<第>国家
<第>订单



<td>#客户名称#</td>
<td>#订单日期#</td>
<td>#销售人员#</td>
<td>#ShipperName#</td>
</tr>
</table>

<script src="appml.js"></script>

<script>
varcustomers,customerForm,orders;
customers=new AppML("appml.php","模型/客户");
customers.run("List01","Template01");
customerForm=new AppML("appml.php","模型/客户");
customerForm.displayType="form";
函数 openOrders(id)
{
orders=new AppML("appml.php","模型/订单");
orders.commands=false;
orders.setQuery("orders.customerid",id);
order.run("Orders01","Template02");
}
</script>

</body>
</html>