mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-05 05:48:18 +02:00
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:
parent
6b4d24ec67
commit
e2d0fec11d
@ -1,5 +1,6 @@
|
|||||||
These examples are demonstrating some uses of templates (with FPTemplate) when
|
These examples are demonstrating some uses of templates (with FPTemplate) when
|
||||||
generating HTML pages by CGI programs or Apache modules.
|
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
|
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
|
designers. Separating the web page design from the back end CGI/Apache
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
File upload from html form, example
|
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
|
Demonstrates how to handle the file upload (multipart) html forms with using
|
||||||
templates.
|
templates.
|
||||||
|
@ -199,7 +199,7 @@ begin
|
|||||||
|
|
||||||
{Message for tags not handled}
|
{Message for tags not handled}
|
||||||
begin
|
begin
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ begin
|
|||||||
|
|
||||||
{Message for tags not handled}
|
{Message for tags not handled}
|
||||||
begin
|
begin
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
List records using template tags, example
|
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.
|
Demonstrates how to list multiple records using templates and template tags.
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ begin//HTML template tag handling for an html template file
|
|||||||
end else begin
|
end else begin
|
||||||
|
|
||||||
//Not found value for tag -> TagString
|
//Not found value for tag -> TagString
|
||||||
ReplaceText := 'Template tag {' + TagString + '} is not implemented yet.';
|
ReplaceText := 'Template tag {+' + TagString + '+} is not implemented yet.';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ begin//HTML template tag handling for an html template file
|
|||||||
end else begin
|
end else begin
|
||||||
|
|
||||||
//Not found value for tag -> TagString
|
//Not found value for tag -> TagString
|
||||||
ReplaceText := 'Template tag {' + TagString + '} is not implemented yet.';
|
ReplaceText := 'Template tag {+' + TagString + '+} is not implemented yet.';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
Sessions stored in cookies, Autosession example
|
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
|
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
|
cookie to the web visitor's browser and stored on the web server until it
|
||||||
|
@ -136,7 +136,7 @@ begin
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
//Not found value for tag -> TagString
|
//Not found value for tag -> TagString
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ global environment variable to the CGI programs' local environment variables.
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
//Not found value for tag -> TagString
|
//Not found value for tag -> TagString
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
Sessions stored in cookies with Login, example
|
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
|
Note: Cookies must be enabled for the website in the visitor's browser for it
|
||||||
to work.
|
to work.
|
||||||
|
|
||||||
|
@ -284,7 +284,7 @@ begin
|
|||||||
|
|
||||||
{Message for tags not handled}
|
{Message for tags not handled}
|
||||||
begin
|
begin
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -300,7 +300,7 @@ begin
|
|||||||
|
|
||||||
{Message for tags not handled}
|
{Message for tags not handled}
|
||||||
begin
|
begin
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -343,7 +343,7 @@ begin
|
|||||||
|
|
||||||
{Message for tags not handled}
|
{Message for tags not handled}
|
||||||
begin
|
begin
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -371,7 +371,7 @@ begin
|
|||||||
|
|
||||||
{Message for tags not handled}
|
{Message for tags not handled}
|
||||||
begin
|
begin
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -363,7 +363,7 @@ begin
|
|||||||
|
|
||||||
{Message for tags not handled}
|
{Message for tags not handled}
|
||||||
begin
|
begin
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
Sessions stored in the URLs with Login, example
|
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
|
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
|
URLs of the response pages as a query parameter and stored on the web server
|
||||||
|
@ -258,7 +258,7 @@ begin
|
|||||||
|
|
||||||
{Message for tags not handled}
|
{Message for tags not handled}
|
||||||
begin
|
begin
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -274,7 +274,7 @@ begin
|
|||||||
|
|
||||||
{Message for tags not handled}
|
{Message for tags not handled}
|
||||||
begin
|
begin
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -313,7 +313,7 @@ begin
|
|||||||
|
|
||||||
{Message for tags not handled}
|
{Message for tags not handled}
|
||||||
begin
|
begin
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -341,7 +341,7 @@ begin
|
|||||||
|
|
||||||
{Message for tags not handled}
|
{Message for tags not handled}
|
||||||
begin
|
begin
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ begin
|
|||||||
|
|
||||||
{Message for tags not handled}
|
{Message for tags not handled}
|
||||||
begin
|
begin
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -267,7 +267,7 @@ begin
|
|||||||
|
|
||||||
{Message for tags not handled}
|
{Message for tags not handled}
|
||||||
begin
|
begin
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -306,7 +306,7 @@ begin
|
|||||||
|
|
||||||
{Message for tags not handled}
|
{Message for tags not handled}
|
||||||
begin
|
begin
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -334,7 +334,7 @@ begin
|
|||||||
|
|
||||||
{Message for tags not handled}
|
{Message for tags not handled}
|
||||||
begin
|
begin
|
||||||
ReplaceText := '[Template tag "' + TagString + '" is not implemented yet.]';
|
ReplaceText := '[Template tag {+' + TagString + '+} is not implemented yet.]';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
The simplest template with one template tag in it to be replaced by the
|
The simplest template with one template tag in it to be replaced by the
|
||||||
CGI/Apache application when generating the response page -> {TagName1}
|
CGI/Apache application when generating the response page -> {TagName1}
|
||||||
|
|
||||||
|
(Requires FPC versions past 4/30/2009 /revisions 13062 and later/)
|
||||||
|
@ -1,2 +1,5 @@
|
|||||||
Demonstrating the set up and use of template tag parameter(s)
|
Demonstrating the set up and use of template tag parameter(s)
|
||||||
->ex: {+DATETIME [-FORMAT=MM/DD hh:mm:ss-]+}
|
->ex: {+DATETIME [-FORMAT=MM/DD hh:mm:ss-]+}
|
||||||
|
|
||||||
|
(Requires FPC versions past 4/30/2009 /revisions 13062 and later/)
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ begin
|
|||||||
end else begin
|
end else begin
|
||||||
|
|
||||||
//Not found value for tag -> TagString
|
//Not found value for tag -> TagString
|
||||||
ReplaceText := 'Template tag {' + TagString + '} is not implemented yet.';
|
ReplaceText := 'Template tag {+' + TagString + '+} is not implemented yet.';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ begin
|
|||||||
end else begin
|
end else begin
|
||||||
|
|
||||||
//Not found value for tag -> TagString
|
//Not found value for tag -> TagString
|
||||||
ReplaceText := 'Template tag {' + TagString + '} is not implemented yet.';
|
ReplaceText := 'Template tag {+' + TagString + '+} is not implemented yet.';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user