当前位置: 首页>>代码示例>>PHP>>正文


PHP Adherent::getNomUrl方法代码示例

本文整理汇总了PHP中Adherent::getNomUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP Adherent::getNomUrl方法的具体用法?PHP Adherent::getNomUrl怎么用?PHP Adherent::getNomUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Adherent的用法示例。


在下文中一共展示了Adherent::getNomUrl方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: price

                     $loanstatic->id = $links[$key]['url_id'];
                     if (preg_match('/^\\((.*)\\)$/i', $links[$key]['label'], $reg)) {
                         if ($reg[1] == 'loan') {
                             $reg[1] = 'Loan';
                         }
                         $loanstatic->label = $langs->trans($reg[1]);
                     } else {
                         $loanstatic->label = $links[$key]['label'];
                     }
                     $loanstatic->ref = $loanstatic->label;
                     print $loanstatic->getLinkUrl(1, 16);
                 } else {
                     if ($links[$key]['type'] == 'member') {
                         $memberstatic->id = $links[$key]['url_id'];
                         $memberstatic->ref = $links[$key]['label'];
                         print $memberstatic->getNomUrl(1, 16, 'card');
                     }
                 }
             }
         }
     }
 }
 print '</td>';
 // Amount
 if ($objp->amount < 0) {
     print '<td align="right" class="nowrap">' . price($objp->amount * -1) . '</td><td>&nbsp;</td>' . "\n";
     $total_deb += $objp->amount;
 } else {
     print '<td>&nbsp;</td><td align="right" class="nowrap">&nbsp;' . price($objp->amount) . '</td>' . "\n";
     $total_cred += $objp->amount;
 }
开发者ID:NoisyBoy86,项目名称:Dolibarr_test,代码行数:31,代码来源:account.php

