PHP Classes

File: site/views/index.php

Recommend this page to a friend!
  Classes of Muhammad Mengrani  >  PHP CouchDB Product CRUD  >  site/views/index.php  >  Download  
File: site/views/index.php
Role: Auxiliary script
Content type: text/plain
Description: Class source
Class: PHP CouchDB Product CRUD
Manage products stored in a CouchDB database
Author: By
Last change:
Date: 5 years ago
Size: 476 bytes


Class file image Download
include $site->site_controller['index'];
$view = new controller_index();
<ul class="thumbnails">
<?php foreach ($view->ids_list() as $id):?>
<li class="thumbnail">
<?php echo $id['ID'];?>
<a class="lightbox" href="<?php echo $id['Img'];?>"><img alt="" src="<?php echo $id['Img'];?>" width="100px" height="100px" ></a>
<?php echo "<b>Price : </b>".$id['Price'];?>
<?php echo "<b>Type : </b>".$id['Type'];?>
<?php endforeach;?>