Example #1
0
                </tr>
                <?php 
while ($row = $res->fetch_assoc()) {
    if (isset($row['user_id'])) {
        $user = Users::getUserById($row['user_id']);
    }
    if ($row['status'] == 'Trashed') {
        $status = _e('trashed', '', '', true);
        $statcolor = "style='text-align: center; color: red;'";
        $t_button = "<a href='?switch=comments&sub=clean_comment&id=" . $row['ID'] . "'>" . _e('clean', '', '', true) . "</a>";
    } else {
        $status = _e('published', '', '', true);
        $statcolor = "style='text-align: center;'";
        $t_button = "<a href='?switch=comments&sub=trash_comment&id=" . $row['ID'] . "'>" . _e('trash', '', '', true) . "</a>";
    }
    echo "<tr><td style='text-align: center; vertical-align: middle;'>" . $row['ID'] . "</td><td style='text-align: center; vertical-align: middle;'><a href='?switch=users&sub=edit_user&id=" . $row['user_id'] . "'>" . $user['username'] . "</a></td><td>" . $row['content'] . "</td><td>" . Posts::getPostTitleById($row['post_id']) . "</td><td " . $statcolor . ">" . $status . "<br>" . "<span style='text-align: center;'><a onclick=\"return confirm('Are you sure?');\" href='?switch=comments&sub=delete_comment&id=" . $row['ID'] . "'>" . _e('delete', '', '', true) . "</a></span>" . "<br>" . "<span style='text-align: center;'>" . $t_button . "</span></td><td style='text-align: center; vertical-align: middle;'>" . addZerosToShow(LBDP($row['date'])) . "</td></tr>";
}
$res->free();
?>
                </table>
                <?php 
$home = "?switch=users&sub=edit_user";
?>
                <script>
                    function gotoEdit(ref)
                    {
                        var id = ref.id;
                        window.location.assign("<?php 
echo $home;
?>
&id=" + id);
Example #2
0
_e('plugin_status');
?>
</th>
                <th><?php 
_e('plugin_last_update_date');
?>
</th>
            </tr>
            <?php 
while ($row = $res->fetch_assoc()) {
    if ($row['plugin_version'] == '1') {
        $row['plugin_version'] = '1.0';
    }
    if ($row['included'] == '1') {
        $row['included'] = 'Included';
    } else {
        $row['included'] = 'User made';
    }
    if ($row['plugin_status'] == '1') {
        $row['plugin_status'] = 'Active';
    } else {
        $row['plugin_status'] = 'Not Active or Needs Repair';
    }
    echo "<tr><td><a href='?switch=settings&plugin=" . $row['ID'] . "'>" . ucfirst($row['plugin_name']) . "</a></td><td>" . $row['plugin_version'] . "</td><td>" . $row['included'] . "</td><td style='color: red;'>" . $row['plugin_status'] . "</td><td>" . addZerosToShow(LBDP($row['latest_update_date'])) . "</td></tr>";
}
$res->free();
?>
        </table>
    </div>
<?php 
$conn->close();
Example #3
0
?>
</th>
                <th><?php 
_e('vip_expire_date');
?>
</th>
            </tr>
            <?php 
while ($row = $res->fetch_assoc()) {
    if (Users::isVIPById($row['ID'])) {
        $vip_status = _e('yes', '', '', true);
    } else {
        $vip_status = '';
    }
    $row['user_role'] = Users::userRoleToString($row);
    echo "<tr><td><a id='" . $row['ID'] . "' style='cursor: pointer;' onclick='gotoEdit(this)'>" . $row['user_login'] . "</a></td><td>" . $row['user_role'] . "</td><td>" . addZerosToShow(LBDP($row['user_registered'])) . "</td><td>" . addZerosToShow(LBDP($row['vip_start_date'])) . "</td><td>" . addZerosToShow(LBDP($row['vip_expire_date'])) . "</td></tr>";
}
$res->free();
?>
        </table>
        <?php 
$home = "?switch=users&sub=edit_user";
?>
        <script>
            function gotoEdit(ref)
            {
                var id = ref.id;
                window.location.assign("<?php 
echo $home;
?>
&id=" + id);
Example #4
0
</th>
                </tr>
                <?php 
while ($row = $res->fetch_assoc()) {
    if (isset($row['post_author'])) {
        $username = Users::getUserById($row['post_author']);
    }
    if ($row['post_status'] == 'Initialized') {
        $status = _e('initialized', '', '', true);
        $statcolor = "style='text-align: center; color: red;'";
    } else {
        $status = _e('published', '', '', true);
        $statcolor = "style='text-align: center;'";
    }
    $first_cat = getPostCategories($row['ID'])[0];
    echo "<tr><td style='text-align: center; vertical-align: middle;'>" . $row['ID'] . "</td><td style='text-align: center; vertical-align: middle;'><a href='?switch=users&sub=edit_user&id=" . $row['post_author'] . "'>" . $username['username'] . "</a></td><td>" . $row['post_title'] . "</td><td style='text-align: center; vertical-align: middle;'><a href='?switch=categories&sub=edit_category&id=" . $first_cat . "'>" . getCategoryById($first_cat) . "</a></td><td " . $statcolor . ">" . $status . "<br>" . "<span style='text-align: center;'><a onclick=\"return confirm('Are you sure?');\" href='?switch=manage_posts&sub=delete_post&id=" . $row['ID'] . "'>" . _e('delete', '', '', true) . "</a></span>" . "<br>" . "<span style='text-align: center;'><a href='?switch=new_post&sub=edit_post&id=" . $row['ID'] . "'>" . _e('edit', '', '', true) . "</a></span></td><td style='text-align: center; vertical-align: middle;'>" . addZerosToShow(LBDP($row['post_date'])) . "</td></tr>";
}
$res->free();
?>
                </table>
                <?php 
$home = "?switch=users&sub=edit_user";
?>
                <!--<script>
                    function gotoEdit(ref)
                    {
                        var id = ref.id;
                        window.location.assign("<?php 
echo $home;
?>
&id=" + id);
Example #5
0
                    <th style="vertical-align: middle;"><?php 
    _e('', 'ID');
    ?>
</th>
                    <th style="vertical-align: middle;"><?php 
    _e('name');
    ?>
</th>
                    <th style="vertical-align: middle;"><?php 
    _e('operations');
    ?>
</th>
                    <th style="vertical-align: middle;"><?php 
    _e('created_date');
    ?>
</th>
                </tr>
                <?php 
    while ($row = $res->fetch_assoc()) {
        echo "<tr><td style='text-align: center; vertical-align: middle;'>" . $row['ID'] . "</td><td style='text-align: center; vertical-align: middle;'>" . $row['name'] . "</td><td <span style='text-align: center;'><a onclick=\"return confirm('Are you sure?');\" href='?switch=utilities&tab=email_templates&sub=delete_template&id=" . $row['ID'] . "'>" . _e('delete', '', '', true) . "</a></span><br><span style='text-align: center;'><a href='?switch=utilities&tab=email_templates&sub=new_template&id=" . $row['ID'] . "'>" . _e('edit', '', '', true) . "</a></span></td><td style='text-align: center; vertical-align: middle;'>" . addZerosToShow(LBDP($row['date_created'])) . "</td></tr>";
    }
    $res->free();
    ?>
                </table>
            </div>
        </div>
    </div>
</div>

<?php 
}