Visible = true;
$this->Enabled = true;
}
function Show()
{
$Output = '';
//$Output .= '#'.$this->Id;
return($Output);
}
function Prepare()
{
}
}
class Layout extends Element
{
var $Items;
function Show()
{
if($this->Visible)
{
$Output = parent::Show();
foreach($this->Items as $Item)
$Output .= $Item->Show();
return($Output);
}
}
function Prepare()
{
foreach($this->Items as $Item)
$Item->Prepare();
}
}
class Button extends Element
{
var $Caption;
function Show()
{
if($this->Visible)
{
return(parent::Show().'');
}
}
}
class Edit extends Element
{
var $Text;
function Show()
{
return(parent::Show().'');
}
function Prepare()
{
$this->Text = ReadSessionVar($this->Id.'_Text');
}
}
class PageSelect extends Element
{
var $Count;
var $Position;
var $PageSize;
function __construct()
{
parent::__construct();
$this->PageSize = 10;
$this->Position = 0;
$this->Count = 0;
}
function Show()
{
if(array_key_exists($this->Id.'_Page', $_GET))
$this->Position = $_GET[$this->Id.'_Page'];
if($this->Position >= $this->Count) $this->Position = $this->Count / $this->PageSize - 1;
$Output = '';
for($I = 0; $I < $this->Count / $this->PageSize; $I++)
{
$Text = ''.$I.' ';
if($I == $this->Position) $Text = ''.$Text.'';
$Output .= $Text;
}
$Output .= '
';
return($Output);
}
function Prepare()
{
$this->Position = ReadSessionVar($this->Id.'_Page');
}
}
class ListViewColumn extends Element
{
var $Name;
function Show()
{
return($this->Name);
}
}
class ListView extends Element
{
var $Columns;
var $Rows;
var $OnColumnClick;
var $OnColumnDraw;
function __construct()
{
parent::__construct();
$this->Rows = array();
$this->Columns = array();
}
function Show()
{
$Output = '
'.$Value->Show().' | '; } $Output .= '