當前位置: 首頁>>代碼示例>>PHP>>正文


PHP menu::getid方法代碼示例

本文整理匯總了PHP中menu::getid方法的典型用法代碼示例。如果您正苦於以下問題:PHP menu::getid方法的具體用法?PHP menu::getid怎麽用?PHP menu::getid使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在menu的用法示例。


在下文中一共展示了menu::getid方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: menu

<!DOCTYPE html>
<html>
<body background="coffee.jpg">
<style>
div{
 border:1px solid white;
  border-radius:20px;
  padding:20px;
}
</style>
<?php 
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(4);
//$rest_id = 4;
$arr = array('coffee', 'tea', 'frappe', 'lemonade', 'sundae', 'smoothie', 'eats');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 7, 4);
/*$host = "localhost";
$username="root";
$password="";
$database = "hotels";
$con = new mysqli($host,$username,$password,$database);

if($con -> connect_error)
{
trigger_error('DB connection failed:'.$con -> connect_error,E_USER_ERROR);
}
開發者ID:Sayli-Karnik,項目名稱:mywebsite,代碼行數:31,代碼來源:ccd.php

示例2: menu

 border: 1px solid #0000ff;
  border-radius:20px;
  padding:20px;
  background-color:white;
}
body{
opacity:0.7;

}
</style>
<?php 
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(5);
$arr = array('Soup', 'Appetizers- Sea Food', 'Rice and Noodles', 'Desserts', 'Beer');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 5, 5);
/*$host = "localhost";
$username="root";
$password="";
$database = "hotels";
$con = new mysqli($host,$username,$password,$database);

if($con -> connect_error)
{
trigger_error('DB connection failed:'.$con -> connect_error,E_USER_ERROR);
}
else
開發者ID:Sayli-Karnik,項目名稱:mywebsite,代碼行數:31,代碼來源:cgate.php

示例3: menu

div{
 border: 1px solid #0000ff;
  border-radius:20px;
  padding:20px;
  background-color:white;
opacity:0.5;
  }
body{
}
</style>
<?php 
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(3);
$arr = array('pizza', 'salad');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 2, 3);
?>
<br><br>
<input type="image" src="button.jpe" name='sub'>
<?php 
if (isset($_POST['sub_x'], $_POST['sub_y'])) {
    //require 'menu.php';
    //$menu_obj = new menu();
    $menu_obj->select_item();
    //include 'order.php';
    //disp_order();
}
開發者ID:Sayli-Karnik,項目名稱:mywebsite,代碼行數:31,代碼來源:pbay.php

示例4: menu

 border: 1px solid #0000ff;
  border-radius:20px;
  padding:20px;
  background-color:white;
}
body{
opacity:0.7;

}
</style>
<?php 
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(2);
$arr = array('Taco', 'Nachos', 'Burrito', 'Quesadillas', 'Desserts and Sides');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 5, 2);
?>
<br><br>
<input type="image" src="button.jpe" name='sub'>
<?php 
if (isset($_POST['sub_x'], $_POST['sub_y'])) {
    //require 'menu.php';
    //$menu_obj = new menu();
    $menu_obj->select_item();
    //include 'order.php';
    //disp_order();
}
開發者ID:Sayli-Karnik,項目名稱:mywebsite,代碼行數:31,代碼來源:tbell.php

示例5: menu

<body background="fish1.jpg">
<style>
div{
background-color: #DFFFBF;
opacity: 0.6;
 border: 1px solid #0000ff;
  border-radius:20px;
  padding:20px;
}
</style>
<?php 
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(6);
//$rest_id = 6;
$arr = array('Salads', 'Soups', 'Appetizers', 'Main Course', 'Indian Breads', 'Desserts');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 6, 6);
/*
$host = "localhost";
$username="root";
$password="";
$database = "hotels";
$con = new mysqli($host,$username,$password,$database);

if($con -> connect_error)
{
trigger_error('DB connection failed:'.$con -> connect_error,E_USER_ERROR);
開發者ID:Sayli-Karnik,項目名稱:mywebsite,代碼行數:31,代碼來源:fishy.php

示例6: menu

  border-radius:20px;
  padding:20px;
  opacity:0.6;
  background-color:white;
}
#colour{
color:black;
}

</style>
<?php 
ob_start();
$i = 1;
require 'menu.php';
$menu_obj = new menu();
$menu_obj->getid(1);
//$rest_id = 1;
$arr = array('south indian', 'pav bhaji', 'sandwich', 'pizza', 'punjabi', 'roti', 'rice');
include 'restaurant.php';
$r_obj = new restaurant();
$r_obj->display_menu($arr, 7, 1);
/*
$host = "localhost";
$username="root";
$password="";
$database = "hotels";
$con = new mysqli($host,$username,$password,$database);

if($con -> connect_error)
{
trigger_error('DB connection failed:'.$con -> connect_error,E_USER_ERROR);
開發者ID:Sayli-Karnik,項目名稱:mywebsite,代碼行數:31,代碼來源:shiv.php


注:本文中的menu::getid方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。