<?php /* Smarty version Smarty-3.1.11, created on 2023-12-26 20:10:58
         compiled from "../views/default/secretquestion.html" */ ?>
<?php /*%%SmartyHeaderCode:337938733658b1732de0295-02066296%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd166cae485c1caf97fc69bc8042513eff71f442b' => 
    array (
      0 => '../views/default/secretquestion.html',
      1 => 1693253994,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '337938733658b1732de0295-02066296',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'path' => 0,
    'userQuestion' => 0,
    'username' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_658b1732ee05c4_41886086',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_658b1732ee05c4_41886086')) {function content_658b1732ee05c4_41886086($_smarty_tpl) {?><!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="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/css/bootstrap.min.css" rel="stylesheet" media="screen">
        <!-- Custom styles for project -->
        <link href="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/css/store.css" rel="stylesheet">
    </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=enq" method="post" id="ansForm">
                            <div class="form-group">
                                <div class="col-lg-12"><label class="form-group" style="margin-right: 0px;"><?php echo $_smarty_tpl->tpl_vars['userQuestion']->value;?>
</label> </div>
                            </div>
                            <div class="form-group">
                                <div class="col-lg-12"><textarea class="form-control" name="answer" id="answer" rows="3" required></textarea></div>
                            </div>
                            <input type="hidden" name="username" value="<?php echo $_smarty_tpl->tpl_vars['username']->value;?>
"/>
                            <div class="form-group">
                                <div class="col-lg-offset-2 col-lg-10">
                                    <button type="button" class="btn btn-default pull-left" id="tryAnswer">دخول</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="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/js/jquery.js"></script>
        <!-- Include all compiled plugins (below), or include individual files as needed -->
        <script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/js/bootstrap.min.js"></script>

        <!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) -->
        <script src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/assets/js/respond.min.js"></script>
        
        <script>
            $('#tryAnswer').on('click', function () {
                if ($("#answer").val() == "")
                {
                    $("#answer").css('background', 'yellow');
                }
                else
                {
                    $("#answer").css('background', 'white');
                    $('#ansForm').submit();
                }
            });


        </script>
        
    </body>
</html><?php }} ?>