本文整理汇总了PHP中Societe::getNomUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP Societe::getNomUrl方法的具体用法?PHP Societe::getNomUrl怎么用?PHP Societe::getNomUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Societe
的用法示例。
在下文中一共展示了Societe::getNomUrl方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadBox
/**
* Load data into info_box_contents array to show array later.
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max = 5)
{
global $user, $langs, $db, $conf;
$this->max = $max;
include_once DOL_DOCUMENT_ROOT . '/comm/propal/class/propal.class.php';
include_once DOL_DOCUMENT_ROOT . '/societe/class/societe.class.php';
$propalstatic = new Propal($db);
$societestatic = new Societe($db);
$this->info_box_head = array('text' => $langs->trans("BoxTitleLast" . ($conf->global->MAIN_LASTBOX_ON_OBJECT_DATE ? "" : "Modified") . "Propals", $max));
if ($user->rights->propale->lire) {
$sql = "SELECT s.nom as name, s.rowid as socid, s.code_client, s.logo,";
$sql .= " p.rowid, p.ref, p.fk_statut, p.datep as dp, p.datec, p.fin_validite, p.date_cloture, p.total_ht, p.tva as total_tva, p.total as total_ttc, p.tms";
$sql .= " FROM " . MAIN_DB_PREFIX . "societe as s";
$sql .= ", " . MAIN_DB_PREFIX . "propal as p";
if (!$user->rights->societe->client->voir && !$user->societe_id) {
$sql .= ", " . MAIN_DB_PREFIX . "societe_commerciaux as sc";
}
$sql .= " WHERE p.fk_soc = s.rowid";
$sql .= " AND p.entity = " . $conf->entity;
if (!$user->rights->societe->client->voir && !$user->societe_id) {
$sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = " . $user->id;
}
if ($user->societe_id) {
$sql .= " AND s.rowid = " . $user->societe_id;
}
if ($conf->global->MAIN_LASTBOX_ON_OBJECT_DATE) {
$sql .= " ORDER BY p.datep DESC, p.ref DESC ";
} else {
$sql .= " ORDER BY p.tms DESC, p.ref DESC ";
}
$sql .= $db->plimit($max, 0);
$result = $db->query($sql);
if ($result) {
$num = $db->num_rows($result);
$now = dol_now();
$line = 0;
while ($line < $num) {
$objp = $db->fetch_object($result);
$date = $db->jdate($objp->dp);
$datec = $db->jdate($objp->datec);
$datem = $db->jdate($objp->tms);
$dateterm = $db->jdate($objp->fin_validite);
$dateclose = $db->jdate($objp->date_cloture);
$propalstatic->id = $objp->rowid;
$propalstatic->ref = $objp->ref;
$propalstatic->total_ht = $objp->total_ht;
$propalstatic->total_tva = $objp->total_tva;
$propalstatic->total_ttc = $objp->total_ttc;
$societestatic->id = $objp->socid;
$societestatic->name = $objp->name;
$societestatic->code_client = $objp->code_client;
$societestatic->logo = $objp->logo;
$late = '';
if ($objp->fk_statut == 1 && $dateterm < $now - $conf->propal->cloture->warning_delay) {
$late = img_warning($langs->trans("Late"));
}
$this->info_box_contents[$line][] = array('td' => 'align="left"', 'text' => $propalstatic->getNomUrl(1), 'text2' => $late, 'asis' => 1);
$this->info_box_contents[$line][] = array('td' => 'align="left"', 'text' => $societestatic->getNomUrl(1, '', 40), 'asis' => 1);
$this->info_box_contents[$line][] = array('td' => 'align="right"', 'text' => price($objp->total_ht, 0, $langs, 0, -1, -1, $conf->currency));
$this->info_box_contents[$line][] = array('td' => 'align="right"', 'text' => dol_print_date($date, 'day'));
$this->info_box_contents[$line][] = array('td' => 'align="right" width="18"', 'text' => $propalstatic->LibStatut($objp->fk_statut, 3));
$line++;
}
if ($num == 0) {
$this->info_box_contents[$line][0] = array('td' => 'align="center"', 'text' => $langs->trans("NoRecordedProposals"));
}
$db->free($result);
} else {
$this->info_box_contents[0][0] = array('td' => 'align="left"', 'maxlength' => 500, 'text' => $db->error() . ' sql=' . $sql);
}
} else {
$this->info_box_contents[0][0] = array('td' => 'align="left"', 'text' => $langs->trans("ReadPermissionNotAllowed"));
}
}
示例2: while
$num = $db->num_rows($resql);
if ($num) {
$i = 0;
$var = True;
while ($i < $num) {
$var = !$var;
$obj = $db->fetch_object($resql);
print "<tr " . $bc[$var] . ">";
$supplier_proposalstatic->id = $obj->rowid;
$supplier_proposalstatic->ref = $obj->ref;
print '<td class="nowrap">' . $supplier_proposalstatic->getNomUrl(1) . '</td>';
$companystatic->id = $obj->socid;
$companystatic->name = $obj->socname;
$companystatic->client = $obj->client;
$companystatic->canvas = $obj->canvas;
print '<td>' . $companystatic->getNomUrl(1, 'customer', 24) . '</td>';
print '</tr>';
$i++;
}
}
print "</table><br>";
}
}
print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
$max = 5;
/*
* Last modified askprice
*/
$sql = "SELECT c.rowid, c.ref, c.fk_statut, s.nom as socname, s.rowid as socid, s.canvas, s.client,";
$sql .= " date_cloture as datec";
$sql .= " FROM " . MAIN_DB_PREFIX . "supplier_proposal as c";
示例3: while
}
$sql .= " GROUP BY s.nom, s.rowid";
$var = true;
$resql = $db->query($sql);
if ($resql) {
$num = $db->num_rows($resql);
$i = 0;
while ($i < $num) {
$obj = $db->fetch_object($resql);
$var = !$var;
print "<tr " . $bc[$var] . ">";
print '<td class="nowrap">';
if ($obj->socid) {
$socstatic->id = $obj->socid;
$socstatic->name = $obj->name;
print $socstatic->getNomUrl(1);
} else {
print $langs->trans("OthersNotLinkedToThirdParty");
}
print '</td>';
print '<td align="right"><a href="' . DOL_URL_ROOT . '/projet/list.php?socid=' . $obj->socid . '">' . $obj->nb . '</a></td>';
print "</tr>\n";
$i++;
}
$db->free($resql);
} else {
dol_print_error($db);
}
print "</table>";
print '</div></div></div>';
// Tasks for all resources of all opened projects and time spent for each task/resource
示例4:
$facturestatic->id=$objp->facid;
$facturestatic->ref=$objp->ref;
print $facturestatic->getNomUrl(1);
print "</td>\n";
print "<td nowrap>".dol_trunc($objp->facnumber,12)."</td>\n";
print "<td nowrap align=\"center\">".dol_print_date($db->jdate($objp->df))."</td>\n";
print "<td nowrap align=\"center\">".dol_print_date($db->jdate($objp->datelimite));
if ($db->jdate($objp->datelimite) < ($now - $conf->facture->fournisseur->warning_delay) && ! $objp->paye && $objp->fk_statut == 1) print img_warning($langs->trans("Late"));
print "</td>\n";
print '<td>';
$companystatic->id=$objp->socid;
$companystatic->nom=$objp->nom;
print $companystatic->getNomUrl(1,'supplier',32);
print '</td>';
print "<td align=\"right\">".price($objp->total_ht)."</td>";
print "<td align=\"right\">".price($objp->total_ttc)."</td>";
print "<td align=\"right\">".price($objp->am)."</td>";
// Affiche statut de la facture
print '<td align="right" nowrap="nowrap">';
print $facturestatic->LibStatut($objp->paye,$objp->fk_statut,5,$objp->am);
print '</td>';
print "</tr>\n";
$total_ht+=$objp->total_ht;
$total_ttc+=$objp->total_ttc;
$total_paid+=$objp->am;
示例5: Societe
*/
print '<table class="border" width="100%">';
$linkback = '<a href="' . DOL_URL_ROOT . '/contact/list.php">' . $langs->trans("BackToList") . '</a>';
// Ref
print '<tr><td>' . $langs->trans("Ref") . '</td><td colspan="3">';
print $form->showrefnav($contact, 'id', $linkback);
print '</td></tr>';
// Name
print '<tr><td width="20%">' . $langs->trans("Lastname") . ' / ' . $langs->trans("Label") . '</td><td>' . $contact->lastname . '</td>';
print '<td width="20%">' . $langs->trans("Firstname") . '</td><td width="25%">' . $contact->firstname . '</td></tr>';
// Company
if (empty($conf->global->SOCIETE_DISABLE_CONTACTS)) {
if ($contact->socid > 0) {
$objsoc = new Societe($db);
$objsoc->fetch($contact->socid);
print '<tr><td width="15%">' . $langs->trans("ThirdParty") . '</td><td colspan="3">' . $objsoc->getNomUrl(1) . '</td></tr>';
} else {
print '<tr><td width="15%">' . $langs->trans("ThirdParty") . '</td><td colspan="3">';
print $langs->trans("ContactNotLinkedToCompany");
print '</td></tr>';
}
}
// Civility
print '<tr><td>' . $langs->trans("UserTitle") . '</td><td colspan="3">';
print $contact->getCivilityLabel();
print '</td></tr>';
print '</table>';
print '</div>';
print '<br>';
print $langs->trans("ExportCardToFormat") . ': ';
print '<a href="' . DOL_URL_ROOT . '/contact/vcard.php?id=' . $contact->id . '">';
示例6: foreach
}
print ' ' . $langs->trans($reg[1]);
} else {
print ' ' . $links[$key]['label'];
}
print '</a>';
}
}
print '</td>';
// Add third party column
print '<td>';
foreach ($links as $key => $val) {
if ($links[$key]['type'] == 'company') {
$societestatic->id = $links[$key]['url_id'];
$societestatic->name = $links[$key]['label'];
print $societestatic->getNomUrl(1, '', 16);
} else {
if ($links[$key]['type'] == 'user') {
$userstatic->id = $links[$key]['url_id'];
$userstatic->lastname = $links[$key]['label'];
print $userstatic->getNomUrl(1, '');
} else {
if ($links[$key]['type'] == 'sc') {
// sc=old value
$chargestatic->id = $links[$key]['url_id'];
if (preg_match('/^\\((.*)\\)$/i', $links[$key]['label'], $reg)) {
if ($reg[1] == 'socialcontribution') {
$reg[1] = 'SocialContribution';
}
$chargestatic->lib = $langs->trans($reg[1]);
} else {
示例7: Societe
print "</tr>\n";
$societestatic = new Societe($db);
if ($num) {
$i = 0;
$total = $total_ttc = $totalam = 0;
while ($i < $num) {
$obj = $db->fetch_object($resql);
print '<tr ' . $bc[$var] . '><td>';
$facstatic->ref = $obj->ref;
$facstatic->id = $obj->rowid;
print $facstatic->getNomUrl(1, '');
print '</td>';
$societestatic->id = $obj->socid;
$societestatic->nom = $obj->nom;
$societestatic->client = 0;
print '<td>' . $societestatic->getNomUrl(1, 'supplier', 44) . '</td>';
if (!empty($conf->global->MAIN_SHOW_HT_ON_SUMMARY)) {
print '<td align="right">' . price($obj->total_ht) . '</td>';
}
print '<td align="right">' . price($obj->total_ttc) . '</td>';
print '<td align="right">' . price($obj->am) . '</td>';
print '<td>' . $facstatic->LibStatut($obj->paye, $obj->fk_statut, 3) . '</td>';
print '</tr>';
$total += $obj->total_ht;
$total_ttc += $obj->total_ttc;
$totalam += $obj->am;
$i++;
$var = !$var;
}
print '<tr class="liste_total"><td colspan="2">' . $langs->trans("Total") . ' <font style="font-weight: normal">(' . $langs->trans("RemainderToPay") . ': ' . price($total_ttc - $totalam) . ')</font> </td>';
if (!empty($conf->global->MAIN_SHOW_HT_ON_SUMMARY)) {
示例8: price
$pv = $objp->selling_price;
$marge = $objp->marge;
if ($marge < 0) {
$marginRate = $pa != 0 ? -1 * (100 * $marge / $pa) : '';
$markRate = $pv != 0 ? -1 * (100 * $marge / $pv) : '';
} else {
$marginRate = $pa != 0 ? 100 * $marge / $pa : '';
$markRate = $pv != 0 ? 100 * $marge / $pv : '';
}
$var = !$var;
print "<tr " . $bc[$var] . ">";
if ($agentid > 0) {
$companystatic->id = $objp->socid;
$companystatic->nom = $objp->nom;
$companystatic->client = $objp->client;
print "<td>" . $companystatic->getNomUrl(1, 'customer') . "</td>\n";
} else {
$userstatic->fetch($objp->agent);
print "<td>" . $userstatic->getFullName($langs, 0, 0, 0) . "</td>\n";
}
print "<td align=\"right\">" . price($pv, null, null, null, null, $rounding) . "</td>\n";
print "<td align=\"right\">" . price($pa, null, null, null, null, $rounding) . "</td>\n";
print "<td align=\"right\">" . price($marge, null, null, null, null, $rounding) . "</td>\n";
if (!empty($conf->global->DISPLAY_MARGIN_RATES)) {
print "<td align=\"right\">" . ($marginRate === '' ? 'n/a' : price($marginRate, null, null, null, null, $rounding) . "%") . "</td>\n";
}
if (!empty($conf->global->DISPLAY_MARK_RATES)) {
print "<td align=\"right\">" . ($markRate === '' ? 'n/a' : price($markRate, null, null, null, null, $rounding) . "%") . "</td>\n";
}
print "</tr>\n";
$i++;
示例9: Societe
* Fiche en mode visu
*/
print '<table class="border" width="100%">';
// Ref
print '<tr><td width="20%">' . $langs->trans("Ref") . '</td><td colspan="3">';
print $form->showrefnav($object, 'id');
print '</td></tr>';
// Name
print '<tr><td width="20%">' . $langs->trans("Lastname") . ' / ' . $langs->trans("Label") . '</td><td width="30%">' . $object->lastname . '</td>';
print '<td width="20%">' . $langs->trans("Firstname") . '</td><td width="30%">' . $object->firstname . '</td></tr>';
// Company
if (empty($conf->global->SOCIETE_DISABLE_CONTACTS)) {
if ($object->socid > 0) {
$objsoc = new Societe($db);
$objsoc->fetch($object->socid);
print '<tr><td>' . $langs->trans("Company") . '</td><td colspan="3">' . $objsoc->getNomUrl(1) . '</td></tr>';
} else {
print '<tr><td>' . $langs->trans("Company") . '</td><td colspan="3">';
print $langs->trans("ContactNotLinkedToCompany");
print '</td></tr>';
}
}
// Civility
print '<tr><td>' . $langs->trans("UserTitle") . '</td><td colspan="3">';
print $object->getCivilityLabel();
print '</td></tr>';
// Date To Birth
print '<tr>';
if (!empty($object->birthday)) {
include_once DOL_DOCUMENT_ROOT . '/core/lib/date.lib.php';
print '<td>' . $langs->trans("DateToBirth") . '</td><td colspan="3">' . dol_print_date($object->birthday, "day");
示例10: Form
/**
* Get the form to input an email
* this->withfile: 0=No attaches files, 1=Show attached files, 2=Can add new attached files
*
* @param string $addfileaction Name of action when posting file attachments
* @param string $removefileaction Name of action when removing file attachments
* @return string Form to show
*/
function get_form($addfileaction = 'addfile', $removefileaction = 'removefile')
{
global $conf, $langs, $user, $hookmanager, $form;
if (!is_object($form)) {
$form = new Form($this->db);
}
$langs->load("other");
$langs->load("mails");
$hookmanager->initHooks(array('formmail'));
$parameters = array('addfileaction' => $addfileaction, 'removefileaction' => $removefileaction);
$reshook = $hookmanager->executeHooks('getFormMail', $parameters, $this);
if (!empty($reshook)) {
return $hookmanager->resPrint;
} else {
$out = '';
// Define list of attached files
$listofpaths = array();
$listofnames = array();
$listofmimes = array();
if (!empty($_SESSION["listofpaths"])) {
$listofpaths = explode(';', $_SESSION["listofpaths"]);
}
if (!empty($_SESSION["listofnames"])) {
$listofnames = explode(';', $_SESSION["listofnames"]);
}
if (!empty($_SESSION["listofmimes"])) {
$listofmimes = explode(';', $_SESSION["listofmimes"]);
}
$out .= "\n<!-- Debut form mail -->\n";
if ($this->withform == 1) {
$out .= '<form method="POST" name="mailform" enctype="multipart/form-data" action="' . $this->param["returnurl"] . '">' . "\n";
$out .= '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '" />';
}
foreach ($this->param as $key => $value) {
$out .= '<input type="hidden" id="' . $key . '" name="' . $key . '" value="' . $value . '" />' . "\n";
}
$out .= '<table class="border" width="100%">' . "\n";
// Substitution array
if (!empty($this->withsubstit)) {
$out .= '<tr><td colspan="2">';
$help = "";
foreach ($this->substit as $key => $val) {
$help .= $key . ' -> ' . $langs->trans($val) . '<br>';
}
$out .= $form->textwithpicto($langs->trans("EMailTestSubstitutionReplacedByGenericValues"), $help);
$out .= "</td></tr>\n";
}
// From
if (!empty($this->withfrom)) {
if (!empty($this->withfromreadonly)) {
$out .= '<input type="hidden" id="fromname" name="fromname" value="' . $this->fromname . '" />';
$out .= '<input type="hidden" id="frommail" name="frommail" value="' . $this->frommail . '" />';
$out .= '<tr><td width="180">' . $langs->trans("MailFrom") . '</td><td>';
if ($this->fromtype == 'user' && $this->fromid > 0) {
$langs->load("users");
$fuser = new User($this->db);
$fuser->fetch($this->fromid);
$out .= $fuser->getNomUrl(1);
} else {
$out .= $this->fromname;
}
if ($this->frommail) {
$out .= " <" . $this->frommail . ">";
} else {
if ($this->fromtype) {
$langs->load("errors");
$out .= '<font class="warning"> <' . $langs->trans("ErrorNoMailDefinedForThisUser") . '> </font>';
}
}
$out .= "</td></tr>\n";
$out .= "</td></tr>\n";
} else {
$out .= "<tr><td>" . $langs->trans("MailFrom") . "</td><td>";
$out .= $langs->trans("Name") . ':<input type="text" id="fromname" name="fromname" size="32" value="' . $this->fromname . '" />';
$out .= ' ';
$out .= $langs->trans("EMail") . ':<<input type="text" id="frommail" name="frommail" size="32" value="' . $this->frommail . '" />>';
$out .= "</td></tr>\n";
}
}
// Replyto
if (!empty($this->withreplyto)) {
if ($this->withreplytoreadonly) {
$out .= '<input type="hidden" id="replyname" name="replyname" value="' . $this->replytoname . '" />';
$out .= '<input type="hidden" id="replymail" name="replymail" value="' . $this->replytomail . '" />';
$out .= "<tr><td>" . $langs->trans("MailReply") . "</td><td>" . $this->replytoname . ($this->replytomail ? " <" . $this->replytomail . ">" : "");
$out .= "</td></tr>\n";
}
}
// Errorsto
if (!empty($this->witherrorsto)) {
//if (! $this->errorstomail) $this->errorstomail=$this->frommail;
$errorstomail = !empty($conf->global->MAIN_MAIL_ERRORS_TO) ? $conf->global->MAIN_MAIL_ERRORS_TO : $this->errorstomail;
//.........这里部分代码省略.........
示例11: while
$total = 0;
$i = 0;
while ($i < min($num, $limit)) {
$objp = $db->fetch_object($result);
$var = !$var;
print "<tr " . $bc[$var] . ">";
print "<td>";
$interventionstatic->id = $objp->fichid;
$interventionstatic->ref = $objp->ref;
print $interventionstatic->getNomUrl(1);
print "</td>\n";
print '<td>';
$companystatic->name = $objp->name;
$companystatic->id = $objp->socid;
$companystatic->client = $objp->client;
print $companystatic->getNomUrl(1, '', 44);
print '</td>';
print '<td>' . dol_htmlentitiesbr(dol_trunc($objp->description, 20)) . '</td>';
if (empty($conf->global->FICHINTER_DISABLE_DETAILS)) {
print '<td>' . dol_htmlentitiesbr(dol_trunc($objp->descriptiondetail, 20)) . '</td>';
print '<td align="center">' . dol_print_date($db->jdate($objp->dp), 'dayhour') . "</td>\n";
print '<td align="right">' . convertSecondToTime($objp->duree) . '</td>';
}
print '<td align="right">' . $interventionstatic->LibStatut($objp->fk_statut, 5) . '</td>';
print '<td> </td>';
print "</tr>\n";
$total += $objp->duree;
$i++;
}
$rowspan = 3;
if (empty($conf->global->FICHINTER_DISABLE_DETAILS)) {
示例12: setEventMessages
setEventMessages($langs->trans("DefinitionOfBarCodeForProductNotComplete", $producttmp->getNomUrl()), null, 'warnings');
}
}
}
if (GETPOST('submitthirdparty') && GETPOST('submitthirdparty')) {
$action = '';
// We reset because we don't want to build doc
if (GETPOST('socid') > 0) {
$thirdpartytmp->fetch(GETPOST('socid'));
$forbarcode = $thirdpartytmp->barcode;
$fk_barcode_type = $thirdpartytmp->barcode_type_code;
if (empty($fk_barcode_type) && !empty($conf->global->GENBARCODE_BARCODETYPE_THIRDPARTY)) {
$fk_barcode_type = $conf->global->GENBARCODE_BARCODETYPE_THIRDPARTY;
}
if (empty($forbarcode) || empty($fk_barcode_type)) {
setEventMessages($langs->trans("DefinitionOfBarCodeForThirdpartyNotComplete", $thirdpartytmp->getNomUrl()), null, 'warnings');
}
}
}
if ($action == 'builddoc') {
$result = 0;
$error = 0;
if (empty($forbarcode)) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("BarcodeValue")), null, 'errors');
$error++;
}
if (empty($fk_barcode_type)) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("BarcodeType")), null, 'errors');
$error++;
}
if (!$error) {
示例13: DolEditor
if ($origin == 'commande') {
print $langs->trans('RefCustomerOrder');
} else {
if ($origin == 'propal') {
print $langs->trans('RefCustomerOrder');
} else {
print $langs->trans('RefCustomer');
}
}
print '</td><td colspan="3">';
print $object->ref_client;
print '</td>';
print '</tr>';
// Tiers
print '<tr><td class="fieldrequired">' . $langs->trans('Company') . '</td>';
print '<td colspan="3">' . $soc->getNomUrl(1) . '</td>';
print '</tr>';
// Date delivery planned
print '<tr><td>' . $langs->trans("DateDeliveryPlanned") . '</td>';
print '<td colspan="3">';
//print dol_print_date($object->date_livraison,"day"); // date_livraison come from order and will be stored into date_delivery planed.
$date_delivery = $date_delivery ? $date_delivery : $object->date_livraison;
// $date_delivery comes from GETPOST
print $form->select_date($date_delivery ? $date_delivery : -1, 'date_delivery', 1, 1, 1);
print "</td>\n";
print '</tr>';
// Note Public
print '<tr><td>' . $langs->trans("NotePublic") . '</td>';
print '<td colspan="3">';
$doleditor = new DolEditor('note_public', $object->note_public, '', 80, 'dolibarr_notes', 'In', 0, false, true, ROWS_3, 70);
print $doleditor->Create(1);
示例14: get_format_libelle_societe
function get_format_libelle_societe($fk_soc)
{
global $db;
if ($fk_soc > 0) {
$societe = new Societe($db);
$societe->fetch($fk_soc);
$url = $societe->getNomUrl(1);
return $url;
}
return '';
}
示例15:
if (!empty($conf->multicompany->enabled) && $obj->admin && !$obj->entity) {
print img_picto($langs->trans("SuperAdministrator"), 'redstar');
} else {
if ($obj->admin) {
print img_picto($langs->trans("Administrator"), 'star');
}
}
print "</td>";
print '<td align="left">' . $obj->login . '</td>';
print "<td>";
if ($obj->fk_soc) {
$companystatic->id = $obj->fk_soc;
$companystatic->name = $obj->name;
$companystatic->code_client = $obj->code_client;
$companystatic->canvas = $obj->canvas;
print $companystatic->getNomUrl(1);
} else {
print $langs->trans("InternalUser");
}
if ($obj->ldap_sid) {
print ' (' . $langs->trans("DomainUser") . ')';
}
$entity = $obj->entity;
$entitystring = '';
// TODO Set of entitystring should be done with a hook
if (!empty($conf->multicompany->enabled) && is_object($mc)) {
if (empty($entity)) {
$entitystring = $langs->trans("AllEntities");
} else {
$mc->getInfo($entity);
$entitystring = $mc->label;