コード例 #1
0
ファイル: task.php プロジェクト: VladislavMaslakov/crm-beta
<?php

require 'additional/header.php';
if (!empty($_GET['idTask'])) {
    $workerID = $_SESSION['workerId'];
    require_once 'core/classes/crud.php';
    $dbObject = new crud('tasks');
    $task = $dbObject->getTask($_GET['idTask']);
    $task = $task[0];
    $workers = $dbObject->getAllWorkers();
    $workers = $workers[0];
    $comments = $dbObject->getCommentsTask($_GET['idTask']);
    $comments = $comments[0];
    $conditionTask = $task['cond'];
    $idfrom = $task['idfrom'];
    $accessToTask = $dbObject->checkAccessTask($_GET['idTask'], $workerID);
    ?>
<body>
    <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">