Fix: uniformisation du code
Add: icone pdf sur les listes
This commit is contained in:
parent
743f361619
commit
5f09750d7d
@ -192,7 +192,7 @@ if ($resql)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td width="20" class="nobordernopadding" nowrap="nowrap">';
|
print '<td width="20" class="nobordernopadding" nowrap="nowrap">';
|
||||||
if (($objp->fk_statut > 0) && ($objp->fk_statut < 3) && $objp->date_commande < (time() - $conf->commande->warning_delay)) print img_picto($langs->trans("Late"),"warning");
|
if (($objp->fk_statut > 0) && ($objp->fk_statut < 3) && $objp->date_commande < (time() - $conf->commande->traitement->warning_delay)) print img_picto($langs->trans("Late"),"warning");
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td width="16" align="right" class="nobordernopadding">';
|
print '<td width="16" align="right" class="nobordernopadding">';
|
||||||
|
|||||||
@ -51,7 +51,7 @@ if ($user->societe_id > 0)
|
|||||||
|
|
||||||
$langs->load('companies');
|
$langs->load('companies');
|
||||||
|
|
||||||
|
$html = new Form($db);
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
@ -129,12 +129,31 @@ if ($resql)
|
|||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
print "<td><a href=\"".$link."?id=$objp->rowid\">".img_object($langs->trans("ShowOrder"),"order")." ".$objp->ref."</a></td>\n";
|
|
||||||
|
print '<td width="20%" nowrap="nowrap">';
|
||||||
|
|
||||||
|
$generic_commande->id=$objp->rowid;
|
||||||
|
$generic_commande->ref=$objp->ref;
|
||||||
|
|
||||||
|
print '<table class="nobordernopadding"><tr class="nocellnopadd">';
|
||||||
|
print '<td width="90" class="nobordernopadding" nowrap="nowrap">';
|
||||||
|
print $generic_commande->getNomUrl(1);
|
||||||
|
print '</td>';
|
||||||
|
|
||||||
|
print '<td width="20" class="nobordernopadding" nowrap="nowrap">';
|
||||||
|
if (($objp->date_commande < (time() - $conf->commande->traitement->warning_delay)) && $objp->statutid == 1 ) print img_picto($langs->trans("Late"),"warning");
|
||||||
|
print '</td>';
|
||||||
|
|
||||||
|
print '<td width="16" align="right" class="nobordernopadding">';
|
||||||
|
$filename=sanitize_string($objp->ref);
|
||||||
|
$filedir=$conf->commande->dir_output . '/' . sanitize_string($objp->ref);
|
||||||
|
$urlsource=$_SERVER['PHP_SELF'].'?id='.$objp->rowid;
|
||||||
|
$html->show_documents('commande',$filename,$filedir,$urlsource,'','','','','',1);
|
||||||
|
print '</td></tr></table>';
|
||||||
|
|
||||||
|
print '</td>';
|
||||||
|
|
||||||
print "<td><a href=\"".DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->socid."\">".img_object($langs->trans("ShowCompany"),"company")." ".$objp->nom."</a>";
|
print "<td><a href=\"".DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->socid."\">".img_object($langs->trans("ShowCompany"),"company")." ".$objp->nom."</a>";
|
||||||
if (($objp->date_commande < (time() - $conf->commande->traitement->warning_delay)) && $objp->statutid == 1 )
|
|
||||||
{
|
|
||||||
print img_warning();
|
|
||||||
}
|
|
||||||
print "</td>";
|
print "</td>";
|
||||||
|
|
||||||
print "<td align=\"center\">";
|
print "<td align=\"center\">";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user