password() 공개 정적인 메소드

public static password ( $name, $attributes = [] )
 public function __toString()
 {
     if ($this->args->blank = TRUE) {
         $value = '';
     }
     return form::password($this->field_name, $value);
 }
예제 #2
0
 public function render()
 {
     $attributes = $this->get_attributes();
     if (arr::get($attributes, 'class')) {
         $attributes['class'] .= ' form-control';
     } else {
         $attributes['class'] = 'form-control';
     }
     return form::password($this->get_name(), $this->get_value(), $attributes);
 }
예제 #3
0
    public function _form($user)
    {
        $html = "";
        $html .= form::open(null, array('class' => 'valid_form'));
        $html .= form::input(array('email', 'Email'), $user->email, 'class="fullWidth required email"');
        $html .= form::label('New Password');
        $html .= form::password('password[]', '', 'class="fullWidth"');
        $html .= form::label('Repeat Password');
        $html .= form::password('password[]', '', 'class="fullWidth"');
        $html .= "<hr/>";
        $html .= form::label('openid', 'OpenID <img src="http://www.plaxo.com/images/openid/login-bg.gif" />');
        $html .= '<p><small><a href="http://www.openid.net" target="_BLANK">What is an OpenID?</a></small></p>
			<p><small>Please remember the "http://"</small></p>';
        $html .= form::input('openid', $user->openid, 'class="fullWidth url"');
        $html .= form::submit('submit', 'Save', 'class="submit"');
        $html .= form::close();
        return $html;
    }
예제 #4
0
파일: formular.php 프로젝트: karimo255/blog
 private function buildForm()
 {
     $options = array('method' => "POST", 'enctype' => "multipart/form-data", 'action' => '/blog/formular/add', 'width' => '400px');
     $form = new \form('testing', $options);
     $form->label('checkbox');
     $form->checkbox('checkbox test', 'testcheckbox', 'check', '');
     $form->checkbox('checkbox test2', 'testcheckbox', 'check2', true);
     $form->label('radio');
     $form->radio('radio test', 'testradio', 'radio', '');
     $form->radio('radio test 2', 'testradio', 'radio2', true);
     $form->label('textarea');
     $form->text('textarea', ' ', ['error' => $this->error['textarea']]);
     $form->select('autos', ['a' => 'audi', 'b' => 'vw', 'c' => 'toyota'], 'b', ['label' => 'auto select']);
     $form->text('username', '', ['placeholder' => 'username', 'label' => 'Username', 'error' => $this->error['username']]);
     $form->password('password', '', ['label' => 'Password', 'error' => $this->error['password']]);
     $form->button('senden', ['type' => 'submit']);
     return $form;
 }
예제 #5
0
 public function login()
 {
     if ($this->a2->logged_in()) {
         //cannot create new accounts when a user is logged in
         return $this->index();
     }
     $post = Validation::factory($_POST)->pre_filter('trim')->add_rules('username', 'required', 'length[4,127]')->add_rules('password', 'required');
     if ($post->validate()) {
         if ($this->a1->login($post['username'], $post['password'])) {
             // login succesful
             url::redirect('a2demo/index');
         }
     }
     //show form
     echo form::open();
     echo 'username:'******'username') . '<br>';
     echo 'password:'******'password') . '<br>';
     echo form::submit(array('value' => 'login'));
     echo form::close();
 }
예제 #6
0
파일: a2demo.php 프로젝트: sars/rp
 public function action_login()
 {
     if ($this->user) {
         //cannot create new accounts when a user is logged in
         return $this->action_index();
     }
     $post = Validate::factory($_POST)->filter(TRUE, 'trim')->rule('username', 'not_empty')->rule('username', 'min_length', array(4))->rule('username', 'max_length', array(127))->rule('password', 'not_empty');
     if ($post->check()) {
         if ($this->a1->login($post['username'], $post['password'], isset($_POST['remember']) ? (bool) $_POST['remember'] : FALSE)) {
             $this->request->redirect('a2demo/index');
         }
     }
     //show form
     echo form::open();
     echo 'username:'******'username') . '<br>';
     echo 'password:'******'password') . '<br>';
     echo 'remember me:' . form::checkbox('remember', TRUE) . '<br>';
     echo form::submit('login', 'login');
     echo form::close();
     echo Kohana::debug($post->errors());
 }
