Location: PHPKode > projects > CSTracker > cstracker2-beta1/index.php
<?php
/*
 * Created on Jul 23, 2009
 *
 * Author:: Muhammed Nilufer Nilar
 * 
 */
session_start();
if( $_SESSION['loggedin'] == false ) {
//echo "dfsd";exit;
//echo "<pre>";print_r($_GET);print_r($_POST);print_r($_SESSION);exit;
	header("Location: ./login.php");
	exit();
}

$_SESSION['ROOT_PATH'] = dirname(__FILE__);

//print_r($_SESSION);exit;
?>

<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
    <title>Customer Support Tracker</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
    <link rel="stylesheet" type="text/css" href="./templates/css/default.css"></link>
    <link rel="stylesheet" type="text/css" href="./templates/css/css.css"></link>

<!-- dd menu -->
<script type="text/javascript">
<!--
var timeout         = 500;
var closetimer      = 0;
var ddmenuitem      = 0;

// open hidden layer
function mopen(id)
{
    // cancel close timer
    mcancelclosetime();

    // close old layer
    if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

    // get new layer and show it
    ddmenuitem = document.getElementById(id);
    ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
    if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
    closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
    if(closetimer)
    {
        window.clearTimeout(closetimer);
        closetimer = null;
    }
}

// close layer when click-out
document.onclick = mclose;
// -->
</script>
<?php //echo "<pre>";print_r($_SESSION);exit;?>
</head>
<body>
<h1>Customer Support Tracker</h1>

<ul id="sddm">
    <li><a href="#" onmouseover="mopen('m1')" onmouseout="mclosetime()">Customers</a>
        <div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="./controllers/CustomerController.php?code=new" target="content">Add Customer</a>
        <a href="./controllers/CustomerController.php?code=all" target="content">Show All Customers</a>
        </div>
    </li>
    <li><a href="#" onmouseover="mopen('m2')" onmouseout="mclosetime()">Requests</a>
        <div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="./controllers/SupportController.php?code=new" target="content">Add Request</a>
        <a href="./controllers/SupportController.php?code=all" target="content">Show All Requests</a>
        </div>
    </li>
    <li><a href="#" onmouseover="mopen('m3')" onmouseout="mclosetime()">Plans</a>
        <div id="m3" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="./controllers/PlanController.php?code=new"  target="content">Create Plan</a>
        <a href="./controllers/PlanController.php?code=all"  target="content">List of Support Plans</a>
        </div>
    </li>
    <li><a href="#" onmouseover="mopen('m4')" onmouseout="mclosetime()">Search</a>
        <div id="m4" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="./controllers/SupportController.php?code=search&by=plan&plan=0&status=All&when=before" target="content">Search by Plan</a>
<!--        <a href="./controllers/SupportController.php?code=filter&by=status&value=Open"  target="content">Open</a>
        <a href="./controllers/SupportController.php?code=filter&by=status&value=Pending"  target="content">Pending</a>
        <a href="./controllers/SupportController.php?code=filter&by=status&value=Resolved"  target="content">Resolved</a>
        <a href="./controllers/SupportController.php?code=filter&by=status&value=Removed"  target="content">Removed</a>
-->
        </div>
    </li>
    <li><a href="#" onmouseover="mopen('m5')" onmouseout="mclosetime()">Help</a>
        <div id="m5" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="#">Download Help File</a>
        <a href="#">Read online</a>
        <a href="login.php?code=logout">Logout</a>
        </div>
    </li>
    <li><a href="#" onmouseover="mopen('m6')" onmouseout="mclosetime()">Contact</a>
        <div id="m6" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="#">E-mail</a>
        <a href="#">Submit Request Form</a>
        <a href="http://javascript-array.com">Drop down menu source</a>
        </div>
    </li>
</ul>

<div style="clear:both"></div>

<div style="clear:both"></div>

<hr/>

<iframe name="content" src="./controllers/SupportController.php?code=new" height="88%" width="100%" frameborder="0"></iframe>
<div class="bottomcenter">
            CSTracker 0.2-beta1 © Nilufer Nilar. All rights reserved.
</div>
<!-- <iframe name="footer" src="#" height="25px" width="100%" frameborder="0" align="bottom" scrolling="no"></iframe> -->

</body>
</html>
Return current item: CSTracker