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


PHP dol_print_address函数代码示例

本文整理汇总了PHP中dol_print_address函数的典型用法代码示例。如果您正苦于以下问题:PHP dol_print_address函数的具体用法?PHP dol_print_address怎么用?PHP dol_print_address使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: dol_print_address

    print '</td></tr>';
}
if ($soc->fournisseur) {
    print '<tr><td>';
    print $langs->trans('SupplierCode') . '</td><td colspan="3">';
    print $soc->code_fournisseur;
    if ($soc->check_codefournisseur() != 0) {
        print ' <font class="error">(' . $langs->trans("WrongSupplierCode") . ')</font>';
    }
    print '</td></tr>';
}
if (!empty($conf->barcode->enabled)) {
    print '<tr><td>' . $langs->trans('Gencod') . '</td><td colspan="3">' . $soc->barcode . '</td></tr>';
}
print "<tr><td valign=\"top\">" . $langs->trans('Address') . "</td><td colspan=\"3\">";
dol_print_address($soc->address, 'gmap', 'thirdparty', $soc->id);
print "</td></tr>";
// Zip / Town
print '<tr><td width="25%">' . $langs->trans('Zip') . '</td><td width="25%">' . $soc->zip . "</td>";
print '<td width="25%">' . $langs->trans('Town') . '</td><td width="25%">' . $soc->town . "</td></tr>";
// Country
if ($soc->country) {
    print '<tr><td>' . $langs->trans('Country') . '</td><td colspan="3">';
    $img = picto_from_langcode($soc->country_code);
    print $img ? $img . ' ' : '';
    print $soc->country;
    print '</td></tr>';
}
// EMail
print '<tr><td>' . $langs->trans('EMail') . '</td><td colspan="3">';
print dol_print_email($soc->email, 0, $soc->id, 'AC_EMAIL');
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:price.php

示例2: content_box_information

	/**
	 * return box address for a company
	 *
	 *  @return	@string
	 */
	function content_box_information($id = 0) {
		global $conf, $user, $langs;

		$rtr = '<div class="row">';
		$rtr.= '<div class="two column vcard avatar">';
		$rtr.= '<div class="avatar sepH_b">';
		$rtr.= '<img src="' . DOL_URL_ROOT . '/theme/companies.png" alt="" />';
		$rtr.= '</div>';
		$rtr.= '</div>';
		$rtr.= '<div class="five column vcard">';
		$img = '<img src="' . DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/ico/icSw2/16-Apartment-Building.png" alt="" />';
		$rtr.= '<h1 class="sepH_a"><a id="view_fiche" href="#">' . $img . $this->ThirdPartyName . '</a></h1>';
		$rtr.= '<div class="sepH_a">' . $this->getLibStatus() . '</div>';
		$rtr.= '<h5 class="s_color">';
		$rtr.= dol_print_address($this->Address, 'gmap', 'thirdparty', $this->id());
		$rtr.= '</h5>';
		//$img=picto_from_langcode($object->country_id);
		$rtr.= '<h3 class="sepH_a country">' . $this->Zip . ($this->Zip && $this->Town ? " " : "") . $this->Town;
		// MAP GPS
		$rtr.= "&nbsp" . img_picto(($this->gps[0] . ',' . $this->gps[1]), (($this->gps[0] && $this->gps[1]) ? "green-dot" : "red-dot"));
		$rtr.= '</h3>';
		$rtr.= '</div>';

		// Partie droite
		$rtr.= '<div class="five column">';
		$rtr.= '<div class="row sepH_b">';


		if ($user->rights->societe->supprimer) {
			$rtr.= '<div class="gh_button-group right">';
			if ($user->rights->societe->creer) {
				$rtr.= '<a class="gh_button pill icon edit" id="edit_fiche" href="' . $_SERVER["PHP_SELF"] . '?id=' . $this->id . '&amp;action=edit">' . $langs->trans("Modify") . '</a>' . "\n";
			}
			$rtr.= '<span id="action-delete" class="gh_button pill icon trash danger">' . $langs->trans('Delete') . '</span>' . "\n";
			$rtr.= '</div>';
		} else {
			if ($user->rights->societe->creer)
				$rtr.= '<a class="gh_button pill primary right" href="' . $_SERVER["PHP_SELF"] . '?id=' . $this->id() . '&amp;action=edit">' . $langs->trans("Modify") . '</a>' . "\n"; // bouton rond
		}

		$rtr.= '</div>';

		if ($this->CustomerCode || $this->SupplierCode) {
			$rtr.= '<div class="row vcard sepH_b inner_heading">';
			$rtr.= '<ul>';
			if ($this->CustomerCode) {
				$key = 'CustomerCode';
				$label = $langs->trans($key);
				$img = '<img src="' . DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/ico/icSw2/16-Money.png" title="' . $label . '" />';
				$rtr.= '<li><span>' . $img . '</span><span class="s_color">' . $label . '</span><span> : </span><span>' . $this->$key . '</span></li>';
			}
			if ($this->SupplierCode) {
				$key = 'SupplierCode';
				$label = $langs->trans($key);
				$img = '<img src="' . DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/ico/icSw2/16-Money.png" title="' . $label . '" />';
				$rtr.= '<li><span>' . $img . '</span><span class="s_color">' . $label . '</span><span> : </span><span>' . $this->$key . '</span></li>';
			}
			$rtr.= '</ul>';
			$rtr.= '</div>';
		}

		$rtr.= $this->content_box($id); //external content

		$rtr.= '</div>'; // termine la colonne droite
		$rtr.= '</div>';

		return $rtr;
	}
