本文整理汇总了PHP中osCommerce\OM\Core\HTML::passwordField方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::passwordField方法的具体用法?PHP HTML::passwordField怎么用?PHP HTML::passwordField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类osCommerce\OM\Core\HTML
的用法示例。
在下文中一共展示了HTML::passwordField方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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>
示例2:
<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>
示例3:
<div id="sectionMenu_password">
<div class="infoBox">
<?php
if ($new_customer) {
echo '<h3>' . HTML::icon('new.png') . ' ' . OSCOM::getDef('action_heading_new_customer') . '</h3>';
} else {
echo '<h3>' . HTML::icon('edit.png') . ' ' . $OSCOM_ObjectInfo->getProtected('customers_name') . '</h3>';
}
?>
<fieldset>
<p><label for="password"><?php
echo OSCOM::getDef('field_new_password');
?>
</label><?php
echo HTML::passwordField('password');
?>
</p>
<p><label for="confirmation"><?php
echo OSCOM::getDef('field_new_password_confirmation');
?>
</label><?php
echo HTML::passwordField('confirmation');
?>
</p>
</fieldset>
</div>
</div>
示例4:
?>
</p>
<fieldset>
<p><label for="user_name"><?php
echo OSCOM::getDef('field_username');
?>
</label><?php
echo HTML::inputField('user_name', null, 'tabindex="1"');
?>
</p>
<p><label for="user_password"><?php
echo OSCOM::getDef('field_password');
?>
</label><?php
echo HTML::passwordField('user_password', 'tabindex="2"');
?>
</p>
</fieldset>
<p><?php
echo HTML::button(array('icon' => 'key', 'title' => OSCOM::getDef('button_login')));
?>
</p>
</form>
</div>
<script type="text/javascript">
$('#user_name').focus();
示例5:
?>
</p>
<fieldset>
<p><label for="user_name"><?php
echo OSCOM::getDef('field_username');
?>
</label><?php
echo HTML::inputField('user_name');
?>
</p>
<p><label for="user_password"><?php
echo OSCOM::getDef('field_password');
?>
</label><?php
echo HTML::passwordField('user_password');
?>
</p>
<p><select name="accessModules" id="modulesList"><option value="-1" disabled="disabled">-- Access Modules --</option><option value="0"><?php
echo OSCOM::getDef('global_access');
?>
</option></select></p>
<ul id="accessToModules" class="modulesListing"></ul>
</fieldset>
<p><?php
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>
示例6: testPasswordField
public function testPasswordField()
{
$this->assertEquals('<input type="password" name="password" id="pfPassword" />', HTML::passwordField('password', 'id="pfPassword"'));
}