当前位置: 首页>>代码示例>>PHP>>正文


PHP input_password_tag函数代码示例

本文整理汇总了PHP中input_password_tag函数的典型用法代码示例。如果您正苦于以下问题:PHP input_password_tag函数的具体用法?PHP input_password_tag怎么用?PHP input_password_tag使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了input_password_tag函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: backend_input

function backend_input($name, $input = null, $options = array(), $methode = null)
{
    $code = getDivLabel($options, $name);
    if ($options['validate']) {
        $errSpan = "<span id='" . $name . "Error'></span>";
    }
    if ($options['password']) {
        $code .= input_password_tag($name, getVal($input, $methode, $name), clearOptions($options));
    } else {
        $code .= input_tag($name, getVal($input, $methode, $name), clearOptions($options));
    }
    if ($name == "attrRewriteUrl") {
        $code .= ' <img align="absbottom" src="/images/btn_generate.gif" onClick="generateUrl(\'attrRewriteUrl\', \'attrLabel\');"/>';
    }
    $code .= $errSpan;
    return $code;
}
开发者ID:kotow,项目名称:work,代码行数:17,代码来源:BackendFormHelper.php

示例2: label_for

    echo '<span class="form-error">' . $sf_request->getError('phone') . '</span>';
}
?>
<br />
      <hr />
      <?php 
if ($sf_request->hasError('profile_password')) {
    echo '<span class="form-error">' . $sf_request->getError('profile_password') . '</span>' . '<span class="form-error">' . $sf_request->getError('profile_password_confirm') . '</span>';
}
?>
      <?php 
echo label_for('profile_password', __('Password')), input_password_tag('profile_password');
?>
<br />
      <?php 
echo label_for('profile_password_confirm', __('Confirm Password')), input_password_tag('profile_password_confirm');
?>
<br />
      <?php 
echo submit_tag(__('Save Changes'), array('class' => 'btn', 'style' => 'margin-top:6px;'));
?>
    </form>
  </div>
</div>       
<hr class="clear" />

<div class="form-holder-blue" style="width:35%;">
  <div class="blue-shadow"><div class="blue-title blue-content" >External Services</div></div>
  
  <div class="blue-shadow" id="external_services">
    <?php 
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:_profile_edit.php

示例3: form_error

    
        <div class="row">
            <?php 
echo form_error('login');
?>
            <label for="login">Login: </label>
            <?php 
echo input_tag('login');
?>
        </div>
        
        <div class="row">
            <?php 
echo form_error('password');
?>
            <label for="password">Hasło: </label>
            <?php 
echo input_password_tag('password');
?>
        </div>
    </fieldset>
    
    <?php 
echo submit_tag('Dalej', array('class' => 'submit'));
?>
    <?php 
echo button_to('Powrót', $sf_request->getReferer(), array('class' => 'submit'));
?>
</form>
<?php 
include_partial('global/page_footer');
开发者ID:noose,项目名称:Planeta,代码行数:30,代码来源:verificationForm.php

