Uniformize style

This commit is contained in:
Laurent Destailleur 2016-04-23 17:35:33 +02:00
parent 9d21b63562
commit 1a883d870b
10 changed files with 36 additions and 29 deletions

View File

@ -384,7 +384,7 @@ print '</div>';
print '<input id="fillfromthirdparty" type="radio" '.((GETPOST("selectorforbarcode")=='fillfromthirdparty')?'checked ':'').'name="selectorforbarcode" value="fillfromthirdparty" class="radiobarcodeselect"> '.$langs->trans("FillBarCodeTypeAndValueFromThirdParty").' &nbsp; ';
print '<br>';
print '<div class="showforthirdpartyselector">';
print $form->select_company(GETPOST('socid'), 'socid', '', 1, 0, 0, array(), 0, 'minwidth300');
print $form->select_company(GETPOST('socid'), 'socid', '', 'SelectThirdParty', 0, 0, array(), 0, 'minwidth300');
print ' &nbsp; <input type="submit" id="submitthirdparty" name="submitthirdparty" class="button showforthirdpartyselector" value="'.(dol_escape_htmltag($langs->trans("GetBarCode"))).'">';
print '</div>';

View File

@ -2587,12 +2587,8 @@ if ($action == 'create' && $user->rights->commande->creer)
if ($action != 'presend')
{
print '<div class="fichecenter"><div class="fichehalfleft">';
// print '<table width="100%"><tr><td width="50%" valign="top">';
// print '<a name="builddoc"></a>'; // ancre
/*
* Documents generes
*/
// Documents
$comref = dol_sanitizeFileName($object->ref);
$file = $conf->commande->dir_output . '/' . $comref . '/' . $comref . '.pdf';
$relativepath = $comref . '/' . $comref . '.pdf';
@ -2611,14 +2607,12 @@ if ($action == 'create' && $user->rights->commande->creer)
print '</div><div class="fichehalfright"><div class="ficheaddleft">';
// print '</td><td valign="top" width="50%">';
// List of actions on element
include_once DOL_DOCUMENT_ROOT . '/core/class/html.formactions.class.php';
$formactions = new FormActions($db);
$somethingshown = $formactions->showactions($object, 'order', $socid);
// print '</td></tr></table>';
print '</div></div></div>';
}

View File

@ -885,7 +885,7 @@ else
{
print '<div class="tabBar">';
print $error;
print '<br /><br /><input type="button" value="'.$langs->trans("ReturnCP").'" class="button" onclick="history.go(-1)" />';
print '<br><br><input type="button" value="'.$langs->trans("ReturnCP").'" class="button" onclick="history.go(-1)" />';
print '</div>';
}
else
@ -994,10 +994,10 @@ else
print '<table class="border" width="100%">';
print '<tbody>';
$linkback='';
$linkback='<a href="'.DOL_URL_ROOT.'/holiday/list.php">'.$langs->trans("BackToList").'</a>';
print '<tr>';
print '<td width="25%">'.$langs->trans("Ref").'</td>';
print '<td class="titlefield">'.$langs->trans("Ref").'</td>';
print '<td>';
print $form->showrefnav($cp, 'id', $linkback, 1, 'rowid', 'ref');
print '</td>';

View File

@ -1219,7 +1219,7 @@ class Holiday extends CommonObject
// List for Dolibarr users
if ($type)
{
$sql = "SELECT u.rowid, u.lastname, u.firstname";
$sql = "SELECT u.rowid, u.lastname, u.firstname, u.gender, u.photo, u.employee, u.statut";
$sql.= " FROM ".MAIN_DB_PREFIX."user as u";
if (! empty($conf->multicompany->enabled) && ! empty($conf->multicompany->transverse_mode))
@ -1250,11 +1250,15 @@ class Holiday extends CommonObject
$obj = $this->db->fetch_object($resql);
$tab_result[$i]['rowid'] = $obj->rowid;
$tab_result[$i]['name'] = $obj->lastname;
$tab_result[$i]['name'] = $obj->lastname; // deprecated
$tab_result[$i]['lastname'] = $obj->lastname;
$tab_result[$i]['firstname'] = $obj->firstname;
$tab_result[$i]['type'] = $obj->type;
$tab_result[$i]['nb_holiday'] = $obj->nb_holiday;
$tab_result[$i]['gender'] = $obj->gender;
$tab_result[$i]['status'] = $obj->statut;
$tab_result[$i]['employee'] = $obj->employee;
$tab_result[$i]['photo'] = $obj->photo;
//$tab_result[$i]['type'] = $obj->type;
//$tab_result[$i]['nb_holiday'] = $obj->nb_holiday;
$i++;
}
@ -1264,7 +1268,7 @@ class Holiday extends CommonObject
else
{
// Erreur SQL
$this->error="Error ".$this->db->lasterror();
$this->errors[]="Error ".$this->db->lasterror();
return -1;
}
}

