当前位置: 首页>>代码示例>>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;未经允许,请勿转载。