当前位置: 首页>>代码示例>>PHP>>正文


PHP Restaurant::GetList方法代码示例

本文整理汇总了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>";
开发者ID:BackupTheBerlios,项目名称:scrapbook,代码行数:31,代码来源:restaurants.php


注:本文中的Restaurant::GetList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。