<?php require_once(APPPATH.'/views/header.php'); ?>
<body>
    <div id="wrapper">
        <?php require_once(APPPATH.'/views/menu_user.php');?>
        <div id="page-wrapper">

            <div class="container-fluid">
                
                <?php
                        if(isset($info))
                        {
                            if(isset($info['info']))
                            echo <<< INF
                                    <div class="row">
                                        <div class="col-md-6 col-md-offset-3">
                                              <div class="alert alert-info" role="alert">{$info['info']}</div>
                                        </div>
                                    </div>
INF;
                        else
                            if(isset($info['eroare']))
                                echo <<< ERR
                                    <div class="panel panel-red">
                                        <div class="panel-heading">
                                            <h3 class="panel-title">$ERROR_TITLE</h3>
                                        </div>
                                    <div class="panel-body">
                                        {$info['eroare']}
                                    </div>
                            </div>
ERR;
                        }
                        ?>

        <div class="row">
            <div class="col-md-4 col-md-offset-4 col-lg-4 col-lg-offset-4 col-sm-6 col-sm-offset-3 col-xs-8 col-xs-offset-2">
                <div class="login-panel panel panel-default mrgtop">
                    <div class="panel-heading">
                        <h3 class="panel-title"><?php echo $CHG_PASS_TITLE;?></h3>
                    </div>
                    <div class="panel-body">
                        <form role="form" action="<?php echo base_url();?>admin/change_pass" method="post">
                            
                            <input type="hidden" name="id_user" id="id_user" value="<?php echo $id_user;?>">
                            
                            <fieldset>
                                <div class="form-group">
                                    <input class="form-control" placeholder="<?php echo $CHG_PASS_ACTUAL_PASS;?>" name="actual" type="password" value="">
                                </div>
                                <div class="form-group">
                                    <input class="form-control" placeholder="<?php echo $CHG_PASS_NEW_PASS;?>" name="password" type="password" value="">
                                </div>
                                <div class="form-group">
                                    <input class="form-control" placeholder="<?php echo $CHG_PASS_CONFIRM_PASS;?>" name="password_confirm" type="password" value="">
                                </div>
                                <input type="submit" class="btn btn-lg btn-primary btn-block" value="<?php echo $CHG_PASS_BUTTON;?>" />
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
            </div>
            <!-- /#page-wrapper -->
        </div>
        <!-- /#wrapper -->
</body>
</html>