本文整理匯總了PHP中Restaurant::GetList方法的典型用法代碼示例。如果您正苦於以下問題:PHP Restaurant::GetList方法的具體用法?PHP Restaurant::GetList怎麽用?PHP Restaurant::GetList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Restaurant
的用法示例。
在下文中一共展示了Restaurant::GetList方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Restaurant
</tr>
<tr>
<td valign="top" width="463"><p style = "padding-left:5px; margin:0px;">The purpose of this page COMING SOON is to allow people and Companies from different ends of the country a convenient place to meet, socialise and team build ETC. <br />
<br />
This may be anything from two to two hundred people and will be a free service.</p>
<br /></td>
</tr>
<tr>
<td></td>
</tr>
</table>
<table id="table">
<?php
$restaurant = new Restaurant();
$results = $restaurant->GetList(array(array("restaurant_status", "=", "active")));
shuffle($results);
$rowCount = 0;
echo "<TR>";
foreach ($results as $obj) {
echo "<TD valign=\"top\" width = \"135\">";
echo "<table id=\"table_inner\">";
echo "<TR><TD class=\"cell_logo\">";
echo "<a href=\"" . $obj->link . "\">";
echo "<img src=\"logos/" . $obj->logo . "\" width=\"{$logoWidth}\" height=\"{$logoHeight}\" border=0>";
echo "</a>";
echo "</td></tr>";
echo "<TR><TD class=\"cell_heading\"><a href=\"" . $obj->link . "\" class = \"news\">" . $obj->name . "</a></td></tr>";
echo "<TR><TD class=\"cell_description\">" . $obj->description . "</td></tr>";
echo "<TR><TD class=\"cell_tel\">" . $obj->tel . "</td></tr>";
echo "<TR><TD><BR></td></tr></table>";