本文整理匯總了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>