Ajout limite dans les nombres de jours de duree
This commit is contained in:
parent
e2e3d0ab02
commit
cd34e3b9ba
@ -120,7 +120,7 @@ if ($action == 'create')
|
|||||||
print "</textarea></td></tr>";
|
print "</textarea></td></tr>";
|
||||||
if ($type == 1)
|
if ($type == 1)
|
||||||
{
|
{
|
||||||
print '<tr><td>Durée</td><TD><input name="duration_value" size="6" value="'.$product->duree.'">';
|
print '<tr><td>Durée</td><TD><input name="duration_value" size="6" maxlength="5" value="'.$product->duree.'">';
|
||||||
print '<input name="duration_unit" type="radio" value="d">jour ';
|
print '<input name="duration_unit" type="radio" value="d">jour ';
|
||||||
print '<input name="duration_unit" type="radio" value="w">semaine ';
|
print '<input name="duration_unit" type="radio" value="w">semaine ';
|
||||||
print '<input name="duration_unit" type="radio" value="m">mois ';
|
print '<input name="duration_unit" type="radio" value="m">mois ';
|
||||||
@ -240,7 +240,7 @@ else
|
|||||||
|
|
||||||
if ($product->type == 1)
|
if ($product->type == 1)
|
||||||
{
|
{
|
||||||
print '<tr><td>Durée</td><TD><input name="duration_value" size="6" value="'.$product->duration_value.'">';
|
print '<tr><td>Durée</td><TD><input name="duration_value" size="6" maxlength="5" value="'.$product->duration_value.'">';
|
||||||
switch ($product->duration_unit)
|
switch ($product->duration_unit)
|
||||||
{
|
{
|
||||||
case "d":
|
case "d":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user