Пример #1
0
 /**
  * @name selectDetailProduits($pIdProduits)
  * @param array(integer idProduit)
  * @return array(DetailProduitVO)
  * @desc Récupères le détail des produits et les renvoie sous forme d'une collection de DetailProduitVO
  */
 public static function selectDetailProduits($pIdProduits)
 {
     $lProduitValid = new NAMESPACE_CLASSE\NAMESPACE_VALIDATEUR\MOD_SERVICE\ProduitValid();
     if ($lProduitValid->selectDetailProduits($pIdProduits)) {
         return ProduitManager::selectDetailProduits($pIdProduits);
     } else {
         return false;
     }
 }
Пример #2
0
        </table>
    </page_footer>
	<table cellspacing="0" style="width: 100%; text-align: left; font-size: 10pt;">
		<thead>
			<tr>
				<th style="width: 55px; text-align: center; border: solid 1px black;" >Compte</th>
				<th style="width: 125px; text-align: center; border-top: solid 1px black; border-bottom: solid 1px black; border-right: solid 1px black;">Nom</th>
				<th style="width: 125px; text-align: center; border-top: solid 1px black; border-bottom: solid 1px black; border-right: solid 1px black;">Prénom</th>
				<th style="width: 95px; text-align: center; border-top: solid 1px black; border-bottom: solid 1px black; border-right: solid 1px black;">Tél.</th>
	<?php 
$lLots = array();
$lNbLignePrixProduit = 0;
$j = 0;
while ($j < $lNbProduitPage) {
    $lIdProduit = $lIdProduits[$i * $lLimitePaysage + $j];
    $lProduits = ProduitManager::selectDetailProduits(array($lIdProduit));
    $lProduit = $lProduits[0];
    $lLots[$lIdProduit] = DetailCommandeManager::selectByIdProduit($lIdProduit);
    $lnbLignePrix = count($lLots[$lIdProduit]);
    if ($lNbLignePrixProduit < $lnbLignePrix) {
        $lNbLignePrixProduit = $lnbLignePrix;
    }
    $lLabelNomProduit = $lProduit->getNproNom();
    if ($lProduit->getProType() == 2) {
        $lLabelNomProduit .= " (Abonnement)";
    }
    ?>
				<th colspan="2" style="width: 80px; text-align: center; border-top: solid 1px black; border-bottom: solid 1px black; border-right: solid 1px black;"><?php 
    echo $lLabelNomProduit;
    ?>
</th>