view release on metacpan or search on metacpan
CBF_examples/01_TrackProcess/index.html view on Meta::CPAN
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>CBF Example 1</title>
</head>
<body bgcolor="#ffffff">
<p><a href="/is.cgi?p=page1">is.cgi?p=page1</a></p>
<p><a href="/is.cgi?p=page2">is.cgi?p=page2</a></p>
<p><a href="/is.cgi?p=page3">is.cgi?p=page3</a></p>
<p></p>
</body>
CBF_examples/02_SimpleApp/SimpleApp.pm view on Meta::CPAN
# This CBB implements just the index and 2 page handlers
# called when no page has been requested (i.e. no 'p' param defined)
; sub PH_index
{ my $s = shift
; my $Time = $s->Time()
; $s->page_content = << "EOS"
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Index Page</title>
</head>
<body bgcolor="#ffffff">
<p>This page is the index (default) page of the application. </p>
<hr>
<p><a href="is.cgi?p=pass_page">Go to page 'pass_page'</a></p>
<p>The following link will not show you the env_page (because of the SH_env_page), instead it will switch you to the pass_page regardless the URL<br>
<a href="is.cgi?p=env_page">Go to page 'env_page'</a> </p>
<hr>Generated by $app_name at $Time
CBF_examples/02_SimpleApp/SimpleApp.pm view on Meta::CPAN
# this handler is called just for page 'pass_page'
# it contain a simple form which requires a password
; sub PH_pass_page
{ my $s = shift
; my $Time = $s->Time()
; $err = $s->page_error
; $s->page_content = << "EOS"
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Password Page</title>
</head>
<body bgcolor="#ffffff">
<p>This page is a sort of simplified login page. By filling the 'password' field with the correct password you can go to the 'env_page', while you will have this page displayed again if the password is wrong.</p>
<p> </p>
<hr>
<p><font color="red"><b>$$err{err_password}</b></font></p>
<form action="is.cgi" method="post">
Password: ('CBF') <input type="password" name="password" size="24" border="0">
CBF_examples/02_SimpleApp/SimpleApp.pm view on Meta::CPAN
# this handler is called just for page 'submitted_page'
# it is called only if the password is 'CBF' (see SH_env_page)
# it displays the ENVIRONMENT
; sub PH_env_page
{ my $s = shift
; my $Time = $s->Time()
; $s->page_content = << 'EOSTART'
<html>
<head>
<meta http-equiv=content-type content="text/html;charset=iso-8859-1">
<title>ENVIRONMENT</title>
<style media=screen type=text/css><!--
td { font-size: 9pt; font-family: Arial }
tr { vertical-align: top }
--></style>
</head>
<body bgcolor=#ffffff>
<table border=0 cellpadding=3 cellspacing=1 width=100%>
<tr><td bgcolor=#666699 nowrap colspan=2><font size=3 color=white><b>ENVIRONMENT</b></font></td></tr>
CBF_examples/02_SimpleApp/SimpleApp.pm view on Meta::CPAN
# for a certain requested page, and no page_content has been defined so far.
# You should define it only if you need to display some special page in the
# above situation, anyway, if you don't define it, the CBF will handle
# the request automatically by sending the correct header to the client
; sub PH_AUTOLOAD
{ my $s = shift
; $s->page_content = << "EOS"
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Unknown page!</title>
</head>
<body bgcolor="#ffffff">
<h1>Unknown page!</h1>
<hr>Generated by $app_name at $Time
</body>
</html>
EOS
CBF_examples/03_MagicApp/tm/env_page.html view on Meta::CPAN
<html>
<head>
<meta http-equiv=content-type content="text/html;charset=iso-8859-1">
<title>ENVIRONMENT</title>
<style media=screen type=text/css><!--
td { font-size: 9pt; font-family: Arial }
tr { vertical-align: top }
--></style>
</head>
<body bgcolor=#ffffff>
<table border=0 cellpadding=3 cellspacing=1 width=100%>
<tr><td bgcolor=#666699 nowrap colspan=2><font size=3 color=white><b>ENVIRONMENT</b></font></td></tr>
CBF_examples/03_MagicApp/tm/index.html view on Meta::CPAN
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Index Page</title>
</head>
<body bgcolor="#ffffff">
<p>This page is the index (default) page of the application. </p>
<hr>
<p><a href="is.cgi?p=pass_page">Go to page 'pass_page'</a></p>
<p>The following link will not show you the env_page (because of the SH_env_page), instead it will switch you to the pass_page regardless the URL<br>
<a href="is.cgi?p=env_page">Go to page 'env_page'</a> </p>
<hr>Generated by <!--{app_name}--> at <!--{Time}-->
CBF_examples/03_MagicApp/tm/pass_page.html view on Meta::CPAN
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Password Page</title>
</head>
<body bgcolor="#ffffff">
<p>This page is a sort of simplified login page. By filling the 'password' field with the correct password you can go to the 'env_page', while you will have this page displayed again if the password is wrong.</p>
<p> </p>
<hr>
<p><font color="red"><b><!--{err_password}--></b></font></p>
<form action="is.cgi" method="post">
Password: ('CBF') <input type="password" name="password" size="24" border="0">
CBF_examples/04_ApacheMagicApp/env_page.html view on Meta::CPAN
<html>
<head>
<meta http-equiv=content-type content="text/html;charset=iso-8859-1">
<title>ENVIRONMENT</title>
<style media=screen type=text/css><!--
td { font-size: 9pt; font-family: Arial }
tr { vertical-align: top }
--></style>
</head>
<body bgcolor=#ffffff>
<table border=0 cellpadding=3 cellspacing=1 width=100%>
<tr><td bgcolor=#666699 nowrap colspan=2><font size=3 color=white><b>ENVIRONMENT</b></font></td></tr>
CBF_examples/04_ApacheMagicApp/index.html view on Meta::CPAN
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Index Page</title>
</head>
<body bgcolor="#ffffff">
<p>This page is the index (default) page of the application. Note the links to the template files instead the Instance Script</p>
<hr>
<p><a href="pass_page.html">Go to page 'pass_page'</a></p>
<p>The following link will not show you the ENV_page (because of the SH_ENV_page), instead it will switch you to the pass_page regardless the URL<br>
<a href="env_page.html">Go to page 'ENV_page'</a> </p>
<hr>Generated by <!--{app_name}--> at <!--{Time}-->
CBF_examples/04_ApacheMagicApp/pass_page.html view on Meta::CPAN
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Password Page</title>
</head>
<body bgcolor="#ffffff">
<p>This page is a sort of simplified login page. By filling the 'password' field with the correct password you can go to the 'ENV_page', while you will have this page displayed again if the password is wrong. Note the form action pointed the templa...
<p> </p>
<hr>
<p><font color="red"><b><!--{err_password}--></b></font></p>
<form action="env_page.html" method="post">
Password: ('CBF') <input type="password" name="password" size="24" border="0">