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


PHP Form::textwithpicto方法代码示例

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


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

示例1: info

 /**     \brief      Renvoi la description du modele de numerotation
  *      \return     string      Texte descripif
  */
 function info()
 {
     global $conf, $langs;
     $langs->load("pos@pos");
     $form = new Form($db);
     $texte = $langs->trans('GenericNumRefModelDesc') . "<br>\n";
     $texte .= '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
     $texte .= '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
     $texte .= '<input type="hidden" name="action" value="updateMask">';
     $texte .= '<input type="hidden" name="maskconstfacsim" value="FACSIM_MURO_MASK">';
     $texte .= '<input type="hidden" name="maskconstfacsimcredit" value="FACSIM_MURO_MASK_CREDIT">';
     $texte .= '<table class="nobordernopadding" width="100%">';
     $tooltip = $langs->trans("GenericMaskCodes", $langs->transnoentities("Facsim"));
     $tooltip .= $langs->trans("GenericMaskCodes2");
     $tooltip .= $langs->trans("POSMaskCodes");
     $tooltip .= $langs->trans("GenericMaskCodes3");
     $tooltip .= $langs->trans("GenericMaskCodes4a", $langs->transnoentities("Facsim"), $langs->transnoentities("facsim"));
     $tooltip .= $langs->trans("GenericMaskCodes5");
     // Parametrage du prefix
     $texte .= '<tr><td>' . $langs->trans("Mask") . ' (' . $langs->trans("Facsim") . '):</td>';
     $texte .= '<td align="right">' . $form->textwithpicto('<input type="text" class="flat" size="24" name="maskfacsim" value="' . $conf->global->FACSIM_MURO_MASK . '">', $tooltip, 1, 1) . '</td>';
     $texte .= '<td align="left" rowspan="2">&nbsp; <input type="submit" class="button" value="' . $langs->trans("Modify") . '" name="Button"></td>';
     $texte .= '</tr>';
     // Parametrage du prefix des avoirs
     $texte .= '<tr><td>' . $langs->trans("Mask") . ' (' . $langs->trans("FacsimAvoir") . '):</td>';
     $texte .= '<td align="right">' . $form->textwithpicto('<input type="text" class="flat" size="24" name="maskfacsimcredit" value="' . $conf->global->FACSIM_MURO_MASK_CREDIT . '">', $tooltip, 1, 1) . '</td>';
     $texte .= '</tr>';
     $texte .= '</table>';
     $texte .= '</form>';
     return $texte;
 }
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:34,代码来源:mod_facsim_muro.php

示例2: Project

 /**
  *	Output a combo list with projects qualified for a third party
  *
  *	@param	int		$socid      	Id third party (-1=all, 0=only projects not linked to a third party, id=projects not linked or linked to third party id)
  *	@param  int		$selected   	Id project preselected
  *	@param  string	$htmlname   	Nom de la zone html
  *	@param	int		$maxlength		Maximum length of label
  *	@param	int		$option_only	Return only html options lines without the select tag
  *	@param	int		$show_empty		Add an empty line
  *  @param	int		$discard_closed Discard closed projects (0=Keep,1=hide completely,2=Disable)
  *  @param	int		$forcefocus		Force focus on field (works with javascript only)
  *  @param	int		$disabled		Disabled
  *  @param  int     $mode           0 for HTML mode and 1 for JSON mode
  *  @param  string  $filterkey      Key to filter
  *	@return int         			Nber of project if OK, <0 if KO
  */
 function select_projects($socid = -1, $selected = '', $htmlname = 'projectid', $maxlength = 16, $option_only = 0, $show_empty = 1, $discard_closed = 0, $forcefocus = 0, $disabled = 0, $mode = 0, $filterkey = '')
 {
     global $langs, $conf, $form;
     if (!empty($conf->use_javascript_ajax) && !empty($conf->global->PROJECT_USE_SEARCH_TO_SELECT)) {
         $placeholder = '';
         if ($selected && empty($selected_input_value)) {
             require_once DOL_DOCUMENT_ROOT . '/projet/class/project.class.php';
             $project = new Project($this->db);
             $project->fetch($selected);
             $selected_input_value = $project->ref;
         }
         $urloption = 'socid=' . $socid . '&htmlname=' . $htmlname;
         print ajax_autocompleter($selected, $htmlname, DOL_URL_ROOT . '/projet/ajax/projects.php', $urloption, $conf->global->PROJECT_USE_SEARCH_TO_SELECT, 0, array());
         print '<input type="text" size="20" name="search_' . $htmlname . '" id="search_' . $htmlname . '" value="' . $selected_input_value . '"' . $placeholder . ' />';
     } else {
         print $this->select_projects_list($socid, $selected, $htmlname, $maxlength, $option_only, $show_empty, $discard_closed, $forcefocus, $disabled, 0, $filterkey);
         if ($discard_closed) {
             if (class_exists('Form')) {
                 if (empty($form)) {
                     $form = new Form($this->db);
                 }
                 print $form->textwithpicto('', $langs->trans("ClosedProjectsAreHidden"));
             }
         }
     }
 }
开发者ID:NoisyBoy86,项目名称:Dolibarr_test,代码行数:42,代码来源:html.formprojet.class.php

示例3: info

 /**
  *  Return description of module
  *
  *  @return     string      Texte descripif
  */
 function info()
 {
     global $conf, $langs;
     $langs->load("bills");
     $form = new Form($this->db);
     $texte = $langs->trans('GenericNumRefModelDesc') . "<br>\n";
     $texte .= '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
     $texte .= '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
     $texte .= '<input type="hidden" name="action" value="updateMask">';
     $texte .= '<input type="hidden" name="maskconstpropal" value="PROPALE_SAPHIR_MASK">';
     $texte .= '<table class="nobordernopadding" width="100%">';
     $tooltip = $langs->trans("GenericMaskCodes", $langs->transnoentities("Proposal"), $langs->transnoentities("Proposal"));
     $tooltip .= $langs->trans("GenericMaskCodes2");
     $tooltip .= $langs->trans("GenericMaskCodes3");
     $tooltip .= $langs->trans("GenericMaskCodes4a", $langs->transnoentities("Proposal"), $langs->transnoentities("Proposal"));
     $tooltip .= $langs->trans("GenericMaskCodes5");
     // Parametrage du prefix
     $texte .= '<tr><td>' . $langs->trans("Mask") . ':</td>';
     $texte .= '<td align="right">' . $form->textwithpicto('<input type="text" class="flat" size="24" name="maskpropal" value="' . $conf->global->PROPALE_SAPHIR_MASK . '">', $tooltip, 1, 1) . '</td>';
     $texte .= '<td align="left" rowspan="2">&nbsp; <input type="submit" class="button" value="' . $langs->trans("Modify") . '" name="Button"></td>';
     $texte .= '</tr>';
     $texte .= '</table>';
     $texte .= '</form>';
     return $texte;
 }
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:30,代码来源:mod_propale_saphir.php

示例4: info

 /**
  * Return description of module
  *
  * @param	Translate	$langs		Object langs
  * @return	string   		   		Description of module
  */
 function info($langs)
 {
     global $conf;
     $langs->load("companies");
     $form = new Form($this->db);
     $tooltip = '';
     $texte = '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
     $texte .= '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
     $texte .= '<input type="hidden" name="action" value="setModuleOptions">';
     $texte .= '<input type="hidden" name="param1" value="COMPANY_AQUARIUM_MASK_SUPPLIER">';
     $texte .= '<input type="hidden" name="param2" value="COMPANY_AQUARIUM_MASK_CUSTOMER">';
     $texte .= '<table class="nobordernopadding" width="100%">';
     $s1 = $form->textwithpicto('<input type="text" class="flat" size="4" name="value1" value="' . $conf->global->COMPANY_AQUARIUM_MASK_SUPPLIER . '">', $tooltip, 1, 1);
     $s2 = $form->textwithpicto('<input type="text" class="flat" size="4" name="value2" value="' . $conf->global->COMPANY_AQUARIUM_MASK_CUSTOMER . '">', $tooltip, 1, 1);
     $texte .= '<tr><td>' . $langs->trans("ModuleCompanyCode" . $this->nom, $s1, $s2) . "<br>\n";
     $texte .= '</td>';
     $texte .= '<td align="left">&nbsp; <input type="submit" class="button" value="' . $langs->trans("Modify") . '" name="Button"></td>';
     $texte .= '</tr></table>';
     $texte .= '</form>';
     return $texte;
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:27,代码来源:mod_codecompta_aquarium.php

示例5: info

 /**
  *  Renvoi la description du modele de numerotation
  *
  *  @return     string      Texte descripif
  */
 function info()
 {
     global $conf, $langs;
     $langs->load("bills");
     $form = new Form($this->db);
     $texte = $langs->trans('GenericNumRefModelDesc') . "<br>\n";
     $texte .= '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
     $texte .= '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
     $texte .= '<input type="hidden" name="action" value="updateMask">';
     $texte .= '<input type="hidden" name="maskconstinvoice" value="FACTURE_MERCURE_MASK_INVOICE">';
     $texte .= '<input type="hidden" name="maskconstreplacement" value="FACTURE_MERCURE_MASK_REPLACEMENT">';
     $texte .= '<input type="hidden" name="maskconstcredit" value="FACTURE_MERCURE_MASK_CREDIT">';
     $texte .= '<input type="hidden" name="maskconstdeposit" value="FACTURE_MERCURE_MASK_DEPOSIT">';
     $texte .= '<table class="nobordernopadding" width="100%">';
     $tooltip = $langs->trans("GenericMaskCodes", $langs->transnoentities("Invoice"), $langs->transnoentities("Invoice"));
     $tooltip .= $langs->trans("GenericMaskCodes2");
     $tooltip .= $langs->trans("GenericMaskCodes3");
     $tooltip .= $langs->trans("GenericMaskCodes4a", $langs->transnoentities("Invoice"), $langs->transnoentities("Invoice"));
     $tooltip .= $langs->trans("GenericMaskCodes5");
     // Parametrage du prefix
     $texte .= '<tr><td>' . $langs->trans("Mask") . ' (' . $langs->trans("InvoiceStandard") . '):</td>';
     $texte .= '<td align="right">' . $form->textwithpicto('<input type="text" class="flat" size="24" name="maskinvoice" value="' . $conf->global->FACTURE_MERCURE_MASK_INVOICE . '">', $tooltip, 1, 1) . '</td>';
     $texte .= '<td align="left" rowspan="3">&nbsp; <input type="submit" class="button" value="' . $langs->trans("Modify") . '" name="Button"></td>';
     $texte .= '</tr>';
     // Parametrage du prefix des replacement
     $texte .= '<tr><td>' . $langs->trans("Mask") . ' (' . $langs->trans("InvoiceReplacement") . '):</td>';
     $texte .= '<td align="right">' . $form->textwithpicto('<input type="text" class="flat" size="24" name="maskreplacement" value="' . $conf->global->FACTURE_MERCURE_MASK_REPLACEMENT . '">', $tooltip, 1, 1) . '</td>';
     $texte .= '</tr>';
     // Parametrage du prefix des avoirs
     $texte .= '<tr><td>' . $langs->trans("Mask") . ' (' . $langs->trans("InvoiceAvoir") . '):</td>';
     $texte .= '<td align="right">' . $form->textwithpicto('<input type="text" class="flat" size="24" name="maskcredit" value="' . $conf->global->FACTURE_MERCURE_MASK_CREDIT . '">', $tooltip, 1, 1) . '</td>';
     $texte .= '</tr>';
     // Parametrage du prefix des acomptes
     $texte .= '<tr><td>' . $langs->trans("Mask") . ' (' . $langs->trans("InvoiceDeposit") . '):</td>';
     $texte .= '<td align="right">' . $form->textwithpicto('<input type="text" class="flat" size="24" name="maskdeposit" value="' . $conf->global->FACTURE_MERCURE_MASK_DEPOSIT . '">', $tooltip, 1, 1) . '</td>';
     $texte .= '</tr>';
     $texte .= '</table>';
     $texte .= '</form>';
     return $texte;
 }
开发者ID:Samara94,项目名称:dolibarr,代码行数:45,代码来源:mod_facture_mercure.php

示例6:

         if ($fieldlist[$field] == 'region_id') {
             $valuetoshow = '&nbsp;';
             $showfield = 1;
         }
         if ($fieldlist[$field] == 'region') {
             $valuetoshow = $langs->trans("Country") . '/' . $langs->trans("Region");
             $showfield = 1;
         }
     }
     if ($valuetoshow != '') {
         print '<td align="' . $align . '">';
         if (!empty($tabhelp[$id][$value]) && preg_match('/^http(s*):/i', $tabhelp[$id][$value])) {
             print '<a href="' . $tabhelp[$id][$value] . '" target="_blank">' . $valuetoshow . ' ' . img_help(1, $valuetoshow) . '</a>';
         } else {
             if (!empty($tabhelp[$id][$value])) {
                 print $form->textwithpicto($valuetoshow, $tabhelp[$id][$value]);
             } else {
                 print $valuetoshow;
             }
         }
         print '</td>';
     }
     if ($fieldlist[$field] == 'libelle' || $fieldlist[$field] == 'label') {
         $alabelisused = 1;
     }
 }
 if ($id == 4) {
     print '<td></td>';
 }
 print '<td colspan="4">';
 print '<input type="hidden" name="id" value="' . $id . '">';
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:dict.php

示例7: print

     print $form->editfieldval("CustomerAccountancyCode", 'customeraccountancycode', $objsoc->code_compta, 'socid', $objsoc->id, $user->rights->societe->creer);
     print '</td>';
     print '</tr>';
 }
 // Address
 print '<tr><td valign="top">' . $langs->trans('Address') . '</td><td colspan="3">';
 dol_print_address($objsoc->address, 'gmap', 'thirdparty', $objsoc->id);
 print "</td></tr>";
 // Zip / Town
 print '<tr><td nowrap="nowrap">' . $langs->trans('Zip') . ' / ' . $langs->trans('Town') . '</td><td colspan="3">' . $objsoc->cp . ($objsoc->cp && $objsoc->ville ? ' / ' : '') . $objsoc->ville . "</td>";
 print '</tr>';
 // Country
 print '<tr><td>' . $langs->trans("Country") . '</td><td colspan="3">';
 $img = picto_from_langcode($objsoc->pays_code);
 if ($objsoc->isInEEC()) {
     print $form->textwithpicto(($img ? $img . ' ' : '') . $objsoc->pays, $langs->trans("CountryIsInEEC"), 1, 0);
 } else {
     print ($img ? $img . ' ' : '') . $objsoc->pays;
 }
 print '</td></tr>';
 // Phone
 print '<tr><td>' . $langs->trans('Phone') . '</td><td style="min-width: 25%;">' . dol_print_phone($objsoc->tel, $objsoc->pays_code, 0, $objsoc->id, 'AC_TEL') . '</td>';
 // Fax
 print '<td>' . $langs->trans('Fax') . '</td><td style="min-width: 25%;">' . dol_print_phone($objsoc->fax, $objsoc->pays_code, 0, $objsoc->id, 'AC_FAX') . '</td></tr>';
 // EMail
 print '<td>' . $langs->trans('EMail') . '</td><td colspan="3">' . dol_print_email($objsoc->email, 0, $objsoc->id, 'AC_EMAIL') . '</td></tr>';
 // Web
 print '<tr><td>' . $langs->trans("Web") . '</td><td colspan="3">' . dol_print_url($objsoc->url, '_blank') . '</td></tr>';
 // Assujeti a TVA ou pas
 print '<tr>';
 print '<td nowrap="nowrap">' . $langs->trans('VATIsUsed') . '</td><td colspan="3">';
开发者ID:netors,项目名称:dolibarr,代码行数:31,代码来源:fiche.php

示例8: GETPOST

     $param = 'NOTIFICATION_FIXEDEMAIL_' . $notifiedevent['code'] . '_THRESHOLD_HIGHER_' . $reg[1];
     $value = GETPOST('NOTIF_' . $notifiedevent['code'] . '_old_' . $reg[1] . '_key') ? GETPOST('NOTIF_' . $notifiedevent['code'] . '_old_' . $reg[1] . '_key', 'alpha') : $conf->global->{$param};
     $s = '<input type="text" size="32" name="NOTIF_' . $notifiedevent['code'] . '_old_' . $reg[1] . '_key" value="' . dol_escape_htmltag($value) . '">';
     // Do not use type="email" here, we must be able to enter a list of email with , separator.
     $arrayemail = explode(',', $value);
     $showwarning = 0;
     foreach ($arrayemail as $key => $valuedet) {
         $valuedet = trim($valuedet);
         if (!empty($valuedet) && !isValidEmail($valuedet, 1)) {
             $showwarning++;
         }
     }
     if (!empty($conf->global->{$param}) && $showwarning) {
         $s .= ' ' . img_warning($langs->trans("ErrorBadEMail"));
     }
     print $form->textwithpicto($s, $langs->trans("YouCanUseCommaSeparatorForSeveralRecipients") . '<br>' . $langs->trans("YouCanAlsoUseSupervisorKeyword"), 1, 'help', '', 0, 2);
     print '<br>';
 }
 // New entry input fields
 $s = '<input type="text" size="32" name="NOTIF_' . $notifiedevent['code'] . '_new_key" value="">';
 // Do not use type="email" here, we must be able to enter a list of email with , separator.
 print $form->textwithpicto($s, $langs->trans("YouCanUseCommaSeparatorForSeveralRecipients") . '<br>' . $langs->trans("YouCanAlsoUseSupervisorKeyword"), 1, 'help', '', 0, 2);
 print '</td>';
 print '<td>';
 // Notification with threshold
 foreach ($conf->global as $key => $val) {
     if ($val == '' || !preg_match('/^NOTIFICATION_FIXEDEMAIL_' . $notifiedevent['code'] . '_THRESHOLD_HIGHER_(.*)/', $key, $reg)) {
         continue;
     }
     print $langs->trans("AmountHT") . ' >= <input type="text" size="4" name="NOTIF_' . $notifiedevent['code'] . '_old_' . $reg[1] . '_amount" value="' . dol_escape_htmltag($reg[1]) . '">';
     print '<br>';
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:notification.php

示例9: closedir

                        $commande->initAsSpecimen();
                        // Info
                        $htmltooltip = '';
                        $htmltooltip .= '' . $langs->trans("Version") . ': <b>' . $module->getVersion() . '</b><br>';
                        $commande->type = 0;
                        $nextval = $module->getNextValue($mysoc, $commande);
                        if ("{$nextval}" != $langs->trans("NotAvailable")) {
                            $htmltooltip .= '' . $langs->trans("NextValue") . ': ';
                            if ($nextval) {
                                $htmltooltip .= $nextval . '<br>';
                            } else {
                                $htmltooltip .= $langs->trans($module->error) . '<br>';
                            }
                        }
                        print '<td align="center">';
                        print $form->textwithpicto('', $htmltooltip, 1, 0);
                        print '</td>';
                        print "</tr>\n";
                    }
                }
            }
            closedir($handle);
        }
    }
}
print "</table><br>\n";
/*
 * Document templates generators
 */
print_titre($langs->trans("OrdersModelModule"));
// Load array def with activated templates
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:commande.php

