Your IP : 216.73.216.79


Current Path : /var/www/html/crm/views/serverowner/
Upload File :
Current File : /var/www/html/crm/views/serverowner/view.php

<?php

use yii\helpers\Html;
use app\models\Menu;
use app\models\ServerDetails;
use app\models\ParamList;

$ParamList = new ParamList();
$Menu = new Menu();
$this->title = $Menu->getmenutitle($menu_id);
?>
<div class="kt-subheader kt-grid__item" id="kt_subheader">
    <div class="kt-container  kt-container--fluid ">
        <div class="kt-subheader__main">
            <h3 class="kt-subheader__title"><?= $this->title ?></h3>
            <div class="kt-subheader__breadcrumbs">
                <?= $Menu->getbreadcrumbs($menu_id, ''); ?>
                <span class="kt-subheader__breadcrumbs-separator"></span>
                <span class="kt-subheader__breadcrumbs-link">View Details Credentials</span>
            </div>
        </div>
    </div>
</div>
<div class="kt-container  kt-container--fluid  kt-grid__item kt-grid__item--fluid">
    <div class="kt-portlet kt-portlet--mobile">
        <div class="kt-portlet__body kt-portlet__body--fit">
            <div class="kt-portlet__head">
                <div class="kt-portlet__head-label">
                    Credentials for <?= $model->project; ?>
                </div>
            </div>
            <div class="kt-portlet__body">
                <table class="table table-bordered table-striped">
                    <thead>
                        <tr>
                            <th width="1%">#</th>
                            <th width="15%">Location</th>
                            <th width="15%">Type</th>
                            <th>Domain / IP / URL</th>
                            <th width="15%">Username</th>
                            <th width="15%">Password</th>
                            <th>Remarks</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $countItem = 0;
                        $modelItem = ServerDetails::find()->where(['=', 'owner_id', $model->id])->orderBy(['id' => SORT_ASC])->all();
                        if (!empty($modelItem)) {
                            foreach ($modelItem as $rowItem) {
                                $countItem++;
                                echo '<tr>
                                    <td>' . $countItem . '</td>
                                    <td>' . $ParamList->getlabel(42, $rowItem->location) . '</td>
                                    <td>' . $ParamList->getlabel(43, $rowItem->type) . '</td>
                                    <td>' . $rowItem->domain . '</td>
                                    <td>' . $rowItem->username . '</td>
                                    <td>' . $rowItem->pwd . '</td>
                                    <td>' . $rowItem->remarks . '</td>
                                </tr>';
                            }
                        }
                        ?>
                    </tbody>
                </table>
            </div>
            <div class="kt-portlet__foot">
                <div class="kt-form__actions">
                    <?= Html::a('<i class="fas fa-arrow-left"></i>&nbsp;Back', ['index'], ['class' => 'btn btn-outline-brand']) ?>&nbsp;
                </div>
            </div>
        </div>
    </div>
</div>