当前位置: 首页>>代码示例>>PHP>>正文


PHP Transaction::evaluate方法代码示例

本文整理汇总了PHP中Transaction::evaluate方法的典型用法代码示例。如果您正苦于以下问题:PHP Transaction::evaluate方法的具体用法?PHP Transaction::evaluate怎么用?PHP Transaction::evaluate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Transaction的用法示例。


在下文中一共展示了Transaction::evaluate方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: header

}
if ($user_rank > 5) {
    if ($hkzone !== true) {
        header("Location: index.php?throwBack=true");
        exit;
    }
    if (!mobbo::session_is_registered(acp)) {
        header("Location: index.php?p=login");
        exit;
    }
    $pagename = "Notcias";
    $pageid = "news";
    $key = htmlentities($_GET['key']);
    $do = htmlentities($_GET['do']);
    $page = Security::textFilter($_GET['page']);
    $posts = Transaction::evaluate("SELECT COUNT(*) FROM mobbo_news");
    $pages = ceil(($posts + 0) / 50);
    if ($page > $pages || $page < 1) {
        $page = 1;
    }
    if ($_POST['site']) {
        header("location: " . $adminpath . "/p/news&page=" . $_POST['page'] . "");
    }
    if ($_POST['site2']) {
        header("location: " . $adminpath . "/p/news&page=" . $_POST['page2'] . "");
    }
    if ($do == "delete" && is_numeric($key)) {
        $check = Transaction::query("SELECT id FROM mobbo_news WHERE id = '" . $key . "' LIMIT 1");
        if (Transaction::num_rows($check) > 0) {
            Transaction::query("DELETE FROM mobbo_news WHERE id = '" . $key . "' LIMIT 1");
            $msg = "<div class='rounded rounded-green'><center>A notcia foi removida com xito!. <img src=\"./w/images/check.gif\"></center></div>";
开发者ID:habb0,项目名称:mobbo,代码行数:31,代码来源:news.php

示例2:

                                                                            <td class='tablerow1'><?php 
echo Transaction::evaluate("SELECT * FROM rooms");
?>
</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class='tablerow2'>Salas oficiais</td>
                                                                            <td class='tablerow2'><?php 
echo Transaction::evaluate("SELECT * FROM rooms WHERE owner =''");
?>
</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class='tablerow2'>Tags</td>
                                                                            <td class='tablerow2'><?php 
echo Transaction::evaluate("SELECT * FROM user_tags");
?>
</td>
                                                                        </tr>



                                                                    </table>


                                                                    <td width='42%' valign='top'  class='panel callout' >

                                                                        <img  align="right" src="w/images/quiz_question.png">
                                                                        <p><span style="font-size: 4 small;">Olá <?php 
echo $admin_username;
?>
开发者ID:habb0,项目名称:mobbo,代码行数:31,代码来源:home.php

示例3: header

if (!in_array($_SERVER['DOCUMENT_ROOT'] . '\\CORE.php', $included_files)) {
    die;
}
if ($user_rank > 5) {
    if ($hkzone !== true) {
        header("Location: index.php?throwBack=true");
        exit;
    }
    if (!mobbo::session_is_registered(acp)) {
        header("Location: index.php?p=login");
        exit;
    }
    $pagename = "Bots";
    $pageid = "bots";
    $page = Security::textFilter($_GET['page']);
    $posts = Transaction::evaluate("SELECT COUNT(*) FROM bots");
    $pages = ceil(($posts + 0) / 50);
    if ($page > $pages || $page < 1) {
        $page = 1;
    }
    if ($_POST['site']) {
        header("location: " . $adminpath . "/p/bots&page=" . $_POST['page'] . "");
    }
    if ($_POST['site2']) {
        header("location: " . $adminpath . "/p/bots&page=" . $_POST['page2'] . "");
    }
    if ($do == "delete" && is_numeric($key)) {
        $check = Transaction::query("SELECT id FROM bots WHERE id = '" . $key . "' LIMIT 1");
        if (Transaction::num_rows($check) > 0) {
            Transaction::query("DELETE FROM bots WHERE id = '" . $key . "' LIMIT 1");
            Transaction::query("INSERT INTO stafflogs (action,message,note,userid,targetid,timestamp) VALUES ('Housekeeping','Eliminar Bot','bots.php','" . $my_id . "','0','" . $date_full . "')");
开发者ID:habb0,项目名称:mobbo,代码行数:31,代码来源:bots.php

示例4: COUNT

                    </form>
                </table>
            </div>

            <td width='10%' valign='top' id='rightblock'>

            <center><img src="<?php 
        echo $avatar;
        echo $userdata['look'];
        ?>
&size=b&direction=2&action=wlk,wav,&head_direction=3&gesture=sml"></center>

            <div class='tableborder'>
                <div class='tableheaderalt'><center>Emblemas (<?php 
        echo Transaction::evaluate("SELECT COUNT(*) FROM user_badges WHERE user_id = '" . $key . "'");
        ?>
) </div>

                <table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'>

                    <tr>
                        <td class='tablesubheader' width='1%' align='center'>Cdigo</td>
                        <td class='tablesubheader' width='14%' align='center'>Emblema</td>
                    </tr>

                    <?php 
        $sql = Transaction::query("SELECT * FROM user_badges WHERE user_id = '" . $key . "' ORDER BY badge_id");
        while ($row = Transaction::fetch($sql)) {
            ?>
开发者ID:habb0,项目名称:mobbo,代码行数:29,代码来源:users_edit.php

示例5: COUNT

    $posts = Transaction::evaluate("SELECT COUNT(*) FROM bans");
    $pages = ceil(($posts + 0) / 50);
    if ($page > $pages || $page < 1) {
        $page = 1;
    }
    @(include 'subheader.php');
    ?>
    <div class='tableborder'>
        <div class='tableheaderalt'><center>Nmero de pessoas banidas:  <?php 
    echo Transaction::evaluate("SELECT COUNT(*) FROM bans");
    ?>
 | <?php 
    echo Transaction::evaluate("SELECT COUNT(*) FROM bans WHERE bantype = 'user'");
    ?>
 Usurios banidos por ID | <?php 
    echo Transaction::evaluate("SELECT COUNT(*) FROM bans WHERE bantype = 'ip'");
    ?>
 Usurios banidos por IP<br><br> Pgina:
                <?php 
    for ($i = 1; $i <= $pages; $i++) {
        if ($page == $i) {
            echo "<blink><b><font color=\"#000000\">" . $i . "</font></b></blink>\n";
        } else {
            echo "<a href=\"./index.php?p=banlogs&page=" . $i . "\"><font color=\"#FFFFFF\">" . $i . "</a></font>\n ";
        }
    }
    ?>
</div>
                <table cellpadding='4' cellspacing='0' width='100%'>

                    <tr>
开发者ID:habb0,项目名称:mobbo,代码行数:31,代码来源:banlogs.php

示例6: header

if (!in_array($_SERVER['DOCUMENT_ROOT'] . '\\CORE.php', $included_files)) {
    die;
}
if ($user_rank > 6) {
    if ($hkzone !== true) {
        header("Location: index.php?throwBack=true");
        exit;
    }
    if (!mobbo::session_is_registered(acp)) {
        header("Location: index.php?p=login");
        exit;
    }
    $pagename = "Da gerncia";
    $pageid = "recommended";
    $page = Security::textFilter($_GET['page']);
    $posts = Transaction::evaluate("SELECT COUNT(*) FROM mobbo_recommended");
    $pages = ceil(($posts + 0) / 50);
    if ($page > $pages || $page < 1) {
        $page = 1;
    }
    if ($_POST['site']) {
        header("location: " . $adminpath . "/p/recommended&page=" . $_POST['page'] . "");
    }
    if ($_POST['site2']) {
        header("location: " . $adminpath . "/p/recommended&page=" . $_POST['page2'] . "");
    }
    if ($do == "delete" && is_numeric($key)) {
        $check = Transaction::query("SELECT id FROM mobbo_recommended WHERE id = '" . $key . "' LIMIT 1");
        if (Transaction::num_rows($check) > 0) {
            Transaction::query("DELETE FROM mobbo_recommended WHERE id = '" . $key . "' LIMIT 1");
            $msg = "<div class='rounded rounded-green'><center>Removido com sucesso <img src=\"./w/images/check.gif\"></center></div>";
开发者ID:habb0,项目名称:mobbo,代码行数:31,代码来源:recommended.php

示例7: elseif

    if ($users_today < $users_yesterday) {
        $rounded = 100 - $zwischenround;
    } else {
        $rounded = $zwischenround - 100;
    }
    if ($users_today < $users_yesterday) {
        $icon = "-";
        $color = "red";
    } elseif ($users_today == $users_yesterday) {
        $icon = "+-";
        $color = "gray";
    } else {
        $icon = "+";
        $color = "green";
    }
    $header = "" . Transaction::evaluate("SELECT * FROM users") . " Usuarios registrados</div><center>Registrados - (Hoje): " . $users_today . " | (Ontem): " . $users_yesterday . " = <font color=\"" . $color . "\">" . $icon . "" . $rounded . "%</font>";
    @(include 'subheader.php');
    ?>

    <form action='<?php 
    echo $adminpath;
    ?>
/p/users&do=save' method='post' name='theAdminForm' id='theAdminForm'>
        <div class='tableborder'>
            <div class='tableheaderalt'><div style="float: left"><?php 
    echo $header;
    ?>

                    <select name="page">
                        <?php 
    for ($i = 1; $i <= $pages; $i++) {
开发者ID:habb0,项目名称:mobbo,代码行数:31,代码来源:users.php

示例8: header

if (!in_array($_SERVER['DOCUMENT_ROOT'] . '\\CORE.php', $included_files)) {
    die;
}
if ($user_rank > 6) {
    if ($hkzone !== true) {
        header("Location: index.php?throwBack=true");
        exit;
    }
    if (!mobbo::session_is_registered(acp)) {
        header("Location: index.php?p=login");
        exit;
    }
    $pagename = "Novidades do Hotel";
    $pageid = "campaigns";
    $page = Security::textFilter($_GET['page']);
    $posts = Transaction::evaluate("SELECT COUNT(*) FROM mobbo_hotcampaigns");
    $pages = ceil(($posts + 0) / 50);
    if ($page > $pages || $page < 1) {
        $page = 1;
    }
    if ($_POST['site']) {
        header("location: " . $adminpath . "/p/campaigns&page=" . $_POST['page'] . "");
    }
    if ($_POST['site2']) {
        header("location: " . $adminpath . "/p/campaigns&page=" . $_POST['page2'] . "");
    }
    if ($do == "delete" && is_numeric($key)) {
        $check = Transaction::query("SELECT id FROM mobbo_hotcampaigns WHERE id = '" . $key . "' LIMIT 1");
        if (Transaction::num_rows($check) > 0) {
            Transaction::query("DELETE FROM mobbo_hotcampaigns WHERE id = '" . $key . "' LIMIT 1");
            $msg = "<div class='rounded rounded-green'><center>Notcia eliminada corretamente<img src=\"./w/images/check.gif\"></center></div>";
开发者ID:habb0,项目名称:mobbo,代码行数:31,代码来源:campaigns.php

示例9: COUNT

        echo Transaction::evaluate("SELECT COUNT(*) FROM moderation_tickets WHERE moderator_id = '" . $row['moderator_id'] . "'");
        ?>
</td>
                            </tr>

                        <?php 
    }
    ?>
                    </table>

                    <div class='tableborder'>
                        <div class='tableheaderalt'><center><?php 
    echo Transaction::evaluate("SELECT COUNT(*) FROM moderation_tickets");
    ?>
 Chamados de ajuda | <?php 
    echo Transaction::evaluate("SELECT COUNT(*) FROM moderation_tickets WHERE moderator_id = '0'");
    ?>
 sem ver | Hoje: <?php 
    echo $today;
    ?>

                                <select name="page2">
                                    <?php 
    for ($i = 1; $i <= $pages; $i++) {
        ?>
                                        <option value="<?php 
        echo $i;
        ?>
"<?php 
        if ($i == $page) {
            echo ' selected="selected"';
开发者ID:habb0,项目名称:mobbo,代码行数:31,代码来源:helper.php


注:本文中的Transaction::evaluate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。