Trad: Traduction des onglets contact
This commit is contained in:
parent
1a86509387
commit
3e66849767
@ -160,12 +160,12 @@ if ($_GET["id"] > 0)
|
|||||||
|
|
||||||
$h=0;
|
$h=0;
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/contact/fiche.php?id='.$_GET["id"];
|
$head[$h][0] = DOL_URL_ROOT.'/contact/fiche.php?id='.$_GET["id"];
|
||||||
$head[$h][1] = "Général";
|
$head[$h][1] = $langs->trans("General");
|
||||||
$hselected=$h;
|
$hselected=$h;
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/contact/perso.php?id='.$_GET["id"];
|
$head[$h][0] = DOL_URL_ROOT.'/contact/perso.php?id='.$_GET["id"];
|
||||||
$head[$h][1] = 'Informations personnelles';
|
$head[$h][1] = $langs->trans("PersonalInformations");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/contact/vcard.php?id='.$_GET["id"];
|
$head[$h][0] = DOL_URL_ROOT.'/contact/vcard.php?id='.$_GET["id"];
|
||||||
@ -196,9 +196,13 @@ if ($_GET["socid"] > 0)
|
|||||||
$objsoc->fetch($_GET["socid"]);
|
$objsoc->fetch($_GET["socid"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($_GET["action"] == 'create')
|
if ($_GET["action"] == 'create')
|
||||||
{
|
{
|
||||||
// Fiche en mode creation
|
/*
|
||||||
|
* Fiche en mode creation
|
||||||
|
*
|
||||||
|
*/
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
print "<form method=\"post\" action=\"fiche.php\">";
|
print "<form method=\"post\" action=\"fiche.php\">";
|
||||||
@ -252,7 +256,10 @@ if ($_GET["action"] == 'create')
|
|||||||
}
|
}
|
||||||
elseif ($_GET["action"] == 'edit')
|
elseif ($_GET["action"] == 'edit')
|
||||||
{
|
{
|
||||||
// Fiche en mode edition
|
/*
|
||||||
|
* Fiche en mode edition
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
print '<form method="post" action="fiche.php?id='.$_GET["id"].'">';
|
print '<form method="post" action="fiche.php?id='.$_GET["id"].'">';
|
||||||
print '<input type="hidden" name="action" value="update">';
|
print '<input type="hidden" name="action" value="update">';
|
||||||
@ -403,66 +410,61 @@ else
|
|||||||
|
|
||||||
print "</div><br>";
|
print "</div><br>";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Historique des actions vers ce contact
|
// Historique des actions vers ce contact
|
||||||
print_titre ("Historique des actions pour ce contact");
|
print_titre ("Historique des actions pour ce contact");
|
||||||
|
|
||||||
print '<table width="100%" class="noborder">';
|
print '<table width="100%" class="noborder">';
|
||||||
|
|
||||||
print "<tr class=\"liste_titre\">";
|
print "<tr class=\"liste_titre\">";
|
||||||
print "<td>".$langs->trans("Date")."</td><td>".$langs->trans("Actions")."</td>";
|
print "<td>".$langs->trans("Date")."</td><td>".$langs->trans("Actions")."</td>";
|
||||||
print "<td>".$langs->trans("CreatedBy")."</td></tr>";
|
print "<td>".$langs->trans("CreatedBy")."</td></tr>";
|
||||||
|
|
||||||
$sql = "SELECT a.id, ".$db->pdate("a.datea")." as da, c.libelle, u.code, a.propalrowid, a.fk_user_author, fk_contact, u.rowid ";
|
$sql = "SELECT a.id, ".$db->pdate("a.datea")." as da, c.libelle, u.code, a.propalrowid, a.fk_user_author, fk_contact, u.rowid ";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."actioncomm as a, ".MAIN_DB_PREFIX."c_actioncomm as c, ".MAIN_DB_PREFIX."user as u ";
|
$sql .= " FROM ".MAIN_DB_PREFIX."actioncomm as a, ".MAIN_DB_PREFIX."c_actioncomm as c, ".MAIN_DB_PREFIX."user as u ";
|
||||||
$sql .= " WHERE fk_contact = ".$contact->id;
|
$sql .= " WHERE fk_contact = ".$contact->id;
|
||||||
$sql .= " AND u.rowid = a.fk_user_author";
|
$sql .= " AND u.rowid = a.fk_user_author";
|
||||||
$sql .= " AND c.id=a.fk_action ";
|
$sql .= " AND c.id=a.fk_action ";
|
||||||
|
|
||||||
if ($contactid)
|
if ($contactid)
|
||||||
{
|
|
||||||
$sql .= " AND fk_contact = $contactid";
|
|
||||||
}
|
|
||||||
$sql .= " ORDER BY a.datea DESC, a.id DESC";
|
|
||||||
|
|
||||||
if ( $db->query($sql) )
|
|
||||||
{
|
|
||||||
$i = 0 ; $num = $db->num_rows(); $tag = True;
|
|
||||||
while ($i < $num)
|
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object();
|
$sql .= " AND fk_contact = $contactid";
|
||||||
$var=!$var;
|
|
||||||
print "<tr $bc[$var]>";
|
|
||||||
|
|
||||||
print "<td>". strftime("%d %b %Y %H:%M", $obj->da) ."</td>";
|
|
||||||
if ($obj->propalrowid)
|
|
||||||
{
|
|
||||||
print "<td><a href=\"propal.php?propalid=$obj->propalrowid\">$obj->libelle</a></td>";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print "<td>$obj->libelle</td>";
|
|
||||||
}
|
|
||||||
|
|
||||||
print "<td>$obj->code </td>";
|
|
||||||
print "</tr>\n";
|
|
||||||
$i++;
|
|
||||||
$tag = !$tag;
|
|
||||||
}
|
}
|
||||||
}
|
$sql .= " ORDER BY a.datea DESC, a.id DESC";
|
||||||
else
|
|
||||||
{
|
if ( $db->query($sql) )
|
||||||
dolibarr_print_error($db);
|
{
|
||||||
}
|
$i = 0 ; $num = $db->num_rows(); $tag = True;
|
||||||
print "</table>";
|
while ($i < $num)
|
||||||
|
{
|
||||||
|
$obj = $db->fetch_object();
|
||||||
|
$var=!$var;
|
||||||
|
print "<tr $bc[$var]>";
|
||||||
|
|
||||||
|
print "<td>". strftime("%d %b %Y %H:%M", $obj->da) ."</td>";
|
||||||
|
if ($obj->propalrowid)
|
||||||
|
{
|
||||||
|
print "<td><a href=\"propal.php?propalid=$obj->propalrowid\">$obj->libelle</a></td>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print "<td>$obj->libelle</td>";
|
||||||
|
}
|
||||||
|
|
||||||
|
print "<td>$obj->code </td>";
|
||||||
|
print "</tr>\n";
|
||||||
|
$i++;
|
||||||
|
$tag = !$tag;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dolibarr_print_error($db);
|
||||||
|
}
|
||||||
|
print "</table>";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/**
|
||||||
\file htdocs/contact/info.php
|
\file htdocs/contact/info.php
|
||||||
\ingroup societe
|
\ingroup societe
|
||||||
\brief Onglet info d'un contact
|
\brief Onglet info d'un contact
|
||||||
@ -42,11 +42,11 @@ $contact->fetch($_GET["id"], $user);
|
|||||||
|
|
||||||
$h=0;
|
$h=0;
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/contact/fiche.php?id='.$_GET["id"];
|
$head[$h][0] = DOL_URL_ROOT.'/contact/fiche.php?id='.$_GET["id"];
|
||||||
$head[$h][1] = "Général";
|
$head[$h][1] = $langs->trans("General");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/contact/perso.php?id='.$_GET["id"];
|
$head[$h][0] = DOL_URL_ROOT.'/contact/perso.php?id='.$_GET["id"];
|
||||||
$head[$h][1] = 'Informations personnelles';
|
$head[$h][1] = $langs->trans("PersonalInformations");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/contact/vcard.php?id='.$_GET["id"];
|
$head[$h][0] = DOL_URL_ROOT.'/contact/vcard.php?id='.$_GET["id"];
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/**
|
||||||
\file htdocs/contact/perso.php
|
\file htdocs/contact/perso.php
|
||||||
\ingroup societe
|
\ingroup societe
|
||||||
\brief Onglet informations personnelles d'un contact
|
\brief Onglet informations personnelles d'un contact
|
||||||
@ -66,12 +66,13 @@ $contact->fetch($_GET["id"], $user);
|
|||||||
|
|
||||||
|
|
||||||
$h=0;
|
$h=0;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/contact/fiche.php?id='.$_GET["id"];
|
$head[$h][0] = DOL_URL_ROOT.'/contact/fiche.php?id='.$_GET["id"];
|
||||||
$head[$h][1] = "Général";
|
$head[$h][1] = $langs->trans("General");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/contact/perso.php?id='.$_GET["id"];
|
$head[$h][0] = DOL_URL_ROOT.'/contact/perso.php?id='.$_GET["id"];
|
||||||
$head[$h][1] = 'Informations personnelles';
|
$head[$h][1] = $langs->trans("PersonalInformations");
|
||||||
$hselected=$h;
|
$hselected=$h;
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
|||||||
@ -30,3 +30,4 @@ CustomerDiscount=Customer Discount
|
|||||||
Supplier=Supplier
|
Supplier=Supplier
|
||||||
CompanyList=Companies' list
|
CompanyList=Companies' list
|
||||||
AddContact=Add new contact
|
AddContact=Add new contact
|
||||||
|
PersonalInformations=Personal data
|
||||||
|
|||||||
@ -156,4 +156,5 @@ Drafts=Drafts
|
|||||||
Opened=Opened
|
Opened=Opened
|
||||||
New=New
|
New=New
|
||||||
Discount=Discount
|
Discount=Discount
|
||||||
Unknown=Inconnu
|
Unknown=Inconnu
|
||||||
|
General=General
|
||||||
@ -33,4 +33,5 @@ CompanyList=Liste des soci
|
|||||||
AddContact=Ajouter un contact
|
AddContact=Ajouter un contact
|
||||||
NewSocGroup=Nouveau groupement de sociétés
|
NewSocGroup=Nouveau groupement de sociétés
|
||||||
SocGroup=Groupement de sociétés
|
SocGroup=Groupement de sociétés
|
||||||
Created=Date saisie
|
Created=Date saisie
|
||||||
|
PersonalInformations=Informations personnelles
|
||||||
@ -156,4 +156,5 @@ Drafts=Brouillons
|
|||||||
Opened=Ouverts
|
Opened=Ouverts
|
||||||
New=Nouveau
|
New=Nouveau
|
||||||
Discount=Remise
|
Discount=Remise
|
||||||
Unknown=Inconnu
|
Unknown=Inconnu
|
||||||
|
General=Général
|
||||||
Loading…
Reference in New Issue
Block a user