View File

@ -181,6 +181,10 @@ if ($result < 0)
}
$listUsers = $holiday->fetchUsers(false,true);
if (is_numeric($listUsers) && $listUsers < 0)
{
setEventMessages($holiday->error, $holiday->errors, 'errors');
}
$var=true;
$i = 0;
@ -260,9 +264,13 @@ else
print '<tr '.$bc[$var].' style="height: 20px;">';
print '<td>';
$userstatic->id=$users['rowid'];
$userstatic->lastname=$users['name'];
$userstatic->lastname=$users['lastname'];
$userstatic->firstname=$users['firstname'];
print $userstatic->getNomUrl(1);
$userstatic->gender=$users['gender'];
$userstatic->photo=$users['photo'];
$userstatic->statut=$users['status'];
$userstatic->employee=$users['employee'];
print $userstatic->getNomUrl(-1);
print '</td>';
if (count($typeleaves))

View File

@ -108,12 +108,12 @@ if ($object->id)
}
print '<table class="border" width="100%">';
print '<table class="border centpercent">';
$linkback='';
$linkback='<a href="'.DOL_URL_ROOT.'/holiday/list.php">'.$langs->trans("BackToList").'</a>';
print '<tr>';
print '<td width="25%">'.$langs->trans("Ref").'</td>';
print '<td class="titlefield">'.$langs->trans("Ref").'</td>';
print '<td>';
print $form->showrefnav($object, 'id', $linkback, 1, 'rowid', 'ref');
print '</td>';

View File

@ -991,7 +991,6 @@ else
}
print "</div>";
print "<br>\n";
if ($action != 'presend')
{
@ -1011,7 +1010,7 @@ else
$somethingshown=$formfile->show_documents('project',$filename,$filedir,$urlsource,$genallowed,$delallowed,$object->modelpdf);
print '</div></div class="fichehalfright">';
print '</div><div class="fichehalfright"><div class="ficheaddleft">';
if (!empty($object->id))
{
@ -1021,7 +1020,7 @@ else
$somethingshown=$formactions->showactions($object,'project',$socid);
}
print '</div>';
print '</div></div></div>';
}
// Hook to add more things on page

View File

@ -378,10 +378,11 @@ $showdatefilter=0;
// Show the filter on date on top of element list
if (! $showdatefilter)
{
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$projectid.'" method="post">';
print '<div class="center centpercent">';
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$projectid.'" method="post">';
print '<input type="hidden" name="tablename" value="'.$tablename.'">';
print '<input type="hidden" name="action" value="view">';
print '<table><tr>';
print '<table class="center"><tr>';
print '<td>'.$langs->trans("From").' ';
print $form->select_date($dates,'dates',0,0,1,'',1,0,1);
print '</td>';
@ -393,7 +394,8 @@ if (! $showdatefilter)
print '</td>';
print '</tr></table>';
print '</form>';
print '</div>';
$showdatefilter++;
}

View File

@ -2205,7 +2205,7 @@ table.liste, table.noborder, table.formdoc, div.noborder {
-webkit-border-radius: 0.2em;
border-radius: 0.2em;*/
}
#tablelines tr.liste_titre td, form.formnoborder div, tr.liste_titre.trnoborder td {
#tablelines tr.liste_titre:first-child td, form.formnoborder div, tr.liste_titre.trnoborder td {
border-top-width: 1px;
border-top-color: rgb(<?php echo $colortopbordertitle1 ?>);
border-top-style: solid;

View File

@ -2075,7 +2075,7 @@ table.liste, table.noborder, table.formdoc, div.noborder {
-webkit-border-radius: 0.1em;
border-radius: 0.1em;
}
#tablelines tr.liste_titre td, form.formnoborder, tr.liste_titre.trnoborder td {
#tablelines tr.liste_titre:first-child td, form.formnoborder, tr.liste_titre.trnoborder td {
border-top-width: 1px;
border-top-color: rgb(<?php echo $colortopbordertitle1 ?>);
border-top-style: solid;