当前位置: 首页>>代码示例>>PHP>>正文


PHP ProjetManager类代码示例

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


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


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