Login   Register  
PHP Classes
elePHPant
Icontem

File: content.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Usman Didi Khamdani  >  Image Banner Class  >  content.php  >  Download  
File: content.php
Role: Example script
Content type: text/plain
Description: display image banner on the page
Class: Image Banner Class
Display rotating banners from a MySQL database
Author: By
Last change: notes of author
Date: 5 years ago
Size: 2,019 bytes
 

Contents

Class file image Download
<?php

/* 
author: usman didi khamdani
author's email: usmankhamdani@gmail.com
author's phone: +6287883919293
*/  

include('image_banner.class.php');
$banner = new ImageBanner;

?>
<!doctype html">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Edeleweis Art :: Developing and Designing Web</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table align="center" width="800" cellpadding="3" cellspacing="0" border="1">
<tr>
    <td style="text-align:center" colspan="3"><?php

    $category1 
'top';
    
$width1 '800';
    
$height1 '125';
    
$not_found1 'images/banner/not_found1.jpg';

    echo 
$banner->Display($category1,$width1,$height1,$not_found1);
    
    
?></td>
</tr>
<tr>
    <td style="vertical-align:top;" width="180"><?php

    $category2 
'left';
    
$width2 '180';
    
$height2 '250';
    
$not_found2 'images/banner/not_found2.jpg';

    echo 
$banner->Display($category2,$width2,$height2,$not_found2);
    
    
?></td>
    <td style="vertical-align:top;text-align:justify">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</td>
    <td style="vertical-align:top;" width="180"><?php

    $category3 
'right';
    
$width3 '180';
    
$height3 '500';
    
$not_found3 'images/banner/not_found3.jpg';

    echo 
$banner->Display($category3,$width3,$height3,$not_found3);
    
    
?></td>
</tr>
<tr>
    <td colspan="3" style="text-align:center">&copy; 2009 <a title="Developing and Designing Web" href="http://www.edelweis-art.co.cc" target="_blank">Edeleweis Art</a> :: Developing and Designing Web</td>
</tr>
</table>
</body>