Login   Register  
PHP Classes

File: example.phtml

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Vallo Reima  >  PHP side menu generator  >  example.phtml  >  Download  
File: example.phtml
Role: Example script
Content type: text/plain
Description: The shell template
Class: PHP side menu generator
Generate hierarchical menus defined in XML files
Author: By
Last change:
Date: 1 year ago
Size: 1,885 bytes


Class file image Download
 * sidemenu example
 * @package     Application
 * @author      Vallo Reima
 * @copyright   (C)2012
$icon "$ats/vallo-reima.ico'";
$foot "$title © " date('Y');
$foot .= ' <a href="mailto:info@vallo.me?subject=' $title '">vallo.me</a>';
<!DOCTYPE html>
<html lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="author" content="Vallo Reima">
    <title><?php echo $title?></title>
    <link rel="shortcut icon" href="<?php echo $icon?>" type="image/x-icon">
    <link href="example.css" rel="stylesheet" type="text/css">
    <script src="common.js" type="text/javascript"></script>
    <script src="sidemenu.js" type="text/javascript"></script>
    <script type="text/javascript">

      var mnu;  /* menu object */

      window.onload = function() {
        mnu = new SideMenu(); /* activate menu */

      function Finish() {
        /*  example's exit  */
        var tnk = '<?php echo "$title$txt->tnk!"?>';
        document.body.innerHTML = '<h3>&nbsp;' + tnk + '</h3>';

    <div id="head" class="head">
      <span><?php echo $txt->hdg?></span>
      <button type="button" onClick="Finish();"><?php echo $txt->end?></button>
    <div class="areaRight">    
      <div class="areaLeft">    
        <div id="menu" class="menu">
          <?php echo $mnu->Menu($ops); ?>
        <div class="contents">
          <div class="section" id="section">
            <?php echo $txt->fts?>
          <div id="content" class="content">
            <?php echo $txt->ins?>
            <noscript><br /><?php echo $txt->jsd?></noscript>
    <div id="foot" class="foot">
      <?php echo $foot?>