Correction objet
This commit is contained in:
parent
44e0c1a2d1
commit
0061eca831
@ -218,12 +218,12 @@ class DashboardController extends Zend_Controller_Action
|
|||||||
//Etat de la commande
|
//Etat de la commande
|
||||||
$cmdEtatSelect = array();
|
$cmdEtatSelect = array();
|
||||||
$cmdEtatSelect[] = array('value'=>0, 'select'=>'', 'affichage'=>'');
|
$cmdEtatSelect[] = array('value'=>0, 'select'=>'', 'affichage'=>'');
|
||||||
$typeCommande = $listCommandes[$i]['typeCommande'];
|
$typeCommande = $listCommandes[$i]->typeCommande;
|
||||||
Zend_Registry::get('firebug')->info($typeCommande);
|
Zend_Registry::get('firebug')->info($typeCommande);
|
||||||
if (isset(${'status'.$typeCommande})){
|
if (isset(${'status'.$typeCommande})){
|
||||||
foreach(${'status'.$typeCommande} as $item){
|
foreach(${'status'.$typeCommande} as $item){
|
||||||
$select = '';
|
$select = '';
|
||||||
if ($item['id']==$listCommandes[$i]['statutCommande']){
|
if ($item['id']==$listCommandes[$i]->statutCommande){
|
||||||
$select = ' selected';
|
$select = ' selected';
|
||||||
}
|
}
|
||||||
$cmdEtatSelect[] = array(
|
$cmdEtatSelect[] = array(
|
||||||
@ -233,20 +233,20 @@ class DashboardController extends Zend_Controller_Action
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$listCommandes[$i]['cmdEtatSelect'] = $cmdEtatSelect;
|
$listCommandes[$i]->cmdEtatSelect = $cmdEtatSelect;
|
||||||
|
|
||||||
//Lien vers le fichier
|
//Lien vers le fichier
|
||||||
$documentLien = '';
|
$documentLien = '';
|
||||||
switch($type)
|
switch($type)
|
||||||
{
|
{
|
||||||
case 'greffe':
|
case 'greffe':
|
||||||
if (preg_match('/^([0-9a-zA-Z]{2}-).*?$/', $listCommandes[$i]['refDocument'], $matches)){
|
if (preg_match('/^([0-9a-zA-Z]{2}-).*?$/', $listCommandes[$i]->refDocument, $matches)){
|
||||||
$documentLien = $this->view->url(array(
|
$documentLien = $this->view->url(array(
|
||||||
'controller' => 'pieces',
|
'controller' => 'pieces',
|
||||||
'action' => 'actes',
|
'action' => 'actes',
|
||||||
'siret' => $listCommandes[$i]['siren'],
|
'siret' => $listCommandes[$i]['siren'],
|
||||||
));
|
));
|
||||||
} elseif (preg_match('/^([0-9]{4}).*?$/', $listCommandes[$i]['refDocument'], $matches)){
|
} elseif (preg_match('/^([0-9]{4}).*?$/', $listCommandes[$i]->refDocument, $matches)){
|
||||||
$documentLien = $this->view->url(array(
|
$documentLien = $this->view->url(array(
|
||||||
'controller' => 'pieces',
|
'controller' => 'pieces',
|
||||||
'action' => 'bilans',
|
'action' => 'bilans',
|
||||||
@ -255,7 +255,7 @@ class DashboardController extends Zend_Controller_Action
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$listCommandes[$i]['documentLien'] = $documentLien;
|
$listCommandes[$i]->documentLien = $documentLien;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user