Gestion status

This commit is contained in:
Rodolphe Quiedeville 2007-01-03 17:07:30 +00:00
parent 2bad2c6b91
commit f537f303de
2 changed files with 6 additions and 2 deletions

View File

@ -127,8 +127,7 @@
<td>Statut</td>
<td colspan="3">
<select class="flat" name="statut">
<option value="1" selected="true">En vente</option>
<option value="0">Hors vente</option>
{html_options values=$prod_statuts_id output=$prod_statuts_value selected="$prod_statut_id"}
</select>
</td>
</tr>

View File

@ -412,6 +412,11 @@ class ProductLivre extends Product
$smarty->assign('prod_stock_in_command', $this->stock_in_command);
$smarty->assign('prod_stock_alert', $this->seuil_stock_alerte);
$smarty->assign('prod_statut_id', $this->status);
$smarty->assign('prod_statuts_id', array(1,0) );
$smarty->assign('prod_statuts_value', array('En vente', 'Hors vente') );
if ($this->status==1)
{
$smarty->assign('prod_statut', 'En vente');