예제 #7
0
파일: Morf_Input.php 프로젝트: samsoir/morf
 public function render(&$render_variables, $errors = array())
 {
     // Load base template and attributes
     $result = parent::render($render_variables, $errors);
     // Discover the type
     switch ($this->type) {
         case 'input':
             $result['template']->element = form::input($result['attributes'], $this->value);
             break;
         case 'password':
             $result['template']->element = form::password($result['attributes'], $this->value);
             break;
         case 'submit':
             $result['template']->element = form::submit($result['attributes'], $this->value);
             $render_variables['submit'] = TRUE;
             break;
         case 'radio':
             $result['template']->element = form::radio($result['attributes'], $this->value);
             break;
         case 'checkbox':
             $result['attributes']['value'] = $this->value;
             if ($this->value = Input::instance()->post($this->name)) {
                 $result['template']->element = form::checkbox($result['attributes'], $this->value, TRUE);
             } else {
                 $result['template']->element = form::checkbox($result['attributes'], $this->value);
             }
             break;
         case 'hidden':
             $result['template']->element = form::hidden($this->name, $this->value);
             break;
         case 'file':
             $result['template']->element = form::upload($result['attributes'], $this->value);
             $render_variables['enctype'] = 'multipart/form-data';
             break;
     }
     // Return the resulting output
     return (string) $result['template']->render();
 }
예제 #8
0
				<p>
					<label><?php 
echo __('Set your admin password:'******'password');
?>
				</p>
				<p>
					<label><?php 
echo __('Repeat password:'******'repeat');
?>
				</p>
				<p>
					<?php 
echo form::submit('submit', __('Install'), array('class' => 'submit'));
?>
				</p>

			</form>
			
		</div>
			
    </div>
    
</body>
예제 #9
0
파일: email.php 프로젝트: kjgarza/ushahidi
echo Kohana::lang('ui_main.email_settings_comment_1');
?>
			</span>
			<div class="row">
				<h4>
					<a href="#" class="tooltip"
						title="<?php 
echo Kohana::lang("tooltips.settings_server_password");
?>
"><?php 
echo Kohana::lang('ui_main.email_server_password');
?>
					</a>
				</h4>
				<?php 
print form::password('email_password', $form['email_password'], ' class="text long2"');
?>
			</div>
			<span> <?php 
echo Kohana::lang('ui_main.email_settings_comment_2');
?>
			</span>
			<div class="row">
				<h4>
					<a href="#" class="tooltip"
						title="<?php 
echo Kohana::lang("tooltips.settings_server_port");
?>
"><?php 
echo Kohana::lang('ui_main.email_server_port');
?>
예제 #10
0
파일: new.php 프로젝트: ready4god2513/scs
echo form::input('username');
?>
			</div>
		
			<div class="form-fields">
				<?php 
echo form::label('password', 'Password');
?>
				<?php 
echo form::password('password');
?>
			</div>
		
			<div class="form-fields">
				<?php 
echo form::label('password_confirm', 'Confirm Password');
?>
				<?php 
echo form::password('password_confirm');
?>
			</div>
		
		</fieldset>
		<?php 
echo form::submit('register', 'Register');
?>
	<?php 
echo form::close();
?>
</div>
<div class="clear"></div>
예제 #11
0
파일: MY_form.php 프로젝트: anqqa/Anqh
 /**
  * Creates a HTML form password input tag.
  *
  * @param   string|array  input name or an array of HTML attributes
  * @param   string|array  input value, when using a name or values
  * @param   string        a string to be attached to the end of the attributes
  * @param   string        $label
  * @param   string|array  $error
  * @param   string|array  $tip
  * @param   string        $show_password
  * @return  string
  */
 public static function password_wrap($data, $value = '', $extra = '', $label = '', $error = '', $tip = '', $show_password = '')
 {
     $name = is_array($data) ? arr::get($data, 'name') : $data;
     $value = is_array($value) ? arr::get($value, $name) : $value;
     // Inject show password element id
     if ($show_password) {
         if (is_array($data)) {
             $data['show'] = $name . '_show';
         } else {
             $data = array('name' => $name, 'show' => $name . '_show');
         }
     }
     // Add id to input if label given
     if ($label) {
         if (!is_array($data)) {
             $data = array('name' => $name, 'id' => $name);
         } else {
             if (!isset($data['id'])) {
                 $data['id'] = $name;
             }
         }
     }
     $input = form::password($data, $value, $extra);
     // Add 'Show password' ?
     if ($show_password) {
         $input .= form::checkbox($name . '_show', 'yes') . form::label($name . '_show', $show_password);
     }
     return form::wrap($input, $name, $label, $error, $tip);
 }
