Beispiel #1
0
<?php

use BITS\BITS;
?>
<div class="row border-bottom">
    <nav class="navbar navbar-static-top white-bg" role="navigation" style="margin-bottom: 0">
        <div class="navbar-header">
            <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
        </div>
        <h6 class="hidden-md hidden-sm hidden-xs" style="display:inline;font-size:1.2em;line-height:3.6em;margin-left:10px"><?php 
$pesan = isset($_SESSION['id_project']) ? "Anda sedang mengelola project - " . BITS::getName("project", $_SESSION['id_project']) : 'Silahkan Pilih project !';
echo $pesan;
?>
</h6>
        <ul class="nav navbar-top-links navbar-right">
            <li>
                <a href="/logout/">
                    <i class="fa fa-sign-out text-info"></i>
                </a>
            </li>
        </ul>
    </nav>
</div>
Beispiel #2
0
<?php

use BITS\BITS;
/**
 * POST API Method Request
 */
$this->respond('POST', '/users/?', function ($request, $response, $service) {
    // Script POST Method add users.
    //BITS::add('users', ['username', 'password', 'name', 'address']);
});
/**
 * GET API Method Request
 */
$this->respond('GET', '/users/?', function ($request, $response, $service) {
    // Fetch users table database and return to $this->users
    $service->users = BITS::allApi('users');
    return $service->users;
});
Beispiel #3
0
<?php

use BITS\BITS;
/**
 * GET Method Request
 */
$this->respond('GET', '/?', function ($request, $response, $service) {
    // Title
    $service->title = 'System Settings';
    // Fetch users table database and return to $this->users
    $service->users = BITS::all('users');
    // Render User template views.
    $service->render('app/views/welcome.php');
});
Beispiel #4
0
<?php

use BITS\BITS;
use BITS\Relationship;
use BITS\Query;
foreach (BITS::find('view_users_level', 'id', $_SESSION['id']) as $users) {
    ?>
<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element">
                    <span>
                    <?php 
    if ($users['photo']) {
        ?>
                        <img alt="image" class="img-circle" width="44" height="44" src="<?php 
        echo $users['photo'];
        ?>
">
                    <?php 
    } else {
        ?>
                        <img alt="image" class="img-circle" width="44" height="44" src="/public/files/img/2015-07-27-44240-true-love-never-ends.jpg">
                    <?php 
    }
    ?>
                    </span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <span class="clear"> <span class="block m-t-xs"> <strong class="font-bold"><?php 
    echo $users['nama'];