Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/tbs_us_examples_prmmagnet.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Skrol29  >  TinyButStrong template engine  >  examples/tbs_us_examples_prmmagnet.php  
File: examples/tbs_us_examples_prmmagnet.php
Role: Example script
Content type: text/plain
Description: examples and tests - magnet
Class: TinyButStrong template engine
Template Engine for Pro and Beginners
 

Contents

Class file image Download
<?php

include_once('tbs_class.php');

//Default value
if (!isset($_GET)) $_GET=&$HTTP_GET_VARS;
if (isset(
$_GET['empty'])) {
  
$empty $_GET['empty'];
} else {
  
$empty 0;
}

if (
$empty) {
    
$url '';
    
$image '';
    
$line1 '1 New Avenue';
    
$line2 '';
} else {
    
$url 'www.tinybutstrong.com';
    
$image 'tbs_us_examples_prmmagnet.gif';
    
$line1 '2 Main Street';
    
$line2 '3rd floor';
}

$TBS = new clsTinyButStrong;
$TBS->LoadTemplate('tbs_us_examples_prmmagnet.htm');
$TBS->Show();

?>