Fix deprecated functions

This commit is contained in:
Laurent Destailleur 2022-06-08 17:19:12 +02:00
parent 604463c9a4
commit 1f26dee554
6 changed files with 18 additions and 18 deletions

View File

@ -174,10 +174,10 @@ print load_fiche_titre($langs->trans($page_name), $linkback, 'stock');
// Configuration header
$head = stocktransferAdminPrepareHead();
dol_fiche_head($head, 'settings', '', -1, "stocktransfer@stocktransfer");
print dol_get_fiche_head($head, 'settings', '', -1, "stocktransfer@stocktransfer");
// Setup page goes here
echo '<span class="opacitymedium">'.$langs->trans("StockTransferSetupPage").'</span>';
print '<span class="opacitymedium">'.$langs->trans("StockTransferSetupPage").'</span>';
/*if ($action == 'edit')
@ -478,7 +478,7 @@ if (empty($setupnotempty)) {
}
// Page end
dol_fiche_end();
print dol_get_fiche_end();
llxFooter();
$db->close();

View File

@ -134,7 +134,7 @@ if ($object->id > 0) {
$head = stocktransferPrepareHead($object);
dol_fiche_head($head, 'agenda', $langs->trans("StockTransfer"), -1, $object->picto);
print dol_get_fiche_head($head, 'agenda', $langs->trans("StockTransfer"), -1, $object->picto);
// Object card
// ------------------------------------------------------------
@ -191,7 +191,7 @@ if ($object->id > 0) {
print '</div>';
dol_fiche_end();
print dol_get_fiche_end();

View File

@ -422,7 +422,7 @@ if ($action == 'create') {
if ($backtopage) print '<input type="hidden" name="backtopage" value="'.$backtopage.'">';
if ($backtopageforcancel) print '<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.'">';
dol_fiche_head(array(), '');
print dol_get_fiche_head(array(), '');
// Set some default values
//if (! GETPOSTISSET('fieldname')) $_POST['fieldname'] = 'myvalue';
@ -454,7 +454,7 @@ if ($action == 'create') {
print '</table>'."\n";
dol_fiche_end();
print dol_get_fiche_end();
print '<div class="center">';
print '<input type="submit" class="button" name="add" value="'.dol_escape_htmltag($langs->trans("Create")).'">';
@ -479,7 +479,7 @@ if (($id || $ref) && $action == 'edit') {
if ($backtopage) print '<input type="hidden" name="backtopage" value="' . $backtopage . '">';
if ($backtopageforcancel) print '<input type="hidden" name="backtopageforcancel" value="' . $backtopageforcancel . '">';
dol_fiche_head();
print dol_get_fiche_head();
print '<table class="border centpercent tableforfieldedit">' . "\n";
@ -491,7 +491,7 @@ if (($id || $ref) && $action == 'edit') {
print '</table>';
dol_fiche_end();
print dol_get_fiche_end();
print '<div class="center"><input type="submit" class="button" name="save" value="' . $langs->trans("Save") . '">';
print ' &nbsp; <input type="submit" class="button" name="cancel" value="' . $langs->trans("Cancel") . '">';
@ -506,7 +506,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
$res = $object->fetch_optionals();
$head = stocktransferPrepareHead($object);
dol_fiche_head($head, 'card', $langs->trans("StockTransfer"), -1, $object->picto);
print dol_get_fiche_head($head, 'card', $langs->trans("StockTransfer"), -1, $object->picto);
$formconfirm = '';
@ -675,7 +675,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print '<div class="clearboth"></div>';
dol_fiche_end();
print dol_get_fiche_end();
/*

View File

@ -126,7 +126,7 @@ $formother = new FormOther($db);
if ($object->id > 0) {
$head = stocktransferPrepareHead($object);
dol_fiche_head($head, 'contact', $langs->trans("StockTransfer"), -1, 'stock');
print dol_get_fiche_head($head, 'contact', $langs->trans("StockTransfer"), -1, 'stock');
// Proposal card
@ -178,7 +178,7 @@ if ($object->id > 0) {
dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref, '', 0, '', '', 1);
dol_fiche_end();
print dol_get_fiche_end();
$user->rights->stocktransfer->write = $user->rights->stocktransfer->stocktransfer->write;
// Contacts lines (modules that overwrite templates must declare this into descriptor)

View File

@ -114,7 +114,7 @@ if ($object->id) {
*/
$head = stocktransferPrepareHead($object);
dol_fiche_head($head, 'document', $langs->trans("StockTransfer"), -1, $object->picto);
print dol_get_fiche_head($head, 'document', $langs->trans("StockTransfer"), -1, $object->picto);
// Build file list
@ -185,7 +185,7 @@ if ($object->id) {
print '</div>';
dol_fiche_end();
print dol_get_fiche_end();
$modulepart = 'stocktransfer';
//$permission = $user->rights->stocktransfer->stocktransfer->write;

View File

@ -95,7 +95,7 @@ if ($id > 0 || !empty($ref)) {
$head = stocktransferPrepareHead($object);
dol_fiche_head($head, 'note', $langs->trans("StockTransfer"), -1, $object->picto);
print dol_get_fiche_head($head, 'note', $langs->trans("StockTransfer"), -1, $object->picto);
// Object card
// ------------------------------------------------------------
@ -139,7 +139,7 @@ if ($id > 0 || !empty($ref)) {
}
}
}*/
$morehtmlref .= '</div>';
$morehtmlref .= '</div>';
dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref);
@ -154,7 +154,7 @@ if ($id > 0 || !empty($ref)) {
print '</div>';
dol_fiche_end();
print dol_get_fiche_end();
}
// End of page