示例#1
0
    }
}
spl_autoload_register("classLoad");
include 'config.php';
include 'lib/pagination.php';
//classes loading end
session_start();
if (isset($_SESSION['userMerlaTrav'])) {
    //classManagers
    $projetManager = new ProjetManager($pdo);
    $societeManager = new SocieteManager($pdo);
    $chargesCommunsManager = new ChargesCommunsManager($pdo);
    //
    if (isset($_GET['idSociete']) and ($_GET['idSociete'] >= 1 and $_GET['idSociete'] <= $societeManager->getLastId())) {
        $idSociete = $_GET['idSociete'];
        $chargesCommuns = $chargesCommunsManager->getChargesCommunsBySociete($idSociete);
        $projets = $projetManager->getProjetsByIdSociete($idSociete);
        $societes = $societeManager->getSocietes();
        $societe = $societeManager->getSocieteById($idSociete);
    }
    ?>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="utf-8" />
    <title>GELM - Management Application</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <meta content="" name="description" />