Ejemplo n.º 1
0
<?php

session_start();
session_set_cookie_params(0, "/");
setcookie('PHPSESSID', session_id(), 0, '/');
?>
<!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_client_payment.php';
include_once 'model/model_client_payment.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) {
    //Initialize and set relevant arrays
    $ClientPaymentID = $_GET['id'];
    $ClientPaymentInformation = $m->get_client_payment_information($ClientPaymentID);
    //Process submitted information.
    if (isset($_GET['action'])) {
        $action = $_GET['action'];
        $m->{$action}($_POST);
    }
    //Start Main Content Here
    echo <<<eos
<div class="row">
  <div class="col-md-12">
Ejemplo n.º 2
0
<?php

session_start();
session_set_cookie_params(0, "/");
setcookie('PHPSESSID', session_id(), 0, '/');
?>
<!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_expense.php';
include_once 'model/model_expense.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) {
    //Initialize and set relevant arrays
    $ExpenseID = $_GET['id'];
    $ExpenseInformation = $m->get_expense_information($ExpenseID);
    //Process submitted information.
    if (isset($_GET['action'])) {
        $action = $_GET['action'];
        $m->{$action}($_POST);
    }
    //Start Main Content Here
    echo <<<eos
<div class="row">
  <div class="col-md-12">
Ejemplo n.º 3
0
<?php

session_start();
session_set_cookie_params(0, "/");
setcookie('PHPSESSID', session_id(), 0, '/');
?>
<!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_my_projects.php';
include_once 'model/model_my_projects.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) {
    //Start Main Content Here
    $my_projects = $m->get_my_projects();
    echo $r->view_my_projects($my_projects);
}
include_once 'template/footer.php';
Ejemplo n.º 4
0
<?php

session_start();
session_set_cookie_params(0, "/");
setcookie('PHPSESSID', session_id(), 0, '/');
?>
<!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>
Ejemplo n.º 5
0
<?php

session_start();
session_set_cookie_params(0, "/");
setcookie('PHPSESSID', session_id(), 0, '/');
?>
<!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_regular_clients.php';
include_once 'model/model_regular_clients.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);
//Process submitted information.
if (isset($_GET['action'])) {
    $action = $_GET['action'];
    $m->{$action}($_GET);
}
$my_clients = $m->get_my_regular_clients();
if ($_SESSION['valid'] == TRUE) {
    //Start Main Content Here
    echo $r->view_my_clients($my_clients);
}
include_once 'template/footer.php';
Ejemplo n.º 6
0
<?php

session_start();
session_set_cookie_params(0, "/");
setcookie('PHPSESSID', session_id(), 0, '/');
?>
<!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_hours.php';
include_once 'model/model_hours.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) {
    //Initialize and set relevant arrays
    $Hours = $m->get_my_hours();
    //Start Main Content Here
    echo <<<eos
<div class="row">
  <div class="col-md-12">
\t<div class="row">
\t\t<div class="panel panel-info">
\t\t\t<div class="panel-heading">
    \t\t\t\t<h3 class="panel-title">My Hours</h3>
  \t\t\t</div>
  \t\t\t<div class="panel-body">
Ejemplo n.º 7
0
<?php

session_start();
session_set_cookie_params(0, "/");
setcookie('PHPSESSID', session_id(), 0, '/');
?>
<!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_project.php';
include_once 'model/model_project.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) {
    //Initialize and set relevant arrays
    $OrderID = $_GET['id'];
    $ProjectInformation = $m->get_project_information($OrderID);
    $ClientInformation = $m->get_client_information($OrderID);
    $WorkerAssignments = $m->get_assignments_by_project($OrderID);
    $Employees = $m->get_employees($OrderID);
    $ProjectHours = $m->get_hours_by_project($OrderID);
    $ProjectExpenses = $m->get_expenses_by_project($OrderID);
    $ProjectClientPayments = $m->get_client_payments_by_project($OrderID);
    //Process submitted information.
    if (isset($_GET['action'])) {
        $action = $_GET['action'];
Ejemplo n.º 8
0
<?php

session_start();
session_set_cookie_params(0, "/");
setcookie('PHPSESSID', session_id(), 0, '/');
?>
<!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_addclient.php';
include_once 'model/model_addclient.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) {
    //Process submitted information.
    if (isset($_GET['action'])) {
        $action = $_GET['action'];
        $m->{$action}($_POST);
    }
    //Start Main Content Here
    echo <<<eos
<center>
<div class="row">
\t<div class="col-md-4"></div>
  <div class="col-md-4">
\t<div class="row">
Ejemplo n.º 9
0
session_start();
session_set_cookie_params(0, "/");
setcookie('PHPSESSID', session_id(), 0, '/');
?>
<!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_add_projects.php';
include_once 'model/model_add_projects.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) {
    if (isset($_GET['action'])) {
        $action = $_GET['action'];
        $m->{$action}($_POST);
    }
    //Start Main Content Here
    echo <<<eos

\t\t<center>
\t\t<div class="row">
\t\t\t<div class="col-md-12">
\t\t\t\t<div class="row">
\t\t\t\t\t<div class="panel panel-info">
Ejemplo n.º 10
0
<?php

session_start();
session_set_cookie_params(0, "/");
setcookie('PHPSESSID', session_id(), 0, '/');
?>
<!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_hour.php';
include_once 'model/model_hour.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) {
    //Initialize and set relevant arrays
    $HourID = $_GET['id'];
    $HourInformation = $m->get_hour_information($HourID);
    //Process submitted information.
    if (isset($_GET['action'])) {
        $action = $_GET['action'];
        $m->{$action}($_POST);
    }
    //Start Main Content Here
    echo <<<eos
<div class="row">
  <div class="col-md-12">