<?php /* Smarty version Smarty-3.1.11, created on 2024-09-09 09:55:46
         compiled from "..\views\default\gt4settingview\pass.html" */ ?>
<?php /*%%SmartyHeaderCode:3060666de9bf2169aa5-31601530%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4ccb92c9b13896f9887106912169feb6f0503e60' => 
    array (
      0 => '..\\views\\default\\gt4settingview\\pass.html',
      1 => 1672089199,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3060666de9bf2169aa5-31601530',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66de9bf219b976_93937713',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66de9bf219b976_93937713')) {function content_66de9bf219b976_93937713($_smarty_tpl) {?>
<div class="row">



    <div class="container" >
        <ol class="breadcrumb">
            <li><a href="#">خصائص عامة</a></li>
            <li class="active">اعدادات gt4</li>
        </ol>


        <div class="row" id="mainDiv_uga">


            <div class="container" style="padding: 0px 15px;">
                <div class="panel panel-default panel-m row">
                    <div class="panel-heading">
                        <h3 class="panel-title">اعدادات gt4</h3>
                    </div>
                    <div class="panel-body">



                        <div class="col-lg-5 col-lg-offset-4">
                            <div class="panel panel_login">
                                <div class="panel-heading loginpanel">
                                    <h3 class="panel-title">تأكيد الصلاحية</h3>
                                </div>
                                <form class="form-horizontal" id="uga-login-form">
                                    <div class="form-group">
                                        <label for="password" class="col-lg-4 control-label">كلمة المرور</label>
                                        <div class="col-lg-8">
                                            <input type="password" class="form-control" id="password" name="password" placeholder="كلمة المرور">
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <div class="col-lg-offset-2 col-lg-10">
                                            <button type="submit" id="uga-go-btn" class="btn btn-default pull-left submit color-white">متابعة</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>




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



        </div>



    </div>
</div>


<script type="text/javascript">
    var attempts = 0;
    $('#uga-login-form').live('submit', function (e) {
        e.preventDefault();
        e.stopPropagation();
        var thisis = $(this);
        if (!thisis.hasClass('processing...')) {
            thisis.addClass('processing...');
            if ($('#password').val() == "") {
                $('#password').css('background-color', 'yellow');
                thisis.removeClass('processing...');
            } else {
                $('#password').css('background-color', 'white');
                $.ajax({
                    type: "POST",
                    url: 'gt4setting.php?do=en',
                    data: {password: $('#password').val()},
                    async: false,
                    success: function (data) {
                        thisis.removeClass('processing...');
                        if (data == -1) {
                            attempts = attempts + 1;
                            if (attempts < 3) {
                                $('#password').css('background-color', '#d43f3a');
                                setTimeout(function () {
                                    $('#password').css('background-color', 'white');
                                    $('#password').val("");
                                }, 2000)
                            } else {
                                window.location.href = 'logout.php';
                            }
                        } else {
                            $('#mainDiv_uga').html(data);
                        }

                    }

                });

            }
        }
    });
    $(function () {
        setTimeout(function () {
            $('#password').focus();
        }, 0);
    })
</script>
<?php }} ?>