sTableName = & $sTmpTableName; $this->aColumns = & $aTmpColumns; $this->aColumnTypes = $aTmpColumnTypes; $this->sWhereClause = & $sTmpWhereClause; $this->iLinkType = & $iTmpLinkType; $this->iResultsToDisplay = $iTmpResultsToDisplay; $this->sLinkImageURL = "C:\temp\test\up.jpg"; } /** Set the variable $this->sTableName */ function setTableName($sNewVal) { $this->sTableName = & $sNew7Val; } /** Set the variable $this->aColumns */ function setColumns($aNewVal) { $this->aColumns = & $aNewVal; } /** Set the variable $this->aColumnTypes */ function setColumnTypes($aNewVal) { $this->aColumnTypes = $aTmpColumnTypes; } /** Set the variable $this->sWhereClause */ function setWhereClause($sNewVal) { $this->sWhereClause = & $sNewVal; } /** Set the variable $this->iLinkType */ function setLinkType($iNewVal) { $this->iLinkType = & $iNewVal; } /** Set the variable $this->sLinkImageURL */ function setLinkImageURL($sNewVal) { $this->sLinkImageURL = & $sNewVal; } /** Set the variable $this->iStartIndex */ function setStartIndex($iNewVal) { $this->iStartIndex = & $iNewVal; } /** Set the variable $this->iResultsToDisplay */ function setResultsToDisplay($iNewVal) { $this->iResultsToDisplay = & $iNewVal; } /** * Build the HTML string used to render the object * * @return String of HTML used to render object * * @todo possibly add in image size restraints for link types 2 and 3 */ function & render() { global $default; $sToRender = "
| ".$this->aColumns[$i]." | \n"; } $sToRender .= "||||
|---|---|---|---|---|
| iLinkPageURL . "?fID=" . $aRow[0] . "&fTableName=" . $this->sTableName . "\">" . $aRow[$i] . " | \n"; $sToRender .= "\n"; break; case 2: //display an image only $sToRender .= "iLinkPageURL . "?fID=" . $aRow[0] . "&fTableName=" . $this->sTableName . "\"> | \n";
break;
case 3:
//display both an image and text
$sToRender .= "iLinkPageURL . "?fID=" . $aRow[0] . "&fTableName=" . $this->sTableName . "\"> | \n";
break;
default:
break;
}
} else {
$sToRender .= "".$aRow[$i]." | \n"; } } $sToRender .= "|
|   | ||||
| "; $sToRender .= ("iStartIndex + $this->iResultsToDisplay) . "\">Next"); $sToRender .= " | \n"; } /* Display both the next and the previous buttons */ else if (($this->iStartIndex + $this->iResultsToDisplay) < $sql->getLastQueryResultCount() && $this->iStartIndex > 0) { $sToRender .= ""; $sToRender .= ("iStartIndex + $this->iResultsToDisplay) . "\">Next"); $sToRender .= " | "; $sToRender .= ""; $sToRender .= ("iStartIndex - $this->iResultsToDisplay) . "\">Previous"); $sToRender .= " | \n"; } /* Display only the previous button */ else if ($this->iStartIndex > 0) { $sToRender .= "\n"; $sToRender .= (" "); $sToRender .= " | "; $sToRender .= "\n"; $sToRender .= ("iStartIndex - $this->iResultsToDisplay) . "\">Previous"); $sToRender .= " | "; } //$sToRender .= "\n"; $sToRender .= "