<?php /* Smarty version Smarty-3.1.11, created on 2025-01-27 15:12:16
         compiled from "../views/default/gt4settingview/pass.html" */ ?>
<?php /*%%SmartyHeaderCode:6668982736797863091b9e2-33210442%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e80c479652deae5acd42c1b27d9a4896c824f10b' => 
    array (
      0 => '../views/default/gt4settingview/pass.html',
      1 => 1672089198,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '6668982736797863091b9e2-33210442',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6797863097a0b8_19369002',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6797863097a0b8_19369002')) {function content_6797863097a0b8_19369002($_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 }} ?>