Utilisation des fonctions de date de smarty

This commit is contained in:
Rodolphe Quiedeville 2006-12-05 11:59:30 +00:00
parent 1d5622d98e
commit e5a7aa300d

View File

@ -8,92 +8,14 @@
<table class="border" width="100%"> <table class="border" width="100%">
<tr> <tr>
<td width="15%">Réf.</td> <td width="15%">Réf.</td>
<td colspan="2"> <td >{$prod_ref}</td>
<input name="ref" size="20" value="{$prod_ref}"
class="normal" onfocus="this.className='focus';" onblur="this.className='normal';">
</td>
</tr> </tr>
<tr> <tr>
<td width="15%">Titre</td> <td width="15%">Titre</td>
<td width="85%" colspan="3"> <td width="85%" >{$prod_label}</td>
<input name="libelle" size="40" value="{$prod_label}"
class="normal" onfocus="this.className='focus';" onblur="this.className='normal';">
</td>
</tr> </tr>
<tr>
<td width="15%">ISBN</td>
<td width="35%">
<input name="isbna" size="2" maxlength="12" value="{$prod_isbna}"
class="normal" onfocus="this.className='focus';" onblur="this.className='normal';">-
<input name="isbnb" size="8" maxlength="7" value="{$prod_isbnb}"
class="normal" onfocus="this.className='focus';" onblur="this.className='normal';">-
<input name="isbnc" size="13" maxlength="12" class="normal" value="{$prod_isbnc}"
onfocus="this.className='focus';" onblur="this.className='normal';" >
{$prod_isbn}
</td>
<td width="15%">ISBN-13</td>
<td width="35%">978-
<input name="isbn13" size="13" maxlength="12" class="normal"
onfocus="this.className='focus';" onblur="this.className='normal';" value="{$prod_isbn}">
</td>
</tr>
<tr>
<td width="15%">EAN</td>
<td width="35%">
<input class="normal" name="ean" size="16" maxlength="15" value="{$prod_ean}"
onfocus="this.className='focus';" onblur="this.className='normal';">
</td>
<td>Code barre</td>
<td>{$prod_ean}</td>
</tr>
<tr>
<td>Pages</td>
<td>
<input name="pages" size="6" maxlength="5" value="{$prod_pages}"
class="normal" onfocus="this.className='focus';" onblur="this.className='normal';">
</td>
<td>Format</td>
<td>
<input name="format" size="8" maxlength="7" value="{$prod_format}"
class="normal" onfocus="this.className='focus';" onblur="this.className='normal';">
</td>
</tr>
<tr>
<td>Prix au feuillet</td>
<td>
<input name="px_feuillet" type="text" size="7" maxlength="6" value="{$prod_pxfeuil}"
class="normal" onfocus="this.className='focus';" onblur="this.className='normal';">
</td>
<td>Prix couverture</td>
<td>
<input name="px_couverture" type="text" size="7" maxlength="6" value="{$prod_pxcouv}"
class="normal" onfocus="this.className='focus';" onblur="this.className='normal';">
</td>
</tr>
<tr>
<td>Prix de revient</td>
<td colspan="3">{$prod_pxrevient}</td>
</tr>
</table>
<br />
<table class="border" width="100%">
<tr>
<td width="15%">Prix de vente</td>
<td width="35%">{$prod_pxvente}</td>
<td width="15%">Taux TVA</td>
<td width="35%">
<select class="flat" name="tva_tx">
<option value="0">0%</option>
<option value="5.5">5.5%</option>
<option value="19.6" selected="true">19.6%</option>
</select>
</td>
</tr>
</table> </table>
<br /> <br />
@ -108,23 +30,6 @@
class="normal" onfocus="this.className='focus';" onblur="this.className='normal';"> class="normal" onfocus="this.className='focus';" onblur="this.className='normal';">
</td> </td>
</tr> </tr>
<tr>
<td width="15%">Emplacement Stock</td>
<td width="85%" colspan="3">
<input name="stock_loc" size="8" value=""
class="normal" onfocus="this.className='focus';" onblur="this.className='normal';">
</td>
</tr>
<tr>
<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>
</select>
</td>
</tr>
</table> </table>
<br /> <br />
@ -137,10 +42,7 @@
class="normal" onfocus="this.className='focus';" onblur="this.className='normal';"> class="normal" onfocus="this.className='focus';" onblur="this.className='normal';">
</td> </td>
<td width="15%">Date d'application</td> <td width="15%">Date d'application</td>
<td width="35%"> <td width="35%">{html_select_date field_order='DMY'}</td>
<input name="contrat_date_app" type="text" size="7" maxlength="6" value="{$prod_contrat_date_app}"
class="normal" onfocus="this.className='focus';" onblur="this.className='normal';">
</td>
</tr> </tr>
<tr> <tr>
@ -155,7 +57,11 @@
class="normal" onfocus="this.className='focus';" onblur="this.className='normal';"> class="normal" onfocus="this.className='focus';" onblur="this.className='normal';">
</td> </td>
</tr> </tr>
</table>
<br />
<table class="border" width="100%">
<tr> <tr>
<td valign="top">Description</td> <td valign="top">Description</td>
<td colspan="3"> <td colspan="3">