function generateTableData($container_types) { $tableData = array(); foreach ($container_types as $index => $container_type) { $tableData[] = generateRow($index, $container_type); } return $tableData; }
function generateTableData($cities) { $tableData = array(); foreach ($cities as $city) { $tableData[] = generateRow($city); } return $tableData; }
function generateTableData($fees) { $tableData = array(); foreach ($fees as $index => $fee) { $tableData[] = generateRow($index, $fee); } return $tableData; }
</div> </div> <form id="booker"> <table> <tr> <th>Project</th> <th>Type</th> <th>Opdracht</th> <th>Starttijd</th> <th>Eindtijd</th> <th>Tijdsduur</th> <th>Factureren</th> </tr> <?php for ($i = 1; $i < 15; $i++) { echo generateRow($i); } ?> <tr> <td colspan="7"> <button>+ Rij toevoegen</button> </td> </tr> <tr> <td> <select name="projectFinal"> <option value="peter">Peter van Dam</option> </select> </td> <td colspan="4"> <input type="text" value="Random stuff" />