from('Country') ->where('status="actif"'); $results = $q->execute(); $tabPays = $results->toArray(); //Tri ou Liste des commandes $condition = array(); $conditionValue = array(); if(isset($_REQUEST['country'])){ $condition[] = 'p.graydon_country = ?'; $conditionValue[] = $_REQUEST['country']; } if(count($condition)>0){ $where = join(' AND ',$condition); $q = Doctrine_Query::create() ->from('Commandes c') ->leftJoin('c.Country p, c.CommandesDetail cd') ->orderBy('c.dateordered') ->where($where, $conditionValue); }else{ $q = Doctrine_Query::create() ->from('Commandes c') ->leftJoin('c.Country p, c.CommandesDetail cd') ->orderBy('c.dateordered'); } $tabCommandes = $q->execute(); ?>
Pays | Reference | Service commandé | Prix de la commande | Status de la commande | Date de la commande | Date due | Actions |
---|---|---|---|---|---|---|---|
Country->graydon_country; ?> | reference; ?> | servicespeed; ?> | prix; ?> | orderstate; ?> | dateordered; ?> | datedue; ?> | Détails Rapport |