<?php
/*
*******************************************************************************
FiForms -- A collection of PHP classes designed
to facilitate rapid development of web-database software
Copyright (C) 2003-2008 Daniel McFeeters
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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.
You should have received a copy of the GNU General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
The original author of this library can be contacted at the following
address:
Daniel McFeeters
182 Baker Rd.
Faubush, KY 42544-6526
email:databases [at] fiforms [dot] org
http://www.fiforms.org/
iLinkBack class
File Started January 25, 2004
*******************************************************************************
FiForms_iLinkBack.inc.php
iLinkBack Definition File
This file contains the definitions for the iLinkBack input class
*******************************************************************************
*/
require_once("FiForms_iLink.inc.php");
require_once("FiForms_iFormControl.inc.php");
/* ?><code><?php */
class iLinkBack extends iLink
{
public $baseURI;
function iLinkBack()
{
if(array_key_exists('sheetView',$_GET) && $_GET["sheetView"] == "YES")
// this is sheetView
{
$args = func_get_args();
if(!array_key_exists(0,$args))
{
$baseuri = iFormControl::buildMyURL(
array("deleteRec","currentRec","chkkey","where",
"PRIMARYKEYS","sheetView"));
}
else
{
$baseuri = $args[0];
}
$this->baseURI = $baseuri;
if(!array_key_exists(1,$args))
{
$icons = new iconset();
$caption = $icons->svView;
}
else
{
$caption = $args[1];
}
$this->currentRec = array_key_exists('currentRec',$_GET) ? htmlentities($_GET['currentRec']) : "new";
$this->iLink(<<<EOD
return(\$this->baseURI.
"PRIMARYKEYS=".\$this->primaryKeyFilter."currentRec=\$this->recNum&");
EOD
,
$caption,
array_key_exists(2,$args) ? $args[2] : "",
array_key_exists(3,$args) ? $args[3] : "",
array_key_exists(4,$args) ? $args[4] : "",
array_key_exists(5,$args) ? $args[5] : "");
}
if(!$this->contents)
{
$this->contents = $this->caption;
$this->caption = " ";
}
$this->evalValue = TRUE;
} // function iLinkBack
} // class iLinkBack
/* ?></code><?php */
?>