Esempio n. 1
0
$labels['0']['class'] = "";
$labels['0']['text'] = "Inactive";
$labels['1']['class'] = "label-success";
$labels['1']['text'] = "Approved!";
$labels['2']['class'] = "label-important";
$labels['2']['text'] = "Unapproved";
$labels['3']['class'] = "label-warning";
$labels['3']['text'] = "Pending..";
$labels['4']['class'] = "label-info";
$labels['4']['text'] = "Manual Approval";
$labels['5']['class'] = "label-inverse";
$labels['5']['text'] = "Spam Account";
?>

                <?php 
$em = get_em();
// var_dump(;die;
foreach ($em as $key => $i) {
    echo '<tr>';
    echo '<td class="span1 text-center hidden-phone">' . ($key + 1) . '</td>';
    echo '<td><a href=?action=show_profile_different&EId=' . $i['EId'] . '>' . $i['Name'] . '</a></td>';
    echo '<td class="hidden-phone hidden-tablet">';
    $name = pos_dep($i['EId']);
    echo $name['Position'] . ' - ' . $name['Name'];
    if ($dep_auth['Authority'] == 5) {
        echo '</td>';
        echo '<td class="span1 text-center">';
        echo '<div class="btn-group">';
        echo '        </div>';
        echo '   </td>';
    }
Esempio n. 2
0
    <!-- Breadcrumb -->
    <!-- You can have the breadcrumb stick on scrolling just by adding the following attributes with their values (data-spy="affix" data-offset-top="250") -->
    <!-- You can try it on other elements too :-), the sticky position and style can be adjusted in the css/main.css with .affix class -->
    <ul class="breadcrumb" data-spy="affix" data-offset-top="250">
        <li>
            <a href="index.php"><i class="glyphicon-display"></i></a> <span class="divider"><i class="icon-angle-right"></i></span>
        </li>
        <li class="active"><a href="">Dự án</a></li>
    </ul>
    <!-- END Breadcrumb -->

    <!-- Default Tabs Block -->

    <?php 
$name = get_project();
$get_nv = get_em();
$dep_auth = get_dep_auth($_SESSION['is_valid']);
foreach ($name as $i) {
    echo '<div class="block block-themed">';
    echo '<div class="block-title">';
    echo '<h4>' . $i['Name'] . '</h4>';
    echo '</div>';
    echo '<div class="label label-inverse">Thông tin dự án</div>';
    echo '<p>' . $i['Info'] . '</p>';
    echo '<div class="label label-inverse">Phòng quản lý</div>';
    $x = dep_name($i['PId']);
    echo '<p>' . $x . '</p>';
    if (checkEP($_SESSION['is_valid'], $i['PId']) != 0) {
        echo '<div class="label label-inverse">Mức lương của bạn</div>';
        echo '<p>' . checkEPMoney($_SESSION['is_valid'], $i['PId'])['SpH'] . '</p>';
    }