AppML ケースのお客様
源代仔
HTML 源代仔
<html>
<body>
<h1>顧客</h1>
<div id="Form01"></div>
<div id="List01"></div><br>
<div id="注文01"></div>
<table id="Template01" class="appmltable" style="width:100%;display:none">
<tr>
<th></th>
<th>顧客</th>
<th>都市</th>
<th>国</th>
<th>注文</th>
</tr>
<tr id="appml_row">
<td style="カーソル:ポインタ" onclick='customerForm.run("Form01","","#CustomerID#")'>
<img src="../style/images/appmlPlus.png"></td>
<td>#顧客名#</td>
<td>#都市#</td>
<td>#国#</td>
<td><a href='' onclick='openOrders(#CustomerID#);return false;'>注文</a></td>
</tr>
</table>
<table id="Template02" class="appmltable" style="width:100%;display:none">
<tr>
<th>顧客</th>
日付
営業担当者
配送業者
<td>#顧客名#</td>
<td>#注文日#</td>
<td>#営業担当者#</td>
<td>#配送業者名#</td>
</tr>
</table>
<script src="appml.js"></script>
<script>
var customer,customerForm,orders;
customers=new AppML("appml.php","モデル/顧客");
Customers.run("List01","Template01");
customerForm=new AppML("appml.php","モデル/顧客");
customerForm.displayType="フォーム";
関数 openOrders(id)
{
orders=new AppML("appml.php","モデル/注文");
orders.commands=false;
order.setQuery("orders.customerid",id);
orders.run("Orders01","Template02");
}
</script>
</body>
</html>
<body>
<h1>顧客</h1>
<div id="Form01"></div>
<div id="List01"></div><br>
<div id="注文01"></div>
<table id="Template01" class="appmltable" style="width:100%;display:none">
<tr>
<th></th>
<th>顧客</th>
<th>都市</th>
<th>国</th>
<th>注文</th>
</tr>
<tr id="appml_row">
<td style="カーソル:ポインタ" onclick='customerForm.run("Form01","","#CustomerID#")'>
<img src="../style/images/appmlPlus.png"></td>
<td>#顧客名#</td>
<td>#都市#</td>
<td>#国#</td>
<td><a href='' onclick='openOrders(#CustomerID#);return false;'>注文</a></td>
</tr>
</table>
<table id="Template02" class="appmltable" style="width:100%;display:none">
<tr>
<th>顧客</th>
<td>#注文日#</td>
<td>#営業担当者#</td>
<td>#配送業者名#</td>
</tr>
</table>
<script src="appml.js"></script>
<script>
var customer,customerForm,orders;
customers=new AppML("appml.php","モデル/顧客");
Customers.run("List01","Template01");
customerForm=new AppML("appml.php","モデル/顧客");
customerForm.displayType="フォーム";
関数 openOrders(id)
{
orders=new AppML("appml.php","モデル/注文");
orders.commands=false;
order.setQuery("orders.customerid",id);
orders.run("Orders01","Template02");
}
</script>
</body>
</html>