PHP Classes

File: example2.php

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

Contents

Class file image Download
<html>
  <head>
    <title>PhpMyBorder Demo</title>
  </head>
 
  <body>

  <?
 
include_once('phpMyBorder2.class.php');
 
$pmb = new PhpMyBorder(false); // using stylesheet, to use stylesheet see class-file for details.
 
 
echo $pmb -> begin_round("300px","DDEEFF","000000"); // (width, fillcolor, edgecolor)
 
echo "content...";
  echo
$pmb -> end_round();

  echo
"<br>";
 
  echo
$pmb -> begin_raised("300px","DDEEFF"); // (width, fillcolor)
 
echo "content...";
  echo
$pmb -> end_raised();

  echo
"<br>";

  echo
$pmb -> begin_shadow("300px","DDEEFF","000000","555555"); // (width, fillcolor, edgecolor, shadowcolor)
 
echo "content...";
  echo
$pmb -> end_shadow();

 
?>
</body>
</html>