Champ date création.
This commit is contained in:
parent
559dc70ec2
commit
3c5adbd1de
@ -21,7 +21,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** \file htdocs/comm/clients.php
|
/**
|
||||||
|
\file htdocs/comm/clients.php
|
||||||
\ingroup commercial, societe
|
\ingroup commercial, societe
|
||||||
\brief Liste des clients
|
\brief Liste des clients
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
@ -80,14 +81,8 @@ if ($socname)
|
|||||||
$sortorder = "ASC";
|
$sortorder = "ASC";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($sortorder == "")
|
if (! $sortorder) $sortorder="ASC";
|
||||||
{
|
if (! $sortfield) $sortfield="s.nom";
|
||||||
$sortorder="ASC";
|
|
||||||
}
|
|
||||||
if ($sortfield == "")
|
|
||||||
{
|
|
||||||
$sortfield="s.nom";
|
|
||||||
}
|
|
||||||
|
|
||||||
$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit +1, $offset);
|
$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit +1, $offset);
|
||||||
|
|
||||||
@ -95,7 +90,7 @@ $sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit +1,
|
|||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$num = $db->num_rows();
|
$num = $db->num_rows($result);
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
@ -107,14 +102,16 @@ if ($result)
|
|||||||
print '<table class="liste">';
|
print '<table class="liste">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre($langs->trans("Company"),"clients.php","s.nom",$addu,"","",$sortfield);
|
print_liste_field_titre($langs->trans("Company"),"clients.php","s.nom",$addu,"","",$sortfield);
|
||||||
print_liste_field_titre($langs->trans("CustomerCode"),"clients.php","s.code_client",$addu,"","",$sortfield);
|
|
||||||
print_liste_field_titre($langs->trans("Town"),"clients.php","s.ville",$addu,"","",$sortfield);
|
print_liste_field_titre($langs->trans("Town"),"clients.php","s.ville",$addu,"","",$sortfield);
|
||||||
|
print_liste_field_titre($langs->trans("CustomerCode"),"clients.php","s.code_client",$addu,"","",$sortfield);
|
||||||
|
print_liste_field_titre($langs->trans("DateCreation"),"clients.php","datec",$addu,"","",$sortfield);
|
||||||
print "<td> </td></tr>\n";
|
print "<td> </td></tr>\n";
|
||||||
|
|
||||||
print '<form method="get" action="clients.php">';
|
print '<form method="get" action="clients.php">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td valign="right">';
|
print '<td valign="right">';
|
||||||
print '<input type="text" class="flat" name="search_nom" value="'.stripslashes($_GET["search_nom"]).'">';
|
print '<input type="text" class="flat" name="search_nom" value="'.stripslashes($_GET["search_nom"]).'">';
|
||||||
|
print '</td><td valign="right"> ';
|
||||||
print '</td><td valign="right">';
|
print '</td><td valign="right">';
|
||||||
print '<input type="text" class="flat" name="search_code" value="'.$_GET["search_code"].'">';
|
print '<input type="text" class="flat" name="search_code" value="'.$_GET["search_code"].'">';
|
||||||
print '</td><td> </td><td align="center"><input class="button" type="submit" value="'.$langs->trans("Search").'">';
|
print '</td><td> </td><td align="center"><input class="button" type="submit" value="'.$langs->trans("Search").'">';
|
||||||
@ -133,8 +130,9 @@ if ($result)
|
|||||||
print '<td><a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$obj->idp.'">';
|
print '<td><a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$obj->idp.'">';
|
||||||
print img_object($langs->trans("ShowCustomer"),"company");
|
print img_object($langs->trans("ShowCustomer"),"company");
|
||||||
print '</a> <a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$obj->idp.'">'.stripslashes($obj->nom).'</a></td>';
|
print '</a> <a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$obj->idp.'">'.stripslashes($obj->nom).'</a></td>';
|
||||||
print "<td>".$obj->code_client." </td>\n";
|
print '<td>'.$obj->ville.'</td>';
|
||||||
print "<td>".$obj->ville." </td>\n";
|
print '<td>'.$obj->code_client.'</td>';
|
||||||
|
print '<td>'.dolibarr_print_date($obj->datec).'</td>';
|
||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
if (defined("MAIN_MODULE_DOSSIER") && MAIN_MODULE_DOSSIER == 1)
|
if (defined("MAIN_MODULE_DOSSIER") && MAIN_MODULE_DOSSIER == 1)
|
||||||
{
|
{
|
||||||
@ -150,7 +148,7 @@ if ($result)
|
|||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
print "</table>";
|
print "</table>";
|
||||||
$db->free();
|
$db->free($result);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user