Viewing file: sart.php (5.4 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!doctype html> <html lang="en">
<head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="apple-touch-icon" sizes="76x76" href="<?= assets('img/apple-icon.png'); ?>"> <link rel="icon" type="image/png" href="<?= assets('img/favicon.png'); ?>"> <title> <?= $page['title']; ?> </title> <!-- Fonts and icons --> <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:400,700|Material+Icons" /> <link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
<!-- Nucleo Icons --> <!-- Font Awesome Icons --> <script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script> <!-- CSS Files --> <link id="pagestyle" href="<?= assets('css/material-dashboard.css?v=2.1.0'); ?>" rel="stylesheet" />
<?php if (settings('chat_active') == 'true') : ?> <link href="<?= base_url('assets/tpk-message.css'); ?>" rel="stylesheet" /> <?php endif; ?> <?= settings('custom_header'); ?> <script> window.base_url = "<?= base_url(); ?>/"; </script> <style> option { color: black !important; }
.landing-img { width: calc(100% / 2); } </style> </head>
<body class="dark-edition"> <?php if (settings('chat_active') == 'true') : ?> <div class="floating-chat"> <i class="material-icons tpk-message-icon">chat</i> <div class="chat"> <div class="header"> <span class="title"> <?= settings('site_name'); ?> Destek </span> <button class="tpk-button-times"> <i class="fas fa-times"></i> </button>
</div> <ul class="messages"> <li class="self"> <?php echo preg_replace( '!(http|ftp|scp)(s)?:\/\/(.*)+!', "<a href=\"\\0\">\\0</a>", settings('chat_default') ); ?> </li> </ul> <div class="footer"> <div class="text-box mesajAlani" contenteditable="true" disabled="true"></div> <button data-ust-hash="buton" class="mesaj-buton" id="sendMessage">Gönder</button> </div> </div> </div> <?php endif; ?>
<!-- End Navbar --> <div class="content"> <div class="container-fluid"> <?= $this->renderSection('content'); ?> </div> </div>
<script src="https://unpkg.com/default-passive-events"></script> <script src="<?= base_url('assets/jquery.min.js'); ?>"></script> <script src="<?= assets('js/core/popper.min.js'); ?>"></script> <script src="<?= assets('js/core/bootstrap-material-design.min.js'); ?>"></script> <script src="<?= assets('js/plugins/perfect-scrollbar.jquery.min.js'); ?>"></script> <script src="<?= assets('js/plugins/bootstrap-notify.js'); ?>"></script> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.12.1/css/jquery.dataTables.css"> <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.12.1/js/jquery.dataTables.js"></script> <script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<?= settings('custom_footer'); ?>
<script src="<?= base_url('assets/app.js'); ?>"></script>
<script src="<?= assets('js/material-dashboard.js?v=2.1.0'); ?>"></script> <?= $this->renderSection('js'); ?> <?php if (!user() && settings('fake_notification') == 'true') : ?> <script src="<?= base_url('assets/notification.js') ?>"></script>t <?php endif; ?> <?php if (settings('chat_active') == 'true') : ?> <script src="<?= base_url('assets/tpk-message.js'); ?>"></script> <script> $("body").on("click", ".mesaj-buton", function() { const mesajHash = $(this).attr("data-ust-hash") var mesajIcerik = $(".mesajAlani").text() var messagesContainer = $('.messages'); if (mesajHash != "buton") { mesajIcerik = $(this).attr("data-soru") } $(".mesaj-buton").attr("disabled", true) const text = `<li class="other">${mesajIcerik}</li>` $("ul.messages").append(text) $.ajax({ url: "<?= base_url('chat/message'); ?>", type: "POST", data: { "mesajgonder": "ok", "mesajHash": mesajHash, "mesajIcerik": mesajIcerik }, success: function(result) { $(".mesajAlani").html(null) $(".mesaj-buton").removeAttr("disabled") $("ul.messages").append(result) messagesContainer.finish().animate({ scrollTop: messagesContainer.prop("scrollHeight") }, 250); } }); }) </script> <?php endif; ?> </body>
</html>
|