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


PHP FormCompany::select_localtax方法代码示例

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


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

示例1: elseif

         $s = $form->textwithpicto($s, $langs->trans("VATIntraCheckDesc", $langs->trans("VATIntraCheck")), 1);
     } else {
         $s .= '<a href="' . $langs->transcountry("VATIntraCheckURL", $object->country_id) . '" class="hideonsmartphone" target="_blank">' . img_picto($langs->trans("VATIntraCheckableOnEUSite"), 'help') . '</a>';
     }
 }
 print $s;
 print '</td>';
 print '</tr>';
 // Local Taxes
 //TODO: Place into a function to control showing by country or study better option
 if ($mysoc->localtax1_assuj == "1" && $mysoc->localtax2_assuj == "1") {
     print '<tr><td><label for="localtax1assuj_value">' . $langs->transcountry("LocalTax1IsUsed", $mysoc->country_code) . '</label></td><td>';
     print $form->selectyesno('localtax1assuj_value', $object->localtax1_assuj, 1);
     if (!isOnlyOneLocalTax(1)) {
         print '<span class="cblt1">     ' . $langs->transcountry("Type", $mysoc->country_code) . ': ';
         $formcompany->select_localtax(1, $object->localtax1_value, "lt1");
         print '</span>';
     }
     print '</td><td><label for="localtax2assuj_value">' . $langs->transcountry("LocalTax2IsUsed", $mysoc->country_code) . '</label></td><td>';
     print $form->selectyesno('localtax2assuj_value', $object->localtax2_assuj, 1);
     if (!isOnlyOneLocalTax(2)) {
         print '<span class="cblt2">     ' . $langs->transcountry("Type", $mysoc->country_code) . ': ';
         $formcompany->select_localtax(2, $object->localtax2_value, "lt2");
         print '</span>';
     }
     print '</td></tr>';
 } elseif ($mysoc->localtax1_assuj == "1" && $mysoc->localtax2_assuj != "1") {
     print '<tr><td><label for="localtax1assuj_value">' . $langs->transcountry("LocalTax1IsUsed", $mysoc->country_code) . '</label></td><td colspan="3">';
     print $form->selectyesno('localtax1assuj_value', $object->localtax1_assuj, 1);
     if (!isOnlyOneLocalTax(1)) {
         print '<span class="cblt1">     ' . $langs->transcountry("Type", $mysoc->country_code) . ': ';
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:soc.php

示例2: array

 print '<tr class="liste_titre">';
 print '<td>' . $langs->transcountry("LocalTax1Management", $mysoc->country_code) . '</td><td>' . $langs->trans("Description") . '</td>';
 print '<td align="right">&nbsp;</td>';
 print "</tr>\n";
 $var = true;
 $var = !$var;
 // Note: When option is not set, it must not appears as set on on, because there is no default value for this option
 print "<tr " . $bc[$var] . "><td width=\"140\"><input type=\"radio\" name=\"optionlocaltax1\" id=\"lt1\" value=\"localtax1on\"" . ($conf->global->FACTURE_LOCAL_TAX1_OPTION == '1' || $conf->global->FACTURE_LOCAL_TAX1_OPTION == "localtax1on" ? " checked" : "") . "> " . $langs->transcountry("LocalTax1IsUsed", $mysoc->country_code) . "</td>";
 print '<td colspan="2">';
 print '<table class="nobordernopadding">';
 print "<tr><td><label for=\"lt1\">" . $langs->transcountry("LocalTax1IsUsedDesc", $mysoc->country_code) . "</label></td></tr>";
 $example = $langs->transcountry("LocalTax1IsUsedExample", $mysoc->country_code);
 print $example != "LocalTax1IsUsedExample" ? "<tr><td><i>" . $langs->trans("Example") . ': ' . $langs->transcountry("LocalTax1IsUsedExample", $mysoc->country_code) . "</i></td></tr>\n" : "";
 if (!isOnlyOneLocalTax(1)) {
     print '<tr><td align="left"><label for="lt1">' . $langs->trans("LTRate") . '</label>: ';
     $formcompany->select_localtax(1, $conf->global->MAIN_INFO_VALUE_LOCALTAX1, "lt1");
     print '</td></tr>';
 }
 $opcions = array($langs->trans("CalcLocaltax1") . ' ' . $langs->trans("CalcLocaltax1Desc"), $langs->trans("CalcLocaltax2") . ' - ' . $langs->trans("CalcLocaltax2Desc"), $langs->trans("CalcLocaltax3") . ' - ' . $langs->trans("CalcLocaltax3Desc"));
 print '<tr><td align="left"></label for="clt1">' . $langs->trans("CalcLocaltax") . '</label>: ';
 print $form->selectarray("clt1", $opcions, $conf->global->MAIN_INFO_LOCALTAX_CALC1);
 print '</td></tr>';
 print "</table>";
 print "</td></tr>\n";
 $var = !$var;
 print "<tr " . $bc[$var] . "><td width=\"140\"><input type=\"radio\" name=\"optionlocaltax1\" id=\"nolt1\" value=\"localtax1off\"" . (empty($conf->global->FACTURE_LOCAL_TAX1_OPTION) || $conf->global->FACTURE_LOCAL_TAX1_OPTION == "localtax1off" ? " checked" : "") . "> " . $langs->transcountry("LocalTax1IsNotUsed", $mysoc->country_code) . "</td>";
 print '<td colspan="2">';
 print "<table>";
 print "<tr><td><label for=\"nolt1\">" . $langs->transcountry("LocalTax1IsNotUsedDesc", $mysoc->country_code) . "</label></td></tr>";
 $example = $langs->transcountry("LocalTax1IsNotUsedExample", $mysoc->country_code);
 print $example != "LocalTax1IsNotUsedExample" ? "<tr><td><i>" . $langs->trans("Example") . ': ' . $langs->transcountry("LocalTax1IsNotUsedExample", $mysoc->country_code) . "</i></td></tr>\n" : "";
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:company.php


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