예제 #12
0
파일: langs.php 프로젝트: HackerMajor/root
echo '<h3>' . __('Install or upgrade languages') . '</h3>';
if (!$is_writable) {
    echo '<p>' . sprintf(__('You can install or remove a language by adding or ' . 'removing the relevant directory in your %s folder.'), '<strong>locales</strong>') . '</p>';
}
if (!empty($dc_langs) && $is_writable) {
    $dc_langs_combo = array();
    foreach ($dc_langs as $k => $v) {
        if ($v->link && isset($iso_codes[$v->title])) {
            $dc_langs_combo[html::escapeHTML('(' . $v->title . ') ' . $iso_codes[$v->title])] = html::escapeHTML($v->link);
        }
    }
    echo '<form method="post" action="langs.php" enctype="multipart/form-data">' . '<fieldset>' . '<legend>' . __('Available languages') . '</legend>' . '<p>' . sprintf(__('You can download and install a additional language directly from Dotclear.net. ' . 'Proposed languages are based on your version: %s.'), '<strong>' . DC_VERSION . '</strong>') . '</p>' . '<p class="field"><label class="classic">' . __('Language:') . ' ' . form::combo(array('pkg_url'), $dc_langs_combo) . '</label></p>' . '<p class="field"><label class="classic required" title="' . __('Required field') . '">' . __('Your password:'******' ' . form::password(array('your_pwd'), 20, 255) . '</label></p>' . '<input type="submit" value="' . __('Install language') . '" />' . $core->formNonce() . '</fieldset>' . '</form>';
}
if ($is_writable) {
    # 'Upload language pack' form
    echo '<form method="post" action="langs.php" enctype="multipart/form-data">' . '<fieldset>' . '<legend>' . __('Upload a zip file') . '</legend>' . '<p>' . __('You can install languages by uploading zip files.') . '</p>' . '<p class="field"><label class="classic required" title="' . __('Required field') . '">' . __('Language zip file:') . ' ' . '<input type="file" name="pkg_file" /></label></p>' . '<p class="field"><label class="classic required" title="' . __('Required field') . '">' . __('Your password:'******' ' . form::password(array('your_pwd'), 20, 255) . '</label></p>' . '<input type="submit" name="upload_pkg" value="' . __('Upload language') . '" />' . $core->formNonce() . '</fieldset>' . '</form>';
}
dcPage::close();
# Language installation function
function dc_lang_install($file)
{
    $zip = new fileUnzip($file);
    $zip->getList(false, '#(^|/)(__MACOSX|\\.svn|\\.DS_Store|Thumbs\\.db)(/|$)#');
    if (!preg_match('/^[a-z]{2,3}(-[a-z]{2})?$/', $zip->getRootDir())) {
        throw new Exception(__('Invalid language zip file.'));
    }
    if ($zip->isEmpty() || !$zip->hasFile($zip->getRootDir() . '/main.po')) {
        throw new Exception(__('The zip file does not appear to be a valid Dotclear language pack.'));
    }
    $target = dirname($file);
    $destination = $target . '/' . $zip->getRootDir();
예제 #13
0
 public function gui()
 {
     if ($this->status == 'single') {
         echo '<p class="message">' . __('Single blog successfully imported.') . '</p>';
         return;
     }
     if ($this->status == 'full') {
         echo '<p class="message">' . __('Content successfully imported.') . '</p>';
         return;
     }
     echo '<script type="text/javascript">' . "\n" . "//<![CDATA[\n" . dcPage::jsVar('dotclear.msg.confirm_full_import', __('Are you sure you want to import a full backup file?')) . "\$(function() {" . "\$('#up_single_file').change(function() { " . "if (this.value != '') { \$('#public_single_file').val(''); } " . "}); " . "\$('#public_single_file').change(function() { " . "if (this.value != '') { \$('#up_single_file').val(''); } " . "}); " . "\$('#up_full_file').change(function() { " . "if (this.value != '') { \$('#public_full_file').val(''); } " . "}); " . "\$('#public_full_file').change(function() { " . "if (this.value != '') { \$('#up_full_file').val(''); } " . "}); " . "\$('#formfull').submit(function() { " . "return window.confirm(dotclear.msg.confirm_full_import); " . "}); " . "});\n" . "//]]>\n" . "</script>\n";
     echo '<h3>' . __('Import a single blog') . '</h3>' . '<p>' . sprintf(__('This will import a single blog backup as new content in the current blog: %s.'), '<strong>' . html::escapeHTML($this->core->blog->name) . '</strong>') . '</p>' . '<form action="' . $this->getURL(true) . '" method="post" enctype="multipart/form-data">' . '<fieldset>' . $this->core->formNonce() . form::hidden(array('do'), 1) . form::hidden(array('MAX_FILE_SIZE'), DC_MAX_UPLOAD_SIZE) . '<p><label>' . __('Upload a backup file') . ' ' . '<input type="file" id="up_single_file" name="up_single_file" size="20" />' . '</label></p>';
     $public_files = $this->getPublicFiles();
     $empty = empty($public_files);
     $public_files = array_merge(array('-' => ''), $public_files);
     echo '<p><label>' . __('or pick up a local file in your public directory') . ' ' . form::combo('public_single_file', $public_files, '', '', '', $empty) . '</label></p>';
     echo '<p><input type="submit" value="' . __('Send') . '" /></p>' . '</fieldset>' . '</form>';
     if ($this->core->auth->isSuperAdmin()) {
         echo '<h3>' . __('Import a full backup file') . '</h3>' . '<form action="' . $this->getURL(true) . '" method="post" enctype="multipart/form-data" id="formfull">' . '<div>' . form::hidden(array('MAX_FILE_SIZE'), DC_MAX_UPLOAD_SIZE) . '</div>' . '<fieldset>' . $this->core->formNonce() . form::hidden(array('do'), 1) . form::hidden(array('MAX_FILE_SIZE'), DC_MAX_UPLOAD_SIZE) . '<p><label>' . __('Upload a backup file') . ' ' . '<input type="file" id="up_full_file" name="up_full_file" size="20" />' . '</label></p>';
         echo '<p><label>' . __('or pick up a local file in your public directory') . ' ' . form::combo('public_full_file', $public_files, '', '', '', $empty) . '</label></p>';
         echo '<p><strong>' . __('Warning: This will reset all the content of your database, except users.') . '</strong></p>' . '<p><label>' . __('Your password:'******'your_pwd', 20, 255) . '</label></p>' . '<p><input type="submit" value="' . __('Send') . '" /></p>' . '</fieldset>' . '</form>';
     }
 }
예제 #14
0
?>
</span>
		</dt>
		<dd>
			<?php 
echo form::password('password', $post['password'], array('maxlength' => 20));
?>
		</dd>
	</dl>
	<dl>
		<dt><?php 
echo form::label('password_confirm', 'Confirm password:'******'password_confirm', $post['password_confirm'], array('maxlength' => 20));
?>
</dd>
	</dl>
	
	<dl>
		<dt><?php 
echo Captcha::instance()->render();
?>
</dt>
		<dd><?php 
echo form::input('captcha', $post['captcha']);
?>
<br /><?php 
echo __('Type the characters you see in the picture.');
?>
예제 #15
0
			<div class="row">
				<h4><?php 
echo Kohana::lang('settings.sms.clickatell_username');
?>
:</h4>
				<?php 
print form::input('clickatell_username', $form['clickatell_username'], ' class="text title_2"');
?>
			</div>
			<div class="row">
				<h4><?php 
echo Kohana::lang('settings.sms.clickatell_password');
?>
:</h4>
				<?php 
print form::password('clickatell_password', $form['clickatell_password'], ' class="text title_2"');
?>
			</div>
		</td>
	</tr>
	<tr>
		<td>
			<span class="big_blue_span">Step 3:</span>
		</td>
		<td>
			<h4 class="fix"><?php 
echo Kohana::lang('settings.sms.clickatell_check_balance');
?>
. <sup><a href="#">?</a></sup></h4>
			<div class="row">
				<h4><a href="javascript:clickatellBalance()"><?php 
예제 #16
0
    // Show form
	echo form::open('signup/page1', array('method'=>'post'));

	print "<p />";
    print form::label('username', 'Username: '******'username', $form['username']); 
    echo (empty ($errors['username'])) ? '' : $errors['username'];

	print "<p />";
    print form::label('password', 'Password: '******'password']);
	echo (empty ($errors['password'])) ? '' : $errors['password'];

	print "<p />";
	print form::label('password_confirm', 'Password (again): ');
	print form::password("password_confirm", $form['password_confirm']);
	echo (empty ($errors['password_confirm'])) ? '' : $errors['password_confirm'];

	print "<p />";
	print form::label('email', 'Email: ');
	print form::input('email', $form['email']);
	echo (empty ($errors['email'])) ? '' : $errors['email'];

	// Don't show Captcha anymore after the user has given enough valid
	// responses. The "enough" count is set in the captcha config.
	if ( ! $captcha->promoted()){
      echo '<p>';
      echo $captcha->render(); // Shows the Captcha challenge (image/riddle/etc)
      echo '</p>';
	  echo form::input('captcha_response');
    } else {
예제 #17
0
파일: login.php 프로젝트: ryross/kobase
		</ul>
	</div>
<?php 
}
?>
<div class="form-row">
	<?php 
echo form::label('username');
?>
	<?php 
echo form::input('username', Arr::get($post, 'user', ''), array('id' => 'username'));
?>
</div>

<div class="form-row">
	<?php 
echo form::label('password');
?>
	<?php 
echo form::password('password', Arr::get($post, 'password', ''), array('id' => 'password'));
?>
</div>
<?php 
echo form::submit('submit', 'Log In');
echo form::close('');
?>

</div>

<?php 
echo View::factory('template/footer');
예제 #18
0
파일: add.php 프로젝트: virutmath/suckhoe
?>
	<?php 
$form = new form();
?>
	<?php 
echo $form->form_open();
?>
    
    <?php 
echo $form->textnote('Các trường có dấu (<span class="form-asterick">*</span>) là bắt buộc nhập');
?>
	<?php 
echo $form->text(array('label' => 'Email', 'name' => 'use_email', 'id' => 'use_email', 'value' => getValue('use_email', 'str', 'POST', $use_email), 'require' => 1, 'errorMsg' => 'Bạn chưa nhập email', 'placeholder' => 'Email không dài quá 255 ký tự'), 0, 'span6');
?>
    <?php 
echo $form->password(array('label' => 'Mật khẩu', 'name' => 'use_password', 'id' => 'use_password', 'require' => 1, 'errorMsg' => 'Bạn chưa nhập mật khẩu'));
?>
    <?php 
echo $form->text(array('label' => 'Họ', 'name' => 'use_firstname', 'id' => 'use_firstname', 'value' => getValue('use_firstname', 'str', 'POST', $use_firstname), 'require' => 1, 'errorMsg' => 'Bạn chưa nhập họ', 'placeholder' => 'Họ'), 0, 'span6');
?>
    <?php 
echo $form->text(array('label' => 'Tên', 'name' => 'use_lastname', 'id' => 'use_lastname', 'value' => getValue('use_lastname', 'str', 'POST', $use_lastname), 'require' => 1, 'errorMsg' => 'Bạn chưa nhập tên', 'placeholder' => 'Tên'), 0, 'span6');
?>
    <?php 
echo $form->getFile(array('label' => 'Ảnh đại diện', 'title' => 'Ảnh đại diện', 'name' => 'use_avatar', 'id' => 'use_avatar'));
?>
    <?php 
echo $form->text(array('label' => 'Ngày sinh', 'name' => 'use_birthday', 'id' => 'use_birthday', 'isdatepicker' => 1, 'value' => getValue('use_birthday', 'str', 'POST', '')));
?>
    <?php 
echo $form->text(array('label' => 'Điện thoại', 'name' => 'use_phone', 'id' => 'use_phone', 'value' => getValue('use_phone', 'str', 'POST', ''), 'require' => 1, 'errorMsg' => 'Bạn chưa nhập điện thoại', 'placeholder' => 'Điện thoại'), 0, 'span6');
예제 #19
0
 public function gui()
 {
     try {
         $this->guiprocess($this->action);
     } catch (Exception $e) {
         $this->error($e);
     }
     switch ($this->step) {
         case 1:
             echo '<p>' . sprintf(__('Import the content of a Dotclear 1.2\'s blog in the current blog: %s.'), '<strong>' . html::escapeHTML($this->core->blog->name) . '</strong>') . '</p>' . '<p class="warning">' . __('Please note that this process ' . 'will empty your categories, blogroll, entries and comments on the current blog.') . '</p>';
             printf($this->imForm(1, __('General information'), __('Import my blog now')), '<p>' . __('We first need some information about your old Dotclear 1.2 installation.') . '</p>' . '<p><label for="db_host">' . __('Database Host Name:') . '</label> ' . form::field('db_host', 30, 255, html::escapeHTML($this->vars['db_host'])) . '</p>' . '<p><label for="db_name">' . __('Database Name:', html::escapeHTML($this->vars['db_name'])) . '</label> ' . form::field('db_name', 30, 255, html::escapeHTML($this->vars['db_name'])) . '</p>' . '<p><label for="db_user">' . __('Database User Name:') . '</label> ' . form::field('db_user', 30, 255, html::escapeHTML($this->vars['db_user'])) . '</p>' . '<p><label for="db_pwd">' . __('Database Password:'******'</label> ' . form::password('db_pwd', 30, 255) . '</p>' . '<p><label for="db_prefix">' . __('Database Tables Prefix:') . '</label> ' . form::field('db_prefix', 30, 255, html::escapeHTML($this->vars['db_prefix'])) . '</p>' . '<h3 class="vertical-separator">' . __('Entries import options') . '</h3>' . '<p><label for="post_limit">' . __('Number of entries to import at once:') . '</label> ' . form::field('post_limit', 3, 3, html::escapeHTML($this->vars['post_limit'])) . '</p>');
             break;
         case 2:
             printf($this->imForm(2, __('Importing users')), $this->autoSubmit());
             break;
         case 3:
             printf($this->imForm(3, __('Importing categories')), $this->autoSubmit());
             break;
         case 4:
             printf($this->imForm(4, __('Importing blogroll')), $this->autoSubmit());
             break;
         case 5:
             $t = sprintf(__('Importing entries from %d to %d / %d'), $this->post_offset, min(array($this->post_offset + $this->post_limit, $this->post_count)), $this->post_count);
             printf($this->imForm(5, $t), form::hidden(array('offset'), $this->post_offset) . $this->autoSubmit());
             break;
         case 6:
             echo '<h3 class="vertical-separator">' . __('Please read carefully') . '</h3>' . '<ul>' . '<li>' . __('Every newly imported user has received a random password ' . 'and will need to ask for a new one by following the "I forgot my password" link on the login page ' . '(Their registered email address has to be valid.)') . '</li>' . '<li>' . sprintf(__('Please note that Dotclear 2 has a new URL layout. You can avoid broken ' . 'links by installing <a href="%s">DC1 redirect</a> plugin and activate it in your blog configuration.'), 'http://plugins.dotaddict.org/dc2/details/dc1redirect') . '</li>' . '</ul>' . $this->congratMessage();
             break;
     }
 }
예제 #20
0
						</div>
						<div class="row">
							<h4><?php 
echo Kohana::lang('ui_main.password');
?>
</h4>
							<?php 
print form::password('password', $form['password'], ' class="text"');
?>
							<div style="clear:both;"></div>
							<?php 
echo Kohana::lang('ui_main.password_again');
?>
:<br />
							<?php 
print form::password('password_again', $form['password_again'], ' class="text"');
?>
						</div>
						<div class="row">
							<h4><?php 
echo Kohana::lang('ui_main.role');
?>
</h4>
							<?php 
if ($user and $user->loaded and $user->id == 1) {
    print form::dropdown('role', $role_array, $form['role'], ' readonly="readonly"');
} else {
    print form::dropdown('role', $role_array, $form['role']);
}
?>
						</div>
예제 #21
0
echo form::open('sessions/authenticate');
?>
	<fieldset>
		<legend>Login</legend>		
		
		<div class="formFields">
			<?php 
echo form::label('username', 'Username');
?>
			<?php 
echo form::input('username');
?>
		</div>
		
		<div class="formFields">
			<?php 
echo form::label('password', 'Password');
?>
			<?php 
echo form::password('password');
?>
		</div>
		
		<div class="formFields">
			<?php 
echo form::submit('submit', 'Login');
?>
		</div>
	</fieldset>
<?php 
echo form::close();
예제 #22
0
                throw new Exception(__("Passwords don't match"));
            }
            $cur->user_pwd = $_POST['new_pwd'];
        }
        # --BEHAVIOR-- adminBeforeUserUpdate
        $core->callBehavior('adminBeforeUserUpdate', $cur, $core->auth->userID());
        # Udate user
        $core->updUser($core->auth->userID(), $cur);
        # --BEHAVIOR-- adminAfterUserUpdate
        $core->callBehavior('adminAfterUserUpdate', $cur, $core->auth->userID());
        http::redirect('preferences.php?upd=1');
    } catch (Exception $e) {
        $core->error->add($e->getMessage());
    }
}
/* DISPLAY
-------------------------------------------------------- */
dcPage::open($page_title, dcPage::jsLoad('js/_preferences.js') . dcPage::jsConfirmClose('user-form') . $core->callBehavior('adminPreferencesHeaders'));
if (!empty($_GET['upd'])) {
    echo '<p class="message">' . __('Personal information has been successfully updated.') . '</p>';
}
echo '<h2>' . $page_title . '</h2>';
echo '<form action="preferences.php" method="post" id="user-form">' . '<fieldset><legend>' . __('User preferences') . '</legend>' . '<div class="two-cols">' . '<div class="col">' . '<p><label>' . __('Last Name:') . form::field('user_name', 20, 255, html::escapeHTML($user_name), '', 2) . '</label></p>' . '<p><label>' . __('First Name:') . form::field('user_firstname', 20, 255, html::escapeHTML($user_firstname), '', 3) . '</label></p>' . '<p><label>' . __('Display name:') . form::field('user_displayname', 20, 255, html::escapeHTML($user_displayname), '', 4) . '</label></p>' . '<p><label>' . __('Email:') . form::field('user_email', 20, 255, html::escapeHTML($user_email), '', 5) . '</label></p>' . '<p><label>' . __('URL:') . form::field('user_url', 30, 255, html::escapeHTML($user_url), '', 6) . '</label></p>' . '</div>' . '<div class="col">' . '<p><label>' . __('Preferred format:') . form::combo('user_post_format', $formaters_combo, $user_options['post_format'], '', 7) . '</label></p>' . '<p><label>' . __('Default entry status:') . form::combo('user_post_status', $status_combo, $user_post_status, '', 8) . '</label></p>' . '<p><label>' . __('Entry edit field height:') . form::field('user_edit_size', 5, 4, (int) $user_options['edit_size'], '', 9) . '</label></p>' . '<p><label>' . __('User language:') . form::combo('user_lang', $lang_combo, $user_lang, 'l10n', 10) . '</label></p>' . '<p><label>' . __('User timezone:') . form::combo('user_tz', dt::getZones(true, true), $user_tz, '', 11) . '</label></p>' . '<p><label class="classic">' . form::checkbox('user_wysiwyg', 1, $user_options['enable_wysiwyg'], '', 12) . ' ' . __('Enable WYSIWYG mode') . '</label></p>' . '</div>' . '</div>' . '<br class="clear" />' . '</fieldset>';
# --BEHAVIOR-- adminPreferencesForm
$core->callBehavior('adminPreferencesForm', $core);
if ($core->auth->allowPassChange()) {
    echo '<fieldset>' . '<legend>' . __('Change your password') . '</legend>' . '<p><label>' . __('New password:'******'new_pwd', 20, 255, '', '', 30) . '</label></p>' . '<p><label>' . __('Confirm password:'******'new_pwd_c', 20, 255, '', '', 31) . '</label></p>' . '</fieldset>' . '<fieldset>' . '<p>' . __('If you want to change your email or password you must provide your current password.') . '</p>' . '<p><label>' . __('Your password:'******'cur_pwd', 20, 255, '', '', 32) . '</label></p>' . '</fieldset>';
}
echo '<p class="clear">' . $core->formNonce() . '<input type="submit" accesskey="s" value="' . __('Save') . '" tabindex="33" /></p>' . '</form>';
dcPage::helpBlock('core_user_pref');
dcPage::close();
			<div class="row">
				<h4><?php 
