?> </h6> <div class="content"> <p><?php echo OSCOM::getDef('login_returning_customer_text'); ?> </p> <ol> <li><?php echo HTML::label(OSCOM::getDef('field_customer_email_address'), 'email_address') . HTML::inputField('email_address'); ?> </li> <li><?php echo HTML::label(OSCOM::getDef('field_customer_password'), 'password') . HTML::passwordField('password'); ?> </li> </ol> <p><?php echo sprintf(OSCOM::getDef('login_returning_customer_password_forgotten'), OSCOM::getLink(null, null, 'PasswordForgotten', 'SSL')); ?> </p> <p align="right"><?php echo HTML::button(array('icon' => 'key', 'title' => OSCOM::getDef('button_sign_in'))); ?> </p> </div>
echo OSCOM::getLink(null, null, 'Contact&Process'); ?> " method="post"> <div class="moduleBox"> <div class="content"> <ol> <li><?php echo HTML::label(OSCOM::getDef('contact_name_title'), 'name') . HTML::inputField('name'); ?> </li> <li><?php echo HTML::label(OSCOM::getDef('contact_email_address_title'), 'email') . HTML::inputField('email'); ?> </li> <li><?php echo HTML::label(OSCOM::getDef('contact_enquiry_title'), 'enquiry') . HTML::textareaField('enquiry', null, 50, 15); ?> </li> </ol> </div> </div> <div class="submitFormButtons" style="text-align: right;"> <?php echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue'))); ?> </div> </form>
?> </h6> <div class="content"> <ol> <?php if ($OSCOM_Customer->isLoggedOn() === false) { ?> <li><?php echo HTML::label(ENTRY_NAME, 'customer_name') . HTML::inputField('customer_name'); ?> </li> <li><?php echo HTML::label(OSCOM::getDef('field_customer_email_address'), 'customer_email_address') . HTML::inputField('customer_email_address'); ?> </li> <?php } ?> <li><?php echo HTML::textareaField('review', null, null, 15, 'style="width: 98%;"'); ?> </li> <li><?php echo OSCOM::getDef('field_review_rating') . ' ' . OSCOM::getDef('review_lowest_rating_title') . ' ' . HTML::radioField('rating', array('1', '2', '3', '4', '5')) . ' ' . OSCOM::getDef('review_highest_rating_title'); ?> </li>
<?php if (ACCOUNT_TELEPHONE > -1) { ?> <li><?php echo HTML::label(OSCOM::getDef('field_customer_telephone_number'), 'telephone', null, ACCOUNT_TELEPHONE > 0) . HTML::inputField('telephone', isset($osC_oiAddress) && $osC_oiAddress->exists('telephone') ? $osC_oiAddress->get('telephone') : null); ?> </li> <?php } if (ACCOUNT_FAX > -1) { ?> <li><?php echo HTML::label(OSCOM::getDef('field_customer_fax_number'), 'fax', null, ACCOUNT_FAX > 0) . HTML::inputField('fax', isset($osC_oiAddress) && $osC_oiAddress->exists('fax') ? $osC_oiAddress->get('fax') : null); ?> </li> <?php } if ($OSCOM_Customer->hasDefaultAddress() && (isset($_GET['Edit']) && $OSCOM_Customer->getDefaultAddressID() != $_GET['Edit'] || isset($_GET['Create']))) { ?> <li><?php echo HTML::checkboxField('primary', array(array('id' => 'on', 'text' => OSCOM::getDef('set_as_primary'))), false); ?> </li> <?php }
</li> <?php if (ACCOUNT_DATE_OF_BIRTH == '1') { ?> <li><?php echo HTML::label(OSCOM::getDef('field_customer_date_of_birth'), 'dob_days', null, true) . ' ' . HTML::dateSelectMenu('dob', array('year' => $Qaccount->value('customers_dob_year'), 'month' => $Qaccount->value('customers_dob_month'), 'date' => $Qaccount->value('customers_dob_date')), false, null, null, date('Y') - 1901, -5); ?> </li> <?php } ?> <li><?php echo HTML::label(OSCOM::getDef('field_customer_email_address'), 'email_address', null, true) . ' ' . HTML::inputField('email_address', $Qaccount->value('customers_email_address')); ?> </li> </ol> </div> </div> <div class="submitFormButtons" style="text-align: right;"> <?php echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue'))); ?> </div> </form>
<li><?php echo HTML::label(OSCOM::getDef('field_customer_newsletter'), 'newsletter') . HTML::checkboxField('newsletter', '1'); ?> </li> <?php } ?> <li><?php echo HTML::label(OSCOM::getDef('field_customer_password'), 'password', null, true) . HTML::passwordField('password'); ?> </li> <li><?php echo HTML::label(OSCOM::getDef('field_customer_password_confirmation'), 'confirmation', null, true) . HTML::passwordField('confirmation'); ?> </li> </ol> </div> </div> <?php if (DISPLAY_PRIVACY_CONDITIONS == '1') { ?> <div class="moduleBox"> <h6><?php echo OSCOM::getDef('create_account_terms_heading'); ?> </h6>
</div> <div class="moduleBox"> <h6><?php echo OSCOM::getDef('friend_details_title'); ?> </h6> <div class="content"> <ol> <li><?php echo HTML::label(OSCOM::getDef('field_tell_a_friend_friends_name'), 'to_name', null, true) . HTML::inputField('to_name'); ?> </li> <li><?php echo HTML::label(OSCOM::getDef('field_tell_a_friend_friends_email_address'), 'to_email_address', null, true) . HTML::inputField('to_email_address'); ?> </li> </ol> </div> </div> <div class="moduleBox"> <h6><?php echo OSCOM::getDef('tell_a_friend_message'); ?> </h6> <div class="content"> <ol> <li><?php
} echo HTML::selectMenu('manufacturer', $manufacturers_array); ?> </li> <li><?php echo HTML::label(OSCOM::getDef('field_search_price_from'), 'pfrom') . HTML::inputField('pfrom'); ?> </li> <li><?php echo HTML::label(OSCOM::getDef('field_search_price_to'), 'pto') . HTML::inputField('pto'); ?> </li> <li><?php echo HTML::label(OSCOM::getDef('field_search_date_from'), 'datefrom_days') . HTML::dateSelectMenu('datefrom', null, false, null, null, date('Y') - $OSCOM_Search->getMinYear(), 0); ?> </li> <li><?php echo HTML::label(OSCOM::getDef('field_search_date_to'), 'dateto_days') . HTML::dateSelectMenu('dateto', null, null, null, null, date('Y') - $OSCOM_Search->getMaxYear(), 0); ?> </li> </ol> </div> </div> <?php echo HTML::hiddenSessionIDField(); ?> </form>
<div class="moduleBox"> <h6><?php echo OSCOM::getDef('newsletter_subscriptions_heading'); ?> </h6> <div class="content"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="30"><?php echo HTML::checkboxField('newsletter_general', '1', $Qnewsletter->value('customers_newsletter')); ?> </td> <td><b><?php echo HTML::label(OSCOM::getDef('newsletter_general'), 'newsletter_general'); ?> </b></td> </tr> <tr> <td width="30"> </td> <td><?php echo OSCOM::getDef('newsletter_general_description'); ?> </td> </tr> </table> </div> </div> <div class="submitFormButtons" style="text-align: right;">
</tr> <?php $Qproducts = $OSCOM_Customer->getProductNotifications(); $counter = 0; while ($Qproducts->next()) { $counter++; ?> <tr> <td width="30"><?php echo HTML::checkboxField('products[' . $counter . ']', $Qproducts->valueInt('products_id'), true); ?> </td> <td><b><?php echo HTML::label($Qproducts->value('products_name'), 'products[' . $counter . ']'); ?> </b></td> </tr> <?php } ?> </table> <?php } else { echo OSCOM::getDef('newsletter_product_notifications_products_none'); } ?>
public function testLabel() { $this->assertEquals('<label for="firstname">First Name</label>', HTML::label('First Name', 'firstname')); }