开发者ID:nrjacker4,项目名称:crm-php,代码行数:73,代码来源:societe.class.php

示例3: dol_print_address

            print '</td>';
            print $htmllogobar; $htmllogobar='';
            print '</tr>';
        }

        // Status
        print '<tr><td>'.$langs->trans("Status").'</td>';
        print '<td colspan="'.(2+(($showlogo || $showbarcode)?0:1)).'">';
        print $object->getLibStatus();
        print '</td>';
        print $htmllogobar; $htmllogobar='';
        print '</tr>';

        // Address
        print "<tr><td valign=\"top\">".$langs->trans('Address').'</td><td colspan="'.(2+(($showlogo || $showbarcode)?0:1)).'">';
        print dol_print_address($object->address,'gmap','thirdparty',$object->id);
        print "</td></tr>";

        // Zip / Town
        print '<tr><td width="25%">'.$langs->trans('Zip').' / '.$langs->trans("Town").'</td><td colspan="'.(2+(($showlogo || $showbarcode)?0:1)).'">';
        print $object->zip.($object->zip && $object->town?" / ":"").$object->town;
        print "</td>";
        print '</tr>';

        // Country
        print '<tr><td>'.$langs->trans("Country").'</td><td colspan="'.(2+(($showlogo || $showbarcode)?0:1)).'" nowrap="nowrap">';
        $img=picto_from_langcode($object->country_code);
        if ($object->isInEEC()) print $form->textwithpicto(($img?$img.' ':'').$object->country,$langs->trans("CountryIsInEEC"),1,0);
        else print ($img?$img.' ':'').$object->country;
        print '</td></tr>';
开发者ID:nrjacker4,项目名称:crm-php,代码行数:30,代码来源:soc.php

示例4: dol_print_address

         $objsoc->fetch($object->socid);
         print $objsoc->getNomUrl(1);
     } else {
         print $langs->trans("ContactNotLinkedToCompany");
     }
     print '</td></tr>';
 }
 // Civility
 print '<tr><td width="15%">' . $langs->trans("UserTitle") . '</td><td colspan="3">';
 print $object->getCivilityLabel();
 print '</td></tr>';
 // Role
 print '<tr><td>' . $langs->trans("PostOrFunction") . '</td><td colspan="3">' . $object->poste . '</td>';
 // Address
 print '<tr><td>' . $langs->trans("Address") . '</td><td colspan="3">';
 dol_print_address($object->address, 'gmap', 'contact', $object->id);
 print '</td></tr>';
 // Zip/Town
 print '<tr><td>' . $langs->trans("Zip") . ' / ' . $langs->trans("Town") . '</td><td colspan="3">';
 print $object->zip;
 if ($object->zip) {
     print '&nbsp;';
 }
 print $object->town . '</td></tr>';
 // Country
 print '<tr><td>' . $langs->trans("Country") . '</td><td colspan="3">';
 $img = picto_from_langcode($object->country_code);
 if ($img) {
     print $img . ' ';
 }
 print $object->country;
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:card.php

示例5: getBannerAddress

 /**
  * 	Return full address of contact
  *
  * 	@param		string		$htmlkey            HTML id to make banner content unique
  *  @param      Object      $object				Object (thirdparty, thirdparty of contact for contact, null for a member)
  *	@return		string							Full address string
  */
 function getBannerAddress($htmlkey, $object)
 {
     global $conf, $langs;
     $countriesusingstate = array('AU', 'US', 'IN', 'GB', 'ES', 'UK', 'TR');
     $contactid = 0;
     $thirdpartyid = 0;
     if ($this->element == 'societe') {
         $thirdpartyid = $this->id;
     }
     if ($this->element == 'contact') {
         $contactid = $this->id;
         $thirdpartyid = $object->fk_soc;
     }
     if ($this->element == 'user') {
         $contactid = $this->contact_id;
         $thirdpartyid = $object->fk_soc;
     }
     $out = '<!-- BEGIN part to show address block -->';
     $outdone = 0;
     $coords = $this->getFullAddress(1, ', ');
     if ($coords) {
         if (!empty($conf->use_javascript_ajax)) {
             $namecoords = $this->getFullName($langs, 1) . '<br>' . $coords;
             // hideonsmatphone because copyToClipboard call jquery dialog that does not work with jmobile
             $out .= '<a href="#" class="hideonsmartphone" onclick="return copyToClipboard(\'' . dol_escape_js($namecoords) . '\',\'' . dol_escape_js($langs->trans("HelpCopyToClipboard")) . '\');">';
             $out .= img_picto($langs->trans("Address"), 'object_address.png');
             $out .= '</a> ';
         }
         $out .= dol_print_address($coords, 'address_' . $htmlkey . '_' . $this->id, $this->element, $this->id, 1);
         $outdone++;
         $outdone++;
     }
     if (!in_array($this->country_code, $countriesusingstate) && empty($conf->global->MAIN_FORCE_STATE_INTO_ADDRESS) && !empty($conf->global->SOCIETE_DISABLE_STATE) && $this->state) {
         $out .= ($outdone ? '<br>' : '') . $this->state;
         $outdone++;
     }
     if (!empty($this->phone_pro) || !empty($this->phone_mobile) || !empty($this->phone_perso) || !empty($this->fax) || !empty($this->office_phone) || !empty($this->user_mobile) || !empty($this->office_fax)) {
         $out .= $outdone ? '<br>' : '';
     }
     if (!empty($this->phone) && empty($this->phone_pro)) {
         // For objects that store pro phone into ->phone
         $out .= dol_print_phone($this->phone, $this->country_code, $contactid, $thirdpartyid, 'AC_TEL', '&nbsp;', 'phone', $langs->trans("PhonePro"));
         $outdone++;
     }
     if (!empty($this->phone_pro)) {
         $out .= dol_print_phone($this->phone_pro, $this->country_code, $contactid, $thirdpartyid, 'AC_TEL', '&nbsp;', 'phone', $langs->trans("PhonePro"));
         $outdone++;
     }
     if (!empty($this->phone_mobile)) {
         $out .= dol_print_phone($this->phone_mobile, $this->country_code, $contactid, $thirdpartyid, 'AC_TEL', '&nbsp;', 'phone', $langs->trans("PhoneMobile"));
         $outdone++;
     }
     if (!empty($this->phone_perso)) {
         $out .= dol_print_phone($this->phone_perso, $this->country_code, $contactid, $thirdpartyid, 'AC_TEL', '&nbsp;', 'phone', $langs->trans("PhonePerso"));
         $outdone++;
     }
     if (!empty($this->fax)) {
         $out .= dol_print_phone($this->fax, $this->country_code, $contactid, $thirdpartyid, 'AC_FAX', '&nbsp;', 'fax', $langs->trans("Fax"));
         $outdone++;
     }
     if (!empty($this->office_phone)) {
         $out .= dol_print_phone($this->office_phone, $this->country_code, $contactid, $thirdpartyid, 'AC_TEL', '&nbsp;', 'phone', $langs->trans("PhonePro"));
         $outdone++;
     }
     if (!empty($this->user_mobile)) {
         $out .= dol_print_phone($this->user_mobile, $this->country_code, $contactid, $thirdpartyid, 'AC_TEL', '&nbsp;', 'phone', $langs->trans("PhoneMobile"));
         $outdone++;
     }
     if (!empty($this->office_fax)) {
         $out .= dol_print_phone($this->fax, $this->country_code, $contactid, $thirdpartyid, 'AC_FAX', '&nbsp;', 'fax', $langs->trans("Fax"));
         $outdone++;
     }
     $out .= '<div style="clear: both;"></div>';
     $outdone = 0;
     if (!empty($this->email)) {
         $out .= dol_print_email($this->email, $this->id, $object->id, 'AC_EMAIL', 0, 0, 1);
         $outdone++;
     }
     if (!empty($this->url)) {
         $out .= dol_print_url($this->url, '', 0, 1);
         $outdone++;
     }
     if (!empty($conf->skype->enabled)) {
         $out .= '<div style="clear: both;"></div>';
         if ($this->skype) {
             $out .= dol_print_skype($this->skype, $this->id, $object->id, 'AC_SKYPE');
         }
         $outdone++;
     }
     $out .= '<!-- END Part to show address block -->';
     return $out;
 }
