Beispiel #1
0
<?php

require_once 'classes/connection.class.php';
require_once 'classes/dish.class.php';
$viewobj = new Dish();
$views = $viewobj->viewdish();
/*echo '<pre>';
print_r($views);
echo '</pre>';*/
?>



<table class="table" width="698" border="1">
  <tbody>
    <tr>
      <th width="71" scope="row"><strong>dishID</strong></th>
      <td width="47"><strong>dish Title</strong></td>
      <td width="69"><strong>dish Price</strong></td>
      
      
      <td colspan="2"><strong>Action</strong></td>
    </tr>
   
    <?php 
if (sizeof($views > 0)) {
    foreach ($views as $value) {
        ?>
    <tr>
      <th scope="row">&nbsp; <?php 
        echo $value['dish_id'];
Beispiel #2
0
<?php

require_once '../admin/classes/connection.class.php';
require_once '../admin/classes/dish.class.php';
?>



<div class="col-md-4">
<h2>Ai-La Special Dishes</h2>
<table class="table table-bordered">
 <?php 
$featureObj = new Dish();
$view = $featureObj->viewdish();
// echo '<pre>';
//  print_r($view);
//  echo '<pre>';
?>
       
        <?php 
foreach ($view as $value) {
    ?>
<tr>
	<td><?php 
    echo $value['dish_title'];
    ?>
</td>
    <td><?php 
    echo $value['dish_price'];
    ?>
</td>
Beispiel #3
0
<?php

include 'classes/connection.class.php';
include 'classes/dish.class.php';
$dish_id = isset($_GET['dish_id']) ? (int) $_GET['dish_id'] : '';
$objdish = new Dish();
$objdish->setdishID($dish_id);
$views = $objdish->viewdish();
/*echo '<pre>';
print_r($views);
echo '</pre>';*/
foreach ($views as $value) {
    ?>
<form name="form1" method="post" action="process/process_update_dish.php">
  <table width="669" border="1">
    <tbody>
      <tr>
        <th colspan="2" scope="row">Please Edit dish</th>
      </tr>
      <tr>
        <th scope="row">Title</th>
        <td>
		<input type="text" name="title" value="
		<?php 
    echo $value['dish_title'];
    ?>
"/>		
		
        
      </tr>
      <tr>