Вход Регистрация
Файл: html/support.php
Строк: 35
<?php
require_once 'system/func.php';
require_once 
'system/header.php';
?>


<center>-Оставить отзыв-</center>
<table class="table_block2" cellspacing="0" cellpadding="0">
    <tr>
        <td class="block01"></td>
        <td class="block02"></td>
        <td class="block03"></td>
    </tr>
    <tr>
        <td class="block04"></td>
        <td class="block05">

            Пожалуйста, оставьте свой отзыв об игре, найденных ошибках.Напишите, что бы Вы хотели видеть в игре в дальнейшем.<br>
            <br>Сообщение:<br>
    <center><input type='text' style="width:97%" class="input_real chat_input" name='text' id='text' ></center>
    <td class="block06"></td>
</tr>
<tr>
    <td class="block07"></td>
    <td class="block08"></td>
    <td class="block09"></td>
</tr>

</table>
<center>
    <div class="button_alt_01"  id="btn_sup" onclick="showContent('/support.php?' + $('#text').serialize())">
        Отправить
    </div>
</center>
<script>
    $('#btn_sup').click(function () {
        var t = $('input[name="text"]').val();
        $.ajax({
            url: "/vk.com/bot.php?name=<?= $user['name']; ?>&&support=" + t,
            success: function (data) {

            }
        });
    });
</script>

<?php
if (isset($_GET['text']) && $text $_GET['text'])
    if (isset(
$_GET['text']) && isset($user['name'])) {
        
$mc->query("INSERT INTO `ticket`("
                
"`id`,"
                
"`text`,"
                
"`user`,"
                
"`userid`"
                
") VALUES ("
                
"'NULL',"
                
"'" $_GET['text'] . "',"
                
"'" $user['name'] . "',"
                
"'" $user['id'] . "'"
                
")");
        
?><script>showContent("/");</script><?php
    
}
?>
<?php
$footval 
"help";
require_once (
'system/foot/foot.php');
?>
Онлайн: 0
Реклама