{******************************************}
{ }
{ FastReport v4.0 }
{ Server templates support }
{ }
{ Copyright (c) 1998-2009 }
{ by Alexander Fediachov, }
{ Fast Reports Inc. }
{ }
{******************************************}
unit frxServerTemplates;
{$I frx.inc}
interface
uses Classes, SysUtils, frxServerVariables, frxServerSSI,
frxServerUtils, frxServerConfig;
type
TfrxServerTemplate = class(TObject)
private
FVariables: TfrxServerVariables;
FSSI: TfrxSSIStream;
FTemplate: TStringList;
public
constructor Create;
destructor Destroy; override;
procedure Clear;
procedure Prepare;
procedure SetTemplate(const Name: String);
property TemplateStrings: TStringList read FTemplate;
property Variables: TfrxServerVariables read FVariables;
end;
implementation
const
error403 = '
ForbiddenERROR 403
Forbidden
';
error404 = 'Not foundERROR 404
Not found
';
error500 = 'Internal errorERROR 500
Internal error
';
list_begin = '';
form_begin = '' +
'' +
'' +
'' + '>' +
'' +
'' +
'';
form_checkbox = '" value="" >' +
'; font-size: px;' +
'color: ; background-color: ;">';
form_label = '; font-size: px; color: ; background-color: ;">';
form_memo = '';
form_text = '" name="" value="" id="" size="" maxlength="" >';
form_radio = '" value="" >' +
'; font-size: px; color: ; background-color: ;">';
form_button = '" value="">';
form_select = '