par
ilanb » 21 sept. 2009, 17:43
Bonjour,
Comment puis-je transformer ce lien dans un type input:
<td class="cadrepromolien">
<a href="index.php?option=<?=JRequest::getVar('option')?>&view=<?=JRequest::getVar('view')?>&Itemid=<?=JRequest::getVar('Itemid')?>&promoId=<?=$PromoId?>&remiseactuel=<?=$remise_actuel?>&statut=<?=$status?>&task=bondecommande">
<? if($nbDiscounts > 0){
$msg = JText::_('NOW_PLACE_ORDER');
if($nbDiscounts > 0){
$discount = $this->listDiscount[$nbDiscounts-1]->discount;
$msg = str_replace('§CELL1§',$discount,$msg);
echo $msg;
}else{
foreach($this->listProduit as $listproduit){
$discount = $listproduit->usual_discount;
$msg = str_replace('§CELL1§',$discount,$msg);
echo $msg;
}
}
}else{
echo JText::_('ORDER_WITHOUT_DISCOUNT');
}?>
</a>
</td>
comme ceci:
<TR> <TD BGCOLOR="#99CCFF" style="width: 100%; height:auto" colspan="6" rowspan="1"><div align="center">
<?php
if($task == "promostarted"){?>
<input type="submit" class="btcommande" value="<?=JText::_('PLACE_YOUR_ORDER')?>" />
<?php } ?>
</div></TD></TR>
J'ai essayé de placer le code dans value mais....
Merci
Bonjour,
Comment puis-je transformer ce lien dans un type input:
[php]<td class="cadrepromolien">
<a href="index.php?option=<?=JRequest::getVar('option')?>&view=<?=JRequest::getVar('view')?>&Itemid=<?=JRequest::getVar('Itemid')?>&promoId=<?=$PromoId?>&remiseactuel=<?=$remise_actuel?>&statut=<?=$status?>&task=bondecommande">
<? if($nbDiscounts > 0){
$msg = JText::_('NOW_PLACE_ORDER');
if($nbDiscounts > 0){
$discount = $this->listDiscount[$nbDiscounts-1]->discount;
$msg = str_replace('§CELL1§',$discount,$msg);
echo $msg;
}else{
foreach($this->listProduit as $listproduit){
$discount = $listproduit->usual_discount;
$msg = str_replace('§CELL1§',$discount,$msg);
echo $msg;
}
}
}else{
echo JText::_('ORDER_WITHOUT_DISCOUNT');
}?>
</a>
</td>[/php]
comme ceci:
[php]<TR> <TD BGCOLOR="#99CCFF" style="width: 100%; height:auto" colspan="6" rowspan="1"><div align="center">
<?php
if($task == "promostarted"){?>
<input type="submit" class="btcommande" value="<?=JText::_('PLACE_YOUR_ORDER')?>" />
<?php } ?>
</div></TD></TR>[/php]
J'ai essayé de placer le code dans value mais.... :oops:
Merci