當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FormOther::form_address方法代碼示例

本文整理匯總了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&amp;socid=' . $object->socid . '&amp;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;
     }
開發者ID:nrjacker4,項目名稱:crm-php,代碼行數:31,代碼來源:contact.php

示例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&amp;socid=' . $object->socid . '&amp;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;
     }
開發者ID:Samara94,項目名稱:dolibarr,代碼行數:31,代碼來源:contact.php


注:本文中的FormOther::form_address方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。