示例2: include

        // Sales representative
        include(DOL_DOCUMENT_ROOT.'/societe/tpl/linesalesrepresentative.tpl.php');

        // Module Adherent
        if ($conf->adherent->enabled)
        {
            $langs->load("members");
            print '<tr><td width="25%" valign="top">'.$langs->trans("LinkedToDolibarrMember").'</td>';
            print '<td colspan="3">';
            $adh=new Adherent($db);
            $result=$adh->fetch('','',$object->id);
            if ($result > 0)
            {
                $adh->ref=$adh->getFullName($langs);
                print $adh->getNomUrl(1);
            }
            else
            {
                print $langs->trans("UserNotLinkedToMember");
            }
            print '</td>';
            print "</tr>\n";
        }

        print '</table>';

        dol_fiche_end();


        /*
开发者ID:nrjacker4,项目名称:crm-php,代码行数:30,代码来源:soc.php

示例3: while

 print "</tr>\n";
 $var = True;
 $i = 0;
 while ($i < $num && $i < $conf->liste_limit) {
     $objp = $db->fetch_object($resql);
     $datefin = $db->jdate($objp->datefin);
     $memberstatic->id = $objp->rowid;
     $memberstatic->ref = $objp->rowid;
     $memberstatic->lastname = $objp->lastname;
     $memberstatic->firstname = $objp->firstname;
     $companyname = $objp->company;
     $var = !$var;
     print "<tr " . $bc[$var] . ">";
     // Ref
     print "<td>";
     print $memberstatic->getNomUrl(1);
     print "</td>\n";
     // Lastname
     print "<td><a href=\"card.php?rowid={$objp->rowid}\">";
     print !empty($objp->lastname) || !empty($objp->firstname) ? dol_trunc($memberstatic->getFullName($langs)) : '';
     print (!empty($objp->lastname) || !empty($objp->firstname)) && !empty($companyname) ? ' / ' : '';
     print !empty($companyname) ? dol_trunc($companyname, 32) : '';
     print "</a></td>\n";
     // Login
     print "<td>" . $objp->login . "</td>\n";
     // Type
     $membertypestatic->id = $objp->type_id;
     $membertypestatic->libelle = $objp->type;
     print '<td class="nowrap">';
     print $membertypestatic->getNomUrl(1, 32);
     print '</td>';
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:societecontact.php

示例4: foreach


//.........这里部分代码省略.........
                    $this->tpl['localtax'] .= '</td><td>' . $langs->trans("LocalTax2IsUsedES") . '</td><td>';
                    $this->tpl['localtax'] .= $form->selectyesno('localtax2assuj_value', $this->object->localtax1_assuj, 1);
                    $this->tpl['localtax'] .= '</td></tr>';
                } elseif ($mysoc->localtax1_assuj == "1") {
                    $this->tpl['localtax'] .= '<tr><td>' . $langs->trans("LocalTax1IsUsedES") . '</td><td colspan="3">';
                    $this->tpl['localtax'] .= $form->selectyesno('localtax1assuj_value', $this->object->localtax1_assuj, 1);
                    $this->tpl['localtax'] .= '</td><tr>';
                } elseif ($mysoc->localtax2_assuj == "1") {
                    $this->tpl['localtax'] .= '<tr><td>' . $langs->trans("LocalTax2IsUsedES") . '</td><td colspan="3">';
                    $this->tpl['localtax'] .= $form->selectyesno('localtax2assuj_value', $this->object->localtax1_assuj, 1);
                    $this->tpl['localtax'] .= '</td><tr>';
                }
            }
        } else {
            $head = societe_prepare_head($this->object);
            $this->tpl['showhead'] = dol_get_fiche_head($head, 'card', '', 0, 'company');
            $this->tpl['showend'] = dol_get_fiche_end();
            $this->tpl['showrefnav'] = $form->showrefnav($this->object, 'socid', '', $user->societe_id ? 0 : 1, 'rowid', 'nom');
            $this->tpl['checkcustomercode'] = $this->object->check_codeclient();
            $this->tpl['checksuppliercode'] = $this->object->check_codefournisseur();
            $this->tpl['address'] = dol_nl2br($this->object->address);
            $img = picto_from_langcode($this->object->country_code);
            if ($this->object->isInEEC()) {
                $this->tpl['country'] = $form->textwithpicto(($img ? $img . ' ' : '') . $this->object->country, $langs->trans("CountryIsInEEC"), 1, 0);
            }
            $this->tpl['country'] = ($img ? $img . ' ' : '') . $this->object->country;
            $this->tpl['phone'] = dol_print_phone($this->object->phone, $this->object->country_code, 0, $this->object->id, 'AC_TEL');
            $this->tpl['fax'] = dol_print_phone($this->object->fax, $this->object->country_code, 0, $this->object->id, 'AC_FAX');
            $this->tpl['email'] = dol_print_email($this->object->email, 0, $this->object->id, 'AC_EMAIL');
            $this->tpl['url'] = dol_print_url($this->object->url);
            $this->tpl['tva_assuj'] = yn($this->object->tva_assuj);
            // Third party type
            $arr = $formcompany->typent_array(1);
            $this->tpl['typent'] = $arr[$this->object->typent_code];
            if (!empty($conf->global->MAIN_MULTILANGS)) {
                require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php';
                //$s=picto_from_langcode($this->default_lang);
                //print ($s?$s.' ':'');
                $langs->load("languages");
                $this->tpl['default_lang'] = $this->default_lang ? $langs->trans('Language_' . $this->object->default_lang) : '';
            }
            $this->tpl['image_edit'] = img_edit();
            $this->tpl['display_rib'] = $this->object->display_rib();
            // Sales representatives
            $this->tpl['sales_representatives'] = '';
            $listsalesrepresentatives = $this->object->getSalesRepresentatives($user);
            $nbofsalesrepresentative = count($listsalesrepresentatives);
            if ($nbofsalesrepresentative > 3) {
                $this->tpl['sales_representatives'] .= '<a href="' . DOL_URL_ROOT . '/societe/commerciaux.php?socid=' . $this->object->id . '">';
                $this->tpl['sales_representatives'] .= $nbofsalesrepresentative;
                $this->tpl['sales_representatives'] .= '</a>';
            } else {
                if ($nbofsalesrepresentative > 0) {
                    $userstatic = new User($this->db);
                    $i = 0;
                    foreach ($listsalesrepresentatives as $val) {
                        $userstatic->id = $val['id'];
                        $userstatic->lastname = $val['name'];
                        $userstatic->firstname = $val['firstname'];
                        $this->tpl['sales_representatives'] .= $userstatic->getNomUrl(1);
                        $i++;
                        if ($i < $nbofsalesrepresentative) {
                            $this->tpl['sales_representatives'] .= ', ';
                        }
                    }
                } else {
                    $this->tpl['sales_representatives'] .= $langs->trans("NoSalesRepresentativeAffected");
                }
            }
            // Linked member
            if (!empty($conf->adherent->enabled)) {
                $langs->load("members");
                $adh = new Adherent($this->db);
                $result = $adh->fetch('', '', $this->object->id);
                if ($result > 0) {
                    $adh->ref = $adh->getFullName($langs);
                    $this->tpl['linked_member'] = $adh->getNomUrl(1);
                } else {
                    $this->tpl['linked_member'] = $langs->trans("ThirdpartyNotLinkedToMember");
                }
            }
            // Local Tax
            // TODO mettre dans une classe propre au pays
            if ($mysoc->country_code == 'ES') {
                $this->tpl['localtax'] = '';
                if ($mysoc->localtax1_assuj == "1" && $mysoc->localtax2_assuj == "1") {
                    $this->tpl['localtax'] .= '<tr><td>' . $langs->trans("LocalTax1IsUsedES") . '</td>';
                    $this->tpl['localtax'] .= '<td>' . yn($this->object->localtax1_assuj) . '</td>';
                    $this->tpl['localtax'] .= '<td>' . $langs->trans("LocalTax2IsUsedES") . '</td>';
                    $this->tpl['localtax'] .= '<td>' . yn($this->object->localtax2_assuj) . '</td></tr>';
                } elseif ($mysoc->localtax1_assuj == "1") {
                    $this->tpl['localtax'] .= '<tr><td>' . $langs->trans("LocalTax1IsUsedES") . '</td>';
                    $this->tpl['localtax'] .= '<td colspan="3">' . yn($this->object->localtax1_assuj) . '</td></tr>';
                } elseif ($mysoc->localtax2_assuj == "1") {
                    $this->tpl['localtax'] .= '<tr><td>' . $langs->trans("LocalTax2IsUsedES") . '</td>';
                    $this->tpl['localtax'] .= '<td colspan="3">' . yn($this->object->localtax2_assuj) . '</td></tr>';
                }
            }
        }
    }
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:101,代码来源:actions_card_common.class.php

示例5: 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;
     $langs->load("boxes");
     $this->max = $max;
     include_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent.class.php';
     $memberstatic = new Adherent($db);
     $this->info_box_head = array('text' => $langs->trans("BoxTitleLastModifiedMembers", $max));
     if ($user->rights->adherent->lire) {
         $sql = "SELECT a.rowid, a.lastname, a.firstname, a.societe as company, a.fk_soc,";
         $sql .= " a.datec, a.tms, a.statut as status, a.datefin as date_end_subscription,";
         $sql .= " t.cotisation";
         $sql .= " FROM " . MAIN_DB_PREFIX . "adherent as a, " . MAIN_DB_PREFIX . "adherent_type as t";
         $sql .= " WHERE a.entity = " . $conf->entity;
         $sql .= " AND a.fk_adherent_type = t.rowid";
         $sql .= " ORDER BY a.tms DESC";
         $sql .= $db->plimit($max, 0);
         $result = $db->query($sql);
         if ($result) {
             $num = $db->num_rows($result);
             $line = 0;
             while ($line < $num) {
                 $objp = $db->fetch_object($result);
                 $datec = $db->jdate($objp->datec);
                 $datem = $db->jdate($objp->tms);
                 $memberstatic->lastname = $objp->lastname;
                 $memberstatic->firstname = $objp->firstname;
                 $memberstatic->id = $objp->rowid;
                 $memberstatic->ref = $objp->rowid;
                 if (!empty($objp->fk_soc)) {
                     $memberstatic->socid = $objp->fk_soc;
                     $memberstatic->fetch_thirdparty();
                     $memberstatic->name = $memberstatic->thirdparty->name;
                 } else {
                     $memberstatic->name = $objp->company;
                 }
                 $this->info_box_contents[$line][] = array('td' => 'align="left"', 'text' => $memberstatic->getNomUrl(1), 'asis' => 1);
                 $this->info_box_contents[$line][] = array('td' => 'align="left"', 'text' => $memberstatic->getFullName($langs), 'url' => DOL_URL_ROOT . "/adherents/card.php?rowid=" . $objp->rowid);
                 $this->info_box_contents[$line][] = array('td' => 'align="right"', 'text' => dol_print_date($datem, "day"));
                 $this->info_box_contents[$line][] = array('td' => 'align="right" width="18"', 'text' => $memberstatic->LibStatut($objp->status, $objp->cotisation, $db->jdate($objp->date_end_subscription), 3));
                 $line++;
             }
             if ($num == 0) {
                 $this->info_box_contents[$line][0] = array('td' => 'align="center"', 'text' => $langs->trans("NoRecordedCustomers"));
             }
             $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('align' => 'left', 'text' => $langs->trans("ReadPermissionNotAllowed"));
     }
 }
开发者ID:Samara94,项目名称:dolibarr,代码行数:59,代码来源:box_members.php

示例6: Adherent

 $var = !$var;
 print "<tr " . $bc[$var] . ">";
 print '<td>' . $obj->email . '</td>';
 print '<td>' . $obj->lastname . '</td>';
 print '<td>' . $obj->firstname . '</td>';
 print '<td>' . $obj->other . '</td>';
 print '<td align="center">';
 if (empty($obj->source_id) || empty($obj->source_type)) {
     print $obj->source_url;
     // For backward compatibility
 } else {
     if ($obj->source_type == 'member') {
         include_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent.class.php';
         $objectstatic = new Adherent($db);
         $objectstatic->fetch($obj->source_id);
         print $objectstatic->getNomUrl(2);
     } else {
         if ($obj->source_type == 'user') {
             include_once DOL_DOCUMENT_ROOT . '/user/class/user.class.php';
             $objectstatic = new User($db);
             $objectstatic->fetch($obj->source_id);
             $objectstatic->id = $obj->source_id;
             print $objectstatic->getNomUrl(2);
         } else {
             if ($obj->source_type == 'thirdparty') {
                 include_once DOL_DOCUMENT_ROOT . '/societe/class/societe.class.php';
                 $objectstatic = new Societe($db);
                 $objectstatic->fetch($obj->source_id);
                 print $objectstatic->getNomUrl(2);
             } else {
                 print $obj->source_url;
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:cibles.php

示例7:

            $obj = $db->fetch_object($resql);
            print "<tr " . $bc[$var] . ">";
            $staticmember->id = $obj->rowid;
            $staticmember->lastname = $obj->lastname;
            $staticmember->firstname = $obj->firstname;
            if (!empty($obj->fk_soc)) {
                $staticmember->fk_soc = $obj->fk_soc;
                $staticmember->fetch_thirdparty();
                $staticmember->name = $staticmember->thirdparty->name;
            } else {
                $staticmember->name = $obj->company;
            }
            $staticmember->ref = $staticmember->getFullName($langs);
            $statictype->id = $obj->typeid;
            $statictype->libelle = $obj->libelle;
            print '<td>' . $staticmember->getNomUrl(1, 32) . '</td>';
            print '<td>' . $statictype->getNomUrl(1, 32) . '</td>';
            print '<td>' . dol_print_date($db->jdate($obj->datem), 'dayhour') . '</td>';
            print '<td align="right">' . $staticmember->LibStatut($obj->statut, $obj->cotisation == 'yes' ? 1 : 0, $db->jdate($obj->date_end_subscription), 5) . '</td>';
            print '</tr>';
            $i++;
        }
    }
    print "</table><br>";
} else {
    dol_print_error($db);
}
/*
 * Last modified subscriptions
 */
