Пример #1
0
  <form name="abDelete" action="<?php 
echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&cID=' . $_GET['cID'] . '&search=' . $_GET['search'] . '&page=' . $_GET['page'] . '&abID=' . $osC_ObjectInfo_AddressBook->get('address_book_id') . '&action=deleteAddress');
?>
" method="post">

<?php 
if ($osC_ObjectInfo_Customer->get('customers_default_address_id') == $osC_ObjectInfo_AddressBook->get('address_book_id')) {
    ?>

  <p><?php 
    echo '<b>' . $osC_Language->get('delete_warning_primary_address_book_entry') . '</b>';
    ?>
</p>

  <p><?php 
    echo osC_Address::format($osC_ObjectInfo_AddressBook->getAll(), ', ');
    ?>
</p>

  <p align="center"><?php 
    echo '<input type="button" value="' . $osC_Language->get('button_back') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&cID=' . $_GET['cID'] . '&search=' . $_GET['search'] . '&page=' . $_GET['page'] . '&action=save&tabIndex=tabAddressBook') . '\';" class="operationButton" />';
    ?>
</p>

<?php 
} else {
    ?>

  <p><?php 
    echo $osC_Language->get('introduction_delete_address_book_entry');
    ?>