Pelanggan Kes AppML




< td>#City#

源代码

HTML 源代码

<html>
<body>

<h1>Customers> 🎜>
<div id="Form01"></div>
<div id="List01"></div><br>
<div id="Pesanan01"></div>

<table id="Template01" class="appmltable" style="width:100%;display:none">
<tr>
<th></th>
<th>Pelanggan</th>
<th>Bandar</th>
<th>Negara</th>
<th>Pesanan</th>
</tr>
<tr id="appml_row">
<td style="cursor:pointer" onclick='customerForm.run("Form01","","#CustomerID#")'>
<img src="../style/images/appmlPlus.png"></td>
<td>#CustomerName#</td>
<td>#City#</td>
<td>#Country#</td>
<td><a href='' onclick='openOrders(#CustomerID#);return false;'>Pesanan</a></td>
</tr>
</table>

<table id="Template02" class="appmltable" style="width:100%;display:none">
<tr>
<th>Pelanggan</th>
<th>Tarikh</th>
<th>Jurujual</th>
<th>Penghantar</th>
</tr>
<tr id="appml_row">
<td>#CustomerName#</td>
<td>#OrderDate#</td>
<td>#Jurujual#</td>
<td>#ShipperName#</td>
</tr>
</table>

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

<script>
var pelanggan,customerForm,orders;
customer=new AppML("appml.php","Model/Pelanggan");
customers.run("List01","Template01");
customerForm=new AppML("appml.php","Model/Pelanggan");
customerForm.displayType="form";
fungsi openOrders(id)
{
orders=new AppML("appml.php","Model/Pesanan");
orders.commands=false;
orders.setQuery("orders.customerid",id);
orders.run("Orders01","Template02");
}
</script>

</body>
</html>