Location: PHPKode > scripts > PHP or Java Class Code Generator > php-or-java-class-code-generator/index.php
<?php
include_once("./config.inc.php");
include_once(INCLUDE_PATH."cls_fast_template.php");
include_once(INCLUDE_PATH."cls_string.php");

$ft = new FastTemplate(TEMPLATE_PATH);

$stringutil = new String("");
$all_url_vars=array();
$all_url_vars=$stringutil->parse_all();
$all_url_vars["page"]=(empty($all_url_vars["page"])?"first":$all_url_vars["page"]);
if($all_url_vars["page"]=="first")
$ft->define(array("main"=>"template_body.html", "content"=>"template_firstpage.html"));
elseif ($all_url_vars["page"]=="sql")
          $ft->define(array("main"=>"template_body.html", "content"=>"template_sql.html"));
    else 
           $ft->define(array("main"=>"template_body.html", "content"=>"template_host.html"));
$ft->parse("BODY", array("content","main"));
$ft->FastPrint();
?>
Return current item: PHP or Java Class Code Generator