Fix deprecated functions
This commit is contained in:
parent
604463c9a4
commit
1f26dee554
@ -174,10 +174,10 @@ print load_fiche_titre($langs->trans($page_name), $linkback, 'stock');
|
|||||||
|
|
||||||
// Configuration header
|
// Configuration header
|
||||||
$head = stocktransferAdminPrepareHead();
|
$head = stocktransferAdminPrepareHead();
|
||||||
dol_fiche_head($head, 'settings', '', -1, "stocktransfer@stocktransfer");
|
print dol_get_fiche_head($head, 'settings', '', -1, "stocktransfer@stocktransfer");
|
||||||
|
|
||||||
// Setup page goes here
|
// Setup page goes here
|
||||||
echo '<span class="opacitymedium">'.$langs->trans("StockTransferSetupPage").'</span>';
|
print '<span class="opacitymedium">'.$langs->trans("StockTransferSetupPage").'</span>';
|
||||||
|
|
||||||
|
|
||||||
/*if ($action == 'edit')
|
/*if ($action == 'edit')
|
||||||
@ -478,7 +478,7 @@ if (empty($setupnotempty)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Page end
|
// Page end
|
||||||
dol_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
@ -134,7 +134,7 @@ if ($object->id > 0) {
|
|||||||
$head = stocktransferPrepareHead($object);
|
$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
|
// Object card
|
||||||
// ------------------------------------------------------------
|
// ------------------------------------------------------------
|
||||||
@ -191,7 +191,7 @@ if ($object->id > 0) {
|
|||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
dol_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -422,7 +422,7 @@ if ($action == 'create') {
|
|||||||
if ($backtopage) print '<input type="hidden" name="backtopage" value="'.$backtopage.'">';
|
if ($backtopage) print '<input type="hidden" name="backtopage" value="'.$backtopage.'">';
|
||||||
if ($backtopageforcancel) print '<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.'">';
|
if ($backtopageforcancel) print '<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.'">';
|
||||||
|
|
||||||
dol_fiche_head(array(), '');
|
print dol_get_fiche_head(array(), '');
|
||||||
|
|
||||||
// Set some default values
|
// Set some default values
|
||||||
//if (! GETPOSTISSET('fieldname')) $_POST['fieldname'] = 'myvalue';
|
//if (! GETPOSTISSET('fieldname')) $_POST['fieldname'] = 'myvalue';
|
||||||
@ -454,7 +454,7 @@ if ($action == 'create') {
|
|||||||
|
|
||||||
print '</table>'."\n";
|
print '</table>'."\n";
|
||||||
|
|
||||||
dol_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
print '<div class="center">';
|
print '<div class="center">';
|
||||||
print '<input type="submit" class="button" name="add" value="'.dol_escape_htmltag($langs->trans("Create")).'">';
|
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 ($backtopage) print '<input type="hidden" name="backtopage" value="' . $backtopage . '">';
|
||||||
if ($backtopageforcancel) print '<input type="hidden" name="backtopageforcancel" value="' . $backtopageforcancel . '">';
|
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";
|
print '<table class="border centpercent tableforfieldedit">' . "\n";
|
||||||
|
|
||||||
@ -491,7 +491,7 @@ if (($id || $ref) && $action == 'edit') {
|
|||||||
|
|
||||||
print '</table>';
|
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 '<div class="center"><input type="submit" class="button" name="save" value="' . $langs->trans("Save") . '">';
|
||||||
print ' <input type="submit" class="button" name="cancel" value="' . $langs->trans("Cancel") . '">';
|
print ' <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();
|
$res = $object->fetch_optionals();
|
||||||
|
|
||||||
$head = stocktransferPrepareHead($object);
|
$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 = '';
|
$formconfirm = '';
|
||||||
|
|
||||||
@ -675,7 +675,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
|
|
||||||
print '<div class="clearboth"></div>';
|
print '<div class="clearboth"></div>';
|
||||||
|
|
||||||
dol_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -126,7 +126,7 @@ $formother = new FormOther($db);
|
|||||||
|
|
||||||
if ($object->id > 0) {
|
if ($object->id > 0) {
|
||||||
$head = stocktransferPrepareHead($object);
|
$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
|
// Proposal card
|
||||||
@ -178,7 +178,7 @@ if ($object->id > 0) {
|
|||||||
|
|
||||||
dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref, '', 0, '', '', 1);
|
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;
|
$user->rights->stocktransfer->write = $user->rights->stocktransfer->stocktransfer->write;
|
||||||
// Contacts lines (modules that overwrite templates must declare this into descriptor)
|
// Contacts lines (modules that overwrite templates must declare this into descriptor)
|
||||||
|
|||||||
@ -114,7 +114,7 @@ if ($object->id) {
|
|||||||
*/
|
*/
|
||||||
$head = stocktransferPrepareHead($object);
|
$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
|
// Build file list
|
||||||
@ -185,7 +185,7 @@ if ($object->id) {
|
|||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
dol_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
$modulepart = 'stocktransfer';
|
$modulepart = 'stocktransfer';
|
||||||
//$permission = $user->rights->stocktransfer->stocktransfer->write;
|
//$permission = $user->rights->stocktransfer->stocktransfer->write;
|
||||||
|
|||||||
@ -95,7 +95,7 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
|
|
||||||
$head = stocktransferPrepareHead($object);
|
$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
|
// Object card
|
||||||
// ------------------------------------------------------------
|
// ------------------------------------------------------------
|
||||||
@ -154,7 +154,7 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
dol_fiche_end();
|
print dol_get_fiche_end();
|
||||||
}
|
}
|
||||||
|
|
||||||
// End of page
|
// End of page
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user