Пример #1
0
    ?>
</a> -->
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <?php 
    echo $nama;
    ?>
 <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <!-- <li>
                                <a href="#"><i class="fa fa-fw fa-user"></i> Profile</a>
                            </li>
                            <li>
                                <a href="#"><i class="fa fa-fw fa-envelope"></i> Inbox</a>
                            </li> -->
                            <li>
                                <a href="#"><i class="fa fa-fw fa-user"></i>Anda Seorang <?php 
    echo $function->UserLevel($user_level);
    ?>
</a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="<?php 
    echo Url::to(['site/logout']);
    ?>
"><i class="fa fa-fw fa-power-off"></i> Log Out</a>
                            </li>
                        </ul>
                    </li>
                </ul>
                <!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
                <div class="collapse navbar-collapse navbar-ex1-collapse">
Пример #2
0
                                <th>No</th>
                                <th>Name</th>
                                <th>Username</th>
                                <th>User Level</th>
                                <th>Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php 
$no = 1;
$function = new FunctionHelper();
foreach ($data as $key => $value) {
    echo '<tr>
                                        <td>' . $no . '</td>
                                        <td><a href="' . ($url = Url::to(['user/edit', 'id' => $value['id']]) . '">' . $value['nama'] . '</a></td>
                                        <td>' . $value['username'] . '</td>
                                        <td>' . $function->UserLevel($value['user_level']) . '</td>
                                        <td><a href="' . ($url = Url::to(['user/delete', 'id' => $value['id']]) . '">Delete</a></td>
                                    </tr>'));
    $no++;
}
// var_dump($data);
?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>