本文整理汇总了PHP中FormCompany::select_forme_juridique方法的典型用法代码示例。如果您正苦于以下问题:PHP FormCompany::select_forme_juridique方法的具体用法?PHP FormCompany::select_forme_juridique怎么用?PHP FormCompany::select_forme_juridique使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormCompany
的用法示例。
在下文中一共展示了FormCompany::select_forme_juridique方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
// Type - Size
print '<tr><td>'.$langs->trans("ThirdPartyType").'</td><td>'."\n";
print $form->selectarray("typent_id",$formcompany->typent_array(0), $object->typent_id);
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
print '</td>';
print '<td>'.$langs->trans("Staff").'</td><td>';
print $form->selectarray("effectif_id",$formcompany->effectif_array(0), $object->effectif_id);
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
print '</td></tr>';
// Legal Form
print '<tr><td>'.$langs->trans('JuridicalStatus').'</td>';
print '<td colspan="3">';
if ($object->country_id)
{
$formcompany->select_forme_juridique($object->forme_juridique_code,$object->country_code);
}
else
{
print $countrynotdefined;
}
print '</td></tr>';
// Capital
print '<tr><td>'.$langs->trans('Capital').'</td><td colspan="3"><input type="text" name="capital" size="10" value="'.$object->capital.'"> '.$langs->trans("Currency".$conf->currency).'</td></tr>';
// Local Taxes
// TODO add specific function by country
if($mysoc->country_code=='ES')
{
if($mysoc->localtax1_assuj=="1" && $mysoc->localtax2_assuj=="1")
示例2:
print '</table>';
print '<br>';
// Identifiants de la societe (propre au pays)
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre"><td>' . $langs->trans("CompanyIds") . '</td><td>' . $langs->trans("Value") . '</td></tr>';
$var = true;
$langs->load("companies");
// Capital
$var = !$var;
print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("Capital") . '</td><td>';
print '<input name="capital" size="20" value="' . $conf->global->MAIN_INFO_CAPITAL . '"></td></tr>';
// Forme juridique
$var = !$var;
print '<tr ' . $bc[$var] . '><td>' . $langs->trans("JuridicalStatus") . '</td><td>';
if ($mysoc->country_code) {
$formcompany->select_forme_juridique($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE, $mysoc->country_code);
} else {
print $countrynotdefined;
}
print '</td></tr>';
// ProfID1
if ($langs->transcountry("ProfId1", $mysoc->country_code) != '-') {
$var = !$var;
print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->transcountry("ProfId1", $mysoc->country_code) . '</td><td>';
if (!empty($mysoc->country_code)) {
print '<input name="siren" size="20" value="' . (!empty($conf->global->MAIN_INFO_SIREN) ? $conf->global->MAIN_INFO_SIREN : '') . '">';
} else {
print $countrynotdefined;
}
print '</td></tr>';
}
示例3:
print '<tr><td>' . $langs->trans("ThirdPartyType") . '</td><td>' . "\n";
print $form->selectarray("typent_id", $formcompany->typent_array(0), $object->typent_id);
if ($user->admin)
print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"), 1);
print '</td>';
print '<td>' . $langs->trans("Staff") . '</td><td>';
print $form->selectarray("effectif_id", $formcompany->effectif_array(0), $object->effectif_id);
if ($user->admin)
print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"), 1);
print '</td></tr>';
// Legal Form
print '<tr><td>' . $langs->trans('JuridicalStatus') . '</td>';
print '<td colspan="3">';
if ($object->country_id) {
$formcompany->select_forme_juridique($object->forme_juridique_code, $object->country_id);
} else {
print $countrynotdefined;
}
print '</td></tr>';
// Capital
print '<tr><td>' . $langs->trans('Capital') . '</td><td colspan="3"><input type="text" name="capital" size="10" value="' . $object->capital . '"> ' . $langs->trans("Currency" . $conf->currency) . '</td></tr>';
// Local Taxes
// TODO add specific function by country
if ($mysoc->country_id == 'ES') {
if ($mysoc->localtax1_assuj == "1" && $mysoc->localtax2_assuj == "1") {
print '<tr><td>' . $langs->trans("LocalTax1IsUsedES") . '</td><td>';
print $form->selectyesno('localtax1assuj_value', 0, 1);
print '</td><td>' . $langs->trans("LocalTax2IsUsedES") . '</td><td>';
示例4:
// Type - Size
print '<tr><td>'.$langs->trans("ThirdPartyType").'</td><td>'."\n";
print $form->selectarray("typent_id",$formcompany->typent_array(0), $object->typent_id);
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
print '</td>';
print '<td>'.$langs->trans("Staff").'</td><td>';
print $form->selectarray("effectif_id",$formcompany->effectif_array(0), $object->effectif_id);
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
print '</td></tr>';
// Legal Form
print '<tr><td>'.$langs->trans('JuridicalStatus').'</td>';
print '<td colspan="3">';
if ($object->pays_id)
{
$formcompany->select_forme_juridique($object->forme_juridique_code,$object->pays_code);
}
else
{
print $countrynotdefined;
}
print '</td></tr>';
// Capital
print '<tr><td>'.$langs->trans('Capital').'</td><td colspan="3"><input type="text" name="capital" size="10" value="'.$object->capital.'"> '.$langs->trans("Currency".$conf->monnaie).'</td></tr>';
// Local Taxes
// TODO add specific function by country
if($mysoc->pays_code=='ES')
{
if($mysoc->localtax1_assuj=="1" && $mysoc->localtax2_assuj=="1")