PHP Classes

File: resources/views/demo/show.php

Recommend this page to a friend!
  Classes of Kabir Hossain   Sage   resources/views/demo/show.php   Download  
File: resources/views/demo/show.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Sage
Demo application of Web development framework
Author: By
Last change:
Date: 1 year ago
Size: 1,016 bytes
 

Contents

Class file image Download
<!DOCTYPE html>
<html>
  <body>
    <h2>Show Address</h2>
    <a href="<?php echo route('demo') ;?>">List</a> | <a href="<?php echo route('demo/add');?>">Add New</a>
    <br /><br />
      Name:<br>
      <input type="text" name="name" value="<?php echo $book->name; ?>" readonly> <br>
      First name:<br>
      <input type="text" name="firstname" value="<?php echo $book->firstname; ?>" readonly> <br>
      Street:<br>
      <input type="text" name="street" value="<?php echo $book->street; ?>" readonly> <br>
      Zip Code:<br>
      <input type="text" name="zip_code" value="<?php echo $book->zip_code; ?>" readonly> <br>
      City:<br>
      <input type="text" name="city" value="<?php echo $book->city; ?>" readonly> <br><br>
        <?php
        $path
= '/uploads/images/';
       
$image = $path.$book->image;
        if(!
$book->image){
           
$image = $path."no-image.jpg";
        }
       
?>
<img src="<?php echo asset($image);?>" width="85" height="70">
    </form>

  </body>
</html>