From ed898528071881d29380715d9903dd19e3da3fa9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Sat, 1 Apr 2017 13:49:17 +0200 Subject: [PATCH] Work on look and feel v6 --- htdocs/user/document.php | 6 ++++-- htdocs/user/info.php | 2 +- htdocs/user/note.php | 4 +++- htdocs/user/notify/card.php | 30 +++--------------------------- 4 files changed, 11 insertions(+), 31 deletions(-) diff --git a/htdocs/user/document.php b/htdocs/user/document.php index 081bf2bc408..5b86c7d490d 100644 --- a/htdocs/user/document.php +++ b/htdocs/user/document.php @@ -129,12 +129,13 @@ if ($object->id) $form=new Form($db); - dol_fiche_head($head, 'document', $langs->trans("User"),0,'user'); + dol_fiche_head($head, 'document', $langs->trans("User"), -1, 'user'); $linkback = '<a href="'.DOL_URL_ROOT.'/user/index.php">'.$langs->trans("BackToList").'</a>'; dol_banner_tab($object,'id',$linkback,$user->rights->user->user->lire || $user->admin); + print '<div class="fichecenter">'; print '<div class="underbanner clearboth"></div>'; // Construit liste des fichiers @@ -158,7 +159,8 @@ if ($object->id) print '<tr><td>'.$langs->trans("TotalSizeOfAttachedFiles").'</td><td>'.$totalsize.' '.$langs->trans("bytes").'</td></tr>'; print '</table>'; - + print '</div>'; + dol_fiche_end(); diff --git a/htdocs/user/info.php b/htdocs/user/info.php index 5ea7200a0f7..ff4c44c6e23 100644 --- a/htdocs/user/info.php +++ b/htdocs/user/info.php @@ -65,7 +65,7 @@ llxHeader(); $head = user_prepare_head($object); $title = $langs->trans("User"); -dol_fiche_head($head, 'info', $title, 0, 'user'); +dol_fiche_head($head, 'info', $title, -1, 'user'); $linkback = '<a href="'.DOL_URL_ROOT.'/user/index.php">'.$langs->trans("BackToList").'</a>'; diff --git a/htdocs/user/note.php b/htdocs/user/note.php index 38aef489b87..3f9be2b4142 100644 --- a/htdocs/user/note.php +++ b/htdocs/user/note.php @@ -88,7 +88,7 @@ if ($id) $head = user_prepare_head($object); $title = $langs->trans("User"); - dol_fiche_head($head, 'note', $title, 0, 'user'); + dol_fiche_head($head, 'note', $title, -1, 'user'); $linkback = '<a href="'.DOL_URL_ROOT.'/user/index.php">'.$langs->trans("BackToList").'</a>'; @@ -99,6 +99,7 @@ if ($id) print "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">"; print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; + print '<div class="fichecenter">'; print '<table class="border" width="100%">'; // Login @@ -123,6 +124,7 @@ if ($id) print "</td></tr>"; print "</table>"; + print '</div>'; dol_fiche_end(); diff --git a/htdocs/user/notify/card.php b/htdocs/user/notify/card.php index 4e84a8b83fa..305bb3d226b 100644 --- a/htdocs/user/notify/card.php +++ b/htdocs/user/notify/card.php @@ -135,36 +135,12 @@ if ($result > 0) $head = user_prepare_head($object); - dol_fiche_head($head, 'notify', $langs->trans("User"),0,'user'); + dol_fiche_head($head, 'notify', $langs->trans("User"), 0, 'user'); $linkback = '<a href="'.DOL_URL_ROOT.'/user/index.php">'.$langs->trans("BackToList").'</a>'; - dol_banner_tab($object, 'id', $linkback, $user->rights->user->user->lire || $user->admin); - - /*print '<table class="border"width="100%">'; - - // Ref - print '<tr><td width="25%">'.$langs->trans("Ref").'</td>'; - print '<td colspan="3">'; - print $form->showrefnav($object,'id','',$user->rights->user->user->lire || $user->admin); - print '</td>'; - print '</tr>'."\n"; - - print '<tr><td>'.$langs->trans("Lastname").'</td>'; - print '<td colspan="2">'.$object->lastname.'</td>'; - - // Firstname - print '<tr><td>'.$langs->trans("Firstname").'</td>'; - print '<td colspan="2">'.$object->firstname.'</td>'; - print '</tr>'."\n"; - - // EMail - print '<tr><td>'.$langs->trans("EMail").'</td>'; - print '<td colspan="2">'.dol_print_email($object->email,0,0,1).'</td>'; - print "</tr>\n"; - - print '</table>';*/ - + dol_banner_tab($object, 'id', $linkback, $user->rights->user->user->lire || $user->admin, 'rowid', 'ref', '', '', 0, '', '', 1, ''); + dol_fiche_end(); print "\n"; -- GitLab