echo Kohana::lang('nexmo.api_key');
?>
:</h4>
				<?php 
print form::input('nexmo_api_key', $form['nexmo_api_key'], ' class="text title_2"');
?>
			</div>
			<div class="row">
				<h4><?php 
echo Kohana::lang('nexmo.api_secret');
?>
:</h4>
				<?php 
print form::password('nexmo_api_secret', $form['nexmo_api_secret'], ' class="text title_2"');
?>
			</div>
			
			<div class="row">
				<h4><?php 
echo Kohana::lang('nexmo.phone_number');
?>
:</h4>
				<?php 
print form::input('nexmo_phone_no', $form['nexmo_phone_no'], ' class="text title_2"');
?>
			 </div>
			 
		</td>
	</tr>
예제 #24
0
?>
<h2><?php 
echo Kohana::lang('user.login');
?>
</h2>

<? base::success($success); ?>
<? base::errors($errors); ?>

<?
echo form::open(NULL, array('class' => 'glForms'));
echo form::label('email', kohana::lang('user.email'));
echo form::input('email', ($form['email']));
echo '<br />';
echo form::label('password', Kohana::lang('user.password'));
echo form::password('password', NULL);
echo '<br />';
echo form::label('submit', '&nbsp;');
echo form::submit('submit', Kohana::lang('user.logmein'),'class=button');
echo '<br />';
echo form::close();
?>
<p><a href="/user/register"><?php 
echo Kohana::lang('user.register');
?>
</a> | <a href="/user/password"><?php 
echo Kohana::lang('user.forgot_password');
?>
</a> | <a href="/user/renew"><?php 
echo Kohana::lang('user.renew_password');
?>
예제 #25
0
파일: main.php 프로젝트: niiyatii/crowdmap
						<td><strong><?php 
