Login   Register  
PHP Classes

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


Class file image Download
include_once "class_linkrow.php";
$linkrow = new LINKROW();
// format   $array[ <descirption> ] = "<web link>[|class]"
$linkrow->AddItem("Web Tool""""linkheader");
$linkrow->AddItem("This is comment""""linkcomment");
$linkrow->AddItem("Web Tool 2""http://www.w3c.org""linkheader2");
$linkrow->AddItem("Web Tool 2""http://www.w3c.org""linkheader");
<TITLE>LinkRow Demo</TITLE>
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}

<!-- Link Item Entries Format specifiy here -->
.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}
<H1>LinkRow Demo</H1>
<HR><H2>Drop Down Menu</H2>
<?php  echo $linkrow->GenDropTable(); ?>