Beispiel #1
0
<header class="header">

<?php 
echo Html::a(Html::img(Yii::$app->request->baseUrl . '/images/edusec.png', ['width' => '120px;', 'height' => '22px']), Yii::$app->homeUrl, ['class' => 'logo']);
?>

<nav class="navbar navbar-static-top" role="navigation">

<a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
    <span class="sr-only">Toggle navigation</span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
</a>
<?php 
$empInfo = app\modules\employee\models\EmpInfo::find()->where(["LIKE", "emp_joining_date", date('Y-m-d')])->count();
$stuList = app\modules\student\models\StuMaster::find()->where(["LIKE", "created_at", date('Y-m-d')])->count();
$events = app\modules\dashboard\models\Events::find()->where(["LIKE", "created_at", date('Y-m-d')])->count();
$eventsList = app\modules\dashboard\models\Events::find()->where(["LIKE", "event_start_date", date('Y-m-d')])->all();
$empList = Yii::$app->db->createCommand("SELECT * from emp_master WHERE DATE_FORMAT(created_at,'%y-%m-%d') between date_sub(NOW(),INTERVAL 1 WEEK) AND NOW() AND is_status = 0;")->queryAll();
$countT = !Yii::$app->session->get('stu_id') && !Yii::$app->session->get('emp_id') ? $empInfo + $stuList + count($empList) + $events : 0;
$notifyCount = $countT + count($eventsList);
?>
<div class="navbar-right">

<ul class="nav navbar-nav">
<?php 
if (!Yii::$app->session->get('stu_id')) {
    ?>
<li class="dropdown module-menu">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false" title="Main Menu">
Beispiel #2
0
        </section><!-- /.Left col -->
        <!-- right col (We are only adding the ID to make the widgets sortable)-->
        <section class="col-lg-5 connectedSortable">

	    <div class="nav-tabs-custom"><!-- .nav-tabs-custom -->
                <!-- Tabs within a box -->
                <ul class="nav nav-tabs pull-right">
                    <li><a href="#birth-upcoming" data-toggle="tab">Upcoming</a></li>
		    <li class="active"><a href="#birth-taday" data-toggle="tab">Today's</a></li>
                    <li class="pull-left header"><i class="fa fa-birthday-cake"></i>Birthdays</li>
                </ul>
                <div class="tab-content">
                    <!-- Birthdays -->
		    <div class="tab-pane active" id="birth-taday">
			<?php 
$empList = app\modules\employee\models\EmpInfo::find()->where(["LIKE", "emp_dob", date('m-d')])->all();
if (!empty($empList)) {
    foreach ($empList as $el) {
        ?>
				    <div class="box box-solid bg-aqua">
					<div class="box-header">
					    <div class="pull-left" style="padding:5px">
                                                <img src="<?php 
        echo $el->getEmpPhoto($el->emp_photo);
        ?>
" class="img-circle edusec-img-disp" alt="no image" width="40px" height="40px">
                                            </div>
					<h3 class="box-title"><?php 
        echo $el->getEmpFullName();
        ?>
&nbsp;