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


PHP dol_print_email函数代码示例

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


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

示例1: dol_print_email

 print '</tr>';
 // Type
 print '<tr><td>' . $langs->trans("Type") . '</td><td class="valeur">' . $adht->getNomUrl(1) . "</td></tr>\n";
 // Company
 print '<tr><td>' . $langs->trans("Company") . '</td><td class="valeur">' . $object->societe . '</td></tr>';
 // Civility
 print '<tr><td>' . $langs->trans("UserTitle") . '</td><td class="valeur">' . $object->getCivilityLabel() . '&nbsp;</td>';
 print '</tr>';
 // Lastname
 print '<tr><td>' . $langs->trans("Lastname") . '</td><td class="valeur">' . $object->lastname . '&nbsp;</td>';
 print '</tr>';
 // Firstname
 print '<tr><td>' . $langs->trans("Firstname") . '</td><td class="valeur">' . $object->firstname . '&nbsp;</td>';
 print '</tr>';
 // EMail
 print '<tr><td>' . $langs->trans("EMail") . '</td><td class="valeur">' . dol_print_email($object->email, 0, $object->fk_soc, 1) . '</td></tr>';
 // Status
 print '<tr><td>' . $langs->trans("Status") . '</td><td class="valeur">' . $object->getLibStatut(4) . '</td></tr>';
 // Date end subscription
 print '<tr><td>' . $langs->trans("SubscriptionEndDate") . '</td><td class="valeur">';
 if ($object->datefin) {
     print dol_print_date($object->datefin, 'day');
     if ($object->datefin < $now - $conf->adherent->cotisation->warning_delay && $object->statut > 0) {
         print " " . img_warning($langs->trans("Late"));
     }
     // Affiche picto retard uniquement si non brouillon et non resilie
 } else {
     print $langs->trans("SubscriptionNotReceived");
     if ($object->statut > 0) {
         print " " . img_warning($langs->trans("Late"));
     }
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:card_subscriptions.php

示例2: dol_print_phone

 }
 // Phone perso
 if (!empty($arrayfields['p.phone_perso']['checked'])) {
     print '<td>' . dol_print_phone($obj->phone_perso, $obj->country_code, $obj->cidp, $obj->socid, 'AC_TEL') . '</td>';
 }
 // Phone mobile
 if (!empty($arrayfields['p.phone_mobile']['checked'])) {
     print '<td>' . dol_print_phone($obj->phone_mobile, $obj->country_code, $obj->cidp, $obj->socid, 'AC_TEL') . '</td>';
 }
 // Fax
 if (!empty($arrayfields['p.fax']['checked'])) {
     print '<td>' . dol_print_phone($obj->fax, $obj->country_code, $obj->cidp, $obj->socid, 'AC_TEL') . '</td>';
 }
 // EMail
 if (!empty($arrayfields['p.email']['checked'])) {
     print '<td>' . dol_print_email($obj->email, $obj->cidp, $obj->socid, 'AC_EMAIL', 18) . '</td>';
 }
 // Skype
 if (!empty($arrayfields['p.skype']['checked'])) {
     if (!empty($conf->skype->enabled)) {
         print '<td>' . dol_print_skype($obj->skype, $obj->cidp, $obj->socid, 'AC_SKYPE', 18) . '</td>';
     }
 }
 // Company
 if (!empty($arrayfields['p.thirdparty']['checked'])) {
     print '<td>';
     if ($obj->socid) {
         print '<a href="' . DOL_URL_ROOT . '/comm/card.php?socid=' . $obj->socid . '">';
         print img_object($langs->trans("ShowCompany"), "company") . ' ' . dol_trunc($obj->name, 20) . '</a>';
     } else {
         print '&nbsp;';
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:list.php

示例3: llxHeader

llxHeader('', $langs->trans("Mailing"), 'EN:Module_EMailing|FR:Module_Mailing|ES:M&oacute;dulo_Mailing');
$form = new Form($db);
$formmailing = new FormMailing($db);
if ($object->fetch($id) >= 0) {
    $head = emailing_prepare_head($object);
    dol_fiche_head($head, 'targets', $langs->trans("Mailing"), 0, 'email');
    print '<table class="border" width="100%">';
    $linkback = '<a href="' . DOL_URL_ROOT . '/comm/mailing/list.php">' . $langs->trans("BackToList") . '</a>';
    print '<tr><td width="25%">' . $langs->trans("Ref") . '</td>';
    print '<td colspan="3">';
    print $form->showrefnav($object, 'id', $linkback);
    print '</td></tr>';
    print '<tr><td width="25%">' . $langs->trans("MailTitle") . '</td><td colspan="3">' . $object->titre . '</td></tr>';
    print '<tr><td width="25%">' . $langs->trans("MailFrom") . '</td><td colspan="3">' . dol_print_email($object->email_from, 0, 0, 0, 0, 1) . '</td></tr>';
    // Errors to
    print '<tr><td width="25%">' . $langs->trans("MailErrorsTo") . '</td><td colspan="3">' . dol_print_email($object->email_errorsto, 0, 0, 0, 0, 1);
    print '</td></tr>';
    // Status
    print '<tr><td width="25%">' . $langs->trans("Status") . '</td><td colspan="3">' . $object->getLibStatut(4) . '</td></tr>';
    // Nb of distinct emails
    print '<tr><td width="25%">';
    print $langs->trans("TotalNbOfDistinctRecipients");
    print '</td><td colspan="3">';
    $nbemail = $object->nbemail ? $object->nbemail : '0';
    if (!empty($conf->global->MAILING_LIMIT_SENDBYWEB) && $conf->global->MAILING_LIMIT_SENDBYWEB < $nbemail) {
        $text = $langs->trans('LimitSendingEmailing', $conf->global->MAILING_LIMIT_SENDBYWEB);
        print $form->textwithpicto($nbemail, $text, 1, 'warning');
    } else {
        print $nbemail;
    }
    print '</td></tr>';
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:cibles.php

示例4: dol_print_address

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');
print '</td></tr>';
// Web
print '<tr><td>' . $langs->trans('Web') . '</td><td colspan="3">';
print dol_print_url($soc->url);
print '</td></tr>';
// Phone / Fax
print '<tr><td>' . $langs->trans('Phone') . '</td><td>' . dol_print_phone($soc->tel, $soc->country_code, 0, $soc->id, 'AC_TEL') . '</td>';
print '<td>' . $langs->trans('Fax') . '</td><td>' . dol_print_phone($soc->fax, $soc->country_code, 0, $soc->id, 'AC_FAX') . '</td></tr>';
print '</table>';
print '</div>';
if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
    $prodcustprice = new Productcustomerprice($db);
    $sortfield = GETPOST("sortfield", 'alpha');
    $sortorder = GETPOST("sortorder", 'alpha');
    $page = GETPOST("page", 'int');
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:price.php

示例5: show_contacts

/**
 * 		Show html area for list of contacts
 *
 *		@param	Conf		$conf		Object conf
 * 		@param	Translate	$langs		Object langs
 * 		@param	DoliDB		$db			Database handler
 * 		@param	Object		$object		Third party object
 *      @param  string		$backtopage	Url to go once contact is created
 *      @return	void
 */
function show_contacts($conf, $langs, $db, $object, $backtopage = '')
{
    global $user;
    global $bc;
    $i = -1;
    $contactstatic = new Contact($db);
    if ($conf->clicktodial->enabled) {
        $user->fetch_clicktodial();
        // lecture des infos de clicktodial
    }
    $buttoncreate = '';
    if ($user->rights->societe->contact->creer) {
        $addcontact = !empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("AddContact") : $langs->trans("AddContactAddress");
        $buttoncreate = '<a class="addnewrecord" href="' . DOL_URL_ROOT . '/contact/fiche.php?socid=' . $object->id . '&amp;action=create&amp;backtopage=' . urlencode($backtopage) . '">' . $addcontact . ' ' . img_picto($addcontact, 'filenew') . '</a>' . "\n";
    }
    print "\n";
    $title = !empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("ContactsForCompany") : $langs->trans("ContactsAddressesForCompany");
    print_fiche_titre($title, $buttoncreate, '');
    print "\n" . '<table class="noborder" width="100%">' . "\n";
    print '<tr class="liste_titre"><td>' . $langs->trans("Name") . '</td>';
    print '<td>' . $langs->trans("Poste") . '</td><td>' . $langs->trans("Tel") . '</td>';
    print '<td>' . $langs->trans("Fax") . '</td><td>' . $langs->trans("EMail") . '</td>';
    print "<td>&nbsp;</td>";
    if (!empty($conf->agenda->enabled) && $user->rights->agenda->myactions->create) {
        print '<td>&nbsp;</td>';
    }
    print "</tr>";
    $sql = "SELECT p.rowid, p.name, p.firstname, p.fk_pays, p.poste, p.phone, p.fax, p.email, p.note ";
    $sql .= " FROM " . MAIN_DB_PREFIX . "socpeople as p";
    $sql .= " WHERE p.fk_soc = " . $object->id;
    $sql .= " ORDER by p.datec";
    $result = $db->query($sql);
    $num = $db->num_rows($result);
    if ($num) {
        $i = 0;
        $var = true;
        while ($i < $num) {
            $obj = $db->fetch_object($result);
            $var = !$var;
            print "<tr " . $bc[$var] . ">";
            print '<td>';
            $contactstatic->id = $obj->rowid;
            $contactstatic->name = $obj->name;
            $contactstatic->firstname = $obj->firstname;
            print $contactstatic->getNomUrl(1);
            print '</td>';
            print '<td>' . $obj->poste . '</td>';
            $country_code = getCountry($obj->fk_pays, 2);
            // Lien click to dial
            print '<td>';
            print dol_print_phone($obj->phone, $country_code, $obj->rowid, $object->id, 'AC_TEL');
            print '</td>';
            print '<td>';
            print dol_print_phone($obj->fax, $country_code, $obj->rowid, $object->id, 'AC_FAX');
            print '</td>';
            print '<td>';
            print dol_print_email($obj->email, $obj->rowid, $object->id, 'AC_EMAIL');
            print '</td>';
            if ($conf->agenda->enabled && $user->rights->agenda->myactions->create) {
                print '<td align="center"><a href="' . DOL_URL_ROOT . '/comm/action/fiche.php?action=create&actioncode=AC_RDV&contactid=' . $obj->rowid . '&socid=' . $object->id . '&backtopage=' . urlencode($backtopage) . '">';
                print img_object($langs->trans("Rendez-Vous"), "action");
                print '</a></td>';
            }
            if ($user->rights->societe->contact->creer) {
                print '<td align="right">';
                print '<a href="' . DOL_URL_ROOT . '/contact/fiche.php?action=edit&amp;id=' . $obj->rowid . '&amp;backtopage=' . urlencode($backtopage) . '">';
                print img_edit();
                print '</a></td>';
            }
            print "</tr>\n";
            $i++;
        }
    } else {
        //print "<tr ".$bc[$var].">";
        //print '<td>'.$langs->trans("NoContactsYetDefined").'</td>';
        //print "</tr>\n";
    }
    print "\n</table>\n";
    print "<br>\n";
    return $i;
}
开发者ID:nrjacker4,项目名称:crm-php,代码行数:91,代码来源:company.lib.php

示例6: assign_values


//.........这里部分代码省略.........
            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><td>';
                    $this->tpl['localtax'] .= $form->selectyesno('localtax1assuj_value', $this->object->localtax1_assuj, 1);
                    $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++;
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:67,代码来源:actions_card_common.class.php

示例7: nl2br

 print '<td rowspan="' . $nbrows . '" valign="top" width="50%">' . $langs->trans("Comments") . ' :<br>';
 print nl2br($don->note_private) . '</td></tr>';
 print "<tr>" . '<td>' . $langs->trans("Amount") . '</td><td>' . price($don->amount, 0, $langs, 0, 0, -1, $conf->currency) . '</td></tr>';
 print "<tr><td>" . $langs->trans("PublicDonation") . "</td><td>";
 print yn($don->public);
 print "</td></tr>\n";
 print "<tr>" . '<td>' . $langs->trans("Company") . '</td><td>' . $don->societe . '</td></tr>';
 print "<tr>" . '<td>' . $langs->trans("Firstname") . '</td><td>' . $don->firstname . '</td></tr>';
 print "<tr>" . '<td>' . $langs->trans("Lastname") . '</td><td>' . $don->lastname . '</td></tr>';
 print "<tr>" . '<td>' . $langs->trans("Address") . '</td><td>' . dol_nl2br($don->address) . '</td></tr>';
 // Zip / Town
 print "<tr>" . '<td>' . $langs->trans("Zip") . ' / ' . $langs->trans("Town") . '</td><td>' . $don->zip . ($don->zip && $don->town ? ' / ' : '') . $don->town . '</td></tr>';
 // Country
 print "<tr>" . '<td>' . $langs->trans("Country") . '</td><td>' . $don->country . '</td></tr>';
 // EMail
 print "<tr>" . '<td>' . $langs->trans("EMail") . '</td><td>' . dol_print_email($don->email) . '</td></tr>';
 // Payment mode
 print "<tr><td>" . $langs->trans("PaymentMode") . "</td><td>";
 print $form->form_modes_reglement(null, $don->modepaiementid, 'none');
 print "</td></tr>\n";
 print "<tr>" . '<td>' . $langs->trans("Status") . '</td><td>' . $don->getLibStatut(4) . '</td></tr>';
 // Project
 if (!empty($conf->projet->enabled)) {
     print "<tr>" . '<td>' . $langs->trans("Project") . '</td><td>' . $don->projet . '</td></tr>';
 }
 // Other attributes
 $parameters = array('colspan' => ' colspan="1"');
 $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $don, $action);
 // Note that $action and $object may have been modified by hook
 print "</table>\n";
 print "</form>\n";
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:fiche.php

示例8: editfieldval

 /**
  *	Output val field for an editable field
  * 	@param		text			Text of label (not used in this function)
  * 	@param		htmlname		Name of select field
  * 	@param		preselected		Preselected value for parameter
  * 	@param		paramkey		Key of parameter (unique if there is several parameter to show)
  * 	@param		perm			Permission to allow button to edit parameter
  * 	@param		typeofdata		Type of data ('string' by default, 'email', 'text', ...)
  * 	@param		editvalue		Use this value instead $preselected
  *  @return     string          HTML edit field
  *  TODO no GET or POST in class file, use a param
  */
 function editfieldval($text, $htmlname, $preselected, $paramkey, $paramvalue, $perm, $typeofdata = 'string', $editvalue = '')
 {
     global $langs;
     $ret = '';
     if (GETPOST('action') == 'edit' . $htmlname) {
         $ret .= "\n";
         $ret .= '<form method="post" action="' . $_SERVER["PHP_SELF"] . '">';
         $ret .= '<input type="hidden" name="action" value="set' . $htmlname . '">';
         $ret .= '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
         $ret .= '<input type="hidden" name="' . $paramkey . '" value="' . $paramvalue . '">';
         $ret .= '<table class="nobordernopadding" cellpadding="0" cellspacing="0">';
         $ret .= '<tr><td>';
         if (in_array($typeofdata, array('string', 'email'))) {
             $ret .= '<input type="text" name="' . $htmlname . '" value="' . ($editvalue ? $editvalue : $preselected) . '">';
         } else {
             if ($typeofdata == 'text') {
                 $ret .= '<textarea name="' . $htmlname . '">' . ($editvalue ? $editvalue : $preselected) . '</textarea>';
             }
         }
         $ret .= '</td>';
         $ret .= '<td align="left"><input type="submit" class="button" value="' . $langs->trans("Modify") . '"></td>';
         $ret .= '</tr></table>' . "\n";
         $ret .= '</form>' . "\n";
     } else {
         if ($typeofdata == 'email') {
             $ret .= dol_print_email($preselected, 0, 0, 0, 0, 1);
         } else {
             $ret .= $preselected;
         }
     }
     return $ret;
 }
开发者ID:netors,项目名称:dolibarr,代码行数:44,代码来源:html.form.class.php

示例9: dol_htmlentitiesbr

    if (empty($conf->fckeditor->enabled)) {
        print dol_htmlentitiesbr($object->commentaires);
    } else {
        $doleditor = new DolEditor('nouveauxcommentaires', dol_htmlentities($object->commentaires), '', 120, 'dolibarr_notes', 'In', 1, 1, 1, ROWS_7, 120, 1);
        $doleditor->Create(0, '');
    }
}
print '</td></tr>';
// EMail
//If linked user, then emails are going to be sent to users' email
if (!$object->fk_user_creat) {
    print '<tr><td>' . $langs->trans("EMail") . '</td><td colspan="2">';
    if ($action == 'edit') {
        print '<input type="text" name="nouvelleadresse" size="40" value="' . $object->mail_admin . '">';
    } else {
        print dol_print_email($object->mail_admin, 0, 0, 1);
    }
    print '</td></tr>';
}
// Receive an email with each vote
print '<tr><td>' . $langs->trans('ToReceiveEMailForEachVote') . '</td><td colspan="2">';
if ($action == 'edit') {
    print '<input type="checkbox" name="mailsonde" size="40"' . ($object->mailsonde ? ' checked="true"' : '') . '">';
} else {
    print yn($object->mailsonde);
    //If option is active and linked user does not have an email, we show a warning
    if ($object->fk_user_creat && $object->mailsonde) {
        if (!$userstatic->email) {
            print ' ' . img_warning($langs->trans('NoEMail'));
        }
    }
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:card.php

示例10: dol_print_phone

 print '<tr><td valign="top">' . $langs->trans("PhoneMobile") . '</td>';
 print '<td colspan="2">' . dol_print_phone($object->user_mobile, '', 0, 0, 1) . '</td>';
 print '</tr>' . "\n";
 // Fax
 print '<tr><td valign="top">' . $langs->trans("Fax") . '</td>';
 print '<td colspan="2">' . dol_print_phone($object->office_fax, '', 0, 0, 1) . '</td>';
 print '</tr>' . "\n";
 // Skype
 if (!empty($conf->skype->enabled)) {
     print '<tr><td valign="top">' . $langs->trans("Skype") . '</td>';
     print '<td colspan="2">' . dol_print_skype($object->skype, 0, 0, 1) . '</td>';
     print "</tr>\n";
 }
 // EMail
 print '<tr><td valign="top">' . $langs->trans("EMail") . '</td>';
 print '<td colspan="2">' . dol_print_email($object->email, 0, 0, 1) . '</td>';
 print "</tr>\n";
 // Signature
 print '<tr><td valign="top">' . $langs->trans('Signature') . '</td><td colspan="2">';
 print dol_htmlentitiesbr($object->signature);
 print "</td></tr>\n";
 // Hierarchy
 print '<tr><td valign="top">' . $langs->trans("HierarchicalResponsible") . '</td>';
 print '<td colspan="2">';
 if (empty($object->fk_user)) {
     print $langs->trans("None");
 } else {
     $huser = new User($db);
     $huser->fetch($object->fk_user);
     print $huser->getNomUrl(1);
 }
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:card.php

示例11: show_contacts


//.........这里部分代码省略.........
    }
    $sql .= " ORDER BY {$sortfield} {$sortorder}";
    dol_syslog('core/lib/company.lib.php :: show_contacts sql=' . $sql, LOG_DEBUG);
    $result = $db->query($sql);
    $num = $db->num_rows($result);
    $var = true;
    if ($num) {
        $i = 0;
        while ($i < $num) {
            $obj = $db->fetch_object($result);
            $var = !$var;
            print "<tr " . $bc[$var] . ">";
            print '<td>';
            $contactstatic->id = $obj->rowid;
            $contactstatic->statut = $obj->statut;
            $contactstatic->lastname = $obj->lastname;
            $contactstatic->firstname = $obj->firstname;
            $contactstatic->civility_id = $obj->civility_id;
            print $contactstatic->getNomUrl(1);
            print '</td>';
            print '<td>' . $obj->poste . '</td>';
            $country_code = getCountry($obj->country_id, 'all');
            // Lien click to dial
            print '<td>';
            print dol_print_phone($obj->phone, $country_code['code'], $obj->rowid, $object->id, 'AC_TEL');
            print '</td>';
            print '<td>';
            print dol_print_phone($obj->phone_mobile, $country_code['code'], $obj->rowid, $object->id, 'AC_TEL');
            print '</td>';
            print '<td>';
            print dol_print_phone($obj->fax, $country_code['code'], $obj->rowid, $object->id, 'AC_FAX');
            print '</td>';
            print '<td>';
            print dol_print_email($obj->email, $obj->rowid, $object->id, 'AC_EMAIL');
            print '</td>';
            if (!empty($conf->skype->enabled)) {
                print '<td>';
                print dol_print_skype($obj->skype, $obj->rowid, $object->id, 'AC_SKYPE');
                print '</td>';
            }
            // Status
            print '<td>' . $contactstatic->getLibStatut(5) . '</td>';
            print '<td align="center">';
            if (!empty($conf->use_javascript_ajax)) {
                // Copy to clipboard
                $coords = '';
                if (!empty($object->name)) {
                    $coords .= $object->name . "<br>";
                }
                $coords .= $contactstatic->getFullName($langs, 1) . ' ';
                $coords .= "<br>";
                if (!empty($obj->address)) {
                    $coords .= dol_nl2br($obj->address, 1, true) . "<br>";
                    if (!empty($obj->zip)) {
                        $coords .= $obj->zip . ' ';
                    }
                    if (!empty($obj->town)) {
                        $coords .= $obj->town;
                    }
                    if (!empty($obj->country_id)) {
                        $coords .= "<br>" . $country_code['label'];
                    }
                } else {
                    if (!empty($object->address)) {
                        $coords .= dol_nl2br($object->address, 1, true) . "<br>";
                        if (!empty($object->zip)) {
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:67,代码来源:company.lib.php

示例12: getState

     print getState($conf->global->MAIN_INFO_SOCIETE_DEPARTEMENT);
 } else {
     print '&nbsp;';
 }
 print '</td></tr>';
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("CompanyCurrency") . '</td><td>';
 print currency_name($conf->currency, 1);
 print ' (' . getCurrencySymbol($conf->currency) . ')';
 print '</td></tr>';
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("Tel") . '</td><td>' . dol_print_phone($conf->global->MAIN_INFO_SOCIETE_TEL, $mysoc->country_code) . '</td></tr>';
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("Fax") . '</td><td>' . dol_print_phone($conf->global->MAIN_INFO_SOCIETE_FAX, $mysoc->country_code) . '</td></tr>';
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("Mail") . '</td><td>' . dol_print_email($conf->global->MAIN_INFO_SOCIETE_MAIL, 0, 0, 0, 80) . '</td></tr>';
 // Web
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("Web") . '</td><td>' . dol_print_url($conf->global->MAIN_INFO_SOCIETE_WEB, '_blank', 80) . '</td></tr>';
 // Barcode
 if (!empty($conf->barcode->enabled)) {
     $var = !$var;
     print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("Gencod") . '</td><td>' . $conf->global->MAIN_INFO_SOCIETE_GENCOD . '</td></tr>';
 }
 // Logo
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("Logo") . '</td><td>';
 print '<table width="100%" class="nocellnopadd"><tr class="nocellnopadd"><td valign="middle" class="nocellnopadd">';
 print $mysoc->logo;
 print '</td><td valign="center" align="right">';
 // On propose la generation de la vignette si elle n'existe pas
开发者ID:nrjacker4,项目名称:crm-php,代码行数:31,代码来源:company.php

示例13: array

 $row = array();
 for ($i = 0; $i < count($aColumns); $i++) {
     if ($aColumns[$i] == "name") {
         $contactstatic->name = $aRow->name;
         $contactstatic->firstname = '';
         $contactstatic->id = $aRow->cidp;
         $row[] = $contactstatic->getNomUrl(1, '', 20);
     } else {
         if ($aColumns[$i] == "tms") {
             $row[] = dol_print_date($db->jdate($aRow->tms), "day");
         } else {
             if ($aColumns[$i] == "categorie") {
                 $row[] = $categoriesDeChaqueContact[$aRow->cidp];
             } else {
                 if ($aColumns[$i] == "email") {
                     $row[] = dol_print_email($aRow->email, $aRow->cidp, $aRow->socid, 'AC_EMAIL', 18);
                 } else {
                     if ($aColumns[$i] == "priv") {
                         $row[] = $contactstatic->LibPubPriv($aRow->priv);
                     } else {
                         if ($i == 0) {
                             $row[] = '<img id="' . $aRow->cidp . '" class="plus" src="../theme/cameleo/img/details_open.png">';
                         } else {
                             if ($i == count($aColumns) - 1) {
                                 //last
                                 $row[] = '<a href="' . DOL_URL_ROOT . '/comm/action/fiche.php?action=create&amp;backtopage=1&amp;contactid=' . $aRow->cidp . '&amp;socid=' . $aRow->socid . '">' . img_object($langs->trans("AddAction"), "action") . '</a>' . ' &nbsp;' . ' &nbsp;' . '<a href="' . DOL_URL_ROOT . '/contact/vcard.php?id=' . $aRow->cidp . '">' . img_picto($langs->trans("VCard"), 'vcard.png') . ' ' . '</a>';
                             } else {
                                 if ($aColumns[$i] != ' ') {
                                     /* General output */
                                     $attribut = $aColumns[$i];
                                     $row[] = $aRow->{$attribut};
开发者ID:nrjacker4,项目名称:crm-php,代码行数:31,代码来源:serverprocess.php

示例14: editfieldval

 /**
  * Output val field for an editable field
  *
  * @param	string	$text			Text of label (not used in this function)
  * @param	string	$htmlname		Name of select field
  * @param	string	$value			Value to show/edit
  * @param	object	$object			Object
  * @param	boolean	$perm			Permission to allow button to edit parameter
  * @param	string	$typeofdata		Type of data ('string' by default, 'amount', 'email', 'numeric:99', 'text' or 'textarea:rows:cols', 'day' or 'datepicker', 'ckeditor:dolibarr_zzz:width:height:savemethod:toolbarstartexpanded:rows:cols', 'select:xxx'...)
  * @param	string	$editvalue		When in edit mode, use this value as $value instead of value (for example, you can provide here a formated price instead of value). Use '' to use same than $value
  * @param	object	$extObject		External object
  * @param	mixed	$custommsg		String or Array of custom messages : eg array('success' => 'MyMessage', 'error' => 'MyMessage')
  * @param	string	$moreparam		More param to add on a href URL
  * @return  string					HTML edit field
  */
 function editfieldval($text, $htmlname, $value, $object, $perm, $typeofdata = 'string', $editvalue = '', $extObject = null, $custommsg = null, $moreparam = '')
 {
     global $conf, $langs, $db;
     $ret = '';
     // Check parameters
     if (empty($typeofdata)) {
         return 'ErrorBadParameter';
     }
     // When option to edit inline is activated
     if (!empty($conf->global->MAIN_USE_JQUERY_JEDITABLE) && !preg_match('/^select;|datehourpicker/', $typeofdata)) {
         $ret .= $this->editInPlace($object, $value, $htmlname, $perm, $typeofdata, $editvalue, $extObject, $custommsg);
     } else {
         if (GETPOST('action') == 'edit' . $htmlname) {
             $ret .= "\n";
             $ret .= '<form method="post" action="' . $_SERVER["PHP_SELF"] . ($moreparam ? '?' . $moreparam : '') . '">';
             $ret .= '<input type="hidden" name="action" value="set' . $htmlname . '">';
             $ret .= '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
             $ret .= '<input type="hidden" name="id" value="' . $object->id . '">';
             $ret .= '<table class="nobordernopadding" cellpadding="0" cellspacing="0">';
             $ret .= '<tr><td>';
             if (preg_match('/^(string|email|numeric|amount)/', $typeofdata)) {
                 $tmp = explode(':', $typeofdata);
                 $ret .= '<input type="text" id="' . $htmlname . '" name="' . $htmlname . '" value="' . ($editvalue ? $editvalue : $value) . '"' . ($tmp[1] ? ' size="' . $tmp[1] . '"' : '') . '>';
             } else {
                 if (preg_match('/^text/', $typeofdata) || preg_match('/^note/', $typeofdata)) {
                     $tmp = explode(':', $typeofdata);
                     $ret .= '<textarea id="' . $htmlname . '" name="' . $htmlname . '" wrap="soft" rows="' . ($tmp[1] ? $tmp[1] : '20') . '" cols="' . ($tmp[2] ? $tmp[2] : '100') . '">' . ($editvalue ? $editvalue : $value) . '</textarea>';
                 } else {
                     if ($typeofdata == 'day' || $typeofdata == 'datepicker') {
                         $ret .= $this->form_date($_SERVER['PHP_SELF'] . '?id=' . $object->id, $value, $htmlname);
                     } else {
                         if ($typeofdata == 'datehourpicker') {
                             $ret .= $this->form_date($_SERVER['PHP_SELF'] . '?id=' . $object->id, $value, $htmlname, 1, 1);
                         } else {
                             if (preg_match('/^select;/', $typeofdata)) {
                                 $arraydata = explode(',', preg_replace('/^select;/', '', $typeofdata));
                                 foreach ($arraydata as $val) {
                                     $tmp = explode(':', $val);
                                     $arraylist[$tmp[0]] = $tmp[1];
                                 }
                                 $ret .= $this->selectarray($htmlname, $arraylist, $value);
                             } else {
                                 if (preg_match('/^ckeditor/', $typeofdata)) {
                                     $tmp = explode(':', $typeofdata);
                                     require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
                                     $doleditor = new DolEditor($htmlname, $editvalue ? $editvalue : $value, $tmp[2] ? $tmp[2] : '', $tmp[3] ? $tmp[3] : '100', $tmp[1] ? $tmp[1] : 'dolibarr_notes', 'In', $tmp[5] ? $tmp[5] : 0, true, true, $tmp[6] ? $tmp[6] : '20', $tmp[7] ? $tmp[7] : '100');
                                     $ret .= $doleditor->Create(1);
                                 }
                             }
                         }
                     }
                 }
             }
             $ret .= '</td>';
             if ($typeofdata != 'day' && $typeofdata != 'datepicker' && $typeofdata != 'datehourpicker') {
                 $ret .= '<td align="left">';
                 $ret .= '<input type="submit" class="button" name="modify" value="' . $langs->trans("Modify") . '">';
                 if (preg_match('/ckeditor|textarea/', $typeofdata)) {
                     $ret .= '<br>' . "\n";
                 }
                 $ret .= '<input type="submit" class="button" name="cancel" value="' . $langs->trans("Cancel") . '">';
                 $ret .= '</td>';
             }
             $ret .= '</tr></table>' . "\n";
             $ret .= '</form>' . "\n";
         } else {
             if ($typeofdata == 'email') {
                 $ret .= dol_print_email($value, 0, 0, 0, 0, 1);
             } elseif ($typeofdata == 'amount') {
                 $ret .= $value != '' ? price($value, '', $langs, 0, -1, -1, $conf->currency) : '';
             } elseif (preg_match('/^text/', $typeofdata) || preg_match('/^note/', $typeofdata)) {
                 $ret .= dol_htmlentitiesbr($value);
             } elseif ($typeofdata == 'day' || $typeofdata == 'datepicker') {
                 $ret .= dol_print_date($value, 'day');
             } elseif ($typeofdata == 'datehourpicker') {
                 $ret .= dol_print_date($value, 'dayhour');
             } else {
                 if (preg_match('/^select;/', $typeofdata)) {
                     $arraydata = explode(',', preg_replace('/^select;/', '', $typeofdata));
                     foreach ($arraydata as $val) {
                         $tmp = explode(':', $val);
                         $arraylist[$tmp[0]] = $tmp[1];
                     }
                     $ret .= $arraylist[$value];
                 } else {
//.........这里部分代码省略.........
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:101,代码来源:html.form.class.php

示例15: dol_print_phone

 print '</td></tr>' . "\n";
 // Tel pro
 print '<tr><td valign="top">' . $langs->trans("PhonePro") . '</td>';
 print '<td>' . dol_print_phone($fuser->office_phone, '', 0, 0, 1) . '</td>';
 print '</tr>' . "\n";
 // Tel mobile
 print '<tr><td valign="top">' . $langs->trans("PhoneMobile") . '</td>';
 print '<td>' . dol_print_phone($fuser->user_mobile, '', 0, 0, 1) . '</td>';
 print '</tr>' . "\n";
 // Fax
 print '<tr><td valign="top">' . $langs->trans("Fax") . '</td>';
 print '<td>' . dol_print_phone($fuser->office_fax, '', 0, 0, 1) . '</td>';
 print '</tr>' . "\n";
 // EMail
 print '<tr><td valign="top">' . $langs->trans("EMail") . '</td>';
 print '<td>' . dol_print_email($fuser->email, 0, 0, 1) . '</td>';
 print "</tr>\n";
 // Signature
 print '<tr><td valign="top">' . $langs->trans('Signature') . '</td>';
 print '<td>' . $fuser->signature . '</td>';
 print "</tr>\n";
 // Statut
 print '<tr><td valign="top">' . $langs->trans("Status") . '</td>';
 print '<td>';
 print $fuser->getLibStatut(4);
 print '</td>';
 print '</tr>' . "\n";
 print '<tr><td valign="top">' . $langs->trans("LastConnexion") . '</td>';
 print '<td>' . dol_print_date($fuser->datelastlogin, "dayhour") . '</td>';
 print "</tr>\n";
 print '<tr><td valign="top">' . $langs->trans("PreviousConnexion") . '</td>';
开发者ID:netors,项目名称:dolibarr,代码行数:31,代码来源:fiche.php


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