Work on look and feel v6

This commit is contained in:
Laurent Destailleur 2017-04-01 13:49:17 +02:00
parent 17a1874e36
commit ed89852807
4 changed files with 11 additions and 31 deletions

View File

@ -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();

View File

@ -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>';

View File

@ -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();

View File

@ -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";