Look: Uniformize look
This commit is contained in:
parent
1142609471
commit
6a6a63613c
@ -62,9 +62,20 @@ print '<table class="notopnoleftnoright" width="100%">';
|
|||||||
|
|
||||||
print '<tr><td width="30%" valign="top" class="notopnoleft">';
|
print '<tr><td width="30%" valign="top" class="notopnoleft">';
|
||||||
|
|
||||||
/*
|
// Legend
|
||||||
* Recherche Contrat
|
$var=false;
|
||||||
*/
|
print '<table class="noborder" width="100%">';
|
||||||
|
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("ServicesLegend").'</td></tr>';
|
||||||
|
print '<tr '.$bc[$var].'><td nowrap>';
|
||||||
|
print $staticcontratligne->LibStatut(0,4).'<br />';
|
||||||
|
print $staticcontratligne->LibStatut(4,4,false).'<br />';
|
||||||
|
print $staticcontratligne->LibStatut(4,4,true).'<br />';
|
||||||
|
print $staticcontratligne->LibStatut(5,4).'<br />';
|
||||||
|
print '</td></tr>';
|
||||||
|
print '</table>';
|
||||||
|
print "<br>";
|
||||||
|
|
||||||
|
// Search contract
|
||||||
if ($conf->contrat->enabled)
|
if ($conf->contrat->enabled)
|
||||||
{
|
{
|
||||||
$var=false;
|
$var=false;
|
||||||
@ -80,18 +91,6 @@ if ($conf->contrat->enabled)
|
|||||||
print "<br>";
|
print "<br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Legend
|
|
||||||
$var=false;
|
|
||||||
print '<table class="noborder" width="100%">';
|
|
||||||
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("ServicesLegend").'</td></tr>';
|
|
||||||
print '<tr '.$bc[$var].'><td nowrap>';
|
|
||||||
print $staticcontratligne->LibStatut(0,4).'<br />';
|
|
||||||
print $staticcontratligne->LibStatut(4,4,false).'<br />';
|
|
||||||
print $staticcontratligne->LibStatut(4,4,true).'<br />';
|
|
||||||
print $staticcontratligne->LibStatut(5,4).'<br />';
|
|
||||||
print '</td></tr>';
|
|
||||||
print '</table>';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Draft contratcs
|
* Draft contratcs
|
||||||
*/
|
*/
|
||||||
@ -117,7 +116,6 @@ if ($conf->contrat->enabled && $user->rights->contrat->lire)
|
|||||||
$var = false;
|
$var = false;
|
||||||
$num = $db->num_rows($resql);
|
$num = $db->num_rows($resql);
|
||||||
|
|
||||||
print '<br>';
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td colspan="3">'.$langs->trans("DraftContracts").($num?' ('.$num.')':'').'</td></tr>';
|
print '<td colspan="3">'.$langs->trans("DraftContracts").($num?' ('.$num.')':'').'</td></tr>';
|
||||||
@ -206,7 +204,7 @@ if ($result)
|
|||||||
$var=!$var;
|
$var=!$var;
|
||||||
|
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
print "<td>";
|
print '<td width="80" nowrap="nowrap">';
|
||||||
$staticcontrat->ref=($obj->ref?$obj->ref:$obj->cid);
|
$staticcontrat->ref=($obj->ref?$obj->ref:$obj->cid);
|
||||||
$staticcontrat->id=$obj->cid;
|
$staticcontrat->id=$obj->cid;
|
||||||
print $staticcontrat->getNomUrl(1,16);
|
print $staticcontrat->getNomUrl(1,16);
|
||||||
@ -267,7 +265,7 @@ if ( $db->query($sql) )
|
|||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
|
|
||||||
print '<td>';
|
print '<td width="80" nowrap="nowrap">';
|
||||||
$staticcontrat->ref=($obj->ref?$obj->ref:$obj->fk_contrat);
|
$staticcontrat->ref=($obj->ref?$obj->ref:$obj->fk_contrat);
|
||||||
$staticcontrat->id=$obj->fk_contrat;
|
$staticcontrat->id=$obj->fk_contrat;
|
||||||
print $staticcontrat->getNomUrl(1,16);
|
print $staticcontrat->getNomUrl(1,16);
|
||||||
@ -330,7 +328,7 @@ if ($resql)
|
|||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
print '<td nowrap="nowrap">';
|
print '<td width="80" nowrap="nowrap">';
|
||||||
$staticcontrat->ref=($obj->ref?$obj->ref:$obj->fk_contrat);
|
$staticcontrat->ref=($obj->ref?$obj->ref:$obj->fk_contrat);
|
||||||
$staticcontrat->id=$obj->fk_contrat;
|
$staticcontrat->id=$obj->fk_contrat;
|
||||||
print $staticcontrat->getNomUrl(1,16);
|
print $staticcontrat->getNomUrl(1,16);
|
||||||
@ -346,7 +344,7 @@ if ($resql)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td nowrap="nowrap" align="right"><a href="'.DOL_URL_ROOT.'/contrat/fiche.php?id='.$obj->fk_contrat.'&ligne='.$obj->cid.'">';
|
print '<td nowrap="nowrap" align="right"><a href="'.DOL_URL_ROOT.'/contrat/fiche.php?id='.$obj->fk_contrat.'&ligne='.$obj->cid.'">';
|
||||||
$dateend=$db->jdate($obj->date_fin_validite);
|
$dateend=$db->jdate($obj->date_fin_validite);
|
||||||
print $staticcontratligne->LibStatut($obj->statut,5, ($dateend && $dateend < $now));
|
print $staticcontratligne->LibStatut($obj->statut, 3, ($dateend && $dateend < $now));
|
||||||
print '</a></td>';
|
print '</a></td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
$i++;
|
$i++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user