- ·上一篇文章:AppML 案例 Employees
- ·下一篇文章:AppML 案例 Products
AppML 案例 Customers
<AppML> Customers - 完整的应用程序CustomerCityCountryOrders
#CustomerName
#
#City
#
#Country
#OrdersCustomerDateSalespersonShipper
#CustomerName
#
#OrderDate
#
#Salesperson
#
#ShipperName
#源代码HTML 源代码<html><body><h1>Customers</h1><divid="Form01"></div><div id="List01"></div><br><divid="Orders01"></div><table id="Template01" class="appmltable"style="width:
100%;display:
none"><tr><th></th><th>Customer</th><th>City</th><th>Country</th><th>Orders</th></tr><trid="appml_row"><td style="cursor:
pointer"onclick='customerForm.run("Form01","","
#CustomerID
#")'><imgsrc="http://www.runoob.com/appml/Images/appmlPlus.png"></td><td>
#CustomerName
#</td><td>
#City
#</td><td>
#Country
#</td><td><a href=''>Orders</a></td></tr></table><table id="Template02" class="appmltable"style="width:
100%;display:
none"><tr><th>Customer</th><th>Date</th><th>Salesperson</th><th>Shipper</th></tr><trid="appml_row"><td>
#CustomerName
#</td><td>
#OrderDate
#</td><td>
#Salesperson
#</td><td>
#ShipperName
#</td></tr></table> <script src="appml.js"></script><script>var customers,customerForm,orders;customers=newAppML("appml.php","Models/Customers");customers.run("List01","Template01");customerForm=newAppML("appml.php","Models/Customers");customerForm.displayType="form";function openOrders(id){orders=newAppML("appml.php","Models/Orders");orders.commands=false;orders.setQuery("orders.customerid",id);orders.run("Orders01","Template02");}</script></body></html>
#CustomerName
#
#City
#
#Country
#OrdersCustomerDateSalespersonShipper
#CustomerName
#
#OrderDate
#
#Salesperson
#
#ShipperName
#源代码HTML 源代码<html><body><h1>Customers</h1><divid="Form01"></div><div id="List01"></div><br><divid="Orders01"></div><table id="Template01" class="appmltable"style="width:
100%;display:
none"><tr><th></th><th>Customer</th><th>City</th><th>Country</th><th>Orders</th></tr><trid="appml_row"><td style="cursor:
pointer"onclick='customerForm.run("Form01","","
#CustomerID
#")'><imgsrc="http://www.runoob.com/appml/Images/appmlPlus.png"></td><td>
#CustomerName
#</td><td>
#City
#</td><td>
#Country
#</td><td><a href=''>Orders</a></td></tr></table><table id="Template02" class="appmltable"style="width:
100%;display:
none"><tr><th>Customer</th><th>Date</th><th>Salesperson</th><th>Shipper</th></tr><trid="appml_row"><td>
#CustomerName
#</td><td>
#OrderDate
#</td><td>
#Salesperson
#</td><td>
#ShipperName
#</td></tr></table> <script src="appml.js"></script><script>var customers,customerForm,orders;customers=newAppML("appml.php","Models/Customers");customers.run("List01","Template01");customerForm=newAppML("appml.php","Models/Customers");customerForm.displayType="form";function openOrders(id){orders=newAppML("appml.php","Models/Orders");orders.commands=false;orders.setQuery("orders.customerid",id);orders.run("Orders01","Template02");}</script></body></html>
AppML 案例 Customers