开发者ID:Samara94,项目名称:dolibarr,代码行数:99,代码来源:commonobject.class.php

示例6: show_contacts


//.........这里部分代码省略.........
            $contactstatic->firstname = $obj->firstname;
            $contactstatic->civility_id = $obj->civility_id;
            $contactstatic->poste = $obj->poste;
            $contactstatic->address = $obj->address;
            $contactstatic->zip = $obj->zip;
            $contactstatic->town = $obj->town;
            $contactstatic->phone_pro = $obj->phone_pro;
            $contactstatic->phone_mobile = $obj->phone_mobile;
            $contactstatic->phone_perso = $obj->phone_perso;
            $contactstatic->email = $obj->email;
            print $contactstatic->getNomUrl(1, '', 0, '&backtopage=' . urlencode($backtopage));
            print '</td><td>';
            if ($obj->poste) {
                print $obj->poste;
            }
            print '</td>';
            $country_code = getCountry($obj->country_id, 'all');
            // Address and phone
            print '<td>';
            $outdone = 0;
            $contactstatic->address = $obj->address;
            $contactstatic->zip = $obj->zip;
            $contactstatic->town = $obj->town;
            $contactstatic->country_id = $obj->country_id;
            $coords = $contactstatic->getFullAddress(1, ', ');
            if (!empty($conf->use_javascript_ajax)) {
                $namecoords = $contactstatic->getFullName($langs, 1) . '<br>' . $coords;
                // hideonsmatphone because copyToClipboard call jquery dialog that does not work with jmobile
                print '<a href="#" class="hideonsmartphone" onclick="return copyToClipboard(\'' . dol_escape_js($namecoords) . '\',\'' . dol_escape_js($langs->trans("HelpCopyToClipboard")) . '\');">';
                print img_picto($langs->trans("Address"), 'object_address.png');
                print '</a> ';
            }
            if ($coords) {
                print dol_print_address($coords, 'address_contact_' . $obj->rowid, 'contact', $obj->rowid);
                $outdone++;
            }
            if ($obj->phone_pro || $obj->phone_mobile || $obj->phone_perso || $obj->fax) {
                print $outdone ? '<br>' : '';
            }
            if ($obj->phone_pro) {
                print dol_print_phone($obj->phone_pro, $country_code['code'], $obj->rowid, $object->id, 'AC_TEL', '&nbsp;', 'phone');
                $outdone++;
            }
            if ($obj->phone_mobile) {
                print dol_print_phone($obj->phone_mobile, $country_code['code'], $obj->rowid, $object->id, 'AC_TEL', '&nbsp;', 'phone');
                $outdone++;
            }
            if ($obj->phone_perso) {
                print dol_print_phone($obj->phone_perso, $country_code['code'], $obj->rowid, $object->id, 'AC_TEL', '&nbsp;', 'phone');
                $outdone++;
            }
            if ($obj->fax) {
                print dol_print_phone($obj->fax, $country_code['code'], $obj->rowid, $object->id, 'AC_FAX', '&nbsp;', 'fax');
                $outdone++;
            }
            print '<div style="clear: both;"></div>';
            $outdone = 0;
            if ($obj->email) {
                print dol_print_email($obj->email, $obj->rowid, $object->id, 'AC_EMAIL', 0, 0, 1);
            }
            if (!empty($conf->skype->enabled)) {
                if ($obj->skype) {
                    print ($outdone ? '<br>' : '') . dol_print_skype($obj->skype, $obj->rowid, $object->id, 'AC_SKYPE');
                }
            }
            print '</td>';
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:67,代码来源:company.lib.php

