コード例 #1
0
ファイル: login.php プロジェクト: nimashoghi/LolStatBot
    <![endif]-->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script type="text/javascript" src="pnotify.custom.min.js"></script>
    <script type="text/javascript">
        PNotify.prototype.options.styling = "bootstrap3";
    </script>
    <!--PNotify-->
    <link href="pnotify.custom.min.css" media="all" rel="stylesheet" type="text/css" />
</head>

<body>

<div class="container">
    <?php 
if (issetGetValue('loginFailed')) {
    ?>
        <script type="text/javascript">
            window.onload = function()
            {
                new PNotify({
                    title: 'Login Failed',
                    text: 'There was a problem with your login process. Please try again.',
                    type: 'error'
                });
            };
        </script>
    <?php 
}
?>
コード例 #2
0
    {
        $(element).click(function()
        {
            var hidden = ($(element).prop('checked')) ? 1 : 0;
            var id = parseInt(element.id.replace('hidePlayer', ''));

            $.post("forms/hidden_submit.php",
                {
                    id: id,
                    hidden: hidden,
                    type: 'player'
                },
                function(data, status)
                {
                    var hiddenGet = '<?php 
print issetGetValue("hidden", "0");
?>
';
                    if (status == "success" && data == "1" && ((hidden == 1 && hiddenGet == "0") || (hidden == 0 && hiddenGet == "1")))
                    {
                        $(('#tableRow' + id)).children('td')
                            .animate({
                                padding: 0
                            })
                            .wrapInner('<div />')
                            .children()
                            .slideUp(function()
                            {
                                $(this).closest('tr').remove();
                            });
                    }
コード例 #3
0
ファイル: playerQueue.php プロジェクト: nimashoghi/LolStatBot
?>
                            </ul>
                        </div>
                        <br />
                    </caption>
                    <thead>
                    <div class="text-center">
                        <ul id="paginationId" class="pagination pagination-sm"></ul>
                    </div>
                    <tr>
                        <th><a href="<?php 
print getLinkWithGet(array('orderBy' => 'name', 'desc' => revString(issetGetValue('desc', '1'))), $_SERVER['PHP_SELF'], $_GET);
?>
">Name</a></th>
                        <th><a href="<?php 
print getLinkWithGet(array('orderBy' => 'processed', 'desc' => revString(issetGetValue('desc', '-1'))), $_SERVER['PHP_SELF'], $_GET);
?>
">Processed</a></th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php 
$query = $dbConn->prepare("SELECT `name`, `processed`" . "FROM `player_queue`" . $conditions . "ORDER BY {$orderByVal} {$orderByOrder} " . "LIMIT {$lowerLimit}, {$upperLimit}");
$query->execute();
$result = $query->get_result();
while ($row = $result->fetch_assoc()) {
    print "<tr class=\"tableRow\">";
    print '<td>' . $row['name'] . '</td>';
    print '<td>' . (intval($row['processed']) == '0' ? 'False' : 'True') . '</td>';
    print '</tr>';
}