本文整理汇总了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>";