Esempio n. 1
0
?>
</h3>
	</div>
	<div class="box-body">

	<div class="row">
		<div class="col-md-6 col-sm-6 col-xs-12">
		      <div class="edusec-link-box">
		        <span class="edusec-link-box-icon bg-yellow"><i class="fa fa-envelope"></i></span>
		        <div class="edusec-link-box-content">
		          <span class="edusec-link-box-text"><?php 
echo Html::a(Yii::t('dash', 'Massage Of The Day'), ['/dashboard/msg-of-day']);
?>
</span>
		          <span class="edusec-link-box-number"><?php 
$msgOfDay = app\modules\dashboard\models\MsgOfDay::find()->where(['is_status' => 0])->count();
echo Yii::t('dash', 'Status') . ' : ';
echo $msgOfDay == 1 ? Yii::t("dash", "Active") : Yii::t("dash", "Deactive");
?>
</span>
			 <span class="edusec-link-box-desc"></span>
			  <span class="edusec-link-box-bottom"><?php 
echo Html::a('<i class="fa fa-plus-square"></i> ' . Yii::t('dash', 'Create New'), ['/dashboard/msg-of-day/create']);
?>
</span>
		        </div><!-- /.info-box-content -->
		      </div><!-- /.info-box -->
		</div>

		<div class="col-md-6 col-sm-6 col-xs-12">
		      <div class="edusec-link-box">
Esempio n. 2
0
</style>

<?php 
$this->registerJs("\$(function() {\n\t\$('.noticeModalLink').click(function() {\n\t\t\$('#NoticeModal').modal('show')\n\t\t.find('#NoticeModalContent')\n\t\t.load(\$(this).attr('data-value'));\n\t});\n});");
?>

<?php 
yii\bootstrap\Modal::begin(['header' => '<h4><i class="fa fa-eye"></i> View Notice Details</h4>', 'id' => 'NoticeModal']);
echo '<div id="NoticeModalContent"></div>';
yii\bootstrap\Modal::end();
?>

<!-- Main content -->
            <section class="content">
	<?php 
$msg = app\modules\dashboard\models\MsgOfDay::find()->andWhere(['is_status' => 0, 'msg_user_type' => ['0', 'E']])->one();
if (!empty($msg)) {
    ?>
				
		<div class="callout callout-info show msg-of-day" >
		    <h4><i class="fa fa-bullhorn"></i> Message of day box</h4>
		    <marquee onmouseout="this.setAttribute('scrollamount', 6, 0);" onmouseover="this.setAttribute('scrollamount', 0, 0);" scrollamount="6" behavior="scroll" direction="left"><?php 
    echo $msg->msg_details;
    ?>
</marquee>
		    
		</div>
		<?php 
} else {
    ?>
		<div class="callout callout-info hide msg-of-day" >
Esempio n. 3
0
$this->registerJs("\$(function() {\n\t\$('.noticeModalLink').click(function() {\n\t\t\$('#NoticeModal').modal('show')\n\t\t.find('#NoticeModalContent')\n\t\t.load(\$(this).attr('data-value'));\n\t});\n});");
$this->registerJs("\$('body').on('click', function (e) {\n    \$('[data-toggle=\"popover\"]').each(function () {\n        if (!\$(this).is(e.target) && \$(this).has(e.target).length === 0 && \$('.popover').has(e.target).length === 0) {\n            \$(this).popover('hide'); \n        }\n    });\n});");
?>

<?php 
yii\bootstrap\Modal::begin(['header' => '<h4><i class="fa fa-eye"></i> View Notice Details</h4>', 'id' => 'NoticeModal']);
echo '<div id="NoticeModalContent"></div>';
yii\bootstrap\Modal::end();
?>

                <!-- Main content -->
                <section class="content">

                    <!-- Small boxes (Stat box) -->
		<?php 
$stuMsg = app\modules\dashboard\models\MsgOfDay::find()->where('is_status = 0  AND (msg_user_type = "E" OR msg_user_type = "0")')->one();
if (!empty($stuMsg)) {
    ?>
		<div class="callout callout-info msg-of-day">
			    <h4><i class="fa fa-bullhorn"></i> Message of day box</h4>
			    <p><marquee onmouseout="this.setAttribute('scrollamount', 6, 0);" onmouseover="this.setAttribute('scrollamount', 0, 0);" scrollamount="6" behavior="scroll" direction="left"><?php 
    echo $stuMsg->msg_details;
    ?>
</marquee></p>
		</div>
		<?php 
}
?>

                    <div class="row">
                        <div class="col-lg-3 col-xs-6">