本文整理汇总了PHP中Owner::searchAll方法的典型用法代码示例。如果您正苦于以下问题:PHP Owner::searchAll方法的具体用法?PHP Owner::searchAll怎么用?PHP Owner::searchAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Owner
的用法示例。
在下文中一共展示了Owner::searchAll方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<thead>
<th>Selection</th>
<th>Identification</th>
<th>First Name</th>
<th>Second Name</th>
<th>First Surname</th>
<th>Second Surname</th>
<th>Born Date</th>
<th>Gender</th>
<th>Cell Phone</th>
<th>Email</th>
<th>Address</th>
</thead>
<tbody>
<?php
$owners = Owner::searchAll();
foreach ($owners as $owner) {
$row = "<tr>" . "<td><input type='radio' name='owners' onchange='showLocks(selectOwner())' value='" . $owner->identification() . "'></td>" . "<td>" . $owner->identification() . "</td>" . "<td>" . $owner->firstName() . "</td>" . "<td>" . $owner->secondName() . "</td>" . "<td>" . $owner->firstSurname() . "</td>" . "<td>" . $owner->secondSurname() . "</td>" . "<td>" . $owner->bornDate() . "</td>" . "<td>" . $owner->gender() . "</td>" . "<td>" . $owner->cellPhone() . "</td>" . "<td>" . $owner->email() . "</td>" . "<td>" . $owner->address() . "</td>" . "</tr>";
echo $row;
}
?>
</tbody>
<tfoot>
<tr>
<form action='addOwner.php' method='post'>
<td><input type='submit' name='submit' value='Add'></td>
<td><input type='text' name='identification' placeholder='Identification'></td>
<td><input type='text' name='firstName' placeholder='First Name'></td>
<td><input type='text' name='secondName' placeholder='Second Name'></td>
<td><input type='text' name='firstSurname' placeholder='First Surname'></td>