public static function execute(ApplicationAbstract $application) { $OSCOM_Service = Registry::get('Service'); $OSCOM_Breadcrumb = Registry::get('Breadcrumb'); $OSCOM_Template = Registry::get('Template'); $OSCOM_MessageStack = Registry::get('MessageStack'); if ($OSCOM_Service->isStarted('Breadcrumb')) { $OSCOM_Breadcrumb->add(OSCOM::getDef('breadcrumb_address_book_add_entry'), OSCOM::getLink(null, null, 'AddressBook&Create', 'SSL')); } $application->setPageTitle(OSCOM::getDef('address_book_add_entry_heading')); $application->setPageContent('address_book_process.php'); $OSCOM_Template->addJavascriptPhpFilename(OSCOM::BASE_DIRECTORY . 'Core/Site/Shop/assets/form_check.js.php'); if (AddressBook::numberOfEntries() >= MAX_ADDRESS_BOOK_ENTRIES) { $OSCOM_MessageStack->add('AddressBook', OSCOM::getDef('error_address_book_full')); $application->setPageTitle(OSCOM::getDef('address_book_heading')); $application->setPageContent('address_book.php'); return true; } }
<td width="10"> </td> </tr> <?php $radio_buttons++; } ?> </table> </div> </div> <?php } } if (!$OSCOM_Customer->isLoggedOn() || AddressBook::numberOfEntries() < MAX_ADDRESS_BOOK_ENTRIES) { ?> <div class="moduleBox"> <em style="float: right; margin-top: 10px;"><?php echo OSCOM::getDef('form_required_information'); ?> </em> <h6><?php echo OSCOM::getDef('new_billing_address_title'); ?> </h6> <div class="content"> <?php
if (AddressBook::numberOfEntries() >= MAX_ADDRESS_BOOK_ENTRIES) { $OSCOM_MessageStack->add('AddressBook', OSCOM::getDef('error_address_book_full')); } } ?> <h1><?php echo $OSCOM_Template->getPageTitle(); ?> </h1> <?php if ($OSCOM_MessageStack->exists('AddressBook')) { echo $OSCOM_MessageStack->get('AddressBook'); } if ($OSCOM_Customer->hasDefaultAddress() === false || isset($_GET['Create']) && AddressBook::numberOfEntries() < MAX_ADDRESS_BOOK_ENTRIES || isset($osC_oiAddress) && !empty($osC_oiAddress)) { ?> <form name="address_book" action="<?php echo OSCOM::getLink(null, null, 'AddressBook&' . (isset($_GET['Edit']) ? 'Edit=' . $_GET['Edit'] : 'Create') . '&Process', 'SSL'); ?> " method="post" onsubmit="return check_form(address_book);"> <div class="moduleBox"> <em style="float: right; margin-top: 10px;"><?php echo OSCOM::getDef('form_required_information'); ?> </em> <h6><?php echo OSCOM::getDef('address_book_new_address_title');
?> <?php echo osc_image(DIR_WS_IMAGES . $OSCOM_Template->getPageImage(), $OSCOM_Template->getPageTitle(), HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT, 'id="pageIcon"'); ?> <h1><?php echo $OSCOM_Template->getPageTitle(); ?> </h1> <?php if ($OSCOM_MessageStack->exists('AddressBook')) { echo $OSCOM_MessageStack->get('AddressBook'); } if ($OSCOM_Customer->hasDefaultAddress() === false || isset($_GET['Create']) && AddressBook::numberOfEntries() < MAX_ADDRESS_BOOK_ENTRIES || isset($Qentry) && $Qentry->numberOfRows() === 1) { ?> <form name="address_book" action="<?php echo OSCOM::getLink(null, null, 'AddressBook&' . (isset($_GET['Edit']) ? 'Edit=' . $_GET['Edit'] : 'Create') . '&Process', 'SSL'); ?> " method="post" onsubmit="return check_form(address_book);"> <div class="moduleBox"> <em style="float: right; margin-top: 10px;"><?php echo OSCOM::getDef('form_required_information'); ?> </em> <h6><?php echo OSCOM::getDef('address_book_new_address_title');