<div class="container">
    <div class="row">
        <div class="col-md-6 col-md-offset-3">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2 class="form-signin-heading">Edit Profile</h2>

                </div>

                <div class="panel-body">
                    <?php
                    $attributes = array(
                        'class' => 'form-horizontal',
                    );
                    ?>

                    <?php echo form_open(uri_string(), $attributes); ?>

                    <?php echo validation_errors('<p class="alert alert-dismissable alert-danger">'); ?>

                    <span class="msgF pull-right">* required field.</span>

                   <div class="form-group">           
                        <label for="company" class="col-sm-3 control-label">Company:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" name="company" autocomplete="off" value="<?php echo $user->company; ?>">
                        </div>
                        <div class="col-xs-1">
                            <span class="error2">*</span>
                        </div>
                    </div>

                    <div class="form-group">           
                        <label for="phone" class="col-sm-3 control-label">Phone:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" name="phone" autocomplete="off" value="<?php echo $user->phone; ?>">
                        </div>
                        <div class="col-xs-1">
                            <span class="error2">*</span>
                        </div>
                    </div>

                    <div class="form-group">           
                        <label for="address" class="col-sm-3 control-label">Address:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" name="address" autocomplete="off" value="<?php echo $user->address; ?>">
                        </div>

                    </div>

                    <div class="form-group">           
                        <label for="city" class="col-sm-3 control-label">City:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" name="city" autocomplete="off" value="<?php echo $user->city; ?>">
                        </div>

                    </div>

                    <div class="form-group">           
                        <label for="state" class="col-sm-3 control-label">State:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" name="state" autocomplete="off" value="<?php echo $user->state; ?>">
                        </div>

                    </div>

                    <div class="form-group">           
                        <label for="zip" class="col-sm-3 control-label">Zip Code:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" name="zip" autocomplete="off" value="<?php echo $user->zip; ?>">
                        </div>

                    </div>

                    <div class="form-group">           
                        <label for="country" class="col-sm-3 control-label">Country:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" name="country" autocomplete="off" value="<?php echo $user->country; ?>">
                        </div>
                        <div class="col-xs-1">
                            <span class="error2">*</span>
                        </div>
                    </div>

                    <div class="form-group">           
                        <label for="website" class="col-sm-3 control-label">Website:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" name="website" autocomplete="off" value="<?php echo $user->website; ?>">
                        </div>

                    </div>

                    <div class="form-group">
                        <label for="biography" class="col-sm-3 control-label">Small Biography:</label>
                        <div class="col-sm-5">
                            <textarea type="text" class="form-control" rows="7" name="biography" autocomplete="off"><?php echo $user->biography; ?></textarea>
                        </div>
                    </div>
                    
                    <div class="form-group">           
                        <label for="picture" class="col-sm-3 control-label">Picture:</label>
                        <div class="col-sm-5">
                            <input type="file" class="form-control" name="userfile" size="20">
                        </div>
                    </div>


                    <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-10">
                            <button type="submit" class="btn btn-primary btn-xs">Save 
                                <i class="glyphicon glyphicon-log-in"></i></button>
                        </div>
                    </div>

                    <?php echo form_hidden('id', $user->id); ?>
                    <?php echo form_hidden($csrf); ?>

                    <?php echo form_close(); ?>

                </div>
            </div>
        </div>
    </div>
</div>