print '<center><br><input type="submit" class="button" value="' . $langs->trans("Create") . '"></center>'; print '</form>'; } else { $id = GETPOST("id", 'int'); if ($id) { dol_htmloutput_mesg($mesg); $object = new Entrepot($db); $result = $object->fetch($id); if ($result < 0) { dol_print_error($db); } /* * Affichage fiche */ if ($action != 'edit' && $action != 're-edit') { $head = stock_prepare_head($object); dol_fiche_head($head, 'card', $langs->trans("Warehouse"), 0, 'stock'); // Confirm delete third party if ($action == 'delete') { print $form->formconfirm($_SERVER["PHP_SELF"] . "?id=" . $object->id, $langs->trans("DeleteAWarehouse"), $langs->trans("ConfirmDeleteWarehouse", $object->libelle), "confirm_delete", '', 0, 2); } print '<table class="border" width="100%">'; $linkback = '<a href="' . DOL_URL_ROOT . '/product/stock/liste.php">' . $langs->trans("BackToList") . '</a>'; // Ref print '<tr><td width="25%">' . $langs->trans("Ref") . '</td><td colspan="3">'; print $form->showrefnav($object, 'id', $linkback, 1, 'rowid', 'libelle'); print '</td>'; print '<tr><td>' . $langs->trans("LocationSummary") . '</td><td colspan="3">' . $object->lieu . '</td></tr>'; // Description print '<tr><td valign="top">' . $langs->trans("Description") . '</td><td colspan="3">' . nl2br($object->description) . '</td></tr>'; // Address
if ($result < 0) { dol_print_error($db); } } $i = 0; $help_url = 'EN:Module_Stocks_En|FR:Module_Stock|ES:Módulo_Stocks'; $texte = $langs->trans("ListOfStockMovements"); if ($id) { $texte .= ' (' . $langs->trans("ForThisWarehouse") . ')'; } llxHeader("", $texte, $help_url); /* * Show tab only if we ask a particular warehouse */ if ($id) { $head = stock_prepare_head($entrepot); dol_fiche_head($head, 'movements', $langs->trans("Warehouse"), 0, 'stock'); print '<table class="border" width="100%">'; $linkback = '<a href="' . DOL_URL_ROOT . '/adherents/liste.php">' . $langs->trans("BackToList") . '</a>'; // Ref print '<tr><td width="25%">' . $langs->trans("Ref") . '</td><td colspan="3">'; print $form->showrefnav($entrepot, 'id', $linkback, 1, 'rowid', 'libelle'); print '</td>'; print '<tr><td>' . $langs->trans("LocationSummary") . '</td><td colspan="3">' . $entrepot->lieu . '</td></tr>'; // Description print '<tr><td valign="top">' . $langs->trans("Description") . '</td><td colspan="3">' . dol_htmlentitiesbr($entrepot->description) . '</td></tr>'; // Address print '<tr><td>' . $langs->trans('Address') . '</td><td colspan="3">'; print $entrepot->address; print '</td></tr>'; // Town