コード例 #1
0
ファイル: index.php プロジェクト: brucrew/brucrew
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>	
<?php 
include_once '../../credentials.php';
include_once 'view/view_index.php';
include_once 'model/model_index.php';
include_once 'controller/controller_auth.php';
$a = new controller_auth($username, $password);
$m = new model_page($username, $password);
$r = new view_page($username, $password);
include_once 'template/header.php';
$a->do_auth($username, $password);
if ($_SESSION['valid'] == TRUE) {
    $EmployeeID = $_SESSION['UserID'];
    $my_projects = $m->get_my_projects();
    $recent_hours = $m->get_recent_hours();
    //Start Main Content Here
    echo <<<eos
\t\t\t<div class="row">
\t\t\t\t<div class="col-md-6">
\t\t\t\t\t<div class="row">
\t\t\t\t\t\t<div class="panel panel-info">
\t\t\t\t\t\t\t<div class="panel-heading">
\t\t\t\t\t\t\t\t<h3 class="panel-title">Projects</h3>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class="panel-body">
\t\t\t\t\t\t\t\t<div class="table-responsive">
eos;
    $r->view_my_projects($my_projects);
    echo <<<eos
\t\t\t\t\t\t\t\t</div>