$max = 5;
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:index.php

示例8: while

 while ($i < $num && $i < $conf->liste_limit) {
     $objp = $db->fetch_object($result);
     $total += $objp->cotisation;
     $cotisation->ref = $objp->crowid;
     $cotisation->id = $objp->crowid;
     $adherent->lastname = $objp->lastname;
     $adherent->firstname = $objp->firstname;
     $adherent->ref = $adherent->getFullName($langs);
     $adherent->id = $objp->rowid;
     $adherent->login = $objp->login;
     $var = !$var;
     print "<tr " . $bc[$var] . ">";
     // Ref
     print '<td>' . $cotisation->getNomUrl(1) . '</td>';
     // Lastname
     print '<td>' . $adherent->getNomUrl(1) . '</td>';
     // Login
     print '<td>' . $adherent->login . '</td>';
     // Libelle
     print '<td>';
     print dol_trunc($objp->note, 32);
     print '</td>';
     // Banque
     if (!empty($conf->banque->enabled)) {
         if ($objp->fk_account) {
             $accountstatic->id = $objp->fk_account;
             $accountstatic->fetch($objp->fk_account);
             //$accountstatic->label=$objp->label;
             print '<td>' . $accountstatic->getNomUrl(1) . '</td>';
         } else {
             print "<td>";
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:cotisations.php

示例9: Adherent

 $var = !$var;
 print "<tr " . $bc[$var] . ">";
 print '<td>' . $obj->email . '</td>';
 print '<td>' . $obj->lastname . '</td>';
 print '<td>' . $obj->firstname . '</td>';
 print '<td>' . $obj->other . '</td>';
 print '<td align="center">';
 if (empty($obj->source_id) || empty($obj->source_type)) {
     print $obj->source_url;
     // For backward compatibility
 } else {
     if ($obj->source_type == 'member') {
         include_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent.class.php';
         $m = new Adherent($db);
         $m->fetch($obj->source_id);
         print $m->getNomUrl(2);
     } else {
         if ($obj->source_type == 'user') {
             include_once DOL_DOCUMENT_ROOT . '/user/class/user.class.php';
             $m = new User($db);
             $m->fetch($obj->source_id);
             $m->id = $obj->source_id;
             print $m->getNomUrl(2);
         } else {
             if ($obj->source_type == 'thirdparty') {
                 include_once DOL_DOCUMENT_ROOT . '/societe/class/societe.class.php';
                 $m = new Societe($db);
                 $m->fetch($obj->source_id);
                 print $m->getNomUrl(2);
             } else {
                 print $obj->source_url;
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:cibles.php

示例10: price

 print "<input type=\"hidden\" name=\"action\" value=\"update\">";
 print "<input type=\"hidden\" name=\"rowid\" value=\"{$rowid}\">";
 print "<input type=\"hidden\" name=\"fk_bank\" value=\"" . $subscription->fk_bank . "\">";
 dol_fiche_head($head, 'general', $langs->trans("Subscription"), 0, 'payment');
 print "\n";
 print '<table class="border" width="100%">';
 $linkback = '<a href="' . DOL_URL_ROOT . '/adherents/cotisations.php">' . $langs->trans("BackToList") . '</a>';
 // Ref
 print '<tr><td width="20%">' . $langs->trans("Ref") . '</td>';
 print '<td class="valeur" colspan="3">';
 print $form->showrefnav($subscription, 'rowid', $linkback, 1);
 print '</td></tr>';
 // Member
 $adh->ref = $adh->getFullName($langs);
 print '<tr>';
 print '<td>' . $langs->trans("Member") . '</td><td class="valeur" colspan="3">' . $adh->getNomUrl(1, 0, 'subscription') . '</td>';
 print '</tr>';
 // Date start subscription
 print '<tr><td>' . $langs->trans("DateSubscription") . '</td><td class="valeur" colspan="2">';
 $form->select_date($subscription->dateh, 'datesub', 1, 1, 0, 'update', 1);
 print '</td>';
 print '</tr>';
 // Date end subscription
 print '<tr><td>' . $langs->trans("DateEndSubscription") . '</td><td class="valeur" colspan="2">';
 $form->select_date($subscription->datef, 'datesubend', 0, 0, 0, 'update', 1);
 print '</td>';
 print '</tr>';
 // Amount
 print '<tr><td>' . $langs->trans("Amount") . '</td><td class="valeur" colspan="2">';
 print '<input type="text" class="flat" size="10" name="amount" value="' . price($subscription->amount) . '"></td></tr>';
 // Label
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:fiche_subscription.php

示例11:

	$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]>";
			$staticmember->id=$obj->rowid;
			$staticmember->ref=trim($obj->prenom.' '.$obj->nom);
			$statictype->id=$obj->typeid;
			$statictype->libelle=$obj->libelle;
			print '<td>'.$staticmember->getNomUrl(1,24).'</td>';
			print '<td>'.$statictype->getNomUrl(1,16).'</td>';
			print '<td>'.dol_print_date($db->jdate($obj->datem),'dayhour').'</td>';
			print '<td align="right">'.$staticmember->LibStatut($obj->statut,($obj->cotisation=='yes'?1:0),$db->jdate($obj->date_end_subscription),5).'</td>';
			print '</tr>';
			$i++;
		}
	}
	print "</table><br>";
}
else
{
	dol_print_error($db);
}

开发者ID:remyyounes,项目名称:dolibarr,代码行数:28,代码来源:index.php


注:本文中的Adherent::getNomUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。