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


PHP picto_from_langcode函数代码示例

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


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

示例1: getNomUrl

 /**
  *  Return a link to the user card (with optionaly the picto)
  * 	Use this->id,this->lastname, this->firstname
  *
  *	@param	int		$withpictoimg		Include picto in link (0=No picto, 1=Include picto into link, 2=Only picto, -1=Include photo into link, -2=Only picto photo)
  *	@param	string	$option				On what the link point to
  *  @param  integer $infologin      	Add complete info tooltip
  *  @param	integer	$notooltip			1=Disable tooltip on picto and name
  *  @param	int		$maxlen				Max length of visible user name
  *  @param	int		$hidethirdpartylogo	Hide logo of thirdparty if user is external user
  *  @param  string  $mode               ''=Show firstname and lastname, 'firstname'=Show only firstname, 'login'=Show login
  *  @param  string  $morecss            Add more css on link
  *	@return	string						String with URL
  */
 function getNomUrl($withpictoimg = 0, $option = '', $infologin = 0, $notooltip = 0, $maxlen = 24, $hidethirdpartylogo = 0, $mode = '', $morecss = '')
 {
     global $langs, $conf, $db;
     global $dolibarr_main_authentication, $dolibarr_main_demo;
     global $menumanager;
     if (!empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER) && $withpictoimg) {
         $withpictoimg = 0;
     }
     $result = '';
     $companylink = '';
     $link = '';
     $label = '<u>' . $langs->trans("User") . '</u>';
     $label .= '<div width="100%">';
     $label .= '<b>' . $langs->trans('Name') . ':</b> ' . $this->getFullName($langs, '', '');
     if (!empty($this->login)) {
         $label .= '<br><b>' . $langs->trans('Login') . ':</b> ' . $this->login;
     }
     $label .= '<br><b>' . $langs->trans("EMail") . ':</b> ' . $this->email;
     if (!empty($this->admin)) {
         $label .= '<br><b>' . $langs->trans("Administrator") . '</b>: ' . yn($this->admin);
     }
     if (!empty($this->societe_id)) {
         $thirdpartystatic = new Societe($db);
         $thirdpartystatic->fetch($this->societe_id);
         if (empty($hidethirdpartylogo)) {
             $companylink = ' ' . $thirdpartystatic->getNomUrl(2);
         }
         // picto only of company
         $company = ' (' . $langs->trans("Company") . ': ' . $thirdpartystatic->name . ')';
     }
     $type = $this->societe_id ? $langs->trans("External") . $company : $langs->trans("Internal");
     $label .= '<br><b>' . $langs->trans("Type") . ':</b> ' . $type;
     $label .= '</div>';
     if (!empty($this->photo)) {
         $label .= '<div class="photointooltip">';
         $label .= Form::showphoto('userphoto', $this, 80, 0, 0, 'photowithmargin photologintooltip', 'small', 0, 1);
         $label .= '</div><div style="clear: both;"></div>';
     }
     // Info Login
     if ($infologin) {
         $label .= '<br>';
         $label .= '<br><u>' . $langs->trans("Connection") . '</u>';
         $label .= '<br><b>' . $langs->trans("IPAddress") . '</b>: ' . $_SERVER["REMOTE_ADDR"];
         if (!empty($conf->global->MAIN_MODULE_MULTICOMPANY)) {
             $label .= '<br><b>' . $langs->trans("ConnectedOnMultiCompany") . ':</b> ' . $conf->entity . ' (user entity ' . $this->entity . ')';
         }
         $label .= '<br><b>' . $langs->trans("AuthenticationMode") . ':</b> ' . $_SESSION["dol_authmode"] . (empty($dolibarr_main_demo) ? '' : ' (demo)');
         $label .= '<br><b>' . $langs->trans("ConnectedSince") . ':</b> ' . dol_print_date($this->datelastlogin, "dayhour");
         $label .= '<br><b>' . $langs->trans("PreviousConnexion") . ':</b> ' . dol_print_date($this->datepreviouslogin, "dayhour");
         $label .= '<br><b>' . $langs->trans("CurrentTheme") . ':</b> ' . $conf->theme;
         $label .= '<br><b>' . $langs->trans("CurrentMenuManager") . ':</b> ' . $menumanager->name;
         $s = picto_from_langcode($langs->getDefaultLang());
         $label .= '<br><b>' . $langs->trans("CurrentUserLanguage") . ':</b> ' . ($s ? $s . ' ' : '') . $langs->getDefaultLang();
         $label .= '<br><b>' . $langs->trans("Browser") . ':</b> ' . $conf->browser->name . ($conf->browser->version ? ' ' . $conf->browser->version : '') . ' (' . $_SERVER['HTTP_USER_AGENT'] . ')';
         $label .= '<br><b>' . $langs->trans("Layout") . ':</b> ' . $conf->browser->layout;
         $label .= '<br><b>' . $langs->trans("Screen") . ':</b> ' . $_SESSION['dol_screenwidth'] . ' x ' . $_SESSION['dol_screenheight'];
         if (!empty($conf->browser->phone)) {
             $label .= '<br><b>' . $langs->trans("Phone") . ':</b> ' . $conf->browser->phone;
         }
         if (!empty($_SESSION["disablemodules"])) {
             $label .= '<br><b>' . $langs->trans("DisabledModules") . ':</b> <br>' . join(', ', explode(',', $_SESSION["disablemodules"]));
         }
     }
     $link .= '<a href="' . DOL_URL_ROOT . '/user/card.php?id=' . $this->id . '"';
     if (empty($notooltip)) {
         if (!empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
             $langs->load("users");
             $label = $langs->trans("ShowUser");
             $link .= ' alt="' . dol_escape_htmltag($label, 1) . '"';
         }
         $link .= ' title="' . dol_escape_htmltag($label, 1) . '"';
         $link .= ' class="classfortooltip' . ($morecss ? ' ' . $morecss : '') . '"';
     }
     $link .= '>';
     $linkend = '</a>';
     //if ($withpictoimg == -1) $result.='<div class="nowrap">';
     $result .= $link;
     if ($withpictoimg) {
         $paddafterimage = '';
         if (abs($withpictoimg) == 1) {
             $paddafterimage = 'style="padding-right: 3px;"';
         }
         if ($withpictoimg > 0) {
             $picto = '<div class="inline-block valignmiddle' . ($morecss ? ' userimg' . $morecss : '') . '">' . img_object('', 'user', $paddafterimage . ' ' . ($notooltip ? '' : 'class="classfortooltip"')) . '</div>';
         } else {
             $picto = '<div class="inline-block valignmiddle' . ($morecss ? ' userimg' . $morecss : '') . '"' . ($paddafterimage ? ' ' . $paddafterimage : '') . '>' . Form::showphoto('userphoto', $this, 0, 0, 0, 'loginphoto', 'mini', 0, 1) . '</div>';
//.........这里部分代码省略.........
开发者ID:Samara94,项目名称:dolibarr,代码行数:101,代码来源:user.class.php

示例2: print

{
    $var=true;

    print '<table class="noborder" width="100%">';
    print '<tr class="liste_titre"><td width="25%">'.$langs->trans("Parameter").'</td><td width="25%">'.$langs->trans("DefaultValue").'</td><td>&nbsp;</td><td>'.$langs->trans("PersonalValue").'</td></tr>';

    $var=!$var;
    print '<tr '.$bc[$var].'><td>'.$langs->trans("Language").'</td>';
    print '<td>';
    $s=picto_from_langcode($conf->global->MAIN_LANG_DEFAULT);
    print ($s?$s.' ':'');
    print (isset($conf->global->MAIN_LANG_DEFAULT) && $conf->global->MAIN_LANG_DEFAULT=='auto'?$langs->trans("AutoDetectLang"):$langs->trans("Language_".$conf->global->MAIN_LANG_DEFAULT));
    print '</td>';
    print '<td align="left" nowrap="nowrap" width="20%"><input '.$bc[$var].' type="checkbox" disabled '.(! empty($fuser->conf->MAIN_LANG_DEFAULT)?" checked":"").'> '.$langs->trans("UsePersonalValue").'</td>';
    print '<td>';
    $s=(isset($fuser->conf->MAIN_LANG_DEFAULT) ? picto_from_langcode($fuser->conf->MAIN_LANG_DEFAULT) : '');
    print ($s?$s.' ':'');
    print (isset($fuser->conf->MAIN_LANG_DEFAULT) && $fuser->conf->MAIN_LANG_DEFAULT=='auto'?$langs->trans("AutoDetectLang"):(! empty($fuser->conf->MAIN_LANG_DEFAULT)?$langs->trans("Language_".$fuser->conf->MAIN_LANG_DEFAULT):''));
    print '</td></tr>';

    $var=!$var;
    print '<tr '.$bc[$var].'><td>'.$langs->trans("MaxSizeList").'</td>';
    print '<td>'.(! empty($conf->global->MAIN_SIZE_LISTE_LIMIT)?$conf->global->MAIN_SIZE_LISTE_LIMIT:'&nbsp;').'</td>';
    print '<td align="left" nowrap="nowrap" width="20%"><input '.$bc[$var].' type="checkbox" disabled '.(! empty($fuser->conf->MAIN_SIZE_LISTE_LIMIT)?" checked":"").'> '.$langs->trans("UsePersonalValue").'</td>';
    print '<td>' . (! empty($fuser->conf->MAIN_SIZE_LISTE_LIMIT)?$fuser->conf->MAIN_SIZE_LISTE_LIMIT:'&nbsp;') . '</td></tr>';

    print '</table><br>';


    // Skin
    show_theme($fuser,0,true);
开发者ID:nrjacker4,项目名称:crm-php,代码行数:31,代码来源:param_ihm.php

示例3: dol_htmlentitiesbr

 print $form->showrefnav($entrepot, 'id', $linkback, 1, 'rowid', 'libelle');
 print '</td>';
 print '<tr><td>' . $langs->trans("LocationSummary") . '</td><td colspan="3">' . $entrepot->lieu . '</td></tr>';
 // Description
 print '<tr><td valign="top">' . $langs->trans("Description") . '</td><td colspan="3">' . dol_htmlentitiesbr($entrepot->description) . '</td></tr>';
 // Address
 print '<tr><td>' . $langs->trans('Address') . '</td><td colspan="3">';
 print $entrepot->address;
 print '</td></tr>';
 // Town
 print '<tr><td width="25%">' . $langs->trans('Zip') . '</td><td width="25%">' . $entrepot->zip . '</td>';
 print '<td width="25%">' . $langs->trans('Town') . '</td><td width="25%">' . $entrepot->town . '</td></tr>';
 // Country
 print '<tr><td>' . $langs->trans('Country') . '</td><td colspan="3">';
 if (!empty($entrepot->country_code)) {
     $img = picto_from_langcode($entrepot->country_code);
     print $img ? $img . ' ' : '';
     print $entrepot->country;
 }
 print '</td></tr>';
 // Status
 print '<tr><td>' . $langs->trans("Status") . '</td><td colspan="3">' . $entrepot->getLibStatut(4) . '</td></tr>';
 $calcproductsunique = $entrepot->nb_different_products();
 $calcproducts = $entrepot->nb_products();
 // Total nb of different products
 print '<tr><td valign="top">' . $langs->trans("NumberOfDifferentProducts") . '</td><td colspan="3">';
 print empty($calcproductsunique['nb']) ? '0' : $calcproductsunique['nb'];
 print "</td></tr>";
 // Nb of products
 print '<tr><td valign="top">' . $langs->trans("NumberOfProducts") . '</td><td colspan="3">';
 print empty($calcproducts['nb']) ? '0' : $calcproducts['nb'];
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:mouvement.intentohector.php

示例4: top_menu


//.........这里部分代码省略.........
    }
    print '<div id="tmenu_tooltip" class="tmenu">' . "\n";
    // Show menu
    $menutop = new MenuTop($db);
    $menutop->atarget = $target;
    $menutop->showmenu();
    // This contains a \n
    print "</div>\n";
    // Link to login card
    $loginhtmltext = '';
    $logintext = '';
    if ($user->societe_id) {
        $thirdpartystatic = new Societe($db);
        $thirdpartystatic->fetch($user->societe_id);
        $companylink = ' (' . $thirdpartystatic->getNomUrl('', '') . ')';
        $company = ' (' . $langs->trans("Company") . ': ' . $thirdpartystatic->name . ')';
    }
    $logintext = '<div class="login"><a href="' . DOL_URL_ROOT . '/user/fiche.php?id=' . $user->id . '"';
    $logintext .= $menutop->atarget ? ' target="' . $menutop->atarget . '"' : '';
    $logintext .= '>' . $user->login . '</a>';
    if ($user->societe_id) {
        $logintext .= $companylink;
    }
    $logintext .= '</div>';
    $loginhtmltext .= '<u>' . $langs->trans("User") . '</u>';
    $loginhtmltext .= '<br><b>' . $langs->trans("Name") . '</b>: ' . $user->getFullName($langs);
    $loginhtmltext .= '<br><b>' . $langs->trans("Login") . '</b>: ' . $user->login;
    $loginhtmltext .= '<br><b>' . $langs->trans("Administrator") . '</b>: ' . yn($user->admin);
    $type = $user->societe_id ? $langs->trans("External") . $company : $langs->trans("Internal");
    $loginhtmltext .= '<br><b>' . $langs->trans("Type") . '</b>: ' . $type;
    $loginhtmltext .= '<br><b>' . $langs->trans("IPAddress") . '</b>: ' . $_SERVER["REMOTE_ADDR"];
    $loginhtmltext .= '<br>';
    $loginhtmltext .= '<br><u>' . $langs->trans("Connection") . '</u>';
    if ($conf->global->MAIN_MODULE_MULTICOMPANY) {
        $loginhtmltext .= '<br><b>' . $langs->trans("ConnectedOnMultiCompany") . '</b>: ' . $conf->entity . ' (user entity ' . $user->entity . ')';
    }
    $loginhtmltext .= '<br><b>' . $langs->trans("ConnectedSince") . '</b>: ' . dol_print_date($user->datelastlogin, "dayhour");
    $loginhtmltext .= '<br><b>' . $langs->trans("PreviousConnexion") . '</b>: ' . dol_print_date($user->datepreviouslogin, "dayhour");
    $loginhtmltext .= '<br><b>' . $langs->trans("AuthenticationMode") . '</b>: ' . $_SESSION["dol_authmode"];
    $loginhtmltext .= '<br><b>' . $langs->trans("CurrentTheme") . '</b>: ' . $conf->theme;
    $s = picto_from_langcode($langs->getDefaultLang());
    $loginhtmltext .= '<br><b>' . $langs->trans("CurrentUserLanguage") . '</b>: ' . ($s ? $s . ' ' : '') . $langs->getDefaultLang();
    $loginhtmltext .= '<br><b>' . $langs->trans("Browser") . '</b>: ' . $conf->browser->name . ' (' . $_SERVER['HTTP_USER_AGENT'] . ')';
    if (!empty($conf->browser->phone)) {
        $loginhtmltext .= '<br><b>' . $langs->trans("Phone") . '</b>: ' . $conf->browser->phone;
    }
    if (!empty($_SESSION["disablemodules"])) {
        $loginhtmltext .= '<br><b>' . $langs->trans("DisabledModules") . '</b>: <br>' . join(', ', explode(',', $_SESSION["disablemodules"]));
    }
    // Link info
    $logouthtmltext = '';
    $logouttext = '';
    $logouthtmltext = $langs->trans("Logout") . '<br>';
    //$logouthtmltext.="<br>";
    if ($_SESSION["dol_authmode"] != 'forceuser' && $_SESSION["dol_authmode"] != 'http') {
        $logouttext .= '<a href="' . DOL_URL_ROOT . '/user/logout.php"';
        $logouttext .= $menutop->atarget ? ' target="' . $menutop->atarget . '"' : '';
        $logouttext .= '>';
        $logouttext .= '<img class="login" border="0" width="14" height="14" src="' . DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/logout.png"';
        $logouttext .= ' alt="' . dol_escape_htmltag($langs->trans("Logout")) . '" title=""';
        $logouttext .= '>';
        $logouttext .= '</a>';
    } else {
        $logouttext .= '<img class="login" border="0" width="14" height="14" src="' . DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/logout.png"';
        $logouttext .= ' alt="' . dol_escape_htmltag($langs->trans("Logout")) . '" title=""';
        $logouttext .= '>';
    }
    print '<div class="login_block">' . "\n";
    print '<table class="nobordernopadding" summary=""><tr>';
    print $html->textwithtooltip('', $loginhtmltext, 2, 1, $logintext, '', 1);
    // Select entity
    if (!empty($conf->global->MAIN_MODULE_MULTICOMPANY)) {
        if ($user->admin && !$user->entity) {
            $res = @dol_include_once('/multicompany/class/actions_multicompany.class.php');
            if ($res) {
                $mc = new ActionsMulticompany($db);
                $mc->showInfo($conf->entity);
            }
        }
    }
    print $html->textwithtooltip('', $logouthtmltext, 2, 1, $logouttext, '', 1);
    // Link to print main content area
    if (empty($conf->global->MAIN_PRINT_DISABLELINK) && empty($conf->browser->phone)) {
        $qs = $_SERVER["QUERY_STRING"] . ($_SERVER["QUERY_STRING"] ? '&' : '') . $morequerystring;
        $text = '<a href="' . $_SERVER["PHP_SELF"] . '?' . $qs . ($qs ? '&' : '') . 'optioncss=print" target="_blank">';
        $text .= '<img class="printer" border="0" width="14" height="14" src="' . DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/printer.png"';
        $text .= ' title="" alt="">';
        $text .= '</a>';
        print $html->textwithtooltip('', $langs->trans("PrintContentArea"), 2, 1, $text, '', 1);
    }
    print '</tr></table>' . "\n";
    print "</div>\n";
    if ($conf->use_javascript_ajax && $conf->global->MAIN_MENU_USE_JQUERY_LAYOUT) {
        print "</div><!-- End top layout -->\n";
    }
    print "<!-- End top horizontal menu -->\n";
    if (!$conf->use_javascript_ajax || !$conf->global->MAIN_MENU_USE_JQUERY_LAYOUT) {
        print '<table width="100%" class="notopnoleftnoright" summary="leftmenutable" id="undertopmenu"><tr>';
    }
}
开发者ID:netors,项目名称:dolibarr,代码行数:101,代码来源:main.inc.php

示例5: FormAdmin

 $formadmin = new FormAdmin($db);
 $var = false;
 print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
 print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
 print '<input type="hidden" name="action" value="search_word">';
 print '<table class="noborder" width="100%">';
 print '<tr class="liste_titre">';
 print '<td>' . $langs->trans("Parameters") . '</td>' . "\n";
 print '<td align="center">&nbsp;</td>';
 print '</tr>';
 $stats = '';
 if (!empty($lit)) {
     $stats = '<br>';
     $stats .= '&nbsp;&nbsp;' . picto_from_langcode($lit->lang);
     $stats .= ' ' . $langs->trans('NbTerms') . ' : ' . $lit->nbTerms . '<br>';
     $stats .= '&nbsp;&nbsp;' . picto_from_langcode($lit->lang);
     $stats .= ' ' . $langs->trans('NbCustomTerms') . ' : ' . $lit->nbTrans . '<br>';
 }
 // Select lang to customize
 $var = !$var;
 print '<tr ' . $bc[$var] . '>';
 print '<td colspan="2">' . $langs->trans("SelectLangToCustomize") . $stats . '</td>';
 print '</tr>';
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td>';
 print '<input type="text" class="flat" size="30" name="word" value="' . $word . '">';
 print '</td><td>';
 print $formadmin->select_language($langtosearch, 'langtosearch');
 print '</td></tr>';
 $var = !$var;
 print '<tr ' . $bc[$var] . '>';
开发者ID:ATM-Consulting,项目名称:dolibarr_module_lostintranslation,代码行数:31,代码来源:lostintranslation_setup.php

示例6: picto_from_langcode

    print '</td></tr>' . "\n";
    print '</table>' . "\n";
    print '<br><div class="center">';
    print '<input class="button" type="submit" name="submit" value="' . $langs->trans("Save") . '">';
    print ' &nbsp; ';
    print '<input class="button" type="submit" name="cancel" value="' . $langs->trans("Cancel") . '">';
    print '</div>';
    print '</form>';
} else {
    $var = true;
    // Language
    print '<table class="noborder" width="100%">';
    print '<tr class="liste_titre"><td>' . $langs->trans("Parameters") . '</td><td>' . $langs->trans("Value") . '</td><td>&nbsp;</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("DefaultLanguage") . '</td><td>';
    $s = picto_from_langcode($conf->global->MAIN_LANG_DEFAULT);
    print $s ? $s . ' ' : '';
    print $conf->global->MAIN_LANG_DEFAULT == 'auto' ? $langs->trans("AutoDetectLang") : $langs->trans("Language_" . $conf->global->MAIN_LANG_DEFAULT);
    print '</td>';
    print '<td width="20">';
    if ($user->admin && $conf->global->MAIN_LANG_DEFAULT != 'auto') {
        print info_admin($langs->trans("SubmitTranslation" . ($conf->global->MAIN_LANG_DEFAULT == 'en_US' ? 'ENUS' : ''), $conf->global->MAIN_LANG_DEFAULT), 1);
    }
    print '</td>';
    print "</tr>";
    $var = !$var;
    print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("EnableMultilangInterface") . '</td><td>' . yn($conf->global->MAIN_MULTILANGS) . '</td>';
    print '<td width="20">&nbsp;</td>';
    print "</tr>";
    print '</table><br>' . "\n";
    // Themes
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:ihm.php

示例7: nl2br

 print '<tr><td width="25%">' . $langs->trans("Ref") . '</td><td colspan="3">';
 print $form->showrefnav($entrepot, 'id', '', 1, 'rowid', 'libelle');
 print '</td>';
 print '<tr><td>' . $langs->trans("LocationSummary") . '</td><td colspan="3">' . $entrepot->lieu . '</td></tr>';
 // Description
 print '<tr><td valign="top">' . $langs->trans("Description") . '</td><td colspan="3">' . nl2br($entrepot->description) . '</td></tr>';
 // Address
 print '<tr><td>' . $langs->trans('Address') . '</td><td colspan="3">';
 print $entrepot->address;
 print '</td></tr>';
 // Ville
 print '<tr><td width="25%">' . $langs->trans('Zip') . '</td><td width="25%">' . $entrepot->cp . '</td>';
 print '<td width="25%">' . $langs->trans('Town') . '</td><td width="25%">' . $entrepot->ville . '</td></tr>';
 // Country
 print '<tr><td>' . $langs->trans('Country') . '</td><td colspan="3">';
 $img = picto_from_langcode($entrepot->pays_code);
 print $img ? $img . ' ' : '';
 print $entrepot->pays;
 print '</td></tr>';
 // Statut
 print '<tr><td>' . $langs->trans("Status") . '</td><td colspan="3">' . $entrepot->getLibStatut(4) . '</td></tr>';
 $calcproducts = $entrepot->nb_products();
 // Nb of products
 print '<tr><td valign="top">' . $langs->trans("NumberOfProducts") . '</td><td colspan="3">';
 print empty($calcproducts['nb']) ? '0' : $calcproducts['nb'];
 print "</td></tr>";
 // Value
 print '<tr><td valign="top">' . $langs->trans("EstimatedStockValueShort") . '</td><td colspan="3">';
 print empty($calcproducts['value']) ? '0' : $calcproducts['value'];
 print "</td></tr>";
 // Last movement
开发者ID:netors,项目名称:dolibarr,代码行数:31,代码来源:mouvement.php

示例8: dol_fiche_end

    }
    dol_fiche_end();
    print '<div class="center">';
    print '<input type="submit" class="button" value="' . $langs->trans("Save") . '">';
    print '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
    print '<input type="submit" class="button" name="cancel" value="' . $langs->trans("Cancel") . '">';
    print '</div>';
    print '</form>';
} else {
    dol_fiche_head($head, 'translation', $titre, 0, $picto);
    dol_banner_tab($object, 'ref', '', $user->societe_id ? 0 : 1, 'ref');
    $cnt_trans = 0;
    if (!empty($object->multilangs)) {
        foreach ($object->multilangs as $key => $value) {
            $cnt_trans++;
            $s = picto_from_langcode($key);
            print "<br>" . ($s ? $s . ' ' : '') . " <b>" . $langs->trans('Language_' . $key) . ":</b> " . '<a href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=delete&langtodelete=' . $key . '">' . img_delete('', '') . "</a><br>";
            print '<table class="border" width="100%">';
            print '<tr><td width="15%">' . $langs->trans('Label') . '</td><td>' . $object->multilangs[$key]["label"] . '</td></tr>';
            print '<tr><td width="15%">' . $langs->trans('Description') . '</td><td>' . $object->multilangs[$key]["description"] . '</td></tr>';
            print '<tr><td width="15%">' . $langs->trans('Note') . '</td><td>' . $object->multilangs[$key]["note"] . '</td></tr>';
            print '</table>';
        }
    }
    if (!$cnt_trans) {
        print '<br>' . $langs->trans('NoTranslation');
    }
    dol_fiche_end();
}
/* ************************************************************************** */
/*                                                                            */
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:traduction.php

