欢迎访问服务器技术网-www.fuwuqijishu.com

<AppML> Customers – 完整的应用程序

AppML fuwuqijishu 2年前 (2022-06-20) 222次浏览 0个评论 扫描二维码
文章目录[隐藏]

<AppML> Customers – 完整的应用程序


Customer City Country Orders
<AppML> Customers – 完整的应用程序 #CustomerName# #City# #Country# Orders
Customer Date Salesperson Shipper
#CustomerName# #OrderDate# #Salesperson# #ShipperName#

源代码

HTML 源代码

<html>
<body>

<h1>Customers</h1>

<div
id=”Form01″></div>
<div id=”List01″></div><br>
<div
id=”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>
<tr
id=”appml_row”>
<td style=”cursor:pointer”
onclick=’customerForm.run(“Form01″,””,”#CustomerID#”)’>
<img
src=”Images/http://www.fuwuqijishu.com/wp-content/uploads/2022/05/2022051509451586.png”></td>
<td>#CustomerName#</td>
<td>#City#</td>
<td>#Country#</td>
<td><a href=”
onclick=’openOrders(#CustomerID#);return false;’>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>
<tr
id=”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=new
AppML(“appml.php”,”Models/Customers”);
customers.run(“List01″,”Template01”);
customerForm=new
AppML(“appml.php”,”Models/Customers”);
customerForm.displayType=”form”;
function openOrders(id)
{
orders=new
AppML(“appml.php”,”Models/Orders”);
orders.commands=false;
orders.setQuery(“orders.customerid”,id);
orders.run(“Orders01″,”Template02”);
}
</script>

</body>
</html>

var customers,customerForm,orders;
customers=new AppML(“http://test.runoob.com/appml/appml.php&#8221;,”./Models/Customers.xml”);
customers.run(“List01″,”Template01”);
customerForm=new AppML(“http://test.runoob.com/appml/appml.php&#8221;,”./Models/Customers.xml”);
customerForm.displayType=”form”;
function openOrders(id)
{
orders=new AppML(“http://test.runoob.com/appml/appml.php&#8221;,”./Models/Orders.xml”);
orders.commands=false;
orders.setQuery(“orders.customerid”,id);
orders.run(“Orders01″,”Template02”);
}

喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

Warning: error_log(/www/wwwroot/fuwiqijishu/wp-content/plugins/spider-analyser/#log/log-2116.txt): failed to open stream: No such file or directory in /www/wwwroot/fuwiqijishu/wp-content/plugins/spider-analyser/spider.class.php on line 2900