PHP Classes

File: indexer/templates/current.template.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Saravana kumar.A  >  Indexer  >  indexer/templates/current.template.php  >  Download  
File: indexer/templates/current.template.php
Role: Auxiliary script
Content type: text/plain
Description: Template File
Class: Indexer
Browse, view and download files
Author: By
Last change:
Date: 4 years ago
Size: 2,671 bytes


Class file image Download
 * current.template.php // Template for Indexer
 * (c)2011 Saravaranakumar.A
 * Mail:
 * Variables:
 * $page_title - Title of page
 * $table_title - Title to set on top of table
 * $message - Message [Error message]
 * $directory - Current directory
 * $parent_href - Link href of parent directory
 * $links - Contents

// Header
echo <<<HEADER
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" xml:lang="en" lang="en">

    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="generator" content="Geany 0.18" />
    <link rel="stylesheet" href="templates/current.stylesheet.css" />

    <div class="table">
        <div class="caption">
        <div class="message">
        <div class="path">Directory:
        <div class="heading">
            <span class="iconcolumn">&nbsp;</span>
            <span class="namecolumn">Item</span>
            <span class="typecolumn">Type</span>
            <span class="sizecolumn">Size</span>
        <div class="contents">
            <div class="row" id="parent">
                <a href="
                    <span class="iconcolumn">
                        <img class="iconimage" src="iconset/up.gif" alt="ico" />
                    <span class="namecolumn">
                        Parent Directory
                    <span class="typecolumn">
                    <span class="sizecolumn">


// Contents
foreach($links as $link)
<div class="row">
                <a href="
                    <span class="iconcolumn">
                        <img class="iconimage" src="
{$link['icon']}" alt="ico" />
                    <span class="namecolumn">
                    <span class="typecolumn">
                    <span class="sizecolumn">

// Footer
echo <<<FOOTER
    <div class="footer">
        Powered by Indexer &copy;2011 Saravana Kumar.A
        <p align="center">
            <a href="" target="_blank">
                <img style="border: 0px;" src="" alt="Valid XHTML 1.0 Transitional" height="31" width="88" />