echo Kohana::lang('ui_main.password');
?>
:</strong><br />
						<?php 
print form::password('password', $form['password'], 'class="login_text new_password"');
?>
</td>
					</tr>
					<tr>
						<td><strong><?php 
echo Kohana::lang('ui_main.password_again');
?>
:</strong><br />
						<?php 
print form::password('password_again', $form['password_again'], 'class="login_text new_password_again"');
?>
</td>
					</tr>
					<?php 
//for plugins that want to add some extra stuff to this lovely view
Event::run('ushahidi_action.login_new_user_form');
?>
					<tr>
						<td><input type="submit" id="submit" name="submit" value="<?php 
echo Kohana::lang('ui_main.login_signup');
?>
" class="login_btn new_submit" /></td>
					</tr>
				</table>
			<?php 
예제 #26
0
		</div>
		<div id="login_item">
			<h2>Log in to My Shot</h2>
			<?php 
echo form::open('account/signin');
?>
			  <table>
			    <tr>
			      <td colspan="2"><?php 
echo form::input('username', '', array('class' => 'login_field blur', 'disabled' => 'disabled', 'data-ghost' => 'Username'));
?>
</td>
			    </tr>
			    <tr>
			      <td colspan="2"><?php 
echo form::password('password', '', array('class' => 'login_field blur', 'disabled' => 'disabled', 'data-ghost' => 'Password'));
?>
</td>
			    </tr>
			    <tr>
			    	<td class="submit">
			    		<div class="button_submit">
							<?php 
