PHP Classes
elePHPant
Icontem

File: sample_linkrow.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mark Quah  >  LinkRow  >  sample_linkrow.php  >  Download  
File: sample_linkrow.php
Role: Example script
Content type: text/plain
Description: Sample script demonstrate functions.
Class: LinkRow
Quick button row generation
Author: By
Last change: Work with new changes.
Date: 11 years ago
Size: 2,735 bytes
 

Contents

Class file image Download
<?php
   
include_once "class_linkrow.php";
   
// INITIALIZE DATA
   
$linkrow = new LINKROW();
   
// format $array[ <descirption> ] = "<web link>[|class]"
   
$this_page=$HTTP_SERVER_VARS['PHP_SELF'];
   
//$linkrow->AddColumn();
   
$linkrow->AddItem("Web Tool", "", "linkheader");
   
$linkrow->AddItem("PHP", "http://www.php.net", "linkitem");
   
$linkrow->AddItem("This is comment", "", "linkcomment");
   
$linkrow->AddItem("Apache", "http://www.apache.net", "linkitem");
   
$linkrow->AddItem("MySql", "http://www.mysql.com", "linkitem");
   
$linkrow->AddColumn();
   
$linkrow->AddItem("Web Tool 2", "http://www.w3c.org", "linkheader2");
   
$linkrow->AddItem("PHP", "http://www.php.net", "linkitem2");
   
$linkrow->AddItem("Apache", "http://www.apache.net", "linkitem2");
   
$linkrow->AddItem("MySql", "http://www.mysql.com", "linkitem2");
   
$linkrow->AddColumn();
   
$linkrow->AddItem("Web Tool 2", "http://www.w3c.org", "linkheader");
?>
<HTML>
<HEAD>
<TITLE>LinkRow Demo</TITLE>
<style>
body { background: #FFFFCC; padding:0; margin: 0; text-align: center}
TABLE { margin:0; padding:0; border: none}
H1 { background: lightgreen; padding: 5; margin: 5}
H1.test { background: lightblue; padding: 5; margin: 5}
H2 { background: pink; padding: 5; margin: 5; text-align: center; border:groove}
</style>

<!-- Link Item Entries Format specifiy here -->
<style>
.linkheader { background: lightblue; color: red; width: 100px;
              border: outset; text-align: center}
.linkitem { background: lightgreen; color: blue; widht: 100px;
              border: solid 1 black; text-align: center}
.linkcomment { font-family: Tahoma; font-size: 8pt;
                    text-align: center; background: white;
                    margin: 0; padding: 1; width: 100;
                    border: solid 1 black;
                 }
.linkheader2 { font-weight: bold; font-size: 10pt;
        background: cyan; color: red;
        vertical-align: top; width: 100px; padding: 1;
        border: outset; text-align: center}
.linkitem2 { font-family: Tahoma; font-size: 8pt;
                    text-align: center; background: #9999CC;
                    margin: 0; padding: 1; width: 100;
                    border: outset;
                 }
.linkcomment2 { font-family: Tahoma; font-size: 8pt;
                    text-align: center; background: white;
                    margin: 0; padding: 1; width: 100;
                    border: solid;
                 }
:hover { background: white}
</style>
</HEAD>
<BODY>
<H1>LinkRow Demo</H1>
<HR><H2>Drop Down Menu</H2>
<CENTER>
<?php echo $linkrow->GenDropTable(); ?>
</CENTER>