• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ProjetManager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中ProjetManager的典型用法代码示例。如果您正苦于以下问题:PHP ProjetManager类的具体用法?PHP ProjetManager怎么用?PHP ProjetManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了ProjetManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: classLoad

function classLoad($myClass)
{
    if (file_exists('model/' . $myClass . '.php')) {
        include 'model/' . $myClass . '.php';
    } elseif (file_exists('controller/' . $myClass . '.php')) {
        include 'controller/' . $myClass . '.php';
    }
}
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") {
    $fournisseurManager = new FournisseurManager($pdo);
    $projetManager = new ProjetManager($pdo);
    $livraisonManager = new LivraisonManager($pdo);
    $idFournisseur = 0;
    if (isset($_GET['idFournisseur']) and ($_GET['idFournisseur'] > 0 and $_GET['idFournisseur'] <= $fournisseurManager->getLastId())) {
        $idFournisseur = $_GET['idFournisseur'];
        $reglementsManager = new ReglementFournisseurManager($pdo);
        $reglementNumber = $reglementsManager->getReglementsNumberByIdFournisseurOnly($idFournisseur);
        if ($reglementNumber != 0) {
            $reglementPerPage = 10;
            $pageNumber = ceil($reglementNumber / $reglementPerPage);
            $p = 1;
            if (isset($_GET['p']) and ($_GET['p'] > 0 and $_GET['p'] <= $pageNumber)) {
                $p = $_GET['p'];
            } else {
                $p = 1;
            }
开发者ID:aassou,项目名称:ImmoAppMerlaTrav,代码行数:31,代码来源:fournisseurs-reglements.php


示例2: classLoad

function classLoad($myClass)
{
    if (file_exists('model/' . $myClass . '.php')) {
        include 'model/' . $myClass . '.php';
    } elseif (file_exists('controller/' . $myClass . '.php')) {
        include 'controller/' . $myClass . '.php';
    }
}
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);
    $fournisseurManager = new FournisseurManager($pdo);
    $livraisonManager = new LivraisonManager($pdo);
    $livraisonDetailManager = new LivraisonDetailManager($pdo);
    $reglementsFournisseurManager = new ReglementFournisseurManager($pdo);
    //classes and vars
    $idFournisseur = 0;
    $projets = $projetManager->getProjets();
    $fournisseurs = $fournisseurManager->getFournisseurs();
    $projet = $projetManager->getProjets();
    $livraisonNumber = 0;
    $totalReglement = 0;
    $totalLivraison = 0;
    $titreLivraison = "Liste de toutes les livraisons";
    $hrefLivraisonBilanPrintController = "controller/Livraison2BilanPrintController.php";
    $livraisonListDeleteLink = "";
开发者ID:aassou,项目名称:ImmoAppMerlaTrav,代码行数:31,代码来源:livraisons-fournisseur.php


示例3: elseif

        include '../model/' . $myClass . '.php';
    } elseif (file_exists('../controller/' . $myClass . '.php')) {
        include '../controller/' . $myClass . '.php';
    }
}
spl_autoload_register("classLoad");
include '../config.php';
include '../lib/image-processing.php';
require_once '../lib/tcpdf/tcpdf.php';
//classes loading end
session_start();
//classes managers
$contratEmployeManager = new ContratEmployeManager($pdo);
$companyManager = new CompanyManager($pdo);
$clientManager = new ClientManager($pdo);
$projetManager = new ProjetManager($pdo);
$employeManager = new EmployeManager($pdo);
//classes
$idContrat = $_GET['idContratEmploye'];
$contrat = $contratEmployeManager->getContratEmployeById($idContrat);
$projet = $projetManager->getProjetById($contrat->idProjet());
$employe = $employeManager->getEmployeById($contrat->employe());
//choix unité en arabe selon la valeur de l'unité
$unite = "";
if ($contrat->unite() == "m²") {
    $unite = "المتر المربع";
} else {
    if ($contrat->unite() == "m lineaire") {
        $unite = "المتر الخطي";
    } else {
        if ($contrat->unite() == "appartement") {
开发者ID:aassou,项目名称:Annahda,代码行数:31,代码来源:ContratEmployeArabePrintController.php


示例4: elseif

{
    if (file_exists('model/' . $myClass . '.php')) {
        include 'model/' . $myClass . '.php';
    } elseif (file_exists('controller/' . $myClass . '.php')) {
        include 'controller/' . $myClass . '.php';
    }
}
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") {
    //les sources
    $idProjet = 0;
    $projetManager = new ProjetManager($pdo);
    $employeManager = new EmployeManager($pdo);
    $paiementManager = new PaiementEmployeManager($pdo);
    if (isset($_GET['idProjet']) and $_GET['idProjet'] > 0 and $_GET['idProjet'] <= $projetManager->getLastId()) {
        $idProjet = $_GET['idProjet'];
        $projet = $projetManager->getProjetById($idProjet);
        $employes = $employeManager->getEmployes();
        $paiementNumber = $paiementManager->getPaiementEmployeNumberByIdProjet($idProjet);
        if ($paiementNumber != 0) {
            $paiements = $paiementManager->getPaiementsByIdProjet($idProjet);
        }
        //}
        ?>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
开发者ID:aassou,项目名称:gelm,代码行数:31,代码来源:projet-employes.php


示例5: classLoad

//classes loading begin
function classLoad($myClass)
{
    if (file_exists('../model/' . $myClass . '.php')) {
        include '../model/' . $myClass . '.php';
    } elseif (file_exists('../controller/' . $myClass . '.php')) {
        include '../controller/' . $myClass . '.php';
    }
}
spl_autoload_register("classLoad");
include '../config.php';
//classes loading end
session_start();
if (isset($_SESSION['userMerlaTrav']) and $_SESSION['userMerlaTrav']->profil() == "admin") {
    $projetManager = new ProjetManager($pdo);
    $fournisseurManager = new FournisseurManager($pdo);
    $livraisonManager = new LivraisonManager($pdo);
    $livraisonDetailManager = new LivraisonDetailManager($pdo);
    $reglementsFournisseurManager = new ReglementFournisseurManager($pdo);
    //classes and vars
    $livraisonNumber = 0;
    $totalReglement = 0;
    $totalLivraison = 0;
    $titreLivraison = "Liste de toutes les livraisons";
    $hrefLivraisonBilanPrintController = "controller/LivraisonBilanPrintController.php";
    if (isset($_POST['idProjet']) and ($_POST['idProjet'] >= 1 and $_POST['idProjet'] <= $projetManager->getLastId())) {
        $idProjet = htmlentities($_POST['idProjet']);
        $idFournisseur = htmlentities($_POST['idFournisseur']);
        $dateFrom = htmlentities($_POST['dateFrom']);
        $dateTo = htmlentities($_POST['dateTo']);
开发者ID:aassou,项目名称:gelm,代码行数:30,代码来源:LivraisonBilanPrintController.php


示例6: elseif

{
    if (file_exists('model/' . $myClass . '.php')) {
        include 'model/' . $myClass . '.php';
    } elseif (file_exists('controller/' . $myClass . '.php')) {
        include 'controller/' . $myClass . '.php';
    }
}
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;
    //classManagers
    $projetManager = new ProjetManager($pdo);
    $societeManager = new SocieteManager($pdo);
    $contratManager = new ContratManager($pdo);
    $maisonManager = new MaisonManager($pdo);
    $appartementManager = new AppartementManager($pdo);
    $localManager = new LocauxManager($pdo);
    $terrainManager = new TerrainManager($pdo);
    //objects and vars
    $projet = "";
    $contrat = "";
    if (isset($_GET['idProjet']) and $_GET['idProjet'] > 0 and $_GET['idProjet'] <= $projetManager->getLastId() and (isset($_GET['idContrat']) and $_GET['idContrat'] > 0 and $_GET['idContrat'] <= $contratManager->getLastId())) {
        $idProjet = $_GET['idProjet'];
        $idSociete = $_GET['idSociete'];
        $idContrat = $_GET['idContrat'];
        $projet = $projetManager->getProjetById($idProjet);
        $societe = $societeManager->getSocieteById($idSociete);
开发者ID:aassou,项目名称:gelm,代码行数:31,代码来源:contrats-update.php


示例7: classLoad

//classes loading begin
function classLoad($myClass)
{
    if (file_exists('model/' . $myClass . '.php')) {
        include 'model/' . $myClass . '.php';
    } elseif (file_exists('controller/' . $myClass . '.php')) {
        include 'controller/' . $myClass . '.php';
    }
}
spl_autoload_register("classLoad");
include 'config.php';
//classes loading end
session_start();
if (isset($_SESSION['userMerlaTrav'])) {
    $projetManager = new ProjetManager($pdo);
    $societeManager = new SocieteManager($pdo);
    $idProjet = $_GET['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" />
开发者ID:aassou,项目名称:gelm,代码行数:30,代码来源:biens-by-projects.php


示例8: classLoad

function classLoad($myClass)
{
    if (file_exists('../model/' . $myClass . '.php')) {
        include '../model/' . $myClass . '.php';
    } elseif (file_exists('../controller/' . $myClass . '.php')) {
        include '../controller/' . $myClass . '.php';
    }
}
spl_autoload_register("classLoad");
include '../config.php';
//classes loading end
session_start();
//post input processing
if (!empty($_POST['nom'])) {
    $nom = htmlentities($_POST['nom']);
    $projetManager = new ProjetManager($pdo);
    if ($projetManager->exists($nom) > 0) {
        $_SESSION['projet-add-error'] = "<strong>Erreur Ajout Projet : </strong>Un projet existe déjà avec ce nom : " . $nomProjet . ".";
        header('Location:../projets.php');
        exit;
    } else {
        $numeroTitre = htmlentities($_POST['numeroTitre']);
        $emplacement = htmlentities($_POST['emplacement']);
        $superficie = htmlentities($_POST['superficie']);
        $description = htmlentities($_POST['description']);
        $dateCreation = htmlentities($_POST['dateCreation']);
        $status = "En cours";
        $createdBy = $_SESSION['userMerlaTrav']->login();
        $created = date('Y-m-d');
        $idSociete = htmlentities($_POST['idSociete']);
        //create object
开发者ID:aassou,项目名称:gelm,代码行数:31,代码来源:ProjetAddController.php


示例9: classLoad

//classes loading begin
function classLoad($myClass)
{
    if (file_exists('../model/' . $myClass . '.php')) {
        include '../model/' . $myClass . '.php';
    } elseif (file_exists('../controller/' . $myClass . '.php')) {
        include '../controller/' . $myClass . '.php';
    }
}
spl_autoload_register("classLoad");
include '../config.php';
//classes loading end
session_start();
//post input processing
$idCheque = $_POST['idCheque'];
$idSociete = htmlentities($_POST['idSociete']);
$chequeManager = new ChequeManager($pdo);
$cheque = $chequeManager->getChequeById($idCheque);
$chequeManager->delete($idCheque);
$_SESSION['cheque-delete-success'] = "<strong>Opération valide : </strong>Chèque supprimé avec succès.";
//add history data to db
$historyManager = new HistoryManager($pdo);
$projetManager = new ProjetManager($pdo);
$projet = $projetManager->getProjetById($cheque->idProjet());
$createdBy = $_SESSION['userMerlaTrav']->login();
$created = date('Y-m-d h:i:s');
$history = new History(array('action' => "Suppression", 'target' => "Table des chèques", 'description' => "Suppression du chèque- N° : " . $cheque->numero() . " - Montant : " . $cheque->montant() . " - Compte : " . $cheque->compteBancaire() . " - Designation : " . $cheque->designationSociete() . "/" . $cheque->designationPersonne() . " - Projet : " . $projet->nom(), 'created' => $created, 'createdBy' => $createdBy));
//add it to db
$historyManager->add($history);
//do not forget p parameter and to send it in url
header('Location:../company-cheques.php?idSociete=' . $idSociete);
开发者ID:aassou,项目名称:gelm,代码行数:31,代码来源:ChequeDeleteController.php


示例10: classLoad

    function classLoad ($myClass) {
        if(file_exists('model/'.$myClass.'.php')){
            include('model/'.$myClass.'.php');
        }
        elseif(file_exists('controller/'.$myClass.'.php')){
            include('controller/'.$myClass.'.php');
        }
    }
    spl_autoload_register("classLoad"); 
    include('config.php');  
    include('lib/pagination.php');
    //classes loading end
    session_start();
    if( isset($_SESSION['userMerlaTrav']) ){
        //les sources
        $projetManager = new ProjetManager($pdo);
        $appartementManager = new AppartementManager($pdo);
        $locauxManager = new LocauxManager($pdo);
        $contratManager = new ContratManager($pdo);
        $clientManager = new ClientManager($pdo);
        $appartements = $appartementManager->getAppartementsNonVendu();
        $appartementsRevendre = $contratManager->getAppartementsRevendre();
        $locaux = $locauxManager->getLocauxNonVendu();
        $locauxRevendre = $contratManager->getLocauxRevendre();
?>
<!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>
开发者ID:aassou,项目名称:Annahda,代码行数:31,代码来源:properties-status.php


示例11: classLoad

function classLoad($myClass)
{
    if (file_exists('model/' . $myClass . '.php')) {
        include 'model/' . $myClass . '.php';
    } elseif (file_exists('controller/' . $myClass . '.php')) {
        include 'controller/' . $myClass . '.php';
    }
}
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);
    $fournisseurManager = new FournisseurManager($pdo);
    $commandeManager = new CommandeManager($pdo);
    $commandeDetailManager = new CommandeDetailManager($pdo);
    //classes and vars
    $commandes = "";
    $projets = $projetManager->getProjets();
    $fournisseurs = $fournisseurManager->getFournisseurs();
    $projet = $projetManager->getProjets();
    $livraisonListDeleteLink = "";
    if (isset($_GET['mois']) and isset($_GET['annee'])) {
        $mois = $_GET['mois'];
        $annee = $_GET['annee'];
        $commandes = $commandeManager->getCommandesByMonthYear($mois, $annee);
    }
    ?>
开发者ID:aassou,项目名称:Annahda,代码行数:31,代码来源:commande-mois-annee-iaaza.php


示例12: elseif

{
    if (file_exists('model/' . $myClass . '.php')) {
        include 'model/' . $myClass . '.php';
    } elseif (file_exists('controller/' . $myClass . '.php')) {
        include 'controller/' . $myClass . '.php';
    }
}
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") {
    //les sources
    $idProjet = 0;
    $projetManager = new ProjetManager($pdo);
    if (isset($_GET['idProjet']) and $_GET['idProjet'] > 0 and $_GET['idProjet'] <= $projetManager->getLastId()) {
        $idProjet = $_GET['idProjet'];
    }
    $employeManager = new EmployeProjetManager($pdo);
    $employes = "";
    //test the employeSociete object number: if exists get terrain else do nothing
    $employeNumber = $employeManager->getEmployeProjetNumberByIdProjet($idProjet);
    if ($employeNumber != 0) {
        $employeProjetPerPage = 10;
        $pageNumber = ceil($employeNumber / $employeProjetPerPage);
        $p = 1;
        if (isset($_GET['p']) and ($_GET['p'] > 0 and $_GET['p'] <= $pageNumber)) {
            $p = $_GET['p'];
        } else {
            $p = 1;
开发者ID:aassou,项目名称:ImmoAppMerlaTrav,代码行数:31,代码来源:employes-projet.php


示例13: elseif

    if (file_exists('model/' . $myClass . '.php')) {
        include 'model/' . $myClass . '.php';
    } elseif (file_exists('controller/' . $myClass . '.php')) {
        include 'controller/' . $myClass . '.php';
    }
}
spl_autoload_register("classLoad");
include 'config.php';
//classes loading end
session_start();
if (isset($_SESSION['userMerlaTrav'])) {
    //classes managers
    $usersManager = new UserManager($pdo);
    $mailsManager = new MailManager($pdo);
    $notesClientsManager = new NotesClientManager($pdo);
    $projetManager = new ProjetManager($pdo);
    $contratManager = new ContratManager($pdo);
    $clientManager = new ClientManager($pdo);
    $livraisonsManager = new LivraisonManager($pdo);
    $fournisseursManager = new FournisseurManager($pdo);
    $caisseManager = new CaisseManager($pdo);
    $caisseIaazaManager = new CaisseIaazaManager($pdo);
    $operationsManager = new OperationManager($pdo);
    $compteBancaire = new CompteBancaireManager($pdo);
    //classes and vars
    //users number
    $soldeCaisseAnnahda = $caisseManager->getTotalCaisseByType("Entree") - $caisseManager->getTotalCaisseByType("Sortie");
    $soldeCaisseIaaza = $caisseIaazaManager->getTotalCaisseByType("Entree") - $caisseIaazaManager->getTotalCaisseByType("Sortie");
    $projetNumber = $projetManager->getProjetsNumber();
    $usersNumber = $usersManager->getUsersNumber();
    $fournisseurNumber = $fournisseursManager->getFournisseurNumbers();
开发者ID:aassou,项目名称:MerlaTravLastVersion,代码行数:31,代码来源:dashboard.php


示例14: classLoad

function classLoad($myClass)
{
    if (file_exists('model/' . $myClass . '.php')) {
        include 'model/' . $myClass . '.php';
    } elseif (file_exists('controller/' . $myClass . '.php')) {
        include 'controller/' . $myClass . '.php';
    }
}
spl_autoload_register("classLoad");
include 'config.php';
include 'lib/pagination.php';
//classes loading end
session_start();
if (isset($_SESSION['userMerlaTrav'])) {
    //les sources
    $projetManager = new ProjetManager($pdo);
    $appartementManager = new AppartementManager($pdo);
    $appartement = "";
    $idAppartement = 0;
    $idProjet = $_GET['idProjet'];
    $projet = $projetManager->getProjetById($idProjet);
    if (isset($_GET['idAppartement']) and ($_GET['idAppartement'] > 0 and $_GET['idAppartement'] <= $appartementManager->getLastId())) {
        $idAppartement = htmlentities($_GET['idAppartement']);
        $appartement = $appartementManager->getAppartementById($idAppartement);
        $piecesManager = new AppartementPiecesManager($pdo);
        $piecesNumber = $piecesManager->getPiecesAppartementNumberByIdAppartement($idAppartement);
        if ($piecesNumber != 0) {
            $piecesAppartement = $piecesManager->getPiecesAppartementByIdAppartement($idAppartement);
        }
    }
    ?>
开发者ID:aassou,项目名称:MerlaTravLastVersion,代码行数:31,代码来源:appartement-detail.php


示例15: htmlentities

$idCharge = htmlentities($_POST['idCharge']);
$idSociete = htmlentities($_POST['idSociete']);
$type = htmlentities($_POST['type']);
$charge = "";
$chargeManager = "";
if (htmlentities($_POST['typeCharge']) == "terrain") {
    $charge = new ChargesTerrain($chargeArray);
    $chargeManager = new ChargesTerrainManager($pdo);
} else {
    if (htmlentities($_POST['typeCharge']) == "construction") {
        $charge = new ChargesConstruction($chargeArray);
        $chargeManager = new ChargesConstructionManager($pdo);
    } else {
        if (htmlentities($_POST['typeCharge']) == "finition") {
            $charge = new ChargesFinition($chargeArray);
            $chargeManager = new ChargesFinitionManager($pdo);
        }
    }
}
$chargeManager->delete($idCharge);
//add history data to db
$projetManager = new ProjetManager($pdo);
$historyManager = new HistoryManager($pdo);
$createdBy = $_SESSION['userMerlaTrav']->login();
$created = date('Y-m-d h:i:s');
$history = new History(array('action' => "Suppression", 'target' => "Table des " . htmlentities($_POST['typeCharge']), 'description' => "Suppression des charges " . htmlentities($_POST['typeCharge']) . " - ID : " . $idCharge . " - Projet : " . $projetManager->getProjetById($idProjet)->nom(), 'created' => $created, 'createdBy' => $createdBy));
//add it to db
$historyManager->add($history);
$_SESSION['charge-delete-success'] = '<strong>Opération valide</strong> : La charge est supprimée avec succès !';
$redirectLink = 'Location:../projet-charges.php?idProjet=' . $idProjet . '&idSociete=' . $idSociete . '&type=' . $type;
header($redirectLink);
开发者ID:aassou,项目名称:gelm,代码行数:31,代码来源:ChargeDeleteController.php


示例16: ChargesTerrain

         $charge = new ChargesTerrain($chargeArray);
         $chargeManager = new ChargesTerrainManager($pdo);
     } else {
         if (htmlentities($_POST['typeCharge']) == "construction") {
             $charge = new ChargesConstruction($chargeArray);
             $chargeManager = new ChargesConstructionManager($pdo);
         } else {
             if (htmlentities($_POST['typeCharge']) == "finition") {
                 $charge = new ChargesFinition($chargeArray);
                 $chargeManager = new ChargesFinitionManager($pdo);
             }
         }
     }
     $chargeManager->add($charge);
     //add history data to db
     $projetManager = new ProjetManager($pdo);
     $historyManager = new HistoryManager($pdo);
     $createdBy = $_SESSION['userMerlaTrav']->login();
     $created = date('Y-m-d h:i:s');
     $history = new History(array('action' => "Ajout", 'target' => "Table des " . htmlentities($_POST['typeCharge']), 'description' => "Ajout des charges " . htmlentities($_POST['typeCharge']) . " - Montant : " . $montant . " - Designation : " . $designation . " - Projet : " . $projetManager->getProjetById($idProjet)->nom(), 'created' => $created, 'createdBy' => $createdBy));
     //add it to db
     $historyManager->add($history);
     $_SESSION['charge-add-success'] = '<strong>Opération valide</strong> : La charge est ajoutée avec succès !';
     $redirectLink = 'Location:../projet-charges.php?idProjet=' . $idProjet . '&idSociete=' . $idSociete . '&type=' . $type;
     header($redirectLink);
 } else {
     $_SESSION['charge-add-error'] = "<strong>Erreur Ajout Charge</strong> : Vous devez remplir au moins les champs 'Date opération'.";
     $redirectLink = 'Location:../projet-charges.php?idProjet=' . $idProjet . '&idSociete=' . $idSociete . '&type=' . $type;
     header($redirectLink);
     exit;
 }
开发者ID:aassou,项目名称:gelm,代码行数:31,代码来源:ChargeAddController.php


示例17: classLoad

    function classLoad ($myClass) {
        if(file_exists('model/'.$myClass.'.php')){
            include('model/'.$myClass.'.php');
        }
        elseif(file_exists('controller/'.$myClass.'.php')){
            include('controller/'.$myClass.'.php');
        }
    }
    spl_autoload_register("classLoad"); 
    include('config.php');  
	include('lib/pagination.php');
    //classes loading end
    session_start();
    if ( isset($_SESSION['userMerlaTrav']) ){
    	//les sources
    	$projetManager = new ProjetManager($pdo);
		$locauxManager = new LocauxManager($pdo);
		$appartement = "";
		$idLocaux = 0;
		$idProjet = $_GET['idProjet'];
        $projet = $projetManager->getProjetById($idProjet);
		if( isset($_GET['idLocaux']) and 
		( $_GET['idLocaux']>0 and $_GET['idLocaux']<=$locauxManager->getLastId() ) ){
			$idLocaux = htmlentities($_GET['idLocaux']);
			$locaux = $locauxManager->getLocauxById($idLocaux);
			$piecesManager = new PiecesLocauxManager($pdo);
			$piecesNumber = $piecesManager->getPiecesLocauxNumberByIdLocaux($idLocaux);
			if($piecesNumber != 0){
				$piecesLocaux = $piecesManager->getPiecesLocauxByIdLocaux($idLocaux);
			}	
		}
开发者ID:aassou,项目名称:Annahda,代码行数:31,代码来源:locaux-detail.php


示例18: elseif

        include 'model/' . $myClass . '.php';
    } elseif (file_exists('controller/' . $myClass . '.php')) {
        include 'controller/' . $myClass . '.php';
    }
}
spl_autoload_register("classLoad");
include 'config.php';
//classes loading end
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();
    $projets = $projetManager->getProjets();
    $todos = 0;
    $societes = $societeManager->getSocietes();
    if (isset($_POST['idSociete'])) {
        $idSociete = htmlentities($_POST['idSociete']);
        $mois = htmlentities($_POST['mois']);
        $annee = htmlentities($_POST['annee']);
        $todos = $todoManager->getTodosHiddenByIdSociete($idSociete, $mois, $annee);
    } else {
        if (isset($_GET['idSociete']) and isset($_GET['mois']) and isset($_GET['annee'])) {
            $idSociete = $_GET['idSociete'];
开发者ID:aassou,项目名称:gelm,代码行数:31,代码来源:todos-archive.php


示例19: lireFichierProjet

/**
 * Utile pour trouver le projet en cours à la date du jour
 * 
 */
function lireFichierProjet()
{
    // Construction du chemin absolu du fichier
    $cheminAbsolu = dirname(__FILE__);
    $cheminAbsolu = str_replace("/archi", "", $cheminAbsolu);
    $cheminAbsolu = str_replace("\\archi", "", $cheminAbsolu);
    $nomFichier = $cheminAbsolu . "/parametres/projets.yml";
    // Lecture du fichier yaml
    $array = Spyc::YAMLLoad($nomFichier);
    // Exploitation des données
    $projetManager = new ProjetManager();
    // on commence par le noeud racine: le projet
    foreach ($array as $noeudRacine) {
        $projet = new Projet();
        $projetManager->ajouteUnProjet($projet);
        // prise en compte des caractéristiques du projet
        $projet->titre = $noeudRacine["titre"];
        $projet->dateDebut = $noeudRacine["dateDebut"];
        $projet->dateEcheance = $noeudRacine["echeance"];
        $projet->description = $noeudRacine["description"];
        $projet->repertoire = $noeudRacine["repertoire"];
        // Prise en compte de toutes les pages du projet
        $presentation = $noeudRacine["presentation"];
        foreach ($presentation as $numPage => $detailPage) {
            // Création d'une page avec ses caractéristiques
            $page = new Page();
            $page->image = isset($detailPage["image"]) ? $detailPage["image"] : null;
            $page->titre = isset($detailPage["titre"]) ? $detailPage["titre"] : null;
            $page->contact = isset($detailPage["contact"]) ? $detailPage["contact"] : null;
            $page->nouvelles = isset($detailPage["nouvelles"]) ? $detailPage["nouvelles"] : null;
            $page->avancement = isset($detailPage["avancement"]) ? $detailPage["avancement"] : null;
            $page->descriptif = isset($detailPage["descriptif"]) ? $detailPage["descriptif"] : null;
            $page->lien = isset($detailPage["lien"]) ? $detailPage["lien"] : null;
            // On pousse la page dans le tableau de page du projet
            array_push($projet->listePages, $page);
        }
    }
    return $projetManager;
}
开发者ID:spernot,项目名称:as-evan,代码行数:43,代码来源:ContextePersistance.php


示例20: classLoad

//classes loading begin
function classLoad($myClass)
{
    if (file_exists('../model/' . $myClass . '.php')) {
        include '../model/' . $myClass . '.php';
    } elseif (file_exists('../controller/' . $myClass . '.php')) {
        include '../controller/' . $myClass . '.php';
    }
}
spl_autoload_register("classLoad");
include '../config.php';
//classes loading end
session_start();
if (isset($_SESSION['userMerlaTrav'])) {
    $projetManager = new ProjetManager($pdo);
    $fournisseurManager = new FournisseurManager($pdo);
    $livraisonManager = new LivraisonManager($pdo);
    $reglementsFournisseurManager = new ReglementFournisseurManager($pdo);
    if (isset($_GET['idFournisseur']) and isset($_GET['idProjet']) and $fournisseurManager->getOneFournisseurBySearch($_GET['idFournisseur'] >= 1)) {
        $fournisseur = $fournisseurManager->getOneFournisseurBySearch(htmlentities($_GET['idFournisseur']));
        $idProjet = $_GET['idProjet'];
        $livraisonNumber = $livraisonManager->getLivraisonsNumberByIdFournisseurByProjet($fournisseur, $idProjet);
        if ($livraisonNumber != 0) {
            $livraisons = $livraisonManager->getLivraisonsByIdFournisseurByProjet($fournisseur, $idProjet);
            $titreLivraison = "Bilan des livraisons du fournisseur <strong>" . $fournisseurManager->getFournisseurById($fournisseur)->nom() . "</strong> / Projet: <strong>" . $projetManager->getProjetById($idProjet)->nom() . "</strong>";
            $totalLivraison = $livraisonManager->getTotalLivraisonsIdFournisseurProjet($fournisseur, $idProjet);
            $totalReglement = $reglementsFournisseurManager->sommeReglementFournisseursByIdFournisseurByProjet($fournisseur, $idProjet);
        }
    } else {
        if (isset($_GET['idFournisseur']) and $fournisseurManager->getOneFournisseurBySearch($_GET['idFournisseur'] >= 1)) {
开发者ID:aassou,项目名称:Annahda,代码行数:30,代码来源:LivraisonBilanPrintController.php



注:本文中的ProjetManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ProofreaderAction类代码示例发布时间:2022-05-23
下一篇:
PHP Projects类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap