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


PHP FormCompany::select_juridicalstatus方法代码示例

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


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

示例1: empty

 print $form->selectarray("typent_id", $formcompany->typent_array(0), $object->typent_id, 0, 0, 0, '', 0, 0, 0, empty($conf->global->SOCIETE_SORT_ON_TYPEENT) ? 'ASC' : $conf->global->SOCIETE_SORT_ON_TYPEENT);
 if ($user->admin) {
     print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
 }
 print '</td>';
 print '<td><label for="effectif_id">' . $langs->trans("Staff") . '</label></td><td>';
 print $form->selectarray("effectif_id", $formcompany->effectif_array(0), $object->effectif_id);
 if ($user->admin) {
     print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
 }
 print '</td></tr>';
 // Legal Form
 print '<tr><td><label for="legal_form">' . $langs->trans('JuridicalStatus') . '</label></td>';
 print '<td colspan="3" class="maxwidthonsmartphone">';
 if ($object->country_id) {
     print $formcompany->select_juridicalstatus($object->forme_juridique_code, $object->country_code);
 } else {
     print $countrynotdefined;
 }
 print '</td></tr>';
 // Capital
 print '<tr><td><label for="capital">' . $langs->trans('Capital') . '</label></td>';
 print '<td colspan="3"><input type="text" name="capital" id="capital" size="10" value="' . $object->capital . '"> ';
 print '<span class="hideonsmartphone">' . $langs->trans("Currency" . $conf->currency) . '</span></td></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>' . $langs->transcountry("LocalTax1IsUsed", $mysoc->country_code) . '</td><td>';
     print $form->selectyesno('localtax1assuj_value', 0, 1);
     print '</td><td>' . $langs->transcountry("LocalTax2IsUsed", $mysoc->country_code) . '</td><td>';
     print $form->selectyesno('localtax2assuj_value', 0, 1);
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:soc.php

示例2:

 print '<tr class="liste_titre"><td>' . $langs->trans("CompanyIds") . '</td><td>' . $langs->trans("Value") . '</td></tr>';
 $var = true;
 $langs->load("companies");
 // Managing Director(s)
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td width="35%"><label for="director">' . $langs->trans("ManagingDirectors") . '</label></td><td>';
 print '<input name="MAIN_INFO_SOCIETE_MANAGERS" id="director" size="80" value="' . $conf->global->MAIN_INFO_SOCIETE_MANAGERS . '"></td></tr>';
 // Capital
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td width="35%"><label for="capital">' . $langs->trans("Capital") . '</label></td><td>';
 print '<input name="capital" id="capital" size="20" value="' . $conf->global->MAIN_INFO_CAPITAL . '"></td></tr>';
 // Forme juridique
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td><label for="forme_juridique_code">' . $langs->trans("JuridicalStatus") . '</label></td><td>';
 if ($mysoc->country_code) {
     print $formcompany->select_juridicalstatus($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE, $mysoc->country_code, '', 'forme_juridique_code');
 } else {
     print $countrynotdefined;
 }
 print '</td></tr>';
 // ProfID1
 if ($langs->transcountry("ProfId1", $mysoc->country_code) != '-') {
     $var = !$var;
     print '<tr ' . $bc[$var] . '><td width="35%"><label for="profid1">' . $langs->transcountry("ProfId1", $mysoc->country_code) . '</label></td><td>';
     if (!empty($mysoc->country_code)) {
         print '<input name="siren" id="profid1" size="20" value="' . (!empty($conf->global->MAIN_INFO_SIREN) ? $conf->global->MAIN_INFO_SIREN : '') . '">';
     } else {
         print $countrynotdefined;
     }
     print '</td></tr>';
 }
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:company.php


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