echo form::submit('submit', '');
?>
						</div>
			    	</td>
			    	<td class="forgot">
						<?php 
echo html::anchor('account/register', 'Sign Up');
?>
예제 #27
0
파일: add.php 프로젝트: jewelhuq/okatea
?>
</label>
			<?php 
echo form::password('add_password', 40, 255, html::escapeHTML($add_password));
?>
</p>

			<p class="field col"><label for="add_password_confirm" title="<?php 
_e('c_c_required_field');
?>
" class="required"><?php 
_e('c_c_auth_confirm_password');
?>
</label>
			<?php 
echo form::password('add_password_confirm', 40, 255, html::escapeHTML($add_password_confirm));
?>
</p>
		</div>

		<div class="two-cols">
			<p class="field col"><label for="add_language"><?php 
_e('c_c_Language');
?>
</label>
			<?php 
echo form::select('add_language', $aLanguages, html::escapeHTML($add_language));
?>
</p>

			<p class="field col"><label for="add_timezone"><?php 
예제 #28
0
if (!empty($username->error)) {
    ?>
<br /><span class="error"><?php 
    echo $username->error;
    ?>
</span><?php 
}
?>
	        </p>
	        <p class="password">
	        	<?php 
echo form::label($password->name, $password->label);
?>
<br />
	        	<?php 
echo empty($password->error) ? form::password($password->name) : form::password($password->name, '', 'class="error"');
?>
	        	<?php 
if (!empty($password->error)) {
    ?>
<br /><span class="error"><?php 
    echo $password->error;
    ?>
</span><?php 
}
?>
	        </p>
	        <p class="submit">
	        	<?php 
echo form::submit($submit->name, $submit->label);
?>
예제 #29
0
<?php

echo form::password($field->name, $field->value, $field->extra);
예제 #30
0
</h4>

							<div class="row">
								<?php 
echo Kohana::lang('ui_main.username');
?>
								<?php 
print form::input('laconica_username', $form['laconica_username'], ' class="text"');
?>
							</div>
								<div class="row" style="padding-top:5px;">
								<?php 
echo Kohana::lang('ui_main.password');
?>
								<?php 
print form::password('laconica_password', $form['laconica_password'], ' class="text"');
?>
							</div>
								<div class="row" style="padding-top:5px;">
								<?php 
echo Kohana::lang('settings.site.laconica_site');
?>
								<?php 
print form::input('laconica_site', $form['laconica_site'], 'class="text long2"');
?>
							</div>
						</div>
						<div class="row">
							<h4><?php 
echo Kohana::lang('settings.site.api_akismet');
?>