示例10:

 print '<td class="liste_titre" align="left" colspan="6">';
 print '&nbsp;' . $langs->trans("ECMSections");
 print '</td></tr>';
 $showonrightsize = '';
 // Auto section
 if (count($sectionauto)) {
     $htmltooltip = $langs->trans("ECMAreaDesc2");
     // Root title line (Automatic section)
     print '<tr>';
     print '<td>';
     print '<table class="nobordernopadding"><tr class="nobordernopadding">';
     print '<td align="left" width="24">';
     print img_picto_common('', 'treemenu/base.gif');
     print '</td><td align="left">';
     $txt = $langs->trans("ECMRoot") . ' (' . $langs->trans("ECMSectionsAuto") . ')';
     print $form->textwithpicto($txt, $htmltooltip, 1, 0);
     print '</td>';
     print '</tr></table>';
     print '</td>';
     print '<td align="right">&nbsp;</td>';
     print '<td align="right">&nbsp;</td>';
     print '<td align="right">&nbsp;</td>';
     print '<td align="right">&nbsp;</td>';
     print '<td align="center">';
     print '</td>';
     print '</tr>';
     $sectionauto = dol_sort_array($sectionauto, 'label', 'ASC', true, false);
     print '<tr>';
     print '<td colspan="6" style="padding-left: 20px">';
     print '<div id="filetreeauto" class="ecmfiletree"><ul class="ecmjqft">';
     $nbofentries = 0;
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:index_auto.php

示例11: price

 // VAT
 print '<tr><td>' . $langs->trans("VATRate") . '</td><td>';
 print $form->load_tva("tva_tx", $object->tva_tx, $mysoc, '', $object->id, $object->tva_npr);
 print '</td></tr>';
 // Price base
 print '<tr><td width="15%">';
 print $langs->trans('PriceBase');
 print '</td>';
 print '<td>';
 print $form->select_PriceBaseType($object->price_base_type, "price_base_type");
 print '</td>';
 print '</tr>';
 // Price
 print '<tr><td width="20%">';
 $text = $langs->trans('SellingPrice');
 print $form->textwithpicto($text, $langs->trans("PrecisionUnitIsLimitedToXDecimals", $conf->global->MAIN_MAX_DECIMALS_UNIT), 1, 1);
 print '</td><td>';
 if ($object->price_base_type == 'TTC') {
     print '<input name="price" size="10" value="' . price($object->price_ttc) . '">';
 } else {
     print '<input name="price" size="10" value="' . price($object->price) . '">';
 }
 print '</td></tr>';
 // Price minimum
 print '<tr><td>';
 $text = $langs->trans('MinPrice');
 print $form->textwithpicto($text, $langs->trans("PrecisionUnitIsLimitedToXDecimals", $conf->global->MAIN_MAX_DECIMALS_UNIT), 1, 1);
 if ($object->price_base_type == 'TTC') {
     print '<td><input name="price_min" size="10" value="' . price($object->price_min_ttc) . '">';
 } else {
     print '<td><input name="price_min" size="10" value="' . price($object->price_min) . '">';
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:price.php

示例12: CheckVAT

            if (empty($conf->global->MAIN_DISABLEVATCHECK))
            {
                $s.=' &nbsp; ';

                if ($conf->use_javascript_ajax)
                {
                    print "\n";
                    print '<script language="JavaScript" type="text/javascript">';
                    print "function CheckVAT(a) {\n";
                    print "newpopup('".DOL_URL_ROOT."/societe/checkvat/checkVatPopup.php?vatNumber='+a,'".dol_escape_js($langs->trans("VATIntraCheckableOnEUSite"))."',500,285);\n";
                    print "}\n";
                    print '</script>';
                    print "\n";
                    $s.='<a href="#" onclick="javascript: CheckVAT( $(\'#tva_intra\').val() );">'.$langs->trans("VATIntraCheck").'</a>';
                    $s = $form->textwithpicto($s,$langs->trans("VATIntraCheckDesc",$langs->trans("VATIntraCheck")),1);
                }
                else
                {
                    $s.='<a href="'.$langs->transcountry("VATIntraCheckURL",$object->id_pays).'" target="_blank">'.img_picto($langs->trans("VATIntraCheckableOnEUSite"),'help').'</a>';
                }
            }
            print $s;
        }
        else
        {
            print '&nbsp;';
        }
        print '</td>';
        print '</tr>';
开发者ID:nrjacker4,项目名称:crm-php,代码行数:29,代码来源:soc.php

示例13: info

 /**
  * Return description of a module
  *
  * @param	Translate	$langs		Object language
  * @return	string      			Description
  */
 function info($langs)
 {
     global $conf, $langs;
     $langs->load("companies");
     $langs->load("errors");
     $form = new Form($db);
     $texte = $this->description . ".<br>\n";
     $texte .= '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
     $texte .= '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
     $texte .= '<input type="hidden" name="action" value="setModuleOptions">';
     $texte .= '<input type="hidden" name="param1" value="COMPANY_ADDON_PDF_ODT_PATH">';
     $texte .= '<table class="nobordernopadding" width="100%">';
     // List of directories area
     $texte .= '<tr><td>';
     $texttitle = $langs->trans("ListOfDirectories");
     $listofdir = explode(',', preg_replace('/[\\r\\n]+/', ',', trim($conf->global->COMPANY_ADDON_PDF_ODT_PATH)));
     $listoffiles = array();
     foreach ($listofdir as $key => $tmpdir) {
         $tmpdir = trim($tmpdir);
         $tmpdir = preg_replace('/DOL_DATA_ROOT/', DOL_DATA_ROOT, $tmpdir);
         if (!$tmpdir) {
             unset($listofdir[$key]);
             continue;
         }
         if (!is_dir($tmpdir)) {
             $texttitle .= img_warning($langs->trans("ErrorDirNotFound", $tmpdir), 0);
         } else {
             $tmpfiles = dol_dir_list($tmpdir, 'files', 0, '\\.odt');
             if (count($tmpfiles)) {
                 $listoffiles = array_merge($listoffiles, $tmpfiles);
             }
         }
     }
     $texthelp = $langs->trans("ListOfDirectoriesForModelGenODT");
     // Add list of substitution keys
     $texthelp .= '<br>' . $langs->trans("FollowingSubstitutionKeysCanBeUsed") . '<br>';
     $texthelp .= $langs->transnoentitiesnoconv("FullListOnOnlineDocumentation");
     // This contains an url, we don't modify it
     $texte .= $form->textwithpicto($texttitle, $texthelp, 1, 'help', '', 1);
     $texte .= '<table><tr><td>';
     $texte .= '<textarea class="flat" cols="60" name="value1">';
     $texte .= $conf->global->COMPANY_ADDON_PDF_ODT_PATH;
     $texte .= '</textarea>';
     $texte .= '</td>';
     $texte .= '<td align="center">&nbsp; ';
     $texte .= '<input type="submit" class="button" value="' . $langs->trans("Modify") . '" name="Button">';
     $texte .= '</td>';
     $texte .= '</tr>';
     $texte .= '</table>';
     // Scan directories
     if (count($listofdir)) {
         $texte .= $langs->trans("NumberOfModelFilesFound") . ': <b>' . count($listoffiles) . '</b>';
     }
     $texte .= '</td>';
     $texte .= '<td valign="top" rowspan="2">';
     $texte .= $langs->trans("ExampleOfDirectoriesForModelGen");
     $texte .= '</td>';
     $texte .= '</tr>';
     /*$texte.= '<tr><td align="center">';
     		$texte.= '<input type="submit" class="button" value="'.$langs->trans("Modify").'" name="Button">';
     		$texte.= '</td>';
     		$texte.= '</tr>';*/
     $texte .= '</table>';
     $texte .= '</form>';
     return $texte;
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:72,代码来源:doc_generic_contract_odt.modules.php

示例14: ProductFournisseur

 print '<td colspan="2">';
 $product_fourn = new ProductFournisseur($db);
 if ($product_fourn->find_min_price_product_fournisseur($object->id) > 0) {
     if ($product_fourn->product_fourn_price_id > 0) {
         print $product_fourn->display_price_product_fournisseur();
     } else {
         print $langs->trans("NotDefined");
     }
 }
 print '</td></tr>';
 // Cost price. Can be used for margin module for option "calculate margin on explicit cost price
 // Accountancy sell code
 print '<tr><td>';
 $textdesc = $langs->trans("CostPriceDescription");
 $textdesc .= "<br>" . $langs->trans("CostPriceUsage");
 $text = $form->textwithpicto($langs->trans("CostPrice"), $textdesc, 1, 'help', '');
 print $form->editfieldkey($text, 'cost_price', $object->cost_price, $object, $user->rights->produit->creer || $user->rights->service->creer, 'amount:6');
 print '</td><td colspan="2">';
 print $form->editfieldval($text, 'cost_price', $object->cost_price, $object, $user->rights->produit->creer || $user->rights->service->creer, 'amount:6');
 print '</td></tr>';
 print '</table>';
 print '</div>';
 print '<div style="clear:both"></div>';
 dol_fiche_end();
 // Form to add or update a price
 if (($action == 'add_price' || $action == 'updateprice') && ($user->rights->produit->creer || $user->rights->service->creer)) {
     $langs->load("suppliers");
     if ($rowid) {
         $object->fetch_product_fournisseur_price($rowid, 1);
         //Ignore the math expression when getting the price
         print load_fiche_titre($langs->trans("ChangeSupplierPrice"));
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:fournisseurs.php

示例15: price

         print price($objp->price_ttc) . ' ' . $langs->trans("TTC");
     } else {
         print price($objp->price) . ' ' . $langs->trans("HT");
     }
     print '</td>';
 }
 // Better buy price
 if ($user->rights->fournisseur->lire) {
     print '<td align="right">';
     if ($objp->minsellprice != '') {
         //print price($objp->minsellprice).' '.$langs->trans("HT");
         if ($product_fourn->find_min_price_product_fournisseur($objp->rowid) > 0) {
             if ($product_fourn->product_fourn_price_id > 0) {
                 $htmltext = $product_fourn->display_price_product_fournisseur();
                 if (!empty($conf->fournisseur->enabled) && $user->rights->fournisseur->lire) {
                     print $form->textwithpicto(price($product_fourn->fourn_unitprice) . ' ' . $langs->trans("HT"), $htmltext);
                 } else {
                     print price($product_fourn->fourn_unitprice) . ' ' . $langs->trans("HT");
                 }
             }
         }
     }
     print '</td>';
 }
 // Show stock
 if (!empty($conf->stock->enabled) && $user->rights->stock->lire && $type != 1) {
     if ($objp->fk_product_type != 1) {
         $product_static->id = $objp->rowid;
         $product_static->load_stock();
         print '<td align="right">';
         print $objp->desiredstock;
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:liste.php


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