PHP Classes

File: example2.php

Recommend this page to a friend!
  Classes of Daniel Chaves   IS Layout   example2.php   Download  
File: example2.php
Role: Example script
Content type: text/plain
Description: Example 2
Class: IS Layout
Template engine that replaces place holder values
Author: By
Last change:
Date: 20 years ago
Size: 1,351 bytes


Class file image Download
require_once "../islayout.php";

<p align="center">&nbsp;</p>
<p align="center">IS_LAYOUT EXAMPLE</p>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
    <td width="100%" colspan="3" bgcolor="#808000">
    <p align="center"><b><font color="#FFFFFF">Friends</font></b></td>
    <td width="33%" bgcolor="#409090" align="center">Name</td>
    <td width="33%" bgcolor="#409090" align="center">Country</td>
    <td width="34%" bgcolor="#409090" align="center">Age</td>

  <!-- replace id="Friends" -->
    <td width="33%" align="center">[name]</td>
    <td width="33%" align="center">[country]</td>
    <td width="34%" align="center">[age] Years Old</td>
  <!-- end replace -->



'country'=>'South Korea',

$lay=new IS_Layout($html);

// Transfer the $arrray to html code