?> </p> <?php $form = new Appform(); if (isset($errors)) { $form->errors = $errors; } if (isset($defaults)) { $form->defaults = $defaults; } else { unset($_POST['password']); unset($_POST['password_confirmation']); $form->defaults = $_POST; } echo $form->open('user/register'); ?> <ul> <?php echo View::factory('user/user_edit_form')->set(array('form' => $form)); ?> <?php if (isset($captcha_enabled) && $captcha_enabled) { ?> <li> <?php echo $recaptcha_html; ?>
<?php $form = new Appform(); if (isset($errors)) { $form->errors = $errors; } if (isset($data)) { unset($data['password']); unset($data['password_confirm']); $form->values = $data; } echo $form->open('admin_user/edit/' . $id); ?> <?php echo $form->hidden('id', $id); ?> <div class="block"> <h1><?php echo __('Edit/add user'); ?> </h1> <div class="content"> <ul> <li><label><?php echo __('Username');
if (isset($username)) { $form->values['username'] = $username; } // set custom classes to get labels moved to bottom: $form->error_class = 'error block'; $form->info_class = 'info block'; ?> <div id="box"> <div class="block"> <h1><?php echo __('Login'); ?> </h1> <div class="content"> <?php echo $form->open('user/login'); echo '<table><tr><td style="vertical-align: top;">'; echo '<ul>'; echo '<li>' . $form->label('username', __('Email or Username')) . '</li>'; echo $form->input('username', null, array('class' => 'text twothirds')); echo '<li>' . $form->label('password', __('Password')) . '</li>'; echo $form->password('password', null, array('class' => 'text twothirds')); echo '</ul>'; echo $form->submit(NULL, __('Login')); echo '<small> ' . Html::anchor('user/forgot', __('Forgot your password?')) . '<br></small>'; echo $form->close(); echo '</td><td width="5" style="border-right: 1px solid #DDD;"> </td><td><td style="padding-left: 2px; vertical-align: top;">'; echo '<ul>'; echo '<li style="height: 61px">' . __('Don\'t have an account?') . ' ' . Html::anchor('user/register', __('Register a new account')) . '.</li>'; echo '</ul>'; echo '</td></tr></table>';
} if (@$_GET['email'] && !@$_POST['email']) { $_POST['email'] = $_GET['email']; } $form = new Appform(); if (isset($errors)) { $form->errors = $errors; } if (isset($defaults)) { $form->defaults = $defaults; } else { unset($_POST['password']); unset($_POST['password_confirmation']); $form->defaults = $_POST; } echo $form->open(''); ?> <fieldset> <div class="clearfix"> <label>First name</label> <div class="input"><?php echo $form->input('firstname', null, array('required' => 'required', 'autofocus' => 'autofocus')); ?> </div> </div> <div class="clearfix"> <label>Surname</label> <div class="input"><?php
if (isset($username)) { $form->values['username'] = $username; } // set custom classes to get labels moved to bottom: $form->error_class = 'error block'; $form->info_class = 'info block'; ?> <div id="box"> <div class="block"> <h1><?php echo $title; ?> </h1> <div class="content meal_info"> <?php echo $form->open(); echo '<ul>'; echo '<li class="li_label">' . $form->label('shakes', __('Shakes:')) . '</li>'; echo $form->select('shakes', array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)); echo '<li class="li_label">' . $form->label('entree', __('Entrees:')) . '</li>'; echo $form->select('entree', array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)); echo '<li class="li_label">' . $form->label('bars', __('Bars:')) . '</li>'; echo $form->select('Bars', array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)); echo '<li class="li_label">' . $form->label('vegetables', __('Vegetables:')) . '</li>'; echo $form->select('Vegetables', array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)); echo '<li class="li_label">' . $form->label('fruits', __('Fruits:')) . '</li>'; echo $form->select('Fruits', array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)); echo '<li class="li_label">' . $form->label('notes', __('Notes:')) . '</li>'; echo $form->textarea('notes'); echo '</ul>'; echo $form->submit(NULL, __('Save'));
<?php $form = new Appform(); if (isset($errors)) { $form->errors = $errors; } if (isset($data)) { unset($data['password']); $form->values = $data; } echo $form->open('user/profile_edit'); ?> <div class="block"> <h1><?php echo __('Edit profile'); ?> </h1> <div class="content"> <ul> <li><label><?php echo __('Username'); ?> </label></li> <?php echo $form->input('username', null, array('info' => __('Length between 4-32 characters. Letters, numbers, dot and underscore are allowed characters.'))); ?> <li><label><?php echo __('Email address'); ?> </label></li> <?php