<!DOCTYPE html>
<html lang="en" dir='rtl'>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
 
        <title><?=$title?></title>
        <!-- Main styles for this application -->
        <link href="<?=base_url()?>assets/admin/assets/css/style.css" rel="stylesheet">
    </head>
    <body class="">
        <div class="container">
            <div class="row">
                <div class="col-md-8 col-md-offset-2">
                    <div class="card-group vamiddle">
                        <div class="card  p-a-2">
                            <div class="card-block">
                                <h1>تم تسجیل الخروج بنجاح</h1>
                                <p class="text-muted">سجل الدخول إلى حساب الإدارة</p>
								
									<?php echo validation_errors(); ?>
									<?php if(count($errors)>0){
										foreach ($errors as $err){
											echo "<p style='color: red'> $err</p>";
										}
									}
									?>

									<?php echo form_open('admin/login'); ?>
                                <div class="input-group m-b-1">
                                    <span class="input-group-addon"><i class="icon-user"></i></span>
                                    <input type="text" name="username" class="form-control" placeholder="اسم المستخدم">
                                </div>
                                <div class="input-group m-b-2">
                                    <span class="input-group-addon"><i class="icon-lock"></i></span>
                                    <input name="password" type="password" class="form-control" placeholder="كلمة المرور">
                                </div>
                                <div class="row">
                                    <div class="col-xs-6">
                                        <button type="submit" class="btn btn-primary p-x-2">الدخول</button>
                                    </div>
                                    <div class="col-xs-6 text-xs-right">
                                        ی
                                    </div>
                                </div>
                            </div>
							</form>
							</div>

                    </div>
                </div>
            </div>
        </div>
        <!-- Bootstrap and necessary plugins -->
        <script src="<?=base_url()?>assets/admin/assets/js/libs/jquery.min.js"></script>
        <script src="<?=base_url()?>assets/admin/assets/js/libs/tether.min.js"></script>
        <script src="<?=base_url()?>assets/admin/assets/js/libs/bootstrap.min.js"></script>
        <script>
        function verticalAlignMiddle()
        {
            var bodyHeight = $(window).height();
            var formHeight = $('.vamiddle').height();
            var marginTop = (bodyHeight / 2) - (formHeight / 2);
            if (marginTop > 0)
            {
                $('.vamiddle').css('margin-top', marginTop);
            }
        }
        $(document).ready(function()
        {
            verticalAlignMiddle();
        });
        $(window).bind('resize', verticalAlignMiddle);
        </script>
        
        
    </body>
</html>