echo Yii::$app->user->isGuest ? 'Guest' : Yii::$app->user->identity->username; ?> <small>Member since Nov. <?php echo date('Y'); ?> </small> </p> </li> <!-- Menu Footer--> <li class="user-footer"> <div class="pull-left"> <a href="#" class="btn btn-default btn-flat">Profile</a> </div> <div class="pull-right"> <?php echo Yii::$app->user->isGuest ? yii\bootstrap\Html::a('Login', yii\helpers\Url::to(['/site/login']), ['class' => 'btn btn-default btn-flat']) : yii\bootstrap\Html::a('Logout', yii\helpers\Url::to(['/site/logout']), ['class' => 'btn btn-default btn-flat']); ?> </div> </li> </ul> </li> </ul> </div> </nav> </header> <?php require 'left_menu.php'; ?> <div class="content-wrapper"> <section class="content-header"> <h1>
<th>#</th> <th>Paymnt Number</th> <th>Date</th> <th>Status</th> <th>Method</th> <th>Value</th> </tr> </thead> <tbody> <?php $i = 1; $tpyval = 0; foreach ($model->payments as $payment) { echo Html::beginTag('tr'); echo '<td>' . $i . '</td>'; echo '<td>' . yii\bootstrap\Html::a($payment->number, ['/accounting/payment/view', 'id' => $payment->id]) . '</td>'; echo '<td>' . $payment->date . '</td>'; echo '<td>' . $payment->nmStatus . '</td>'; echo '<td>' . $payment->paymentMethod->method . '</td>'; echo Html::beginTag('td'); $pyval = 0; foreach ($payment->items as $item) { $pyval += $item->value; } echo number_format($pyval, 0); echo Html::endTag('td'); echo Html::endTag('tr'); $tpyval += $pyval; $i++; } echo Html::beginTag('tr');
</h3> </div> <div class="panel-body"> <?php if (Yii::$app->session->hasFlash('success')) { ?> <div class="alert alert-success" role="alert"> <a class="close" data-dismiss="alert" href="#" aria-hidden="true">×</a> <?php echo Yii::$app->session->getFlash('success'); ?> <span class="glyphicon glyphicon-ok"></span> </div> <?php } ?> <div class="urine-index"> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => ['fk_person', ['label' => 'Names', 'format' => 'raw', 'value' => function ($model, $key, $index, $widget) { return $model->fkPerson->names; }], ['attribute' => 'date_visit', 'value' => 'date_visit', 'filter' => \yii\jui\DatePicker::widget(['model' => $searchModel, 'attribute' => 'date_visit', 'options' => ['class' => 'form-control'], 'clientOptions' => ['changeMonth' => true, 'changeYear' => true, 'maxDate' => 'today'], 'language' => 'en', 'dateFormat' => 'yyyy-MM-dd']), 'format' => 'html'], 'time_visit', ['attribute' => 'Basics', 'format' => 'raw', 'value' => function ($model) { return yii\bootstrap\Html::a('Urine basic', ["urine/update/{$model->id}"], ['class' => 'btn btn-xs btn-link']); }], ['attribute' => 'Results', 'format' => 'raw', 'value' => function ($model) { return yii\bootstrap\Html::a('Result', ["urine/updateresults/{$model->id}"], ['class' => 'btn btn-xs btn-link']); }]]]); ?> </div> </div> </div>
</style> <div class="site-index"> <?php if (Yii::$app->user->isGuest) { ?> <div class="jumbotron"> To access the Calculator please <?php echo yii\bootstrap\Html::a('register', ['site/register']); ?> or <?php echo yii\bootstrap\Html::a('login', ['site/login']); ?> </div> <?php } else { ?> <div class="row-fluid"> <div class="col-md-8 well"> <div id="calc-board"> <div class="row-fluid"> <a href="#" class="btn btn-danger" data-meth="reset">C</a> </div>