本文整理汇总了PHP中FormOther::form_address方法的典型用法代码示例。如果您正苦于以下问题:PHP FormOther::form_address方法的具体用法?PHP FormOther::form_address怎么用?PHP FormOther::form_address使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormOther
的用法示例。
在下文中一共展示了FormOther::form_address方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
print "<tr><td>" . $langs->trans("Company") . "</td>";
print '<td colspan="3">' . $object->client->getNomUrl(1) . '</td></tr>';
// Delivery address
if ($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) {
print '<tr><td>';
print '<table class="nobordernopadding" width="100%"><tr><td>';
print $langs->trans('DeliveryAddress');
print '</td>';
if ($action != 'editdelivery_address' && $object->brouillon) {
print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editdelivery_address&socid=' . $object->socid . '&id=' . $object->id . '">' . img_edit($langs->transnoentitiesnoconv('SetDeliveryAddress'), 1) . '</a></td>';
}
print '</tr></table>';
print '</td><td colspan="3">';
if ($action == 'editdelivery_address') {
$formother->form_address($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->fk_delivery_address, $object->socid, 'fk_address', 'propal', $object->id);
} else {
$formother->form_address($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->fk_delivery_address, $object->socid, 'none', 'propal', $object->id);
}
print '</td></tr>';
}
print "</table>";
print '</div>';
print '<br>';
// Contacts lines (modules that overwrite templates must declare this into descriptor)
$dirtpls = array_merge($conf->modules_parts['tpl'], array('/core/tpl'));
foreach ($dirtpls as $reldir) {
$res = @(include dol_buildpath($reldir . '/contacts.tpl.php'));
if ($res) {
break;
}
示例2: GETPOST
}
print "<tr><td>" . $langs->trans("Company") . "</td>";
print '<td colspan="3">' . $object->client->getNomUrl(1) . '</td></tr>';
// Delivery address
if (!empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT)) {
print '<tr><td>';
print '<table class="nobordernopadding" width="100%"><tr><td>';
print $langs->trans('DeliveryAddress');
print '</td>';
if ($action != 'editdelivery_address' && $object->brouillon) {
print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editdelivery_address&socid=' . $object->socid . '&id=' . $object->id . '">' . img_edit($langs->transnoentitiesnoconv('SetDeliveryAddress'), 1) . '</a></td>';
}
print '</tr></table>';
print '</td><td colspan="3">';
if ($action == 'editdelivery_address') {
$formother->form_address($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->fk_delivery_address, GETPOST('socid', 'int'), 'fk_address', 'commande', $object->id);
} else {
$formother->form_address($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->fk_delivery_address, GETPOST('socid', 'int'), 'none', 'commande', $object->id);
}
print '</td></tr>';
}
print "</table>";
print '</div>';
print '<br>';
// Contacts lines (modules that overwrite templates must declare this into descriptor)
$dirtpls = array_merge($conf->modules_parts['tpl'], array('/core/tpl'));
foreach ($dirtpls as $reldir) {
$res = @(include dol_buildpath($reldir . '/contacts.tpl.php'));
if ($res) {
break;
}