<ul class="breadcrumb">
    <li><a href="<?= site_url('admin/dashboard') ?>">Home</a></li> 
    <li class="active"><?php echo $breadcum ?></li> 
</ul>
<div class="page-content-wrap">
    <div class="row">
        <div class="col-md-12">
            <form action="" class="form-horizontal" method="post" enctype="multipart/form-data">
                <div class="panel panel-default">
                 <div class="panel-heading">                       
                        <h3 class="panel-title">Change Password</h3>
                        <ul class="panel-controls">
                            <li><a href="" onclick="history.back()"><span class="fa fa-backward" title="Back"></span></a></li>
                        </ul>
                    </div>
                  
                    <div class="panel-body form-group-separated">
                        
                         <?php if ($this->session->flashdata('errormsg')) { ?>  
                                    <div class="alert alert-danger"> <?= $this->session->flashdata('errormsg') ?></div>
                                <?php } ?>
                         <?php if ($this->session->flashdata('successmsg')) { ?>  
                                    <div class="alert alert-success"> <?= $this->session->flashdata('successmsg') ?></div>
                                <?php } ?>
                      
                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Current Password</label>
                            <div class="col-md-6 col-xs-12">                                            
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" name="old_pass" class="form-control" value="<?= $old_pass ?>"/>
                                </div> 
                                 <span class="help-block" style="color: red;"><?= strip_tags(form_error('old_pass'))?></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">New Password</label>
                            <div class="col-md-6 col-xs-12">                                            
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" name="new_pass" class="form-control" value="<?= $new_pass ?>"/>
                                </div> 
                                 <span class="help-block" style="color: red;"><?= strip_tags(form_error('new_pass'))?></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Confirm Password</label>
                            <div class="col-md-6 col-xs-12">                                            
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="password" name="re_password" class="form-control" value="<?= $re_password ?>"/>
                                </div>
                                 <span class="help-block" style="color: red;"><?= strip_tags(form_error('re_password'))?></span>
                            </div>
                        </div>
                        
                    </div>
                    <div class="panel-footer">
                        <button class="btn btn-default" type="reset">Clear Form</button>                                    
                        <button class="btn btn-primary pull-right">Submit</button>
                    </div>
                </div>
            </form>

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

