最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。
This case study demonstrates how to build a complete < AppML > Internet application with the ability to enumerate, edit, and search for information against several tables in the database. In this chapter, we will demonstrate how to add a HTML template to a HTML page. By skillfully using templates, you can easily add links between < AppML > list objects and < AppML > forms: By skillfully using templates, you can easily add links between < AppML > list objects and linked lists: Finally, with a small amount of code replication, we can complete the project. In the following sections, you can see more applications with complete source code. 4.9.1. Add HTML template ¶
4.9.2. List customers ¶
HTML-View ¶
<h1>Customersh1> <div id="List01">div><br> <table id="Template01" class="appmltable" style="display:none"> <tr> <th>Customerth> <th>Cityth> <th>Countryth> tr> <tr id="appml_row"> <td>#CustomerName# <td>#City# <td>#Country# tr> table> <script src="appml.js">script> <script> var customers customers=new AppML("appml.php","Models/Customers"); customers.run("List01","Template01"); script>
4.9.3. List customers and customer forms ¶
HTML-View ¶
<h1>Customersh1> <div id="Form01">div><br> <div id="List01">div><br> <table id="Template01" class="appmltable" style="width:100%;display:none"> <tr> <th>th> <th>Customerth> <th>Cityth> <th>Countryth> tr> <tr id="appml_row"> <td style="cursor:pointer" onclick="openForm('#CustomerID#')"> <img src="images/appmlFolder.png">td> <td>#CustomerName# <td>#City# <td>#Country# tr> table> <script src="appml.js">script> <script> var customers,customerForm; customers=new AppML("appml.php","Models/Customers"); customers.run("List01","Template01"); function openForm(id) { customerForm=new AppML("appml.php","Models/Customers"); customerForm.displayType="form"; customerForm.run("Form01","",id); } script>
4.9.4. List customers and customer orders ¶
HTML-View ¶
<h1>Customersh1> <div id="List01">div><br> <div id="Orders01">div><br> <table id="Template01" class="appmltable" style="width:100%;display:none"> <tr> <th>Customerth> <th>Cityth> <th>Countryth> <th>th> tr> <tr id="appml_row"> <td>#CustomerName# <td>#City# <td>#Country# <td><a href='' onclick='openOrders("#CustomerID#");return false;'>Orders tr> table> <table id="Template02" class="appmltable" style="width:100%;display:none"> <tr> <th>Customerth> <th>Dateth> <th>Salespersonth> <th>Shipperth> tr> <tr id="appml_row"> <td>#CustomerName# <td>#OrderDate# <td>#Salesperson# <td>#ShipperName# tr> table> <script src="appml.js">script> <script> var customers,orders; customers=new AppML("appml.php","Models/Customers"); customers.run("List01","Template01"); function openOrders(id) { orders=new AppML("appml.php","Models/Orders"); orders.setQuery("orders.customerid",id); orders.commands=false; orders.run("Orders01","Template02"); } script>
4.9.5. Now put it all together. ¶
Customer lists, forms, and orders ¶
<h1>Customersh1> <div id="List01"> <table id="appml_list" class="appmllist"> <tr> <th>Customerth> <th>Cityth> <th>Countryth> <th>th> tr> <tr id="appml_row"> <td>#CustomerName# <td>#City# <td>#Country# <td><a href='' onclick='openOrders("#CustomerID#");return false;'>Orders tr> table> div> <div id="List02">div> <script src="appml.js">script> <script> var Customers,Orders Customers=new AppML("appml.php","Models/Customers"); Customers.run("List01"); function openOrders(id) { var Orders=new AppML("appml.php","Models/Orders"); Orders.setQuery("orders.customerid",id); Orders.commands=false; Orders.run("List02"); } script>