示例7: dol_print_email

 print '<tr><td>' . $langs->trans("Firstname") . '</td><td class="valeur">' . $object->firstname . '&nbsp;</td></tr>';
 // EMail
 print '<tr><td>' . $langs->trans("EMail") . '</td><td class="valeur">' . dol_print_email($object->email, 0, $object->fk_soc, 1) . '</td></tr>';
 // Password
 if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED)) {
     print '<tr><td>' . $langs->trans("Password") . '</td><td>' . preg_replace('/./i', '*', $object->pass);
     if ((!empty($object->pass) || !empty($object->pass_crypted)) && empty($object->user_id)) {
         $langs->load("errors");
         $htmltext = $langs->trans("WarningPasswordSetWithNoAccount");
         print ' ' . $form->textwithpicto('', $htmltext, 1, 'warning');
     }
     print '</td></tr>';
 }
 // Address
 print '<tr><td>' . $langs->trans("Address") . '</td><td class="valeur">';
 dol_print_address($object->address, 'gmap', 'member', $object->id);
 print '</td></tr>';
 // Zip / Town
 print '<tr><td class="nowrap">' . $langs->trans("Zip") . ' / ' . $langs->trans("Town") . '</td><td class="valeur">' . $object->zip . ($object->zip && $object->town ? ' / ' : '') . $object->town . '</td></tr>';
 // Country
 print '<tr><td>' . $langs->trans("Country") . '</td><td class="valeur">';
 $img = picto_from_langcode($object->country_code);
 if ($img) {
     print $img . ' ';
 }
 print getCountry($object->country_code);
 print '</td></tr>';
 // State
 print '<tr><td>' . $langs->trans('State') . '</td><td class="valeur">' . $object->state . '</td>';
 // Tel pro.
 print '<tr><td>' . $langs->trans("PhonePro") . '</td><td class="valeur">' . dol_print_phone($object->phone, $object->country_code, 0, $object->fk_soc, 1) . '</td></tr>';
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:card.php

示例8: dol_print_address

    // Name
    print '<tr><td>'.$langs->trans("Lastname").'</td><td class="valeur">'.$adh->nom.'&nbsp;</td>';
	print '</tr>';

    // Firstname
    print '<tr><td>'.$langs->trans("Firstname").'</td><td class="valeur">'.$adh->prenom.'&nbsp;</td></tr>';

	// Password
    if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED))
    {
        print '<tr><td>'.$langs->trans("Password").'</td><td>'.preg_replace('/./i','*',$adh->pass).'</td></tr>';
    }

    // Address
    print '<tr><td>'.$langs->trans("Address").'</td><td class="valeur">';
    dol_print_address($adh->address,'gmap','member',$adh->id);
    print '</td></tr>';

    // Zip / Town
    print '<tr><td nowrap="nowrap">'.$langs->trans("Zip").' / '.$langs->trans("Town").'</td><td class="valeur">'.$adh->zip.(($adh->zip && $adh->town)?' / ':'').$adh->town.'</td></tr>';

	// Country
    print '<tr><td>'.$langs->trans("Country").'</td><td class="valeur">';
	$img=picto_from_langcode($adh->pays_code);
	if ($img) print $img.' ';
    print getCountry($adh->pays_code);
    print '</td></tr>';

	// State
	print '<tr><td>'.$langs->trans('State').'</td><td class="valeur">'.$adh->departement.'</td>';
开发者ID:remyyounes,项目名称:dolibarr,代码行数:30,代码来源:fiche.php


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