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


PHP HTML::label方法代碼示例

本文整理匯總了PHP中osCommerce\OM\Core\HTML::label方法的典型用法代碼示例。如果您正苦於以下問題:PHP HTML::label方法的具體用法?PHP HTML::label怎麽用?PHP HTML::label使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在osCommerce\OM\Core\HTML的用法示例。


在下文中一共展示了HTML::label方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: sprintf

?>
</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>
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:30,代碼來源:login.php

示例2:

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>
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:30,代碼來源:contact.php

示例3: array

?>
</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>
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:31,代碼來源:reviews_write.php

示例4: isset

<?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 
}
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:31,代碼來源:address_book_details.php

示例5: array

</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>
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:30,代碼來源:edit.php

示例6:

      <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>
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:30,代碼來源:create.php

示例7:

</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 
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:31,代碼來源:tell_a_friend.php

示例8: date

}
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>
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:30,代碼來源:main.php

示例9:

<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">&nbsp;</td>
        <td><?php 
echo OSCOM::getDef('newsletter_general_description');
?>
</td>
      </tr>
    </table>
  </div>
</div>

<div class="submitFormButtons" style="text-align: right;">
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:30,代碼來源:newsletters.php

示例10: while

      </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');
    }
    ?>
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:31,代碼來源:notifications.php

示例11: testLabel

 public function testLabel()
 {
     $this->assertEquals('<label for="firstname">First Name</label>', HTML::label('First Name', 'firstname'));
 }
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:4,代碼來源:HTMLTest.php


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