commande courrier

This commit is contained in:
Michael RICOIS 2011-08-05 08:45:47 +00:00
parent c6ae97b190
commit 281d78c137
2 changed files with 7 additions and 4 deletions

View File

@ -486,6 +486,8 @@ class PiecesController extends Zend_Controller_Action
$dejaCommande = $request->getParam('dejaCommande', false);
$noemail = $request->getParam('noemail', false);
$sameLogin = $request->getParam('sameLogin', false);
$typeCommande = $request->getParam('typeCommande', '');
$idCommande = $request->getParam('idCommande', '');
Zend_Registry::get('firebug')->info('cmdcourrier');
@ -495,13 +497,14 @@ class PiecesController extends Zend_Controller_Action
$siren = $request->getParam('siret', 0);
$info = $request->getParam('info', 0);
$typeCommande = $request->getParam('typeCommande', '');
$ref = $request->getParam('ref', '');
$vue = $request->getParam('vue', '');
$this->view->assign('siren', $siren);
$this->view->assign('info', $info);
$this->view->assign('typeCommande', $typeCommande);
$this->view->assign('idCommande', $idCommande);
$this->view->assign('ref', $ref);
$this->view->assign('vue', $vue);
$this->view->assign('email', $user->getEmail());
@ -509,8 +512,8 @@ class PiecesController extends Zend_Controller_Action
}
elseif(!$noemail && $dejaCommande && $sameLogin)
{
//typeCommande
//idCommande
$this->view->assign('typeCommande', $typeCommande);
$this->view->assign('idCommande', $idCommande);
$this->renderScript('pieces/cmdcourrier-cmd1.phtml');
}
elseif(!$noemail && $dejaCommande && !$sameLogin)

View File

@ -13,7 +13,7 @@ Siren : <?=$this->SirenTexte($this->siren)?>
<input type="hidden" name="siret" value="<?=$this->siren?>"/>
<input type="hidden" name="info" value="<?=$this->info?>"/>
<input type="hidden" name="type" value="G"/>
<input type="hidden" name="ref" value="<?=$ref?>"/>
<input type="hidden" name="ref" value="<?=$this->ref?>"/>
<label>Adresse email du destinataire</label>
<input name="emailCommande" type="text" value="<?=$this->email?>" size="40"/><br/>
<p><i>Votre commande ne sera pas validé si l'adresse email est vide.</i>