Example #1
0
<?php

require 'additional/header.php';
if (!empty($_GET['id'])) {
    require_once 'core/classes/crud.php';
    $dbObject = new crud('clients');
    $infoClient = $dbObject->getClient($_GET['id']);
    $infoClient = $infoClient[0];
    $managers = $dbObject->managersRead();
    $managers = $managers[0];
    ?>
<body xmlns="http://www.w3.org/1999/html">
<div id="wrapper">
    <?php 
    require_once 'additional/fixed-menu.php';
    ?>
<!--/. NAV TOP  -->
    <?php 
    require_once 'additional/fixed-sidebar.php';
    ?>

<!-- /. NAV SIDE  -->
<div id="page-wrapper" >
    <div id="page-inner">
        <div class="row">
            <div class="col-md-12">
                <h1 class="page-header">
                    Страница клиента<small><?php 
    echo $infoClient['firmname'];
    ?>
</small>
<?php

session_start();
if (!empty($_POST)) {
    print_r($_POST);
}
if (!empty($_GET['idclient'])) {
    require_once 'classes/crud.php';
    $idclient = $_GET['idclient'];
    $dbObject = new crud('workers');
    $projects = $dbObject->getAllProjects();
    $projects = $projects[0];
    $countProjects = $dbObject->getCountRows('projects');
    $workers = $dbObject->getAllWorkers();
    $workers = $workers[0];
    $infoOfClient = $dbObject->getClient($idclient);
    $infoOfClient = $infoOfClient[0];
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
      <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>CRM - Создание проекта</title>
	<!-- Bootstrap Styles-->
    <link href="../assets/css/steps.css" rel="stylesheet" />

    <link href="../assets/css/bootstrap.css" rel="stylesheet" />
     <!-- FontAwesome Styles-->
    <link href="../assets/css/font-awesome.css" rel="stylesheet" />