fpweb: patch from Attila Borka (issue #13901)

* added note about minimal fpc version
* minor message changes

git-svn-id: trunk@20396 -
This commit is contained in:
vincents 2009-06-04 08:29:52 +00:00
parent 6b4d24ec67
commit e2d0fec11d
20 changed files with 36 additions and 21 deletions

View File

@ -1,5 +1,6 @@
These examples are demonstrating some uses of templates (with FPTemplate) when
generating HTML pages by CGI programs or Apache modules.
(Requires FPC versions past 4/30/2009 /revisions 13062 and later/)
The main idea is to leave the web page designing and look&feel to the web page
designers. Separating the web page design from the back end CGI/Apache

View File

@ -1,5 +1,6 @@
File upload from html form, example
==========================
(Requires FPC versions past 4/30/2009 /revisions 13062 and later/)
Demonstrates how to handle the file upload (multipart) html forms with using
templates.

View File

@ -199,7 +199,7 @@ begin
{Message for tags not handled}
begin
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;

View File

@ -199,7 +199,7 @@ begin
{Message for tags not handled}
begin
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;

View File

@ -1,5 +1,7 @@
List records using template tags, example
================================
(Requires FPC versions past 4/30/2009 /revisions 13062 and later/)
Demonstrates how to list multiple records using templates and template tags.

View File

@ -111,7 +111,7 @@ begin//HTML template tag handling for an html template file
end else begin
//Not found value for tag -> TagString
ReplaceText := 'Template tag {' + TagString + '} is not implemented yet.';
ReplaceText := 'Template tag {+' + TagString + '+} is not implemented yet.';
end;
end;

View File

@ -111,7 +111,7 @@ begin//HTML template tag handling for an html template file
end else begin
//Not found value for tag -> TagString
ReplaceText := 'Template tag {' + TagString + '} is not implemented yet.';
ReplaceText := 'Template tag {+' + TagString + '+} is not implemented yet.';
end;
end;

View File

@ -1,5 +1,7 @@
Sessions stored in cookies, Autosession example
==========================
(Requires FPC versions past 4/30/2009 /revisions 13062 and later/)
Every visitor automatically gets a session ID (no login required) passed in a
cookie to the web visitor's browser and stored on the web server until it

View File

@ -136,7 +136,7 @@ begin
begin
//Not found value for tag -> TagString
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;

View File

@ -136,7 +136,7 @@ global environment variable to the CGI programs' local environment variables.
begin
//Not found value for tag -> TagString
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;

View File

@ -1,5 +1,7 @@
Sessions stored in cookies with Login, example
======================================
(Requires FPC versions past 4/30/2009 /revisions 13062 and later/)
Note: Cookies must be enabled for the website in the visitor's browser for it
to work.

View File

@ -284,7 +284,7 @@ begin
{Message for tags not handled}
begin
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;
@ -300,7 +300,7 @@ begin
{Message for tags not handled}
begin
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;
@ -343,7 +343,7 @@ begin
{Message for tags not handled}
begin
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;
@ -371,7 +371,7 @@ begin
{Message for tags not handled}
begin
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;

View File

@ -363,7 +363,7 @@ begin
{Message for tags not handled}
begin
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;

View File

@ -1,5 +1,7 @@
Sessions stored in the URLs with Login, example
======================================
(Requires FPC versions past 4/30/2009 /revisions 13062 and later/)
Every visitor needs to log in to get a session ID that is always passed in the
URLs of the response pages as a query parameter and stored on the web server

View File

@ -258,7 +258,7 @@ begin
{Message for tags not handled}
begin
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;
@ -274,7 +274,7 @@ begin
{Message for tags not handled}
begin
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;
@ -313,7 +313,7 @@ begin
{Message for tags not handled}
begin
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;
@ -341,7 +341,7 @@ begin
{Message for tags not handled}
begin
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;

View File

@ -251,7 +251,7 @@ begin
{Message for tags not handled}
begin
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;
@ -267,7 +267,7 @@ begin
{Message for tags not handled}
begin
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;
@ -306,7 +306,7 @@ begin
{Message for tags not handled}
begin
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;
@ -334,7 +334,7 @@ begin
{Message for tags not handled}
begin
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
end;
end;

View File

@ -1,2 +1,4 @@
The simplest template with one template tag in it to be replaced by the
CGI/Apache application when generating the response page -> {TagName1}
(Requires FPC versions past 4/30/2009 /revisions 13062 and later/)

View File

@ -1,2 +1,5 @@
Demonstrating the set up and use of template tag parameter(s)
->ex: {+DATETIME [-FORMAT=MM/DD hh:mm:ss-]+}
(Requires FPC versions past 4/30/2009 /revisions 13062 and later/)

View File

@ -52,7 +52,7 @@ begin
end else begin
//Not found value for tag -> TagString
ReplaceText := 'Template tag {' + TagString + '} is not implemented yet.';
ReplaceText := 'Template tag {+' + TagString + '+} is not implemented yet.';
end;
end;

View File

@ -52,7 +52,7 @@ begin
end else begin
//Not found value for tag -> TagString
ReplaceText := 'Template tag {' + TagString + '} is not implemented yet.';
ReplaceText := 'Template tag {+' + TagString + '+} is not implemented yet.';
end;
end;