Supression tag csss *bc
This commit is contained in:
parent
0ef51f3937
commit
816e337310
@ -153,21 +153,21 @@ if ($action == 'create')
|
||||
print '<input type="hidden" name="type" value="'.$type.'">'."\n";
|
||||
print '<div class="titre">Nouveau '.$types[$type].'</div><br>'."\n";
|
||||
|
||||
print '<table class="liste_titre" border="1" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print "<tr $bc[1]>";
|
||||
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr>';
|
||||
print '<td>Référence</td><td><input name="ref" size="20" value=""></td></tr>';
|
||||
print "<tr $bc[0]>".'<td>Libellé</td><td><input name="libelle" size="40" value=""></td></tr>';
|
||||
print "<tr $bc[1]>".'<td>Prix de vente</td><TD><input name="price" size="10" value=""></td></tr>';
|
||||
print "<tr $bc[0]>".'<td>Taux TVA</td><TD>';
|
||||
print "<tr>".'<td>Libellé</td><td><input name="libelle" size="40" value=""></td></tr>';
|
||||
print "<tr>".'<td>Prix de vente</td><TD><input name="price" size="10" value=""></td></tr>';
|
||||
print "<tr>".'<td>Taux TVA</td><TD>';
|
||||
$html = new Form($db);
|
||||
print $html->select_tva("tva_tx");
|
||||
print '</td></tr>';
|
||||
print "<tr $bc[1]>".'<td valign="top">Description</td><td>';
|
||||
print "<tr>".'<td valign="top">Description</td><td>';
|
||||
print '<textarea name="desc" rows="8" cols="50">';
|
||||
print "</textarea></td></tr>";
|
||||
if ($type == 1)
|
||||
{
|
||||
print "<tr $bc[0]>".'<td>Durée</td><TD><input name="duration_value" size="6" maxlength="5" 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="w">semaine ';
|
||||
print '<input name="duration_unit" type="radio" value="m">mois ';
|
||||
@ -175,7 +175,7 @@ if ($action == 'create')
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
print "<tr $bc[1]>".'<td> </td><td><input type="submit" value="Créer"></td></tr>';
|
||||
print "<tr>".'<td> </td><td><input type="submit" value="Créer"></td></tr>';
|
||||
print '</table>';
|
||||
print '</form>';
|
||||
}
|
||||
@ -189,7 +189,7 @@ else
|
||||
if ( $result )
|
||||
{
|
||||
print '<TABLE border="0" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print "<tr $bc[1]>";
|
||||
print '<tr class="liste_titre">';
|
||||
print '<form action="liste.php?type='.$product->type.'" method="post">';
|
||||
print '<td valign="center">Réf : <input class="flat" type="text" size="10" name="sref"> <input class="flat" type="submit" value="go"></td>';
|
||||
print '</form><form action="liste.php" method="post">';
|
||||
@ -200,7 +200,7 @@ else
|
||||
print_fiche_titre('Fiche '.$types[$product->type].' : '.$product->ref, $mesg);
|
||||
|
||||
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print "<tr $bc[1]>";
|
||||
print "<tr>";
|
||||
print '<td width="20%">Référence</td><td width="40%">'.$product->ref.'</td>';
|
||||
print '<td>';
|
||||
if ($product->envente)
|
||||
@ -214,19 +214,19 @@ else
|
||||
print '</td></tr>';
|
||||
print "<td>Libellé</td><td>$product->label</td>";
|
||||
print '<td><a href="stats/fiche.php?id='.$id.'">Statistiques</a></td></tr>';
|
||||
print '<tr $bc[1]><td>Prix de vente</td><TD>'.price($product->price).'</td>';
|
||||
print '<tr><td>Prix de vente</td><TD>'.price($product->price).'</td>';
|
||||
print '<td valign="top" rowspan="4">';
|
||||
print "Propositions commerciales : ".$product->count_propale();
|
||||
print "<br>Proposé à <b>".$product->count_propale_client()."</b> clients";
|
||||
print "<br>Factures : ".$product->count_facture();
|
||||
print '</td></tr>';
|
||||
|
||||
print "<tr $bc[1]>".'<td>Taux TVA</td><TD>'.$product->tva_tx.' %</td></tr>';
|
||||
print "<tr $bc[1]><td valign=\"top\">Description</td><td>".nl2br($product->description)."</td></tr>";
|
||||
print "<tr>".'<td>Taux TVA</td><TD>'.$product->tva_tx.' %</td></tr>';
|
||||
print "<tr><td valign=\"top\">Description</td><td>".nl2br($product->description)."</td></tr>";
|
||||
|
||||
if ($product->type == 1)
|
||||
{
|
||||
print "<tr $bc[1]>".'<td>Durée</td><TD>'.$product->duration_value.' ';
|
||||
print "<tr>".'<td>Durée</td><TD>'.$product->duration_value.' ';
|
||||
if ($product->duration_value > 1)
|
||||
{
|
||||
$plu = "s";
|
||||
@ -261,9 +261,9 @@ else
|
||||
|
||||
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
|
||||
|
||||
print "<tr $bc[1]>".'<td width="20%">Prix de vente</td><td><input name="price" size="10" value="'.price($product->price).'"></td></tr>';
|
||||
print "<tr>".'<td width="20%">Prix de vente</td><td><input name="price" size="10" value="'.price($product->price).'"></td></tr>';
|
||||
|
||||
print "<tr $bc[1]>".'<td colspan="3" align="center"><input type="submit" value="Enregistrer"> ';
|
||||
print "<tr>".'<td colspan="3" align="center"><input type="submit" value="Enregistrer"> ';
|
||||
print '<input type="submit" name="cancel" value="Annuler"></td></tr>';
|
||||
print '</table>';
|
||||
print '</form>';
|
||||
@ -279,15 +279,15 @@ else
|
||||
print '<input type="hidden" name="action" value="update">';
|
||||
|
||||
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print "<tr $bc[1]>".'<td width="20%">Référence</td><td colspan="2"><input name="ref" size="20" value="'.$product->ref.'"></td></tr>';
|
||||
print "<tr>".'<td width="20%">Référence</td><td colspan="2"><input name="ref" size="20" value="'.$product->ref.'"></td></tr>';
|
||||
print '<td>Libellé</td><td colspan="2"><input name="libelle" size="40" value="'.$product->label.'"></td></tr>';
|
||||
|
||||
print "<tr $bc[1]>".'<td>Prix de vente</td><td>'.price($product->price).'</td></tr>';
|
||||
print "<tr $bc[1]>".'<td>Taux TVA</td><td colspan="2">';
|
||||
print "<tr>".'<td>Prix de vente</td><td>'.price($product->price).'</td></tr>';
|
||||
print "<tr>".'<td>Taux TVA</td><td colspan="2">';
|
||||
$html = new Form($db);
|
||||
print $html->select_tva("tva_tx", $product->tva_tx);
|
||||
print '</td></tr>';
|
||||
print "<tr $bc[1]>".'<td>Statut</td><td colspan="2">';
|
||||
print "<tr>".'<td>Statut</td><td colspan="2">';
|
||||
print '<select name="statut">';
|
||||
if ($product->envente)
|
||||
{
|
||||
@ -300,14 +300,14 @@ else
|
||||
print '<option value="0" SELECTED>Hors Vente</option>';
|
||||
}
|
||||
print '</td></tr>';
|
||||
print "<tr $bc[1]>".'<td valign="top">Description</td><td colspan="2">';
|
||||
print "<tr>".'<td valign="top">Description</td><td colspan="2">';
|
||||
print '<textarea name="desc" rows="8" cols="50">';
|
||||
print $product->description;
|
||||
print "</textarea></td></tr>";
|
||||
|
||||
if ($product->type == 1)
|
||||
{
|
||||
print "<tr $bc[1]>".'<td>Durée</td><td colspan="2"><input name="duration_value" size="6" maxlength="5" value="'.$product->duration_value.'">';
|
||||
print "<tr>".'<td>Durée</td><td colspan="2"><input name="duration_value" size="6" maxlength="5" value="'.$product->duration_value.'">';
|
||||
switch ($product->duration_unit)
|
||||
{
|
||||
case "d":
|
||||
@ -344,7 +344,7 @@ else
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
print "<tr $bc[1]>".'<td colspan="3" align="center"><input type="submit" value="Enregistrer"> ';
|
||||
print "<tr>".'<td colspan="3" align="center"><input type="submit" value="Enregistrer"> ';
|
||||
print '<input type="submit" name="cancel" value="Annuler"></td></tr>';
|
||||
print '</table>';
|
||||
print '</form>';
|
||||
@ -408,7 +408,7 @@ if ($id && $action == '' && $product->envente)
|
||||
print '<table width="100%" border="0" cellpadding="3" cellspacing="0">';
|
||||
if($user->rights->propale->creer)
|
||||
{
|
||||
print "<tr $bc[1]>".'<td width="50%" valign="top">';
|
||||
print "<tr>".'<td width="50%" valign="top">';
|
||||
print_titre("Ajouter à ma proposition") . '</td>';
|
||||
if($user->rights->propale->creer)
|
||||
{
|
||||
@ -416,7 +416,7 @@ if ($id && $action == '' && $product->envente)
|
||||
print_titre("Ajouter aux autres propositions") . '</td>';
|
||||
}
|
||||
print '</tr>';
|
||||
print "<tr $bc[1]>".'<td width="50%" valign="top">';
|
||||
print "<tr>".'<td width="50%" valign="top">';
|
||||
$sql = "SELECT s.nom, s.idp, p.rowid as propalid, p.ref,".$db->pdate("p.datep")." as dp";
|
||||
$sql .= " FROM llx_societe as s, llx_propal as p";
|
||||
$sql .=" WHERE p.fk_soc = s.idp AND p.fk_statut = 0 AND p.fk_user_author = ".$user->id;
|
||||
@ -462,7 +462,7 @@ if ($id && $action == '' && $product->envente)
|
||||
print '<form method="POST" action="fiche.php?id='.$id.'">';
|
||||
print '<input type="hidden" name="action" value="addinpropal">';
|
||||
print '<table border="1" width="100%" cellpadding="3" cellspacing="0">';
|
||||
print "<tr $bc[1]>".'<td>Autres Propositions</td><td>';
|
||||
print "<tr>".'<td>Autres Propositions</td><td>';
|
||||
$htmls->select_array("propalid", $otherprop);
|
||||
print '</td><td>';
|
||||
print '<input type="text" name="qty" size="3" value="1">';
|
||||
@ -478,12 +478,12 @@ if ($id && $action == '' && $product->envente)
|
||||
|
||||
if($user->rights->facture->creer)
|
||||
{
|
||||
print "<tr $bc[1]>".'<td width="50%" valign="top">';
|
||||
print "<tr>".'<td width="50%" valign="top">';
|
||||
print_titre("Ajouter à ma facture");
|
||||
print '</td><td width="50%" valign="top">';
|
||||
print_titre("Ajouter aux autres factures");
|
||||
print '</td></tr>';
|
||||
print "<tr $bc[1]>".'<td width="50%" valign="top">';
|
||||
print "<tr>".'<td width="50%" valign="top">';
|
||||
$sql = "SELECT s.nom, s.idp, f.rowid as factureid, f.facnumber,".$db->pdate("f.datef")." as df";
|
||||
$sql .= " FROM llx_societe as s, llx_facture as f";
|
||||
$sql .=" WHERE f.fk_soc = s.idp AND f.fk_statut = 0 AND f.fk_user_author = ".$user->id;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user