Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="" method="post" id="user_form">
- <fieldset id="account">
- <dl>
- <dt><label for="username">Username</label></dt>
- <dd>
- <input type="text" name="username" required="true" validate="strlen 32 3; username" value="<?php echo $this->user['USERNAME'] ?>" />
- <error for="username" class="error_icon"></error>
- <error for="username" validator="required">This is a required field</error>
- </dd>
- <dt><label for="username">First Name</label></dt>
- <dd>
- <input type="text" name="first_name" required="true" validate="strlen 32 3; words" value="<?php echo $this->user['FIRST_NAME'] ?>" />
- <error for="username" class="error_icon"></error>
- <error for="username" validator="required">This is a required field</error>
- </dd>
- <dt><label for="username">Last Name</label></dt>
- <dd>
- <input type="text" name="last_name" required="false" validate="strlen 32 3; words" value="<?php echo $this->user['LAST_NAME'] ?>" />
- <error for="username" class="error_icon"></error>
- <error for="username" validator="required">This is a required field</error>
- </dd>
- </dl>
- </fieldset>
- <fieldset id="access">
- <dl>
- <dt><label for="role">Role</label></dt>
- <dd>
- <select name="role" validate="strict">
- <?php foreach ($this->roles as $role_id => $role_name) : ?>
- <option value="<?php echo $role_id ?>"><?php echo $role_name ?></option>
- <?php endforeach ?>
- </select>
- <error for="role" class="error_icon"></error>
- <error for="role" validator="required">This is a required field</error>
- </dd>
- <dt><label for="all_stages">All Stages</label></dt>
- <dd><input type="checkbox" name="all_stages" />
- <dt><label>Order Stages</label></dt>
- <dd>
- <div style="width: 300px; display: inline-block; overflow: auto">
- <table>
- <col></col>
- <col style="width: 20px; text-align: right"></col>
- <col style="width: 20px; text-align: right"></col>
- <thead>
- <tr>
- <th>Stage</th>
- <th>R</th>
- <th>W</th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($this->stages as $order_stage => $stage_name) : ?>
- <tr>
- <td><?php echo $stage_name ?></td>
- <td><input type="checkbox" name="order_stages[<?php echo $order_stage ?>][]" value="read" validate="strict" /></td>
- <td><input type="checkbox" name="order_stages[<?php echo $order_stage ?>][]" value="write" validate="strict" /></td>
- </tr>
- <?php endforeach ?>
- <tbody>
- </table>
- </div>
- </dd>
- <dt><label for="all_stores">All Stores</label></dt>
- <dd><input type="checkbox" name="all_stores" />
- <dt><label>Store Access</label></dt>
- <dd>
- <div style="width: 300px; height: 300px; display: inline-block; overflow: auto">
- <table id="store_access_table">
- <col></col>
- <col style="width: 20px; text-align: right"></col>
- <col style="width: 20px; text-align: right"></col>
- <thead>
- <tr>
- <th>Store</th>
- <th>R</th>
- <th>W</th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($this->stores as $store_code => $store_name) : ?>
- <tr>
- <td><?php echo $store_name ?></td>
- <td><input type="checkbox" name="store_access[<?php echo $store_code ?>][]" value="read" validate="strict" /></td>
- <td><input type="checkbox" name="store_access[<?php echo $store_code ?>][]" value="write" validate="strict" /></td>
- </tr>
- <?php endforeach ?>
- <tbody>
- </table>
- </div>
- <error for="store_access" class="error_icon"></error>
- <error for="store_access" validator="strict">Unknown elements found</error>
- </dd>
- </dl>
- </fieldset>
- <input type="submit" value="Save" />
- </form>
Add Comment
Please, Sign In to add comment