本文整理汇总了PHP中OSC\OM\HTML::passwordField方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::passwordField方法的具体用法?PHP HTML::passwordField怎么用?PHP HTML::passwordField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OSC\OM\HTML
的用法示例。
在下文中一共展示了HTML::passwordField方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</label>
<div class="col-xs-9">
<?php
echo HTML::passwordField('password_new', NULL, 'required aria-required="true" id="inputPassword" placeholder="' . ENTRY_PASSWORD_NEW_TEXT . '"');
echo FORM_REQUIRED_INPUT;
?>
</div>
</div>
<div class="form-group has-feedback">
<label for="inputConfirmation" class="control-label col-xs-3"><?php
echo ENTRY_PASSWORD_CONFIRMATION;
?>
</label>
<div class="col-xs-9">
<?php
echo HTML::passwordField('password_confirmation', NULL, 'required aria-required="true" id="inputConfirmation" placeholder="' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '"');
echo FORM_REQUIRED_INPUT;
?>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6 text-right pull-right"><?php
echo HTML::button(IMAGE_BUTTON_CONTINUE, 'glyphicon glyphicon-chevron-right', null, 'primary', null, 'btn-success');
?>
</div>
<div class="col-sm-6"><?php
echo HTML::button(IMAGE_BUTTON_BACK, 'glyphicon glyphicon-chevron-left', OSCOM::link('account.php', '', 'SSL'));
?>
示例2:
</label>
<div class="col-sm-9">
<?php
echo HTML::passwordField('password', NULL, 'minlength="' . ENTRY_PASSWORD_MIN_LENGTH . '" required aria-required="true" id="inputPassword" placeholder="' . ENTRY_PASSWORD_TEXT . '"');
echo FORM_REQUIRED_INPUT;
?>
</div>
</div>
<div class="form-group has-feedback">
<label for="inputConfirmation" class="control-label col-sm-3"><?php
echo ENTRY_PASSWORD_CONFIRMATION;
?>
</label>
<div class="col-sm-9">
<?php
echo HTML::passwordField('confirmation', NULL, 'minlength="' . ENTRY_PASSWORD_MIN_LENGTH . '" required aria-required="true" id="inputConfirmation" placeholder="' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '"');
echo FORM_REQUIRED_INPUT;
?>
</div>
</div>
</div>
<div class="text-right">
<?php
echo HTML::button(IMAGE_BUTTON_CONTINUE, 'glyphicon glyphicon-user', null, 'primary', null, 'btn-success btn-block');
?>
</div>
</div>
</form>
示例3:
</label>
<div class="col-xs-8">
<?php
echo HTML::inputField('email_address', NULL, 'autofocus="autofocus" required aria-required="true" id="inputEmail" placeholder="' . ENTRY_EMAIL_ADDRESS_TEXT . '"', 'email');
?>
</div>
</div>
<div class="form-group">
<label for="inputPassword" class="control-label col-xs-4"><?php
echo ENTRY_PASSWORD;
?>
</label>
<div class="col-xs-8">
<?php
echo HTML::passwordField('password', NULL, 'required aria-required="true" id="inputPassword" placeholder="' . ENTRY_PASSWORD_TEXT . '"');
?>
</div>
</div>
<p class="text-right"><?php
echo HTML::button(IMAGE_BUTTON_LOGIN, 'glyphicon glyphicon-log-in', null, 'primary', null, 'btn-success btn-block');
?>
</p>
</form>
<hr>
<p><?php
echo '<a href="' . OSCOM::link('password_forgotten.php', '', 'SSL') . '">' . MODULE_CONTENT_LOGIN_TEXT_PASSWORD_FORGOTTEN . '</a>';
示例4:
<?php
echo HTML::passwordField('password', NULL, 'required aria-required="true" autofocus="autofocus" id="inputPassword" autocomplete="new-password" placeholder="' . OSCOM::getDef('entry_password_text') . '"', 'password');
?>
<?php
echo OSCOM::getDef('form_required_input');
?>
</div>
</div>
<div class="form-group has-feedback">
<label for="inputConfirm" class="control-label col-sm-3"><?php
echo OSCOM::getDef('entry_password_confirmation');
?>
</label>
<div class="col-sm-9">
<?php
echo HTML::passwordField('confirmation', NULL, 'required aria-required="true" id="inputConfirm" autocomplete="new-password" placeholder="' . OSCOM::getDef('entry_password_confirmation_text') . '"', 'password');
?>
<?php
echo OSCOM::getDef('form_required_input');
?>
</div>
</div>
</div>
<div class="buttonSet">
<div class="text-right"><?php
echo HTML::button(OSCOM::getDef('image_button_continue'), 'fa fa-angle-right', null, null, 'btn-success');
?>
</div>
</div>
</div>
示例5: array
case 'delete':
$heading[] = array('text' => HTML::outputProtected($aInfo->user_name));
$contents = array('form' => HTML::form('administrator', OSCOM::link(FILENAME_ADMINISTRATORS, 'aID=' . $aInfo->id . '&action=deleteconfirm')));
$contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
$contents[] = array('text' => '<strong>' . HTML::outputProtected($aInfo->user_name) . '</strong>');
$contents[] = array('text' => HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', null, null, 'btn-danger') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_ADMINISTRATORS), null, 'btn-link'));
break;
}
}
}
} else {
$heading[] = array('text' => OSCOM::getDef('text_info_heading_new_administrator'));
$contents = array('form' => HTML::form('administrator', OSCOM::link(FILENAME_ADMINISTRATORS, 'action=insert'), 'post', 'autocomplete="off"'));
$contents[] = array('text' => OSCOM::getDef('text_info_insert_intro'));
$contents[] = array('text' => OSCOM::getDef('text_info_username') . '<br />' . HTML::inputField('username'));
$contents[] = array('text' => OSCOM::getDef('text_info_password') . '<br />' . HTML::passwordField('password'));
$contents[] = array('text' => HTML::button(OSCOM::getDef('image_save'), 'fa fa-save', null, null, 'btn-success') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_ADMINISTRATORS), null, 'btn-link'));
}
if (tep_not_null($heading) && tep_not_null($contents)) {
$show_listing = false;
echo HTML::panel($heading, $contents, ['type' => 'info']);
}
}
if ($show_listing === true) {
?>
<table class="oscom-table table table-hover">
<thead>
<tr class="info">
<th><?php
echo OSCOM::getDef('table_heading_administrators');
示例6:
<div class="form-group has-feedback">
<label for="userName" class="control-label col-xs-3">Username</label>
<div class="col-xs-9">
<?php
echo HTML::inputField('DB_SERVER_USERNAME', null, 'required aria-required="true" id="userName" placeholder="Username"');
?>
<span class="glyphicon glyphicon-asterisk form-control-feedback inputRequirement"></span>
<span class="help-block">The username used to connect to the database server.</span>
</div>
</div>
<div class="form-group has-feedback">
<label for="passWord" class="control-label col-xs-3">Password</label>
<div class="col-xs-9">
<?php
echo HTML::passwordField('DB_SERVER_PASSWORD', null, 'required aria-required="true" id="passWord"');
?>
<span class="glyphicon glyphicon-asterisk form-control-feedback inputRequirement"></span>
<span class="help-block">The password that is used together with the username to connect to the database server.</span>
</div>
</div>
<div class="form-group has-feedback">
<label for="dbName" class="control-label col-xs-3">Database Name</label>
<div class="col-xs-9">
<?php
echo HTML::inputField('DB_DATABASE', null, 'required aria-required="true" id="dbName" placeholder="Database"');
?>
<span class="glyphicon glyphicon-asterisk form-control-feedback inputRequirement"></span>
<span class="help-block">The name of the database to hold the data in.</span>
</div>
示例7:
?>
<span class="help-block">The address of the database server in the form of a hostname or IP address.</span>
</div>
<div class="form-group has-feedback">
<label for="username">Username</label>
<?php
echo HTML::inputField('DB_SERVER_USERNAME', null, 'required aria-required="true" id="username"');
?>
<span class="help-block">The username used to connect to the database server.</span>
</div>
<div class="form-group">
<label for="password">Password</label>
<?php
echo HTML::passwordField('DB_SERVER_PASSWORD', null, 'id="password"');
?>
<span class="help-block">The password that is used together with the username to connect to the database server.</span>
</div>
<div class="form-group has-feedback">
<label for="dbName">Database Name</label>
<?php
echo HTML::inputField('DB_DATABASE', null, 'required aria-required="true" id="dbName"');
?>
<span class="help-block">The name of the database to hold the data in.</span>
</div>
<div class="form-group">
<label for="dbTablePrefix">Table Prefix</label>
<?php