示例4: form_error

 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('usuario{newpassword}')) {
    ?>
    <?php 
    echo form_error('usuario{newpassword}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

	<?php 
echo input_password_tag('usuario[newpassword]', '');
?>
  <?php 
/*$value = get_partial('newpassword', array('type' => 'edit', 'usuario' => $usuario)); echo $value ? $value : '&nbsp;' */
?>
  <div class="sf_admin_edit_help"><?php 
echo __('Introduce una contraseña para modificar su valor o dejalo vacío para mantener la contraseña actual');
?>
</div>  </div>
</div>

<div class="form-row">
  <?php 
echo label_for('usuario[grupos]', __($labels['usuario{grupos}']), '');
?>
  <div class="content<?php 
开发者ID:Esleelkartea,项目名称:legedia-ESLE,代码行数:31,代码来源:_edit_form_acceso.php

示例5: array

$t->is(input_tag('name', null, array('type' => 'password')), '<input type="password" name="name" id="name" value="" />', 'input_tag() can override the "type" attribute');
$t->is(input_tag('name', null, array('id' => 'foo')), '<input type="text" name="name" id="foo" value="" />', 'input_tag() can override the "id" attribute');
// input_hidden_tag()
$t->diag('input_hidden_tag()');
$t->is(input_hidden_tag('name'), '<input type="hidden" name="name" id="name" value="" />', 'input_hidden_tag() takes a name as its first argument');
$t->is(input_hidden_tag('name', 'foo'), '<input type="hidden" name="name" id="name" value="foo" />', 'input_hidden_tag() takes a value as its second argument');
$t->is(input_hidden_tag('name', null, array('class' => 'foo')), '<input type="hidden" name="name" id="name" value="" class="foo" />', 'input_hidden_tag() takes an array of attribute options as its third argument');
// input_file_tag()
$t->diag('input_file_tag()');
$t->is(input_file_tag('name'), '<input type="file" name="name" id="name" value="" />', 'input_file_tag() takes a name as its first argument');
$t->is(input_file_tag('name', array('class' => 'foo')), '<input type="file" name="name" id="name" value="" class="foo" />', 'input_hidden_tag() takes an array of attribute options as its second argument');
// input_password_tag()
$t->diag('input_password_tag()');
$t->is(input_password_tag('name'), '<input type="password" name="name" id="name" value="" />', 'input_password_tag() takes a name as its first argument');
$t->is(input_password_tag('name', 'foo'), '<input type="password" name="name" id="name" value="foo" />', 'input_password_tag() takes a value as its second argument');
$t->is(input_password_tag('name', null, array('class' => 'foo')), '<input type="password" name="name" id="name" value="" class="foo" />', 'input_password_tag() takes an array of attribute options as its third argument');
// textarea_tag()
$t->diag('textarea_tag()');
$t->is(textarea_tag('name'), '<textarea name="name" id="name"></textarea>', 'textarea_tag() takes a name as its first argument');
$t->is(textarea_tag('name', 'content'), '<textarea name="name" id="name">content</textarea>', 'textarea_tag() takes a value as its second argument');
$t->is(textarea_tag('name', '<p>foo</p>'), '<textarea name="name" id="name">&lt;p&gt;foo&lt;/p&gt;</textarea>', 'textarea_tag() escapes the content');
$t->is(textarea_tag('name', '&lt;p&gt;foo&lt;/p&gt;'), '<textarea name="name" id="name">&lt;p&gt;foo&lt;/p&gt;</textarea>', 'textarea_tag() does not escape an already escaped content');
// options
$t->is(textarea_tag('name', null, array('class' => 'foo')), '<textarea name="name" id="name" class="foo"></textarea>', 'textarea_tag() takes an array of attribute options as its third argument');
$t->is(textarea_tag('name', null, array('id' => 'foo')), '<textarea name="name" id="foo"></textarea>', 'textarea_tag() can override the "id" attribute');
$t->is(textarea_tag('name', null, array('size' => '5x20')), '<textarea name="name" id="name" rows="20" cols="5"></textarea>', 'textarea_tag() can take a "size" attribute');
require_once sfConfig::get('sf_symfony_lib_dir') . '/helper/sfRichTextEditor.class.php';
require_once sfConfig::get('sf_symfony_lib_dir') . '/helper/sfRichTextEditorTinyMCE.class.php';
sfConfig::set('sf_web_dir', dirname(__FILE__));
sfConfig::set('sf_rich_text_js_dir', 'fixtures');
$t->like(textarea_tag('name', 'content', array('rich' => 'TinyMCE')), '/tinyMCE\\.init/', 'textarea_tag() can create a rich textarea tag based on tinyMCE');
开发者ID:valerio-bozzolan,项目名称:openparlamento,代码行数:31,代码来源:FormHelperTest.php

示例6: input_password_tag

if ($sf_request->hasError('register_email')) {
    echo '<span class="form-error">' . $sf_request->getError('register_email') . '</span>';
}
?>
</div></label>
          <label for="password">Password:
          <div class="registration-input"><?php 
echo input_password_tag('register_password', '', array('size' => 15));
if ($sf_request->hasError('register_password')) {
    echo '<span class="form-error">' . $sf_request->getError('register_password') . '</span>';
}
?>
</div></label></label>
          <label for="password_confirm">Confirm Password:
          <div class="registration-input"><?php 
echo input_password_tag('register_password_confirm', '', array('size' => 15));
if ($sf_request->hasError('register_password_confirm')) {
    echo '<span class="form-error">' . $sf_request->getError('register_password_confirm') . '</span>';
}
?>
</div></label></label>
        </fieldset>
        <fieldset style="display:inline;">
          <legend>Personal Info</legend>
          <label for="first_name">First Name:
            <div class="registration-input"><?php 
echo object_input_tag($profile, 'getFirstName');
if ($sf_request->hasError('first_name')) {
    echo '<span class="form-error">' . $sf_request->getError('first_name') . '</span>';
}
?>
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:signUpSuccess.php

示例7: label_for

      <div class="field">
        <?php 
echo label_for('username', 'Username');
?>
        <?php 
echo input_tag('username', null, array('class' => 'text user'));
?>
      </div>

      <div class="field">
        <?php 
echo label_for('password', 'Password');
?>
        <?php 
echo input_password_tag('password', null, array('class' => 'text password'));
?>
      </div>

      <?php 
if (sfConfig::get('app_users_enable_remember_me', false)) {
    ?>
        <div class="field">
          <?php 
    echo label_for('remember', 'Remember me');
    ?>
          <?php 
    echo checkbox_tag('remember', 1, false, array('class' => 'checkbox'));
    ?>
        </div>
      <?php 
开发者ID:kjbekkelund,项目名称:avrphpbbplugin,代码行数:30,代码来源:signinSuccess.php

示例8: input_password_tag

    ?>
</label>
    <?php 
    echo input_password_tag('password', '', 'size=30');
    ?>
    <br class="clearleft" />

    <?php 
    echo form_error('password_bis');
    ?>
    <label for="password_bis"><?php 
    echo __('confirm your password:');
    ?>
</label>
    <?php 
    echo input_password_tag('password_bis', '', 'size=30');
    ?>
    <br class="clearleft" />

    <?php 
    if (!$subscriber->getIsModerator()) {
        ?>
      <label for="want_to_be_moderator"><?php 
        echo __('do you want to be a moderator?');
        ?>
</label>
      <?php 
        echo object_checkbox_tag($subscriber, 'getWantToBeModerator');
        ?>
      <br class="clearleft" />
    <?php 
开发者ID:emacsattic,项目名称:symfony,代码行数:31,代码来源:showSuccess.php

示例9: input_password_tag

	user_name.add( Validate.Presence,{ failureMessage: "<?php 
echo Constant::VALIDATION_REQUIRED_FIELD;
?>
"});
	user_name.add( Validate.Format, { pattern: /^[a-zA-Z\d\_\.]*$/,failureMessage: "<?php 
echo 'Characters, Digits, Hyphens and Dots are valid';
?>
"} );
	</script>	</td>
</tr>


<tr height="30">
	<td>Password:<span class="error"> *</span></td>
	<td colspan="3"> <?php 
echo input_password_tag('password', '', 'size=35');
?>
	<script type="text/javascript">
	var password = new LiveValidation('password', { validMessage: "<?php 
echo Constant::VALIDATION_SUCCESS;
?>
", wait: 500});
	password.add( Validate.Presence,{ failureMessage: "<?php 
echo Constant::VALIDATION_REQUIRED_FIELD;
?>
"});
	password.add( Validate.Length, { minimum: <?php 
echo Constant::PASSWORD_MIMIMUM_LENGTH;
?>
, tooShortMessage : "<?php 
echo Constant::PASSWORD_MINIMUM_LENGTH_ERROR;
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:31,代码来源:giveCredentialSuccess.php

示例10: form_tag

  <?php 
echo form_tag('user/resetPassword', array());
?>
        <fieldset style="display:inline;">
          <legend>Resetting Password</legend>
          <?php 
echo input_hidden_tag('token', $token, array());
?>
          <?php 
echo input_hidden_tag('user', $profile->getUuid(), array());
?>
          <?php 
echo label_for('password', __('Password')), input_password_tag('password', '', array('size' => 15));
if ($sf_request->hasError('password')) {
    echo '<span class="form-error">' . $sf_request->getError('password') . '</span>';
}
?>
          <?php 
echo label_for('password_confirm', __('Confirm Password')), input_password_tag('password_confirm', '', array('size' => 15));
if ($sf_request->hasError('password_confirm')) {
    echo '<span class="form-error">' . $sf_request->getError('password_confirm') . '</span>';
}
?>
        </fieldset>
      <div class="submit-row"><?php 
echo submit_tag('Reset Password', array());
?>
</div>
  </form>
  <div class='hr'></div>
</div>
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:resetPasswordSuccess.php

示例11: form_error

echo form_error('old_password');
?>
	</div>
	<div class="row">
		<?php 
echo label_for('new_password', __('New Password') . required());
?>
		<?php 
echo input_password_tag('new_password');
?>
		<?php 
echo form_error('new_password');
?>
	</div>
	<div class="row">
		<?php 
echo label_for('new_password_confirm', __('Confirm New Password') . required());
?>
		<?php 
echo input_password_tag('new_password_confirm');
?>
		<?php 
echo form_error('new_password_confirm');
?>
	</div>
		<div class="row right_col">
		<?php 
echo submit_tag(__('Submit'));
?>
	</div>
</form>
开发者ID:hoydaa,项目名称:snippets.hoydaa.org,代码行数:31,代码来源:changePasswordSuccess.php

示例12: panel_input

function panel_input($name, $input = null, $options = array(), $methode = null)
{
    $out = get_field_wrapper($options, $name);
    if ($err = sfContext::getInstance()->getRequest()->getError($name)) {
        $options['class'] .= " error";
    }
    if (array_key_exists('password', $options)) {
        $code = input_password_tag($name, get_val($input, $methode, $name), clear_options($options));
    } else {
        $code = input_tag($name, get_val($input, $methode, $name), clear_options($options));
    }
    if ($name == "attrRewriteUrl") {
        $code .= ' <input type="button" value="Generate" class="seo-url" onClick="generateUrl(\'attrRewriteUrl\', \'attrNavigationTitle\');" />';
    }
    return str_replace('##code##', $code, $out);
}
开发者ID:kotow,项目名称:work,代码行数:16,代码来源:PanelFormHelper.php

示例13: label_for

      <th><?php 
echo label_for('password', 'Password');
?>
</th>
      <td><?php 
echo input_password_tag('password', 'abc123', array('class' => 'textfield'));
?>
</teyd>
    </tr>
    <tr>
      <th><?php 
echo label_for('verifypassword', 'Verify Password<span>CompareValidator</span>');
?>
</th>
      <td><?php 
echo input_password_tag('verifypassword', 'abc123', array('class' => 'textfield'));
?>
</teyd>
    </tr>
    <tr>
      <th><label>myCheck[]<span>Check boxes</span></label></th>
      <td><?php 
echo checkbox_tag('myCheck[]', 'cheese', true);
echo label_for('myCheck_cheese', 'Cheese (default)');
?>
<br />
        <?php 
echo checkbox_tag('myCheck[]', 'lolcats', false);
echo label_for('myCheck_lolcats', 'Lolcats');
?>
      </td>
开发者ID:nikitakit,项目名称:RevTK,代码行数:31,代码来源:formdemoView.php

示例14: input_password_tag

<?php

echo input_password_tag('usuario[clave]', '');
开发者ID:mediasadc,项目名称:alba,代码行数:3,代码来源:_clave.php

示例15: input_tag

                <?php 
echo input_tag('login[username]', '', array('control_name' => 'login[username]', 'style' => 'background-color: black; border: 0px; color: white; height: 25px; width: 100%;'));
?>
            </div>
	</div>

	<div style="padding-top: 10px;">
            <div>
            <?php 
echo label_for('login[password]', __('Contraseña') . ":", 'style="color: black; font-size: 13px;"');
?>
<br />
            </div>
            <div style="clear: both;">
                <?php 
echo input_password_tag('login[password]', '', array('control_name' => 'login[password]', 'style' => 'background-color: black; color: white; border: 0px; height: 25px; width: 100%;'));
?>
            </div>
	</div>

        <div style="text-align: right; padding-top: 20px;">
            <?php 
echo submit_tag(__('ENTRAR'), array('name' => 'enter', 'style' => 'border: 0px; font-weight: bold; font-size: 12px; color: #ffffff; background-color: #393D48; padding-top: 10px; padding-bottom: 10px; width: 100px; -moz-border-radius: 4px; -webkit-border-radius: 4px;'));
?>
        </div>

    </div>

    <div style="height: 50px; clear: both;"></div>

    <div style="width: 100%; padding-left: 20px; color:#393D48; font-size: 11px; ">
开发者ID:Esleelkartea,项目名称:legedia-ESLE,代码行数:31,代码来源:_login_form.php


注:本文中的input_password_tag函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。