Gestion status
This commit is contained in:
parent
2bad2c6b91
commit
f537f303de
@ -127,8 +127,7 @@
|
|||||||
<td>Statut</td>
|
<td>Statut</td>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<select class="flat" name="statut">
|
<select class="flat" name="statut">
|
||||||
<option value="1" selected="true">En vente</option>
|
{html_options values=$prod_statuts_id output=$prod_statuts_value selected="$prod_statut_id"}
|
||||||
<option value="0">Hors vente</option>
|
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -412,6 +412,11 @@ class ProductLivre extends Product
|
|||||||
$smarty->assign('prod_stock_in_command', $this->stock_in_command);
|
$smarty->assign('prod_stock_in_command', $this->stock_in_command);
|
||||||
$smarty->assign('prod_stock_alert', $this->seuil_stock_alerte);
|
$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)
|
if ($this->status==1)
|
||||||
{
|
{
|
||||||
$smarty->assign('prod_statut', 'En vente');
|
$smarty->assign('prod_statut', 'En vente');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user