示例9: top_menu


//.........这里部分代码省略.........
        $loginhtmltext = '';
        $logintext = '';
        if ($user->societe_id) {
            $thirdpartystatic = new Societe($db);
            $thirdpartystatic->fetch($user->societe_id);
            $companylink = ' (' . $thirdpartystatic->getNomUrl('', '') . ')';
            $company = ' (' . $langs->trans("Company") . ': ' . $thirdpartystatic->name . ')';
        }
        $logintext = '<div class="login"><a href="' . DOL_URL_ROOT . '/user/card.php?id=' . $user->id . '"';
        $logintext .= $target ? ' target="' . $target . '"' : '';
        $logintext .= '>' . $user->login . '</a>';
        if ($user->societe_id) {
            $logintext .= $companylink;
        }
        $logintext .= '</div>';
        $loginhtmltext .= '<u>' . $langs->trans("User") . '</u>';
        $loginhtmltext .= '<br><b>' . $langs->trans("Name") . '</b>: ' . $user->getFullName($langs);
        $loginhtmltext .= '<br><b>' . $langs->trans("Login") . '</b>: ' . $user->login;
        $loginhtmltext .= '<br><b>' . $langs->trans("EMail") . '</b>: ' . $user->email;
        $loginhtmltext .= '<br><b>' . $langs->trans("Administrator") . '</b>: ' . yn($user->admin);
        $type = $user->societe_id ? $langs->trans("External") . $company : $langs->trans("Internal");
        $loginhtmltext .= '<br><b>' . $langs->trans("Type") . '</b>: ' . $type;
        $loginhtmltext .= '<br><b>' . $langs->trans("IPAddress") . '</b>: ' . $_SERVER["REMOTE_ADDR"];
        $loginhtmltext .= '<br>';
        $loginhtmltext .= '<br><u>' . $langs->trans("Connection") . '</u>';
        if (!empty($conf->global->MAIN_MODULE_MULTICOMPANY)) {
            $loginhtmltext .= '<br><b>' . $langs->trans("ConnectedOnMultiCompany") . '</b>: ' . $conf->entity . ' (user entity ' . $user->entity . ')';
        }
        $loginhtmltext .= '<br><b>' . $langs->trans("AuthenticationMode") . '</b>: ' . $_SESSION["dol_authmode"] . (empty($dolibarr_main_demo) ? '' : ' (demo)');
        $loginhtmltext .= '<br><b>' . $langs->trans("ConnectedSince") . '</b>: ' . dol_print_date($user->datelastlogin, "dayhour");
        $loginhtmltext .= '<br><b>' . $langs->trans("PreviousConnexion") . '</b>: ' . dol_print_date($user->datepreviouslogin, "dayhour");
        $loginhtmltext .= '<br><b>' . $langs->trans("CurrentTheme") . '</b>: ' . $conf->theme;
        $loginhtmltext .= '<br><b>' . $langs->trans("CurrentMenuManager") . '</b>: ' . $menumanager->name;
        $s = picto_from_langcode($langs->getDefaultLang());
        $loginhtmltext .= '<br><b>' . $langs->trans("CurrentUserLanguage") . '</b>: ' . ($s ? $s . ' ' : '') . $langs->getDefaultLang();
        $loginhtmltext .= '<br><b>' . $langs->trans("Browser") . '</b>: ' . $conf->browser->name . ($conf->browser->version ? ' ' . $conf->browser->version : '') . ' (' . $_SERVER['HTTP_USER_AGENT'] . ')';
        if (!empty($conf->browser->phone)) {
            $loginhtmltext .= '<br><b>' . $langs->trans("Phone") . '</b>: ' . $conf->browser->phone;
        }
        if (!empty($_SESSION["disablemodules"])) {
            $loginhtmltext .= '<br><b>' . $langs->trans("DisabledModules") . '</b>: <br>' . join(', ', explode(',', $_SESSION["disablemodules"]));
        }
        $appli = 'Dolibarr';
        if (!empty($conf->global->MAIN_APPLICATION_TITLE)) {
            $appli = $conf->global->MAIN_APPLICATION_TITLE;
            if (preg_match('/\\d\\.\\d/', $appli)) {
                if (!preg_match('/' . preg_quote(DOL_VERSION) . '/', $appli)) {
                    $appli .= " (" . DOL_VERSION . ")";
                }
                // If new title contains a version that is different than core
            } else {
                $appli .= " " . DOL_VERSION;
            }
        } else {
            $appli .= " " . DOL_VERSION;
        }
        if (!empty($conf->global->MAIN_FEATURES_LEVEL)) {
            $appli .= "<br>" . $langs->trans("LevelOfFeature") . ': ' . $conf->global->MAIN_FEATURES_LEVEL;
        }
        $logouttext = '';
        $logouthtmltext = $appli . '<br>';
        if ($_SESSION["dol_authmode"] != 'forceuser' && $_SESSION["dol_authmode"] != 'http') {
            $logouthtmltext .= $langs->trans("Logout") . '<br>';
            $logouttext .= '<a href="' . DOL_URL_ROOT . '/user/logout.php">';
            $logouttext .= img_picto($langs->trans('Logout') . ":" . $langs->trans('Logout'), 'logout.png', 'class="login"', 0, 0, 1);
            $logouttext .= '</a>';
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:67,代码来源:main.inc.php

示例10: nl2br

		if ($account->getCountryCode() == 'IN') $ibankey="IFSC";
		if ($account->getCountryCode() == 'IN') $bickey="SWIFT";

		print '<tr><td valign="top">'.$langs->trans($ibankey).'</td>';
		print '<td colspan="3">'.$account->iban_prefix.'</td></tr>';

		print '<tr><td valign="top">'.$langs->trans($bickey).'</td>';
		print '<td colspan="3">'.$account->bic.'</td></tr>';

		print '<tr><td valign="top">'.$langs->trans("BankAccountDomiciliation").'</td><td colspan="3">';
		print nl2br($account->domiciliation);
		print "</td></tr>\n";

		// Country
		print '<tr><td valign="top">'.$langs->trans("BankAccountCountry").'</td><td colspan="3">';
		$img=picto_from_langcode($account->pays_code);
		print $img?$img.' ':'';
		print getCountry($account->getCountryCode(),0,$db);
		print "</td></tr>\n";

		print '<tr><td valign="top">'.$langs->trans("BankAccountOwner").'</td><td colspan="3">';
		print $account->proprio;
		print "</td></tr>\n";

		print '<tr><td valign="top">'.$langs->trans("BankAccountOwnerAddress").'</td><td colspan="3">';
		print nl2br($account->adresse_proprio);
		print "</td></tr>\n";

	}

	print '</table>';
