Employés du dossier AppML
源代码
HTML 源代码
<html>
<corps>
<h1>Employés</h1>
<div id="Form01"></div>
<div id="List01"></div>
<br>
<table id="Template01" class="appmltable" style="width:100%;display:none">
<tr>
<th></th>
<th>Nom</th>
<th>Prénom</th>
<th>Date de Naissance</th>
</tr>
<tr id="appml_row">
<td style="cursor:pointer" onclick="employeesForm.run('Form01','Template02','#EmployeeID#')">
<img src="../style/images/appmlPlus.png"></td>
<td>#LastName#</td>
<td>#Premier#</td>
<td>#BirthDate#</td>
</tr>
</table>
<div id="Template02" class="appmlform" style="width:100%;display:none">
<label>Nom :</label><input id="LastName">
<label>Premier Nom :</label><input id="FirstName">
<label>Date de naissance :</label><input id="Date de naissance">
<label>Photo :</label><input id="Photo">
<label>Notes :</label><input id="Notes">
</div>
<script src="appml.js"></ script>
<script>
var employés,employeesForm
employees=new AppML("appml.php","Modèles/Employés");
employes.run("List01","Template01");
employeesForm=new AppML("appml.php","Modèles/Employés");
employeesForm.displayType="form";
</script>
</body>
< /html>
<corps>
<h1>Employés</h1>
<div id="Form01"></div>
<div id="List01"></div>
<br>
<table id="Template01" class="appmltable" style="width:100%;display:none">
<tr>
<th></th>
<th>Nom</th>
<th>Prénom</th>
<th>Date de Naissance</th>
</tr>
<tr id="appml_row">
<td style="cursor:pointer" onclick="employeesForm.run('Form01','Template02','#EmployeeID#')">
<img src="../style/images/appmlPlus.png"></td>
<td>#LastName#</td>
<td>#Premier#</td>
<td>#BirthDate#</td>
</tr>
</table>
<div id="Template02" class="appmlform" style="width:100%;display:none">
<label>Nom :</label><input id="LastName">
<label>Premier Nom :</label><input id="FirstName">
<label>Date de naissance :</label><input id="Date de naissance">
<label>Photo :</label><input id="Photo">
<label>Notes :</label><input id="Notes">
</div>
<script src="appml.js"></ script>
<script>
var employés,employeesForm
employees=new AppML("appml.php","Modèles/Employés");
employes.run("List01","Template01");
employeesForm=new AppML("appml.php","Modèles/Employés");
employeesForm.displayType="form";
</script>
</body>
< /html>