PHP Classes

File: example1.php

Recommend this page to a friend!
  Classes of Vidar Vestnes   PhpMyBorder   example1.php   Download  
File: example1.php
Role: Example script
Content type: text/plain
Description: PhpMyBorder v1.0 example
Class: PhpMyBorder
Make round corner tables 'on the fly'
Author: By
Last change: PhpMyBorder v1.0 example
Date: 18 years ago
Size: 831 bytes
 

Contents

Class file image Download
<html>
     <head>
      <title>PhpMyBorder Demo</title>
     </head>
    
     <body>
    
     <?php
    
    
require_once('phpMyBorder/phpMyBorder1.class.php');
    
$pmb = new PhpMyBorder();
    
     echo
$pmb->border_start();
     echo
"Test1 - Default border";
     echo
$pmb->border_end();
    
     echo
"<br>";
    
     echo
$pmb->border_start("300px","FF0000",20);
     echo
"Test2 - width: 300px, fillcolor: FF0000 (red), cornersize : 20px (radius);";
     echo
$pmb->border_end();
    
     echo
"<br>";
    
     echo
$pmb->border_start("250px","FF5500",7,2,2);
     echo
"Test2 - width: 250px, fillcolor: FF5500 (orange), cornersize : 7px (radius), borderthickness: 2px, style : 2 (outlined);";
     echo
$pmb->border_end();
    
    
?>

     </body>
    </html>