当前位置: 首页>>代码示例>>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;未经允许,请勿转载。