<AppML> Employees - 完整的应用程序


HTML 源代码

  1. <html>
  2. <body>
  3.  
  4. <h1>Employees</h1>
  5.  
  6. <div id="Form01"></div>
  7. <div id="List01"></div>
  8. <br>
  9.  
  10. <table id="Template01" class="appmltable" style="width:100%;display:none">
  11. <tr>
  12. <th></th>
  13. <th>Last Name</th>
  14. <th>First Name</th>
  15. <th>Date of Birth</th>
  16. </tr>
  17. <tr id="appml_row">
  18. <td style="cursor:pointer" onclick="employeesForm.run('Form01','Template02','#EmployeeID#')">
  19. <img src="Images/appmlPlus.png"></td>
  20. <td>#LastName#</td>
  21. <td>#FirstName#</td>
  22. <td>#BirthDate#</td>
  23. </tr>
  24. </table>
  25.  
  26. <div id="Template02" class="appmlform" style="width:100%;display:none">
  27. <label>Last Name:</label><input id="LastName">
  28. <label>First Name:</label><input id="FirstName">
  29. <label>Date of Birth:</label><input id="BirthDate">
  30. <label>Photo:</label><input id="Photo">
  31. <label>Notes:</label><input id="Notes">
  32. </div>
  33.  
  34. <script src="appml.js"></script>
  35. <script>
  36. var employees,employeesForm
  37. employees=new AppML("appml.php","Models/Employees");
  38. employees.run("List01","Template01");
  39. employeesForm=new AppML("appml.php","Models/Employees");
  40. employeesForm.displayType="form";
  41. </script>
  42.  
  43. </body>
  44. </html>

1444220523125338.png