Fix: Correction ouverture/fermeture balises div
This commit is contained in:
parent
dcdd320f7e
commit
c3606ec369
@ -223,7 +223,8 @@ if ($_POST["cancel"] == 'Annuler')
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
llxHeader("","","Fiche produit");
|
llxHeader("","",$langs->trans("CardProduct".$product->type));
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Création du produit
|
* Création du produit
|
||||||
@ -244,7 +245,7 @@ if ($_GET["action"] == 'create')
|
|||||||
print '<input type="hidden" name="type" value="'.$_GET["type"].'">'."\n";
|
print '<input type="hidden" name="type" value="'.$_GET["type"].'">'."\n";
|
||||||
print '<div class="titre">Nouveau '.$types[$_GET["type"]].'</div><br>'."\n";
|
print '<div class="titre">Nouveau '.$types[$_GET["type"]].'</div><br>'."\n";
|
||||||
|
|
||||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table class="border" width="100%" cellspacing="0" cellpadding="3">';
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td>Référence</td><td><input name="ref" size="20" value="'.$product->ref.'">';
|
print '<td>Référence</td><td><input name="ref" size="20" value="'.$product->ref.'">';
|
||||||
if ($_error == 1)
|
if ($_error == 1)
|
||||||
@ -448,11 +449,16 @@ else
|
|||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
print "</table>";
|
print "</table><br>\n";
|
||||||
|
|
||||||
|
print "</div>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
print "<br></div>\n";
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Edition du prix
|
||||||
|
*
|
||||||
|
*/
|
||||||
if ($_GET["action"] == 'edit_price' && $user->rights->produit->creer)
|
if ($_GET["action"] == 'edit_price' && $user->rights->produit->creer)
|
||||||
{
|
{
|
||||||
print '<div class="titre">Nouveau prix</div>';
|
print '<div class="titre">Nouveau prix</div>';
|
||||||
@ -510,6 +516,7 @@ else
|
|||||||
|
|
||||||
if (($_GET["action"] == 'edit' || $_GET["action"] == 're-edit') && $user->rights->produit->creer)
|
if (($_GET["action"] == 'edit' || $_GET["action"] == 're-edit') && $user->rights->produit->creer)
|
||||||
{
|
{
|
||||||
|
|
||||||
print_fiche_titre('Edition de la fiche '.$types[$product->type].' : '.$product->ref, $mesg);
|
print_fiche_titre('Edition de la fiche '.$types[$product->type].' : '.$product->ref, $mesg);
|
||||||
|
|
||||||
|
|
||||||
@ -528,13 +535,13 @@ else
|
|||||||
print '<select name="statut">';
|
print '<select name="statut">';
|
||||||
if ($product->envente)
|
if ($product->envente)
|
||||||
{
|
{
|
||||||
print '<option value="1" SELECTED>En vente</option>';
|
print '<option value="1" selected>En vente</option>';
|
||||||
print '<option value="0">Hors Vente</option>';
|
print '<option value="0">Hors Vente</option>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<option value="1">En vente</option>';
|
print '<option value="1">En vente</option>';
|
||||||
print '<option value="0" SELECTED>Hors Vente</option>';
|
print '<option value="0" selected>Hors Vente</option>';
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
if ($product->type == 0 && defined("MAIN_MODULE_STOCK"))
|
if ($product->type == 0 && defined("MAIN_MODULE_STOCK"))
|
||||||
@ -609,7 +616,7 @@ else
|
|||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
print "<div class=\"tabsAction\">\n";
|
print "\n<div class=\"tabsAction\">\n";
|
||||||
|
|
||||||
if ($_GET["action"] == '')
|
if ($_GET["action"] == '')
|
||||||
{
|
{
|
||||||
@ -631,7 +638,7 @@ if ($product->type == 0 && defined("MAIN_MODULE_STOCK"))
|
|||||||
print '<a class="tabAction" href="stock/product.php?id='.$product->id.'&action=correction">Correction stock</a>';
|
print '<a class="tabAction" href="stock/product.php?id='.$product->id.'&action=correction">Correction stock</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</div>";
|
print "\n</div>\n";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -73,7 +73,7 @@ if ($_GET["id"])
|
|||||||
mkdir(DOL_DOCUMENT_ROOT."/document/produit");
|
mkdir(DOL_DOCUMENT_ROOT."/document/produit");
|
||||||
if (! mkdir($dir, 0755))
|
if (! mkdir($dir, 0755))
|
||||||
{
|
{
|
||||||
$mesg = "Impossible de créer $dir !";
|
$mesg = $langs->trans("ErrorCanNotCreateDir",$dir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$img_propal_name = "propal12mois.png";
|
$img_propal_name = "propal12mois.png";
|
||||||
@ -97,7 +97,7 @@ if ($_GET["id"])
|
|||||||
$graph_data = $product->get_num_propal($socid);
|
$graph_data = $product->get_num_propal($socid);
|
||||||
$px->draw($filenbpropal, $graph_data);
|
$px->draw($filenbpropal, $graph_data);
|
||||||
|
|
||||||
$mesg = "Graphiques générés";
|
$mesg = $langs->trans("ChartGenerated");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Zone recherche
|
// Zone recherche
|
||||||
@ -135,7 +135,7 @@ if ($_GET["id"])
|
|||||||
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
|
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
|
||||||
|
|
||||||
|
|
||||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4"><tr>';
|
print '<table class="border" width="100%" cellspacing="0" cellpadding="3"><tr>';
|
||||||
print '<td width="20%">'.$langs->trans("Ref").'</td><td width="40%"><a href="../fiche.php?id='.$product->id.'">'.$product->ref.'</a></td>';
|
print '<td width="20%">'.$langs->trans("Ref").'</td><td width="40%"><a href="../fiche.php?id='.$product->id.'">'.$product->ref.'</a></td>';
|
||||||
print '<td>'.$langs->trans("Statistics").'</td></tr>';
|
print '<td>'.$langs->trans("Statistics").'</td></tr>';
|
||||||
print "<tr><td>".$langs->trans("Label")."</td><td>$product->libelle</td>";
|
print "<tr><td>".$langs->trans("Label")."</td><td>$product->libelle</td>";
|
||||||
@ -147,7 +147,7 @@ if ($_GET["id"])
|
|||||||
print '<tr><td>Prix actuel</td><td>'.price($product->price).'</td></tr>';
|
print '<tr><td>Prix actuel</td><td>'.price($product->price).'</td></tr>';
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
print '<br><table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
print '<br><table class="border" width="100%" cellspacing="0" cellpadding="3">';
|
||||||
print '<tr class="liste_titre"><td width="50%" colspan="2" align="center">Nombre de ventes<br>sur les 12 derniers mois</td>';
|
print '<tr class="liste_titre"><td width="50%" colspan="2" align="center">Nombre de ventes<br>sur les 12 derniers mois</td>';
|
||||||
print '<td align="center" width="50%" colspan="2">Nombre de pièces vendues</td></tr>';
|
print '<td align="center" width="50%" colspan="2">Nombre de pièces vendues</td></tr>';
|
||||||
print '<tr><td align="center" colspan="2">';
|
print '<tr><td align="center" colspan="2">';
|
||||||
@ -164,7 +164,7 @@ if ($_GET["id"])
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<td>Graphique non généré</td>';
|
print '<td>'.$langs->trans("ChartNotGenerated").'</td>';
|
||||||
}
|
}
|
||||||
print '<td align="center">[<a href="fiche.php?id='.$product->id.'&action=recalcul">Re-calculer</a>]</td>';
|
print '<td align="center">[<a href="fiche.php?id='.$product->id.'&action=recalcul">Re-calculer</a>]</td>';
|
||||||
if (file_exists($filenbpiece) && filemtime($filenbpiece))
|
if (file_exists($filenbpiece) && filemtime($filenbpiece))
|
||||||
@ -173,7 +173,7 @@ if ($_GET["id"])
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<td>Graphique non généré</td>';
|
print '<td>'.$langs->trans("ChartNotGenerated").'</td>';
|
||||||
}
|
}
|
||||||
print '<td align="center">[<a href="fiche.php?id='.$product->id.'&action=recalcul">Re-calculer</a>]</td></tr>';
|
print '<td align="center">[<a href="fiche.php?id='.$product->id.'&action=recalcul">Re-calculer</a>]</td></tr>';
|
||||||
print '<tr><td colspan="4">Statistiques effectuées sur les factures payées uniquement</td></tr>';
|
print '<tr><td colspan="4">Statistiques effectuées sur les factures payées uniquement</td></tr>';
|
||||||
@ -194,7 +194,7 @@ if ($_GET["id"])
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<td>Graphique non généré</td>';
|
print '<td>'.$langs->trans("ChartNotGenerated").'</td>';
|
||||||
}
|
}
|
||||||
print '<td align="center">[<a href="fiche.php?id='.$product->id.'&action=recalcul">Re-calculer</a>]</td>';
|
print '<td align="center">[<a href="fiche.php?id='.$product->id.'&action=recalcul">Re-calculer</a>]</td>';
|
||||||
if (file_exists($filenbpiece) && filemtime($filenbpiece33))
|
if (file_exists($filenbpiece) && filemtime($filenbpiece33))
|
||||||
@ -203,7 +203,7 @@ if ($_GET["id"])
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<td>Graphique non généré</td>';
|
print '<td>'.$langs->trans("ChartNotGenerated").'</td>';
|
||||||
}
|
}
|
||||||
print '<td align="center">[<a href="fiche.php?id='.$product->id.'&action=recalcul">Re-calculer</a>]</td></tr>';
|
print '<td align="center">[<a href="fiche.php?id='.$product->id.'&action=recalcul">Re-calculer</a>]</td></tr>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user