<?
// ----------------------------------------------------------------------
// GSIBC DATA CLASS SYSTEM
// Copyright (C) 2004 by gsibc.net.
// GSIBC.net stands behind the software with support, training, certification and consulting.
// ----------------------------------------------------------------------
// LICENSE
// This program is open source product; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Filename: grafiklink.class.php
// Original Author(s): Rafat Katta hide@address.com
// ----------------------------------------------------------------------//
class CGLinks {
var $strURL;
var $strIMG;
var $strIMG_ALT;
var $intIMG_Width=20;
var $intIMG_Hight=20;
function CGLinks($strURL,$strIMG){
$this->strURL=$strURL;
$this->strIMG=$strIMG;
}
function setURL($strURL){ $this->strURL=$strURL;}
function getURL(){return $this->strURL;}
function setIMG ($strIMG){ $this->strIMG=$strIMG;}
function getIMG(){return $this->strIMG;}
function setIMGText($strText){$this->strIMG_ALT=$strText;}
function getIMGText(){return $this->strIMG_ALT;}
function setIMGWidth($int){$this->intIMG_Width=$int;}
function getIMGWidth(){return $this->intIMG_Width;}
function setIMGHight($int){$this->intIMG_Hight=$int;}
function getIMGHight(){return $this->intIMG_Hight;}
function showHtml() { echo '<a href="'.$this->getURL().'"><img src="'.$this->getIMG().'" alt="'.$this->getIMGText().
'" width="'.$this->getIMGWidth().'" height="'.$this->getIMGHight().
'" longdesc="'.$this->strURL.'" />'."</a>\n";}
}
?>