File: documentation/index.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil  >  PHP Skeleton Framework  >  documentation/index.php  >  Download  
File: documentation/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 5 years ago
Size: 4,372 bytes


Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head profile="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>A Skeleton Framework Manual</title>

<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<link href="prettify.css" type="text/css" rel="stylesheet" />

<script type="text/javascript" src="prettify.js"></script>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript">
function A_Request() {
    this.getQueryParams = function (qs) {
        qs = qs.split("+").join(" ");
        var params = {},
            re = /[?&]?([^=]+)=([^&]*)/g;

        while (tokens = re.exec(qs)) {
            params[decodeURIComponent(tokens[1])] = decodeURIComponent(tokens[2]);

        return params;

    this.get_data = this.getQueryParams(;

A_Request.prototype.get = function(name)
    return this.get_data[name];

A_Request.prototype.getHashTag = function()
    return window.location.hash.substring(1);
<script type="text/javascript">
function show_menu_items(dir, items)
    var n = items.length;
    for (var i = 0; i < n; i++) {
        var num = i + 1;
        if (num < 10) {
            num = "0" + num.toString();
        // jWuery Ajax URLs with <a class=\"ajaxlink\" parameter and full path to HTML partial files
        // document.write(" <li><span>"+dir+"."+num+"</span><a class=\"ajaxlink\" href=\""+dir+"/"+items[i]+".html\">"+items[i].replace("_"," ")+"</a></li>\n");
        // direct URLs with p parameter
        document.write(" <li><span>"+dir+"."+num+"</span><a href=\"?p="+dir+"/"+items[i]+"\">"+items[i].replace("_"," ")+"</a></li>\n");
<script type="text/javascript">
    $(function($) {
        var request = new A_Request();
        var p = request.get('p');
        if (p == undefined) {
            p = request.getHashTag();
        if ((p != undefined) && (p != "")) {
            p = p + ".html";
        } else {
            p = '1/Introduction.html';
    $('a.ajaxlink').live('click', function(){
        setTimeout('prettyPrint()', 100);
        return false;

<body onload="prettyPrint()">

<div id="main_header">
    <h1>A Skeleton Framework Manual</h1>

<div id="main_menu">
    <h2>Table of Contents</h2>
        <li><span>1.01</span><a class="ajaxlink" href="./?p=1/Introduction">Introduction</a></li>
        <li><span>1.02</span><a class="ajaxlink" href="./?p=1/Key_Concepts">Key Concepts</a></li>
        <li><span>1.03</span><a class="ajaxlink" href="./?p=1/Application_Flow">Application Flow</a></li>
        <li><span>1.04</span><a class="ajaxlink" href="./?p=1/Model_View_Controller">Model View Controller</a></li>
        <li><span>2.01</span><a class="ajaxlink" href="./?p=2/Download">Download and SVN</a></li>
        <li><span>2.02</span><a class="ajaxlink" href="./?p=2/Directory_Structure">Directory Structure</a></li>
        <script type="text/javascript">
            var pages = [
            show_menu_items("3", pages);
        <script type="text/javascript">
            var pages = [
            show_menu_items('4', pages);

    <h3>API Documentation</h3>
    <li><a href="api/index.html">API Documentation</a></li>
    <li><a class="ajaxlink" href="../A/LICENSE">LICENSE</a></li>
     <p><a class="ajaxlink" href="sample_doc.html">sample doc</a></p>

<div id="main_content">

<div id="main_footer">
    <p><a href="">Project Repository</a></p>


For more information send a message to info at phpclasses dot org.