<!DOCTYPE html>
<html>
    <head>
        <title>برنامج المحاسبة</title>
        <meta charset="utf-8">
        <!-- read and write any langs -->
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- Bootstrap -->
        <link href="{$path}/assets/css/bootstrap.min.css" rel="stylesheet" media="screen">
        <!-- Custom styles for project -->
        <link href="{$path}/assets/css/store.css" rel="stylesheet">
        <!-- valadition -->
        <link href="{$path}/assets/css/validtextfield.css" rel="stylesheet">
        <link href="{$path}/assets/css/validselect.css" rel="stylesheet">
        <link href="{$path}/assets/css/validtextarea.css" rel="stylesheet">
        <script src="../../SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
        <link href="../../SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css">
    </head>
    <body class="usedfont">
        <div class="container">
            <div class="row mgtop50">
                <div class="col-lg-5 col-lg-offset-4">
                    <div class="panel">
                        <div class="panel-heading loginpanel">
                            <h3 class="panel-title">تسجيل الدخول</h3>
                        </div>
                        <form class="form-horizontal" action="login.php?do=en" method="post">
                            <div class="form-group">
                                <label for="username" class="col-lg-4 control-label">اسم الدخول</label>
                                <div class="col-lg-8"> <span id="usernamevaild">
                                        <input type="text" class="form-control" id="username" name="username" placeholder="اسم الدخول">
                                        <span class="textfieldRequiredMsg">*</span></span> </div>
                            </div>
                            <div class="form-group">
                                <label for="password" class="col-lg-4 control-label">كلمة المرور</label>
                                <div class="col-lg-8"> <span id="passwordvaild">
                                        <input type="password" class="form-control" id="password" name="password" placeholder="كلمة المرور">
                                        <span class="textfieldRequiredMsg">*</span></span> </div>
                            </div>

                            <div class="form-group">
                                <label class="col-lg-4 control-label">قاعدة البيانات</label>
                                <div class="col-lg-8">
                                    <span id="spryselect1">
                                        <select name="db" id="db" class="select2 wdt100" placeholder="اختر قاعدة البيانات">
                                            {assign var=bar value=1}
                                            {section name=i loop=$databases}

                                            <option value="{$databases[i]}" {if $bar == 1}selected="selected" {/if}>{$databases[i]}</option>

                                            {assign var=bar value=$bar+1}
                                            {/section}


                                        </select>
                                        <span class="selectRequiredMsg">*</span></span></div>
                            </div>

                            <div class="form-group">
                                <div class="col-lg-offset-2 col-lg-10">
                                    <button type="submit" class="btn btn-default pull-left">دخول</button>
                                </div>
                            </div>
                        </form>
                    </div>
                    <span class="help-block">جميع الحقوق محفوظة لشركة GT4 للبرمجيات.</span> </div>
            </div>
        </div>

        <!-- JavaScript plugins (requires jQuery)
            <script src="http://code.jquery.com/jquery.js"></script>-->
        <script src="{$path}/assets/js/jquery.js"></script>
        <!-- Include all compiled plugins (below), or include individual files as needed -->
        <script src="{$path}/assets/js/bootstrap.min.js"></script>

        <!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) -->
        <script src="{$path}/assets/js/respond.min.js"></script>

        <!-- valadition -->
        <script src="{$path}/assets/js/validtextfield.js"></script>
        <script src="{$path}/assets/js/validselect.js"></script>
        <script src="{$path}/assets/js/validtextarea.js"></script>
        <script type="text/javascript">
            var usernamevaild = new Spry.Widget.ValidationTextField("usernamevaild");
            var passwordvaild = new Spry.Widget.ValidationTextField("passwordvaild");
            var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
        </script>
    </body>
</html>