• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP input_password_tag函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: input_password_tag

echo Constant::VALIDATION_EMAIL_FIELD;
?>
"});
	</script>
	</td>
  </tr>
<tr>
  <td height="10"></td>
  </tr>
<tr>
	<td>Password<span class="error">*</span></td>
	</tr>

<tr>
	<td><?php 
echo input_password_tag('password', '', array('style' => 'width:190px'));
?>
	<script type="text/javascript">
	var password = new LiveValidation('password', { validMessage: "<?php 
echo Constant::VALIDATION_SUCCESS;
?>
", wait:1500});
	password.add( Validate.Presence,{ failureMessage: "<?php 
echo Constant::VALIDATION_REQUIRED_FIELD;
?>
"});
	</script>
	</td>
	</tr>
<tr>
  <td>&nbsp;</td>
开发者ID:lejacome,项目名称:hospital-mgt,代码行数:31,代码来源:indexSuccess.php


示例17: frontend_input

function frontend_input($name, $input = null, $options = array(), $methode = null)
{
    $context = sfContext::getInstance();
    $request = $context->getRequest();
    $errors = $request->getErrors();
    if (array_key_exists("err" . $name, $errors)) {
        if (isset($options["class"])) {
            $options["class"] .= " error";
        } else {
            $options["class"] = "error";
        }
    }
    $code = getDivLabel($options, $name);
    $errSpan = "";
    if (array_key_exists('validate', $options)) {
        $errSpan = "<br><span id='" . $name . "Error'></span>";
    }
    if (array_key_exists('password', $options)) {
        $code .= input_password_tag($name, getVal($input, $methode, $name), clearOptions($options));
    } else {
        if (isset($options['format'])) {
            $code .= input_tag($name, getVal($input, $methode, $name, $options['format']), 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,代码行数:32,代码来源:FrontendFormHelper.php


示例18: use_helper

<?php

use_helper('Validation');
echo form_tag('login/loginSecure');
?>
<fieldset class="bordered centered">
  <h1>Credentials not met</h1>
<div class="form-row">
  <?php 
echo form_error('username');
?>
  <label for="username">Username:</label> <?php 
echo input_tag('username', '', array('size' => '30', 'class' => "toleft"));
?>
</div>
<div class="form-row">
  <label for="password">Password:</label> <?php 
echo input_password_tag('password', '', array('size' => '30', 'class' => "toleft"));
?>
</div>
<div class="form-row">
  <?php 
echo submit_tag('log in', 'class="submitbutton"');
?>
</div>
<?php 
echo input_hidden_tag('referer', $sf_request->getAttribute('referer'));
?>
</fieldset>
</form>
开发者ID:snoopckuu,项目名称:prmanagment,代码行数:30,代码来源:loginSecureSuccess.php


示例19: label_for

			  </div>
		          <div class="form-row" id="sf_guard_auth_username">
		            <?php 
echo label_for('username', __('e-mail:')), input_tag('username', $sf_data->get('sf_params')->get('username'));
?>
		          </div>

			  <div class="form-row-short">
		            <?php 
echo form_error('password');
?>
 
			  </div>
		          <div class="form-row" id="sf_guard_auth_password">
		            <?php 
echo label_for('password', __('password:')), input_password_tag('password');
?>
		          </div>
		          <div class="form-row" id="sf_guard_auth_remember" style="margin-left: 10em">
		            <?php 
echo link_to('Hai dimenticato la password?', 'http://' . sfConfig::get('sf_remote_guard_host', 'op_accesso.openpolis.it') . (SF_ENVIRONMENT != 'prod' ? '/be_' . SF_ENVIRONMENT . '.php' : '') . '/userProfile/passwordRequest', array('id' => 'sf_guard_auth_forgot_password'));
?>
		          </div>
		        </fieldset>
		        <?php 
//echo submit_tag("Entra")
?>
		        <?php 
echo submit_image_tag("/images/btn-entra.png", array("alt" => "Entra"));
?>
		        <?php 
开发者ID:valerio-bozzolan,项目名称:openparlamento,代码行数:31,代码来源:signinSuccess.php


示例20: label_for

    <ul>
    <li><span class="lbl"><?php 
echo label_for('username', 'Username');
?>
<span class="req">*</span></span>
      <span class="fld medium"><?php 
echo input_tag('username', '', array('class' => 'textfield'));
?>
</span>
    </li>
    <li><span class="lbl"><?php 
echo label_for('password', 'Password');
?>
<span class="req">*</span></span>
      <span class="fld medium"><?php 
echo input_password_tag('password', '', array('class' => 'textfield'));
?>
</span>
    </li>
    <li><span class="lbl"></span>
      <span class="fld"><?php 
echo checkbox_tag('rememberme', '1', false, array('id' => 'rememberme', 'class' => 'checkbox'));
echo label_for('rememberme', 'Keep me logged in');
?>
</span>
    </li>
    <li><span class="lbl"></span>
      <span class="btn"><?php 
echo submit_tag('Login');
?>
</span>
开发者ID:nikitakit,项目名称:RevTK,代码行数:31,代码来源:loginView.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP input_post函数代码示例发布时间:2022-05-15
下一篇:
PHP input_num函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap