diff --git a/htdocs/commande/index.php b/htdocs/commande/index.php index 7fa463e9599..064b338d9e7 100644 --- a/htdocs/commande/index.php +++ b/htdocs/commande/index.php @@ -18,11 +18,11 @@ */ /** - \file htdocs/commande/index.php - \ingroup commande - \brief Page acceuil espace commandes - \version $Id$ -*/ + \file htdocs/commande/index.php + \ingroup commande + \brief Page acceuil espace commandes + \version $Id$ + */ require("./pre.inc.php"); require_once(DOL_DOCUMENT_ROOT."/html.formfile.class.php"); @@ -35,10 +35,10 @@ $langs->load("orders"); // Sécurité accés client $socid=''; if ($_GET["socid"]) { $socid=$_GET["socid"]; } -if ($user->societe_id > 0) +if ($user->societe_id > 0) { - $action = ''; - $socid = $user->societe_id; + $action = ''; + $socid = $user->societe_id; } @@ -81,27 +81,27 @@ if (!$user->rights->societe->client->voir && !$socid) $sql .= " AND s.rowid = sc if ( $db->query($sql) ) { - $langs->load("orders"); - $num = $db->num_rows(); - if ($num) - { - $i = 0; - print '
| '.$langs->trans("DraftOrders").' | |
| '; - print "rowid."\">".img_object($langs->trans("ShowOrder"),"order").' '.$obj->ref." | "; - print ''.img_object($langs->trans("ShowCompany"),"company").' '.dolibarr_trunc($obj->nom,24).' |
| '.$langs->trans("DraftOrders").' | |
| '; + print "rowid."\">".img_object($langs->trans("ShowOrder"),"order").' '.$obj->ref." | "; + print ''.img_object($langs->trans("ShowCompany"),"company").' '.dolibarr_trunc($obj->nom,24).' |
| '.$langs->trans("OrdersToProcess").' | |||
| '.$langs->trans("OrdersToProcess").' | |||
';
-
- $commandestatic->id=$obj->rowid;
- $commandestatic->ref=$obj->ref;
-
- print '
| |||
| '; - print ' | '; - print ''.img_object($langs->trans("ShowCompany"),"company").' '.dolibarr_trunc($obj->nom,24).' | ||
| '; + print $commandestatic->getNomUrl(1); + print ' | '; + + print ''; + print ' '; + print ' | '; + + print ''; + $filename=sanitize_string($obj->ref); + $filedir=$conf->commande->dir_output . '/' . sanitize_string($obj->ref); + $urlsource=$_SERVER['PHP_SELF'].'?id='.$obj->rowid; + $formfile->show_documents('commande',$filename,$filedir,$urlsource,'','','','','',1); + print ' |
| '.$langs->trans("OnProcessOrders").' ('.$num.') | |||||
| '.$langs->trans("OnProcessOrders").' ('.$num.') | |||||
';
-
- $commandestatic->id=$obj->rowid;
- $commandestatic->ref=$obj->ref;
-
- print '
| ';
-
- print ''.img_object($langs->trans("ShowCompany"),"company").' '.$obj->nom.' | '; - print ''.$commandestatic->LibStatut($obj->fk_statut,$obj->facture,5).' | '; - print '|||
| '; + print $commandestatic->getNomUrl(1); + print ' | '; + + print ''; + print ' '; + print ' | '; + + print ''; + $filename=sanitize_string($obj->ref); + $filedir=$conf->commande->dir_output . '/' . sanitize_string($obj->ref); + $urlsource=$_SERVER['PHP_SELF'].'?id='.$obj->rowid; + $formfile->show_documents('commande',$filename,$filedir,$urlsource,'','','','','',1); + print ' |
| '.$langs->trans("LastClosedOrders",$max).' | ||||||
| '.$langs->trans("LastClosedOrders",$max).' | ||||||
';
-
- $commandestatic->id=$obj->rowid;
- $commandestatic->ref=$obj->ref;
-
- print '
| ';
-
- print ''.img_object($langs->trans("ShowCompany"),"company").' '.$obj->nom.' | '; - print ''.dolibarr_print_date($obj->datec).' | '; - print ''.$commandestatic->LibStatut($obj->fk_statut,$obj->facture,5).' | '; - print '|||
| '; + print $commandestatic->getNomUrl(1); + print ' | '; + + print ''; + print ' '; + print ' | '; + + print ''; + $filename=sanitize_string($obj->ref); + $filedir=$conf->commande->dir_output . '/' . sanitize_string($obj->ref); + $urlsource=$_SERVER['PHP_SELF'].'?id='.$obj->rowid; + $formfile->show_documents('commande',$filename,$filedir,$urlsource,'','','','','',1); + print ' |