<div class="col-lg-4 col-lg-offset-4">
<h2>Hello <?php echo $first_name; ?>,</h2>
<h5>Please enter the required information below.</h5>
<hr>
<?php
$fattr = array('class' => 'form-signin');
echo form_open('/user/adduser', $fattr);
?>
<div class="form-group">
<?php echo form_input(array('name' => 'firstname', 'id' => 'firstname', 'placeholder' => 'First Name', 'class' => 'form-control', 'value' => set_value('firstname'))); ?>
<?php echo form_error('firstname'); ?>
</div>
<div class="form-group">
<?php echo form_input(array('name' => 'lastname', 'id' => 'lastname', 'placeholder' => 'Last Name', 'class' => 'form-control', 'value' => set_value('lastname'))); ?>
<?php echo form_error('lastname'); ?>
</div>
<div class="form-group">
<?php echo form_input(array('name' => 'email', 'id' => 'email', 'placeholder' => 'Email', 'class' => 'form-control', 'value' => set_value('email'))); ?>
<?php echo form_error('email'); ?>
</div>
<div class="form-group">
<?php
$dd_list = array(
'1' => 'Admin',
'2' => 'User',
'3' => 'Subscriber',
);
$dd_name = "role";
echo form_dropdown($dd_name, $dd_list, set_value($dd_name), 'class = "form-control" id="role"');
?>
</div>
<div class="form-group">
<?php echo form_password(array('name' => 'password', 'id' => 'password', 'placeholder' => 'Password', 'class' => 'form-control', 'value' => set_value('password'))); ?>
<?php echo form_error('password') ?>
</div>
<div class="form-group">
<?php echo form_password(array('name' => 'passconf', 'id' => 'passconf', 'placeholder' => 'Confirm Password', 'class' => 'form-control', 'value' => set_value('passconf'))); ?>
<?php echo form_error('passconf') ?>
</div>
<?php echo form_submit(array('value' => 'Add', 'class' => 'btn btn-lg btn-primary btn-block')); ?>
<?php echo form_close(); ?>
</div>
|