當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。