spl_autoload_register("classLoad"); include 'config.php'; include 'lib/pagination.php'; //classes loading end session_start(); if (isset($_SESSION['userMerlaTrav']) and $_SESSION['userMerlaTrav']->profil() == "admin") { $idProjet = 0; $idSociete = 0; $projetManager = new ProjetManager($pdo); $societeManager = new SocieteManager($pdo); $clientManager = new ClientManager($pdo); if (isset($_GET['idProjet']) and $_GET['idProjet'] > 0 and $_GET['idProjet'] <= $projetManager->getLastId()) { $idProjet = $_GET['idProjet']; $projet = $projetManager->getProjetById($idProjet); $idSociete = $_GET['idSociete']; $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" /> <meta content="" name="author" /> <link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" /> <link href="assets/css/metro.css" rel="stylesheet" />
<div class="modal-body"> <form class="form-horizontal" action="controller/ProjetUpdateController.php" method="post"> <p>Êtes-vous sûr de vouloir modifier le projet <strong><?php echo $projet->nom(); ?> </strong> ?</p> <div class="control-group"> <label class="control-label">Société</label> <div class="controls"> <select name="idSociete"> <option value="<?php echo $projet->idSociete(); ?> "> <?php echo $societeManager->getSocieteById($projet->idSociete())->raisonSociale(); ?> </option> <option disabled="disabled">----------------</option> <?php foreach ($societes as $societe) { ?> <option value="<?php echo $societe->id(); ?> "><?php echo $societe->raisonSociale(); ?> </option> <?php }
table, a{ text-decoration: none; } </style> <page backtop="15mm" backbottom="20mm" backleft="10mm" backright="10mm"> <!--img src="../assets/img/logo_company.png" style="width: 110px" /--> <h3>Situation des <?php echo $type; ?> - Projet : <?php echo $projetManager->getProjetById($idProjet)->nom(); ?> - Societe : <?php echo $societeManager->getSocieteById($idSociete)->raisonSociale(); ?> </h3> <p>Imprimé le <?php echo date('d-m-Y'); ?> | <?php echo date('h:i'); ?> </p> <!--**************************** TERRAIN BEGIN ****************************--> <?php if ($type == "terrains") { $terrains = $terrainsManager->getTerrainsByIdProjet($idProjet); ?> <h3>Liste des terrains</h3>
spl_autoload_register("classLoad"); include 'config.php'; include 'lib/pagination.php'; //classes loading end session_start(); if (isset($_SESSION['userMerlaTrav'])) { //les sources $projetsManager = new ProjetManager($pdo); $societeManager = new SocieteManager($pdo); $societes = $societeManager->getSocietes(); if (isset($_GET['idSociete']) and ($_GET['idSociete'] >= 1 and $_GET['idSociete'] <= $societeManager->getLastId())) { $idSociete = $_GET['idSociete']; $idProjet = $_GET['idProjet']; $projet = $projetsManager->getProjetById($idProjet); $projetNumber = $projetsManager->getProjetsNumberByIdSociete($idSociete); $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" /> <meta content="" name="author" /> <link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" /> <link href="assets/css/metro.css" rel="stylesheet" />
session_start(); if (isset($_SESSION['userMerlaTrav'])) { //classes managers $usersManager = new UserManager($pdo); $mailManager = new MailManager($pdo); $todoManager = new TodoProjetManager($pdo); $societeManager = new SocieteManager($pdo); $projetManager = new ProjetManager($pdo); //classes and vars //users number $users = $usersManager->getUsers(); //$mails = $mailManager->getMails(); $idProjet = $_GET['idProjet']; $idSociete = $_GET['idSociete']; $projet = $projetManager->getProjetById($idProjet); $societe = $societeManager->getSocieteById($projet->idSociete()); $todos = $todoManager->getTodos(); ?> <!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>ImmoERP - Management Application</title> <meta content="width=device-width, initial-scale=1.0" name="viewport" /> <meta content="" name="description" /> <meta content="" name="author" /> <link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" /> <link href="assets/css/metro.css" rel="stylesheet" />