<!-- Thông báo lỗi -->
<?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<?php
$input_old_password = array('name' => 'old_password','type' => 'password','value' => $old_password,'style' => 'width: 100%');
$input_password = array('name' => 'password','type' => 'password','value' => $password,'style' => 'width: 100%');
$input_password2 = array('name' => 'password2','type' => 'password','value' => $password2,'style' => 'width: 100%');
?>

<div class="row">
    <div class="widget-box">
        <div class="widget-header">
            <p class="widget-title">Thay đổi mật khẩu User</p>
        </div>
        <div class="widget-body">
            <div class="widget-main">
                <?php
                $attributes = array('class' => 'form-horizontal', 'id' => 'myform');
                echo form_open(base_url().'backend/adminSetting/changePassword/'.$adminById[0]['id'], $attributes);
                ?>
                <div class="form-group">
                    <label class="col-lg-3">Mật khẩu cũ (*)</label>
                    <div class="col-lg-3">
                        <?php echo form_input($input_old_password); ?>
                    </div><div class="col-lg-3">
                        <?php if(validation_errors()){echo form_error('old_password', '<div class="error">', '</div>');} ?>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-lg-3">Mật khẩu mới (*)</label>
                    <div class="col-lg-3">
                        <?php echo form_input($input_password); ?>
                    </div><div class="col-lg-3">
                        <?php if(validation_errors()){echo form_error('password', '<div class="error">', '</div>');} ?>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-lg-3">Nhập lại mật khẩu mới (*)</label>
                    <div class="col-lg-3">
                        <?php echo form_input($input_password2); ?>
                    </div><div class="col-lg-3">
                        <?php if(validation_errors()){echo form_error('password2', '<div class="error">', '</div>');} ?>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-lg-4 col-lg-offset-3">
                        <button class="btn btn-sm btn-primary" type="submit" name="btnSave">
                            <i class="ace-icon fa fa-check bigger-110"></i>Lưu lại
                        </button>
                    </div>
                </div>
                <?php echo form_close(); ?>
            </div>
        </div>
    </div>
</div><!-- /.row -->