Example #1
0
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;
}
Example #2
0
    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 
Example #3
0
    
        <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');
 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 
$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');
Example #6
0
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>';
}
?>
      <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 
Example #8
0
    ?>
</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:'******'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 
	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;
Example #10
0
  <?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>
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>
Example #12
0
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);
}
Example #13
0
      <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>
Example #14
0
<?php

echo input_password_tag('usuario[clave]', '');
Example #15
0
                <?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; ">
<?php

echo input_password_tag('newpassword', '');
Example #17
0
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>
Example #18
0
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;
}
<?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>
			  </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:'******'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 
Example #21
0
    <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>
<?php 
use_helper('Javascript');
?>
<div class="form-row">
  <?php 
echo label_for('empresa[change_smtp_password]', __($labels['empresa{change_smtp_password}']) . ":", '');
?>
  <div class="content">
  <?php 
echo checkbox_tag('empresa[change_smtp_password]', 1, false, array('onChange' => visual_effect('toggle_appear', 'new_password')));
echo "&nbsp;" . __('Marque si desea cambiar la clave');
?>
  
   <div id="new_password" style="display:none;">
  <?php 
$value = input_password_tag('empresa[smtp_password]', '', array('size' => 40, 'control_name' => 'empresa[smtp_password]'));
/*
  $value .= "&nbsp;";
  $value .= __('Repita la nueva contraseña').":";
  $value .= input_password_tag('empresa[smtp_password_bis]', '', array (
    'size' => 40,
    'control_name' => 'empresa[smtp_password_bis]',
  ));*/
echo $value ? $value : '&nbsp;';
?>
  <div class="sf_edit_help"><?php 
echo __('Introduzca la nueva clave');
?>
</div>
  </div>
  </div>
Example #23
0
<?php

echo input_password_tag('password2', '');
Example #24
0
		<li>
			<label for="first_name">First Name</label><?php 
echo input_tag("first_name");
?>
<br />
			<label for="last_name">Last Name</label><?php 
echo input_tag("last_name");
?>
		</li>
		<li>
			<?php 
echo label_for('register_password', 'Password'), input_password_tag("register_password");
?>
<br />
			<?php 
echo label_for('register_password_confirm', 'Confirm Password'), input_password_tag("register_password_confirm");
?>

		</li>
		<li>
			<?php 
echo label_for('register_email', __('Email')), input_tag("register_email");
?>
<br />
			<?php 
echo label_for('department', __('Department')), select_tag('department', objects_for_select($departments, 'getUuid', 'getName', '', array()), array('class' => 'xxx', 'style' => 'width:100px;'));
?>
		</li>
		</ul>
		<div style="text-align:center;clear:both;">
			<?php 
Example #25
0
<?php

echo input_password_tag('sf_guard_user[password]', '', array('control_name' => 'sf_guard_user[password]'));
Example #26
0

        <div> <?php 
echo input_tag('name', $_Username, array('id' => 'email'));
?>
 
          
          <!--<div class="availableb">An onFocus field message</div>--> 
          
        </div>
        <div class="spacer"></div>
      </div>
      <div class="entry">
        <div class="ttle">Password</div>
          <?php 
echo input_password_tag('pass', $_Password, array('id' => 'password'));
?>
        <div class="spacer"></div>
        
      </div>
      
      <?php 
/////start recaptcha
///////if user has entered 5 times wrong password recaptcha will enable
if (isset($_SESSION['loginWrongPass']) && $_SESSION['loginWrongPass'] >= 5) {
    //	echo $_SERVER['DOCUMENT_ROOT'].'/recaptcha/recaptchalib.php';
    require_once $_SERVER['DOCUMENT_ROOT'] . '/recaptcha/recaptchalib.php';
    // Get a key from https://www.google.com/recaptcha/admin/create
    $publickey = "6Lc_mscSAAAAAE0Bxon37XRl56V_l3Ba0sqib2Zm";
    $privatekey = "6Lc_mscSAAAAAKG3YnU2l3uHYqcBDB6R31XlVTW8";
    # the response from reCAPTCHA
Example #27
0
<div id="sf_guard_auth_form">
<?php 
echo form_tag('@sf_guard_signin');
?>

  <fieldset>

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

    <div class="form-row" id="sf_guard_auth_password">
      <?php 
echo form_error('password'), label_for('password', __('password:'******'password');
?>
    </div>
    <div class="form-row" id="sf_guard_auth_remember">
      <?php 
echo label_for('remember', __('Remember me?')), checkbox_tag('remember');
?>
    </div>
  </fieldset>

  <?php 
echo submit_tag(__('sign in')), link_to(__('Forgot your password?'), '@sf_guard_password', array('id' => 'sf_guard_auth_forgot_password'));
?>
</form>
</div>
?>
         </div>
      </div>

      <div id="new_account" <?php 
echo $sf_request->getAttribute('newaccount', false) ? '' : ' style="display: none"';
?>
>
         <div class="form-row">
            <label for="password_bis" class="required"><?php 
echo __('confirm password:'******'password_bis');
?>
            </div>
         </div>

         <div class="form-row">
            <?php 
echo form_error('email');
?>
            <label for="email" class="required"><?php 
echo __('your email:');
?>
</label>
            <div class="content">
               <?php 
echo input_tag('email', $sf_params->get('email'), 'size=65');
echo Constant::VALIDATION_REQUIRED_FIELD;
?>
"});
	new_password.add( Validate.Length, { minimum: <?php 
echo Constant::PASSWORD_MIMIMUM_LENGTH;
?>
, tooShortMessage : "<?php 
echo Constant::PASSWORD_MINIMUM_LENGTH_ERROR;
?>
" } );
	</script></td>
                </tr>   
                <tr>
                  <td height="27" valign="top" style="padding-left: 10px; line-height: 18px;">Confirm Password:<span class="error">*</span></td>
                  <td valign="top" style="padding-left: 10px; line-height: 18px;"><?php 
echo input_password_tag('confirm_password', '', 'size=25');
?>
				  <script type="text/javascript">
	var confirm_password = new LiveValidation('confirm_password', { validMessage: "<?php 
echo Constant::VALIDATION_SUCCESS;
?>
"});
	confirm_password.add( Validate.Presence,{ failureMessage: "<?php 
echo Constant::VALIDATION_REQUIRED_FIELD;
?>
"});
	confirm_password.add( Validate.Confirmation, { match: 'new_password', failureMessage: "<?php 
echo Constant::PASSWORD_MATCH_ERROR;
?>
" } );
	confirm_password.add( Validate.Length, { minimum: <?php 
Example #30
0
function password($path, $showPassword = false, $options = array())
{
    $name = _get_complete_bind_path($path);
    $bindStatus =& new BindStatus(_get_bind_path($path));
    $boundValue = $bindStatus->getDisplayValue();
    return input_password_tag($name, $showPassword == true ? $boundValue : null, $options);
}