示例#1
0
                        <span class="sr-only">Toggle navigation</span>
                    </a>

                    <div class="navbar-custom-menu">
                        <ul class="nav navbar-nav">

                            <!-- Notifications: style can be found in dropdown.less -->
                            <li class="dropdown notifications-menu">
                                <a href="<?php 
echo Url::to(['truck-act/notification']);
?>
">
                                    <i class="fa fa-bell-o"></i> พรบ/ภาษี
                                    <span class="label label-warning">
                                        <?php 
echo $truck_act->notification_act();
?>
                                    </span>
                                </a>
                            </li>
                            <!-- Tasks: style can be found in dropdown.less -->
                            <li class="dropdown tasks-menu">
                                <a href="<?php 
echo Url::to(['driver/driver_license_expire']);
?>
" class="dropdown-toggle">
                                    <i class="fa fa-credit-card"></i> ใบขับขี่
                                    <span class="label label-danger"><?php 
echo $driver_model->Get_license_expire();
?>
</span>
示例#2
0
                            <h4 style="margin: 0px; font-size: 14px;" class="navicator">
                                <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
                            </h4>
                        </section>
                    </div>
                    <div class="col-xs-6 col-sm-6 col-md-2 col-lg-2" style=" text-align: right;">
                        <div class="dropup">
                            <button class="btn btn-default dropdown-toggle" type="button" 
                                    id="dropdownMenu2" data-toggle="dropdown" 
                                    aria-haspopup="true" aria-expanded="false"
                                    style=" text-align: right;">

                                <?php 
$noti_act = $truck_act->notification_act();
$noti_driv = $driver_model->Get_license_expire();
$noti_period = $annuities->count_over();
$engine_noti = $engin_model->notify_engine();
$count_noti = (int) $noti_act + (int) $noti_driv + (int) $noti_period + (int) $engine_noti;
?>
                                <?php 
if ($count_noti > 0) {
    ?>
                                    <i class="fa fa-bell faa-ring animated faa-slow"></i>  
                                <?php 
} else {
    ?>
                                    <i class="fa fa-bell"></i>  
                                <?php 
}