开发者ID:remyyounes,项目名称:dolibarr,代码行数:31,代码来源:bankid_fr.php

示例11: dol_print_address

    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>';

    // Tel pro.
    print '<tr><td>'.$langs->trans("PhonePro").'</td><td class="valeur">'.dol_print_phone($adh->phone,$adh->pays_code,0,$adh->fk_soc,1).'</td></tr>';

    // Tel perso
    print '<tr><td>'.$langs->trans("PhonePerso").'</td><td class="valeur">'.dol_print_phone($adh->phone_perso,$adh->pays_code,0,$adh->fk_soc,1).'</td></tr>';

    // Tel mobile
    print '<tr><td>'.$langs->trans("PhoneMobile").'</td><td class="valeur">'.dol_print_phone($adh->phone_mobile,$adh->pays_code,0,$adh->fk_soc,1).'</td></tr>';
开发者ID:remyyounes,项目名称:dolibarr,代码行数:31,代码来源:fiche.php

示例12: img_object

    {
        print '<a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$agf->socid.'">';
        print img_object($langs->trans("ShowCompany"),"company").' '.dol_trunc($agf->socname,20).'</a>';
    }
    else
    { */
 //    print '&nbsp;';
 // }
 print '</tr>';
 print '<tr><td rowspan=3 valign="top">' . $langs->trans("Address") . '</td>';
 print '<td>' . $agf->adresse . '</td></tr>';
 print '<tr>';
 print '<td>' . $agf->fk_departement . ' - ' . $agf->town . '</td></tr>';
 print '<tr>';
 print '<td>';
 $img = picto_from_langcode($agf->fk_pays);
 if ($agf->isInEEC()) {
     print $form->textwithpicto(($img ? $img . ' ' : '') . $agf->country, $langs->trans("CountryIsInEEC"), 1, 0);
 } else {
     print ($img ? $img . ' ' : '') . $agf->fk_pays;
 }
 print '</td></tr>';
 print '</td></tr>';
 print '<tr><td>' . $langs->trans("type") . '</td>';
 print '<td>' . $agf->nb_piece . '</td></tr>';
 print '<tr><td valign="top">' . $langs->trans("drescriptif") . '</td>';
 print '<td>' . nl2br($agf->descriptif) . '</td></tr>';
 print '<tr><td valign="top">' . $langs->trans("superficie") . '</td>';
 print '<td>' . nl2br($agf->superficie) . '</td></tr>';
 print '<tr><td valign="top">' . $langs->trans("dpe") . '</td>';
 print '<td>' . nl2br($agf->dpe) . '</td></tr>';
开发者ID:abbenbouchta,项目名称:immobilier,代码行数:31,代码来源:fiche.php

示例13: getNomUrl

 /**
  *  Return a link to the user card (with optionaly the picto)
  * 	Use this->id,this->lastname, this->firstname
  *
  *	@param	int		$withpicto			Include picto in link (0=No picto, 1=Include picto into link, 2=Only picto)
  *	@param	string	$option				On what the link point to
  *  @param  integer $infologin      	Add connection info to the tooltip
  *  @param	integer	$notooltip			1=Disable tooltip
  *  @param	int		$maxlen				Max length of visible user name
  *  @param	int		$hidethirdpartylogo	Hide logo of thirdparty if user is external user
  *	@return	string						String with URL
  */
 function getNomUrl($withpicto = 0, $option = '', $infologin = 0, $notooltip = 0, $maxlen = 24, $hidethirdpartylogo = 0)
 {
     global $langs, $conf, $db;
     global $dolibarr_main_authentication, $dolibarr_main_demo;
     global $menumanager;
     $result = '';
     $companylink = '';
     $label = '<u>' . $langs->trans("User") . '</u>';
     $label .= '<div width="100%">';
     $label .= '<b>' . $langs->trans('Name') . ':</b> ' . $this->getFullName($langs, '', '');
     if (!empty($this->login)) {
         $label .= '<br><b>' . $langs->trans('Login') . ':</b> ' . $this->login;
     }
     $label .= '<br><b>' . $langs->trans("EMail") . ':</b> ' . $this->email;
     if (!empty($this->admin)) {
         $label .= '<br><b>' . $langs->trans("Administrator") . '</b>: ' . yn($this->admin);
     }
     if (!empty($this->societe_id)) {
         $thirdpartystatic = new Societe($db);
         $thirdpartystatic->fetch($this->societe_id);
         if (empty($hidethirdpartylogo)) {
             $companylink = ' ' . $thirdpartystatic->getNomUrl(2);
         }
         // picto only of company
         $company = ' (' . $langs->trans("Company") . ': ' . $thirdpartystatic->name . ')';
     }
     $type = $this->societe_id ? $langs->trans("External") . $company : $langs->trans("Internal");
     $label .= '<br><b>' . $langs->trans("Type") . ':</b> ' . $type;
     $label .= '</div>';
     if (!empty($this->photo)) {
         $label .= '<div class="photointooltip">';
         $label .= Form::showphoto('userphoto', $this, 80, 0, 0, 'photowithmargin photologintooltip');
         $label .= '</div><div style="clear: both;"></div>';
     }
     // Info Login
     if ($infologin) {
         $label .= '<br>';
         $label .= '<br><u>' . $langs->trans("Connection") . '</u>';
         $label .= '<br><b>' . $langs->trans("IPAddress") . '</b>: ' . $_SERVER["REMOTE_ADDR"];
         if (!empty($conf->global->MAIN_MODULE_MULTICOMPANY)) {
             $label .= '<br><b>' . $langs->trans("ConnectedOnMultiCompany") . ':</b> ' . $conf->entity . ' (user entity ' . $this->entity . ')';
         }
         $label .= '<br><b>' . $langs->trans("AuthenticationMode") . ':</b> ' . $_SESSION["dol_authmode"] . (empty($dolibarr_main_demo) ? '' : ' (demo)');
         $label .= '<br><b>' . $langs->trans("ConnectedSince") . ':</b> ' . dol_print_date($this->datelastlogin, "dayhour");
         $label .= '<br><b>' . $langs->trans("PreviousConnexion") . ':</b> ' . dol_print_date($this->datepreviouslogin, "dayhour");
         $label .= '<br><b>' . $langs->trans("CurrentTheme") . ':</b> ' . $conf->theme;
         $label .= '<br><b>' . $langs->trans("CurrentMenuManager") . ':</b> ' . $menumanager->name;
         $s = picto_from_langcode($langs->getDefaultLang());
         $label .= '<br><b>' . $langs->trans("CurrentUserLanguage") . ':</b> ' . ($s ? $s . ' ' : '') . $langs->getDefaultLang();
         $label .= '<br><b>' . $langs->trans("Browser") . ':</b> ' . $conf->browser->name . ($conf->browser->version ? ' ' . $conf->browser->version : '') . ' (' . $_SERVER['HTTP_USER_AGENT'] . ')';
         if (!empty($conf->browser->phone)) {
             $label .= '<br><b>' . $langs->trans("Phone") . ':</b> ' . $conf->browser->phone;
         }
         if (!empty($_SESSION["disablemodules"])) {
             $label .= '<br><b>' . $langs->trans("DisabledModules") . ':</b> <br>' . join(', ', explode(',', $_SESSION["disablemodules"]));
         }
     }
     $link = '<a href="' . DOL_URL_ROOT . '/user/card.php?id=' . $this->id . '"';
     $link .= $notooltip ? '' : ' title="' . dol_escape_htmltag($label, 1) . '" class="classfortooltip"';
     $link .= '>';
     $linkend = '</a>';
     if ($withpicto) {
         $result .= $link . img_object($notooltip ? '' : $label, 'user', $notooltip ? '' : 'class="classfortooltip"') . $linkend;
         if ($withpicto != 2) {
             $result .= ' ';
         }
     }
     $result .= $link . $this->getFullName($langs, '', -1, $maxlen) . $linkend . $companylink;
     return $result;
 }
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:82,代码来源:user.class.php

示例14: picto_from_langcode

 // Currency
 print '<tr><td>' . $langs->trans("Currency") . '</td>';
 print '<td colspan="3">';
 $selectedcode = $account->account_currency_code;
 if (!$selectedcode) {
     $selectedcode = $conf->currency;
 }
 print $langs->trans("Currency" . $selectedcode);
 print '</td></tr>';
 // Status
 print '<tr><td>' . $langs->trans("Status") . '</td>';
 print '<td colspan="3">' . $account->getLibStatut(4) . '</td></tr>';
 // Country
 print '<tr><td>' . $langs->trans("BankAccountCountry") . '</td><td>';
 if ($account->country_id > 0) {
     $img = picto_from_langcode($account->country_code);
     print $img ? $img . ' ' : '';
     print getCountry($account->getCountryCode(), 0, $db);
 }
 print '</td></tr>';
 // State
 print '<tr><td>' . $langs->trans('State') . '</td><td>';
 if ($account->state_id > 0) {
     print getState($account->state_id);
 }
 print '</td></tr>';
 // Conciliate
 print '<tr><td>' . $langs->trans("Conciliable") . '</td>';
 print '<td colspan="3">';
 $conciliate = $account->canBeConciliated();
 if ($conciliate == -2) {
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:card.php

示例15: show_addresses

/**
 * 		Show html area for list of addresses
 *
 *		@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 address is created
 *      @return	void
 */
function show_addresses($conf, $langs, $db, $object, $backtopage = '')
{
    global $user;
    global $bc;
    require_once DOL_DOCUMENT_ROOT . '/societe/class/address.class.php';
    $addressstatic = new Address($db);
    $num = $addressstatic->fetch_lines($object->id);
    $buttoncreate = '';
    if ($user->rights->societe->creer) {
        $buttoncreate = '<a class="addnewrecord" href="' . DOL_URL_ROOT . '/comm/address.php?socid=' . $object->id . '&amp;action=create&amp;backtopage=' . urlencode($backtopage) . '">' . $langs->trans("AddAddress") . ' ' . img_picto($langs->trans("AddAddress"), 'filenew') . '</a>' . "\n";
    }
    print "\n";
    print_fiche_titre($langs->trans("AddressesForCompany"), $buttoncreate, '');
    print "\n" . '<table class="noborder" width="100%">' . "\n";
    print '<tr class="liste_titre"><td>' . $langs->trans("Label") . '</td>';
    print '<td>' . $langs->trans("CompanyName") . '</td>';
    print '<td>' . $langs->trans("Town") . '</td>';
    print '<td>' . $langs->trans("Country") . '</td>';
    print '<td>' . $langs->trans("Phone") . '</td>';
    print '<td>' . $langs->trans("Fax") . '</td>';
    print "<td>&nbsp;</td>";
    print "</tr>";
    if ($num > 0) {
        $var = true;
        foreach ($addressstatic->lines as $address) {
            $var = !$var;
            print "<tr " . $bc[$var] . ">";
            print '<td>';
            $addressstatic->id = $address->id;
            $addressstatic->label = $address->label;
            print $addressstatic->getNomUrl(1);
            print '</td>';
            print '<td>' . $address->name . '</td>';
            print '<td>' . $address->town . '</td>';
            $img = picto_from_langcode($address->country_code);
            print '<td>' . ($img ? $img . ' ' : '') . $address->country . '</td>';
            // Lien click to dial
            print '<td>';
            print dol_print_phone($address->phone, $address->country_code, $address->id, $object->id, 'AC_TEL');
            print '</td>';
            print '<td>';
            print dol_print_phone($address->fax, $address->country_code, $address->id, $object->id, 'AC_FAX');
            print '</td>';
            if ($user->rights->societe->creer) {
                print '<td align="right">';
                print '<a href="' . DOL_URL_ROOT . '/comm/address.php?action=edit&amp;id=' . $address->id . '&amp;socid=' . $object->id . '&amp;backtopage=' . urlencode($backtopage) . '">';
                print img_edit();
                print '</a></td>';
            }
            print "</tr>\n";
        }
    } else {
        //print "<tr ".$bc[$var].">";
        //print '<td>'.$langs->trans("NoAddressYetDefined").'</td>';
        //print "</tr>\n";
    }
    print "\n</table>\n";
    print "<br>\n";
    return $num;
}
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:70,代码来源:company.lib.php


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