Debut Ajout de Photo
This commit is contained in:
parent
c956683296
commit
3c51b7842c
@ -524,10 +524,34 @@ else
|
|||||||
print '</form>';
|
print '</form>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Ajouter une photo
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
if ($_GET["action"] == 'ajout_photo' && $user->rights->produit->creer && $product->isproduct)
|
||||||
|
{
|
||||||
|
$langs->load("suppliers");
|
||||||
|
|
||||||
|
print_titre($langs->trans("AddPhoto"));
|
||||||
|
print '<form action="fiche.php?id='.$product->id.'" method="post">';
|
||||||
|
print '<input type="hidden" name="action" value="add_fourn">';
|
||||||
|
print '<input type="hidden" name="id" value="'.$product->id.'">';
|
||||||
|
print '<table class="border" width="100%"><tr>';
|
||||||
|
print '<td>'.$langs->trans("File").'</td>';
|
||||||
|
print '<td><input type="file" name="photofile"></td></tr>';
|
||||||
|
|
||||||
|
print '<tr><td colspan="4" align="center"><input type="submit" value="'.$langs->trans("Save").'"> ';
|
||||||
|
print '<input type="submit" name="cancel" value="'.$langs->trans("Cancel").'"></td></tr>';
|
||||||
|
print '</table>';
|
||||||
|
print '</form>';
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
*
|
||||||
* Fiche en mode edition
|
* Fiche en mode edition
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
if (($_GET["action"] == 'edit' || $_GET["action"] == 're-edit') && $user->rights->produit->creer)
|
if (($_GET["action"] == 'edit' || $_GET["action"] == 're-edit') && $user->rights->produit->creer)
|
||||||
{
|
{
|
||||||
@ -618,16 +642,27 @@ if ($_GET["action"] == '')
|
|||||||
{
|
{
|
||||||
if ($product->type == 0 && $user->rights->produit->commander && $num_fournisseur == 1)
|
if ($product->type == 0 && $user->rights->produit->commander && $num_fournisseur == 1)
|
||||||
{
|
{
|
||||||
print '<a class="tabAction" href="fiche.php?action=fastappro&id='.$product->id.'">'.$langs->trans("Order").'</a>';
|
print '<a class="tabAction" href="fiche.php?action=fastappro&id='.$product->id.'">';
|
||||||
|
print $langs->trans("Order").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $user->rights->produit->creer && $product->isproduct)
|
||||||
|
{
|
||||||
|
print '<a class="tabAction" href="fiche.php?action=ajout_photo&id='.$product->id.'">';
|
||||||
|
print $langs->trans("AddPhoto").'</a>';
|
||||||
|
}
|
||||||
|
|
||||||
if ( $user->rights->produit->creer)
|
if ( $user->rights->produit->creer)
|
||||||
{
|
{
|
||||||
print '<a class="tabAction" href="fiche.php?action=edit_price&id='.$product->id.'">'.$langs->trans("UpdatePrice").'</a>';
|
print '<a class="tabAction" href="fiche.php?action=edit_price&id='.$product->id.'">';
|
||||||
|
print $langs->trans("UpdatePrice").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $user->rights->produit->creer)
|
if ( $user->rights->produit->creer)
|
||||||
{
|
{
|
||||||
print '<a class="tabAction" href="fiche.php?action=edit&id='.$product->id.'">'.$langs->trans("Edit").'</a>';
|
print '<a class="tabAction" href="fiche.php?action=edit&id='.$product->id.'">'.$langs->trans("Edit").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($product->type == 0 && $conf->stock->enabled)
|
if ($product->type == 0 && $conf->stock->enabled)
|
||||||
{
|
{
|
||||||
print '<a class="tabAction" href="stock/product.php?id='.$product->id.'&action=correction">'.$langs->trans("CorrectStock").'</a>';
|
print '<a class="tabAction" href="stock/product.php?id='.$product->id.'&action=correction">'.$langs->trans("CorrectStock").'</a>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user